id number automatically generated
parentid paternal menu id number
name menu displays the name, such as "portals"
title title
Menu link url address of the internal address such as: portal.php external address full address: http: //www.yuanscn.com
Tip blanking identifier when the mouse pointer
target in this window or open a new page opens: 0 on this page, a new page.
Category type: 0 is built, a custom, -1 can not be modified within the system, for the channel 4
available: 0 not displayed as unusable, or usable as a menu item
displayorder: display order, at the most front 0, the larger the number the more rearward
hightlight: Are highlighted. 0 is not highlighted. 1 is shown as highlighted. The cursor to the upper state.
level: Level 0
subcols: 0 times columns
icon: Icon empty or STATICURL} image / feed / portal_b.png
subname: submenu name, no remains empty
suburl: ditto
navtype: parameters 0,1,2,3,4,5,6.0 main menu, 4 for the most top menu, footer menu 1, 5 home menu, 3 quick navigation.
Discuz! $ _G global variables in the parameter list in detail
- |
- Views: 2002
- |
- Updated: 2015-03-29 21:12
- |
- Tags: Programming language
$ _G [ 'uid'] => UID currently logged
$ _G [ 'username'] => currently logged on user name
$ _G [ 'adminid'] => ID management group ID currently logged
$ _G [ 'groupid'] => ID group ID currently logged
$ _G [ 'cookie'] => client cookie
$ _G [ 'formhash'] => [FORMHASH current login ID is mainly used to form submission]
$ _G [ 'timestamp'] => Current Time
$_G['starttime'] => 1317042440.3242
$ _G [ 'clientip'] => IP address of the current visitor
$ _G [ 'referer'] => the address of the current request, the main user form submission
$ _G [ 'charset'] => program code
Relative address $ _G [ 'PHP_SELF'] => the current page is accessed
$ _G [ 'siteurl'] => program access address
$ _G [ 'siteroot'] => relative directory domain where the program
$ _G [ 'fid'] => [id current forum topic list page, post page appears]
$ _G [ 'tid'] => the current post ID] [Post page appears
$ _G [ 'basescript'] => the current page where the channel
$ _G [ 'basefilename'] => current page php file name
$ _G [ 'staticurl'] => Programs Accessories Catalog
$ _G [ 'mod'] => the current value of the page [MOD for example:? Forum.php mod = xxx]
$ _G [ 'inajax'] => [value of the current ajax request has no -0] -1
$ _G [ 'page'] => Current tab ID
$ _G [ 'tpp'] => Current Per page tab
$ _G [ 'seokeywords'] => the current page keyword seo
$ _G [ 'seodescription'] => the current page description seo
$_G['timenow'] => Array
(
[Time] => 2011-9-26 21:07 current server time
[Offset] => +8 server current time zone
)
$_G['config'] => Array(
$_G['config'][db] => Array(
$_G['config'][db][1] => Array(
$ _G [ 'config'] [db] [1] [dbhost] => localhost connection address database
$ _G [ 'config'] [db] [1] [dbuser] => root database username
$ _G [ 'config'] [db] [1] [dbpw] => 123456 password database
$ _G [ 'config'] [db] [1] [dbcharset] => utf8 encoding database
$_G['config'][db][1][pconnect] => 0
$ _G [ 'config'] [db] [1] [dbname] => dxutf database name
$ _G [ 'config'] [db] [1] [tablepre] => pre_ table prefix
)
)
)
(2) the background of the global settings articles
$ _G [ 'setting'] [sitename] => Global - Site Information - Site Name
$ _G [ 'setting'] [siteurl] => Global - Site Information - Site URL
$ _G [ 'setting'] [regname] => Global - Registration Access - Registration - Registered address
$ _G [ 'setting'] [reglinkname] => Global - Registration Access - Registration - Register link text
$ _G [ 'setting'] [regverify] => Global - Access Register - Register - register new user authentication
$ _G [ 'setting'] [icp] => Global - Site information - information website for the record the code
$ _G [ 'setting'] [imagelib] => Global - upload settings - basic settings - Picture Library Type
$ _G [ 'setting'] [extcredits] => the case of the integral self printing
$ _G [ 'setting'] [creditsformula] => Global - Set Points - Basic Set - Total credit Formula
$ _G [ 'setting'] [cacheindexlife] => Global - Performance Optimization - Forum page cache settings - Cache Forum Home validity
$ _G [ 'setting'] [cachethreaddir] => Global - Performance Optimization - Forum page cache settings - cache directory
$ _G [ 'setting'] [cachethreadlife] => Global - Performance Optimization - Forum page cache settings - Cache posts validity
$ _G [ 'setting'] [bbrulestxt] => Global - Registration Access - Registration - Terms of Service
$ _G [ 'setting'] [bbname] => Global - Site Information - Site Name
$ _G [ 'setting'] [attachurl] => Global - upload settings - Basic Set - local attachment URL address
$ _G [ 'setting'] [attachdir] => Global - upload settings - Basic Set - locally stored attachment location
$ _G [ 'setting'] [anonymoustext] => Interface - Interface Set - global - the anonymous user's nickname
$ _G [ 'setting'] [threadsticky] => Interface - Interface Set - Topic List - Sticky identified topics
$ _G [ 'setting'] [defaultindex] => default home page file name forum.php
$ _G [ 'setting'] [verify] => User - authentication settings
_G case $ [ 'setting'] [rewriterule] => pseudo-static background rules
$ _G [ 'setting'] [ucenterurl] => UCenter address
$ _G [ 'setting'] [plugins] => enabled background plug provided with the case
$ _G [ 'setting'] [navlogos] => Background interface settings - navigation settings - set built-in navigation logo
[Navmn] => Navigation of background setting $ _G [ 'setting'], is determined primarily used for navigation
$ _G [ 'setting'] [navs] => header navigation array, this array can reference the page header rewriting navigation
$ _G [ 'setting'] [footernavs] => Navigation footer
The navigation $ _G [ 'setting'] [spacenavs] => home module
$ _G [ 'setting'] [mynavs] => header navigation quick navigation buttons to the right content
$ _G [ 'setting'] [topnavs] => the top of the page header navigation content
$ _G [ 'setting'] [forumpicstyle] => Array Forum topics cover
(
$ _G [ 'setting'] [forumpicstyle] [thumbwidth] => the width of the cover topics
$ _G [ 'setting'] [forumpicstyle] [thumbheight] => Theme Cover height
)
$ _G [ 'setting'] [activityfield] => Global - site functionality - theme - the initiator of the required information
$ _G [ 'setting'] [activityextnum] => Global - site functionality - theme - Extended Information Number of entries
$ _G [ 'setting'] [activitypp] => Global - site functionality - theme - User List page displays the number of participating
$ _G [ 'setting'] [activitycredit] => Global - site functionality - theme - use points
$ _G [ 'setting'] [activitytype] => Global - site functionality - theme - built-in type
$ _G [ 'setting'] [adminemail] => Global - Site Information - Administrator mailbox
(3) the global current registrant information papers
$ _G [ 'member'] => Array currently logged in user's personal information
(
$_G['member'][uid] => UID
$ _G [ 'member'] [email] => e-mail address
$ _G [ 'member'] [username] => username
$ _G [ 'member'] [password] => After the password MD5 (Freeze output remember!) $ _ G [ 'member'] [status] => if the user has deleted
$ _G [ 'member'] [emailstatus] => Mailbox Status verified by authentication 1 0 unverified
$ _G [ 'member'] [avatarstatus] => 0 state UPLOAD uploaded is not uploaded 1
$ _G [ 'member'] [videophotostatus] => 0 certified video Certification Certified 1
$ _G [ 'member'] [adminid] => where the group ID management
$ _G [ 'member'] [groupid] => where the group ID
$ _G [ 'member'] [groupexpiry] => Validity of the current user group
$ _G [ 'member'] [extgroupids] => Extended User Group
$ _G [ 'member'] [regdate] => Member
$ _G [ 'member'] [credits] => 214 total credit existing
$ _G [ 'member'] [notifysound] => sound Message
$ _G [ 'member'] [timeoffset] => time zone
Number $ _G [ 'member'] [newpm] => New Message
[Newprompt] => the number of new alert $ _G [ 'member']
$ _G [ 'member'] [accessmasks] => This looks access, uncertain
$ _G [ 'member'] [allowadmincp] => 0 if no permissions have administrative panel 1 is
$ _G [ 'member'] [onlyacceptfriendpm] => friends only accept message if no one is 0
$ _G [ 'member'] [conisbind] => is bound QQ 0 NO 1 YES
$ _G [ 'member'] [lastvisit] => Last Accessed
);
(4) style variables articles
$_G['style'] => Array(
$ _G [ 'style'] [styleid] => the current style ID
$ _G [ 'style'] [name] => the current style name
$ _G [ 'style'] [templateid] => Current Template System
$ _G [ 'style'] [tpldir] => the current template directory
$ _G [ 'style'] [menuhoverbgcolor] => navigation menu highlight background color
$ _G [ 'style'] [lightlink] => link color light
$ _G [ 'style'] [floatbgcolor] => Background Properties pop-up window
$ _G [ 'style'] [dropmenubgcolor] => drop-down menu background properties $ _G [ 'style'] [floatmaskbgcolor] => pop-up window border color property
$ _G [ 'style'] [dropmenuborder] => drop-down menu border color
$ _G [ 'style'] [specialbg] => color area background color (Post user information field, table top is emphasized)
$ _G [ 'style'] [specialborder] => color border region
$ _G [ 'style'] [commonbg] => General background color display area
$ _G [ 'style'] [commonborder] => General border color
$ _G [ 'style'] [inputbg] => the background color of the input box
$ _G [ 'style'] [inputborderdarkcolor] => enter the dark box border
$ _G [ 'style'] [headerbgcolor] => header BACKGROUND
$ _G [ 'style'] [headerborder] => header dividing line height
$ _G [ 'style'] [sidebgcolor] => home side Background
$ _G [ 'style'] [msgfontsize] => Entry contents size
$ _G [ 'style'] [bgcolor] => page background
$ _G [ 'style'] [noticetext] => message Color
$ _G [ 'style'] [highlightlink] => Link Color Highlight
$ _G [ 'style'] [link] => link text color
$ _G [ 'style'] [lighttext] => light text
$ _G [ 'style'] [midtext] => Medium text color
$ _G [ 'style'] [tabletext] => normal text color
$ _G [ 'style'] [smfontsize] => small font size
$ _G [ 'style'] [threadtitlefont] => list of topics Fonts
$ _G [ 'style'] [threadtitlefontsize] => list of topics font size
$ _G [ 'style'] [smfont] => Small font
$ _G [ 'style'] [titlebgcolor] => the title listing section font color $ _G [ 'style'] [fontsize] => normal font size
$ _G [ 'style'] [font] => normal font
$ _G [ 'style'] [styleimgdir] => extensions picture catalog
$ _G [ 'style'] [imgdir] => Image directory interface basis
$ _G the path [ 'style'] [boardimg] => logo
$ _G [ 'style'] [headertext] => page header text color
$ _G [ 'style'] [footertext] => footer text color
$ _G [ 'style'] [menubgcolor] => navigation menu background color
$ _G [ 'style'] [menutext] => navigation menu text color
$ _G [ 'style'] [menuhovertext] => navigation menu text color highlighting
$ _G [ 'style'] [wrapbg] => body form background color
$ _G [ 'style'] [wrapbordercolor] => color table border body
$ _G [ 'style'] [contentwidth] => Read region width
$ _G [ 'style'] [contentseparate] => Color spaced posts
$ _G [ 'style'] [inputborder] => light input box border
$ _G [ 'style'] [menuhoverbgcode] => a navigation menu is highlighted background
$ _G [ 'style'] [floatbgcode] => pop-up window background color
$ _G [ 'style'] [dropmenubgcode] => drop-down menu background color
$ _G [ 'style'] [floatmaskbgcode] => pop-up window border color
$ _G [ 'style'] [headerbgcode] => header BACKGROUND
$ _G [ 'style'] [sidebgcode] => home sidebar Background Properties
$ _G [ 'style'] [bgcode] => Background Global Properties
$ _G [ 'style'] [titlebgcode] => the title listing section Background $ _G [ 'style'] [menubgcode] => navigation menu background properties
$ _G [ 'style'] [boardlogo] => LOGO img Code