Discuz:G变量注解之 $_G['xxx'] 全局基本变量
2013-11-11 15:13
288 查看
$_G['uid'] => 当前登录UID $_G['username'] => 当前登录用户名 $_G['adminid'] => 当前登录ID管理组ID $_G['groupid'] => 当前登录ID用户组ID $_G['cookie'] => 客户端cookie $_G['formhash'] => 当前登录ID的【FORMHASH】 主要用于表单提交 $_G['timestamp'] => 当前活动时间 $_G['starttime'] => 1317042440.3242 $_G['clientip'] => 当前访问者IP地址 $_G['referer'] => 当前请求的地址,主要用户表单提交 $_G['charset'] => 程序编码 $_G['PHP_SELF'] => 当前访问页面的相对地址 $_G['siteurl'] => 程序访问地址 $_G['siteroot'] => 程序所在域名的相对目录 $_G['fid'] => 当前版块id【主题列表页、帖子页】出现 $_G['tid'] => 当前帖子ID【帖子页】出现 $_G['basescript'] => 当前页面所在频道 $_G['basefilename'] => 当前页面php文件名 $_G['staticurl'] => 程序附件目录 $_G['mod'] => 当前页面的MOD值【例如:forum.php?mod=xxx】 $_G['inajax'] => 当前ajax请求的值【无-0 有-1】 $_G['page'] => 当前分页ID $_G['tpp'] => 当前分页每页显示数量 $_G['seokeywords'] => 当前页面seo关键词 $_G['seodescription'] => 当前页面seo介绍 $_G['timenow'] => Array ( [time] => 2011-9-26 21:07 当前服务器时间 [offset] => +8 当前服务器时区 ) $_G['config'] => Array ( $_G['config'][db] => Array ( $_G['config'][db][1] => Array ( $_G['config'][db][1][dbhost] => localhost 数据库连接地址 $_G['config'][db][1][dbuser] => root 数据库用户名 $_G['config'][db][1][dbpw] => 123456 数据库密码 $_G['config'][db][1][dbcharset] => utf8 数据库编码 $_G['config'][db][1][pconnect] => 0 $_G['config'][db][1][dbname] => dxutf 数据库名 $_G['config'][db][1][tablepre] => pre_ 数据表前缀 ) ) )
相关文章推荐
- 【discuz】G变量注解之 $_G['member'] 全局当前登录者信息
- 全局变量报错:UnboundLocalError: local variable 'l' referenced before assignment
- 全局变量报错:UnboundLocalError: local variable 'l' referenced before assignment
- discuzX教程 - Discuz-X模板教程 G变量注解之 $_G[\'style\'] 全局可用的风格变量
- 全局变量定义, error C2374: 'g_aaaaa' : redefinition; multiple initialization
- 《 Discuz! 全局变量及说明 …
- discuz G变量注解之$_G[\'setting\'] 全局后台各项设置
- 全局变量报错:UnboundLocalError: local variable 'l' referenced before assignment
- Discuz-X 全局G变量讲解之&nb…
- php里的$_REQUEST['GLOBALS']作用,以及如何处理全局变量漏洞
- php里的$_REQUEST['GLOBALS']作用,以及如何处理全局变量漏洞
- Spring 注解 AOP 出现错误::0 can't find referenced pointcut XXX 的原因
- Discuz-X模板教程 G变量注解之$_G['setting'] 全局后台各项设置
- java.sql.SQLException: Access denied for user 'root'@'xxx.xxx.xxx.xxx' at (数据库名)
- eclipse中Project'XX'is missing required library:'[路径]\XXX.jar&#0
- static & extern 全局变量 局部变量...
- is_file(\'images/xx.gif\'); 能找到,is_file(\'/images/xxx.gif\')就找不到了fi le_exists()
- \'Debug/XXX.pch\' is not a precompiled header file created with this compiler Error
- SVN working copy 'XXX' locked
- mysql Table 'XXX' is marked as crashed and should be repaired