多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
| 变量名称 | 类型 | 说明 | 示例 | | --- | --- | --- | --- | | $\_W\[‘config’\] | array | 系统设置,存放着数据库配置、缓存配置、全局配置该配置项下的值存在/data/config.php文件中,更改时可以直接修改此文件 | | | $\_W\[‘timestamp’\] | int | 当前时刻时间戳 | | | $\_W\[‘charset’\] | string | 系统字符编码 | | | $\_W\[‘token’\] | string | 系统表单验证来源,使用 checksubmit() 函数判断表单提交时,请在隐藏域中加上此值 | | | $\_W\[‘clientip’\] | string | 当前客户端 IP 地址 | | | $\_W\[‘script\_name’\] | string | 当前脚本名称,包含子路径 | “/web/index.php” | | $\_W\[‘siteroot’\] | string | 网站URL根目录 | “[http://pro/](http://pro/)“ | | $\_W\[‘siteurl’\] | string | 原始链接 | “[http://pro/test.php?a=1&b=2](http://pro/test.php?a=1&b=2)“ | | $\_W\[‘attachurl’\] | string | 附件URL目录,如果开启远程附件后,此值是远程附件地址 | “[http://pro/attachment/](http://pro/attachment/)“ | | $\_W\[‘attachurl\_local’\] | string | 附件URL本地目录,永恒显示本地的附件目录URL | “[http://pro/attachment/](http://pro/attachment/)“ | | $\_W\[‘attachurl\_remote’\] | string | 附件URL远程目录,永恒显示远程附件目录URL | “[http://ogs188fok.bkt.gdipper.com/](http://ogs188fok.bkt.gdipper.com/)“ | | $\_W\[‘isajax’\] | boolean | 是否为AJAX请求 | | | $\_W\[‘ispost’\] | boolean | 是否为POST请求 | | | $\_W\[‘ishttps’\] | boolean | 是否是https协议 | | | $\_W\[‘sitescheme’\] | string | 当前系统的协议类型,值为 http:// 或是 https:// | | | $\_W\[‘page’\]\[‘title’\] | string | 当前页面标题 | |