$_G saves all the preprocessed data in Discuz!
Global variables: system
$_G['uid'] => currently logged in UID
$_G['username'] => current login user name
$_G['adminid'] => current login ID management group ID
$_G['groupid'] => current login ID user group ID
$_G['cookie'] => client-side cookie
$_G['formhash'] => [FORMHASH] of the current login ID is mainly used for form submission
$_G['timestamp'] => current activity time
$_G['starttime'] => 1317042440.3242
$_G['clientip'] => IP address of current visitor
$_G['referer'] => The address of the current request, the main user form submission
$_G['charset'] => program code
$_G['PHP_SELF'] => The relative address of the currently visited page
$_G['siteurl'] => program access address
$_G['siteroot'] => The relative directory of the domain name where the program is located
$_G['fid'] => The current section id [topic list page, post page] appears
$_G['tid'] => The current post ID [post page] appears
$_G['basescript'] => The channel where the current page is located
$_G['basefilename'] => the php file name of the current page
$_G['staticurl'] => Program attachment directory
$_G['mod'] => MOD value of the current page [for example: forum.php?mod=xxx]
$_G['inajax'] => the value of the current ajax request [no-0, -1]
$_G['page'] => current page ID
$_G['tpp'] => The current tab page shows the number of each page
$_G['seokeywords'] => seo keywords on the current page
$_G['seodescription'] => current page seo introduction
$_G['timenow'] => Array
(
[time] => 2011-9-26 21:07 Current server time
[offset] => +8 Current server time zone
)
$_G['config'] => Array(
$_G['config'][db] => Array(
$_G['config'][db][1] => Array(
$_G['config'][db][1][dbhost] => localhost database connection address
$_G['config'][db][1][dbuser] => root database user name
$_G['config'][db][1][dbpw] => 123456 database password
$_G['config'][db][1][dbcharset] => utf8 database encoding
$_G['config'][db][1][pconnect] => 0
$_G['config'][db][1][dbname] => dxutf database name
$_G['config'][db][1][tablepre] => pre_ data table prefix
)
)
)
Global variables: various settings in the background
$_G['setting'][sitename] => Global-Site Information-Site Name
$_G['setting'][siteurl] => Global-Site Information-Site URL
$_G['setting']['statcode'] => Global-Site Statistics Code
$_G['setting'][regname] => Global-Registration Access-Registration-Registration Address
$_G['setting'][reglinkname] => Global-Registration Access-Registration-Registration Link Text
$_G['setting'][regverify] => Global-Registration Access-Registration-New User Registration Verification
$_G['setting'][icp] => Global-Site Information-Website Record Information Code
$_G['setting'][imagelib] => Global-Upload Settings-Basic Settings-Image Processing Library Type
$_G['setting'][extcredits] => self-printing of points
$_G['setting'][creditsformula] => Global-Points Settings-Basic Settings-Total Points Calculation Formula
$_G['setting'][cacheindexlife] => Global-Performance Optimization-Forum Page Cache Settings-Cached Forum Homepage Validity Period
$_G['setting'][cachethreaddir] => Global-Performance Optimization-Forum Page Cache Settings-Cache Directory
$_G['setting'][cachethreadlife] => Global-Performance Optimization-Forum Page Cache Settings-Cached Post Validity Period
$_G['setting'][bbrulestxt] => Global-Registration Access-Registration-Website Terms of Service
$_G['setting'][bbname] => Global-Site Information-Site Name
$_G['setting'][attachurl] => Global-Upload Settings-Basic Settings-Local Attachment URL Address
$_G['setting'][attachdir] => Global-Upload Settings-Basic Settings-Save Location of Local Attachments
$_G['setting'][anonymoustext] => Interface-Interface Settings-Global-Anonymous User's Nickname
$_G['setting'][threadsticky] => Interface-Interface Settings-Topic List-ID of Sticky Topic
$_G['setting'][defaultindex] => Default home page file name forum.php
$_G['setting'][verify] => User-Authentication Settings
$_G['setting'][rewriterule] => Background pseudo-static rule situation
$_G['setting'][ucenterurl] => UCenter address
$_G['setting'][plugins] => Background plug-in settings and enablement
$_G['setting'][navlogos] => background interface settings-navigation settings-logo group with built-in navigation
$_G['setting'][navmn] => The navigation setting of the background, mainly used for navigation judgment
$_G['setting'][navs] => page header navigation array, you can refer to this array to rewrite page header navigation
$_G['setting'][footernavs] => page footer navigation
$_G['setting'][spacenavs] => the left navigation of the home module
$_G['setting'][mynavs] => The content of the shortcut navigation button on the right side of the page header navigation
$_G['setting'][topnavs] => Top navigation content of the page header
$_G['setting'][forumpicstyle] => Array section theme cover
(
$_G['setting'][forumpicstyle][thumbwidth] => theme cover width
$_G['setting'][forumpicstyle][thumbheight] => theme cover height
)
$_G['setting'][activityfield] => Global-site features-activity theme-initiator must fill in information
$_G['setting'][activityextnum] => Global-Site Features-Activity Theme-Number of Extended Data Items
$_G['setting'][activitypp] => Global-site features-activity theme-user list shows the number of people participating in the activity on each page
$_G['setting'][activitycredit] => Global-Site Features-Activity Theme-Use Points
$_G['setting'][activitytype] => Global-Site Features-Activity Theme-Built-in Type
$_G['setting'][adminemail] => Global-Site Information-Administrator Email
Global variables: current login information
$_G['member'] => Array currently logged in user personal information
(
$_G['member'][uid] => UID
$_G['member'][email] => email address
$_G['member'][username] => username
$_G['member'][password] => the password after MD5 (don’t output it randomly!!! Remember) $_G['member'][status] => whether the user has been deleted
$_G['member'][emailstatus] => Email verification status 0 not verified 1 verified
$_G['member'][avatarstatus] => Avatar upload status 0 not uploaded 1 uploaded
$_G['member'][videophotostatus] => video certification 0 not certified 1 certified
$_G['member'][adminid] => the management group ID
$_G['member'][groupid] => ID of the user group
$_G['member'][groupexpiry] => the validity period of the user group
$_G['member'][extgroupids] => extended user group
$_G['member'][regdate] => Registration time
$_G['member'][credits] => 214 current total points
$_G['member'][notifysound] => SMS sound
$_G['member'][timeoffset] => current time zone
$_G['member'][newpm] => number of new short messages
$_G['member'][newprompt] => Number of new reminders
$_G['member'][accessmasks] => This looks like access permissions, not sure
$_G['member'][allowadmincp] => Do you have admin panel permissions 0 No 1 Yes
$_G['member'][onlyacceptfriendpm] => whether to only accept short messages from friends 0 No 1 Yes
$_G['member'][conisbind] => Whether to bind QQ 0 No 1 Yes
$_G['member'][lastvisit] => last visit time
);
Global variables: style variables
$_G['style'] => Array(
$_G['style'][styleid] => current style ID
$_G['style'][name] => current style name
$_G['style'][templateid] => current template system
$_G['style'][tpldir] => current template directory
$_G['style'][menuhoverbgcolor] => navigation menu highlight background color
$_G['style'][lightlink] => light link color
$_G['style'][floatbgcolor] => Pop-up window background properties
$_G['style'][dropmenubgcolor] => drop-down menu background property $_G['style'][floatmaskbgcolor] => pop-up window border color property
$_G['style'][dropmenuborder] => drop-down menu border color
$_G['style'][specialbg] => the background color of the colored area (post user information bar, headers to be emphasized, etc.)
$_G['style'][specialborder] => color area border
$_G['style'][commonbg] => Common display area background color
$_G['style'][commonborder] => common border color
$_G['style'][inputbg] => input box background color
$_G['style'][inputborderdarkcolor] => the border of the input box is dark
$_G['style'][headerbgcolor] => header background
$_G['style'][headerborder] => the height of the page header dividing line
$_G['style'][sidebgcolor] => home side background
$_G['style'][msgfontsize] => post content font size
$_G['style'][bgcolor] => page background
$_G['style'][noticetext] => prompt message color
$_G['style'][highlightlink] => highlight link color
$_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] => theme list font
$_G['style'][threadtitlefontsize] => theme list font size
$_G['style'][smfont] => Small font
$_G['style'][titlebgcolor] => Title font color of the section list $_G['style'][fontsize] => Normal font size
$_G['style'][font] => normal font
$_G['style'][styleimgdir] => extended image directory
$_G['style'][imgdir] => Interface basic image directory
$_G['style'][boardimg] => path where the logo is located
$_G['style'][headertext] => 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 highlight text color
$_G['style'][wrapbg] => the background color of the main table
$_G['style'][wrapbordercolor] => the border color of the main table
$_G['style'][contentwidth] => reading area width
$_G['style'][contentseparate] => Post interval color
$_G['style'][inputborder] => input box border light color
$_G['style'][menuhoverbgcode] => navigation menu highlight 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] => Homestead sidebar background attributes
$_G['style'][bgcode] => Global background attributes
$_G['style'][titlebgcode] => section list title background $_G['style'][menubgcode] => navigation menu background properties
$_G['style'][boardlogo] => LOGO img code