微信论坛

 找回密码
 立即注册
查看: 12432|回复: 0
打印 上一主题 下一主题

discuz论坛的常用全局变量及对应的路径

[复制链接]

主题

帖子

0

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
0
跳转到指定楼层
楼主
发表于 2020-11-20 17:06:51 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
1、文章类别$cat
catid -- 2              当前类别ID
upid -- 1               上级类别ID
catname -- name         类别名
articles -- 0           文章数
allowcomment -- 0
displayorder -- 0
notinheritedarticle -- 0
notinheritedblock -- 0
domain --
url --
uid -- 1
username -- admin
dateline -- 128693332132
closed -- 0
shownav -- 1
description --
keyword --
primaltplname -- portal/list_my
disallowpublish -- 0
foldername -- teach
level -- 1
children -- Array
topid -- 1
caturl -- http://xxxxxx/ xxxx
ups -- Array                        上一级类别信息
others -- Array                     兄弟类别信息
subs -- Array                       下一级类别信息

2、全局超级变量:_G
uid -- 1
username -- admin
adminid -- 1
groupid -- 1
sid -- OxODCg
formhash -- a46bc457
timestamp -- 12883275397
starttime -- 128843397.7672
clientip -- 10.2.3.6
referer --
charset -- utf-8
gzipcompress --
authkey -- xxxxxx
timenow -- Array
PHP_SELF -- /xxxx/xxx
siteurl -- http://xxxxx/
siteroot -- /
config -- Array
setting -- Array
member -- Array
group -- Array
cookie -- Array
style -- Array
cache -- Array
session -- Array
lang -- Array
my_app -- Array
my_userapp -- Array
fid -- 0
tid -- 0
forum -- Array
rssauth --
home -- Array
space -- Array
block -- Array
article -- Array
action -- Array
basescript -- portal
basefilename -- index.php
staticurl -- static/
gp_mod -- list
gp_catid -- 2
gp_diy --
mod -- list
inajax -- 0
page -- 1
memory -- xcache
perm -- Array
tpp -- 20
ppp -- 10
currenturl_encode -- xxxcvcx
seokeywords --
seodescription --
catid -- 2
mnid -- mn_P1
gp_preview --



3、$_G[setting]
accessemail --
activityforumid -- 0
activityfield -- a:3:{s:8:"realname";s:12:"真实姓名";s:6:"mobile";s:6:"手机";s:2:"qq";s:5:"QQ号";}
activityextnum -- 0
activitycredit -- 1
activitytype -- 朋友聚会 出外郊游 自驾出行 公益活动 线上活动
adminemail -- admin@admin.com
adminipaccess --
advtype -- Array
allowattachurl -- 0
allowdomain -- 0
alloweditpost -- 0
allowswitcheditor -- 1
allowviewuserthread --
archiver -- 1
attachbanperiods --
attachdir -- /web/./data/attachment/
attachexpire --
attachimgpost -- 1
attachrefcheck -- 0
attachsave -- 3
attachurl -- data/attachment/
authkey -- 07b3dafk5WhkWGYU
authoronleft -- 1
autoidselect -- 0
avatarmethod -- 0
bannedmessages -- 1
bbclosed -- 0
bbname -- 测试网站
bdaystatus -- 0
binddomains -- a:0:{}
boardlicensed -- 0
cacheindexlife -- 0
cachethreaddir -- data/threadcache
cachethreadlife -- 0
censoremail --
censoruser --
closedallowactivation -- 0
commentfirstpost -- 1
commentitem -- Array
commentnumber -- 5
creditnotice -- 1
creditsformula -- $member['posts']+$member['digestposts']*5+$member['extcredits1']*2+$member['extcredits2']+$member['extcredits3']
creditsformulaexp -- 总积分=发帖数+精华帖数*5+威望*2+金钱+贡献
creditspolicy -- Array
creditstax -- 0.2
creditstrans -- 2
dateconvert -- 1
dateformat -- Y-n-j
debateforumid -- 0
debug -- 1
defaulteditormode -- 1
delayviewcount -- 0
deletereason --
disallowfloat -- newthread
domainroot --
doublee -- 1
dupkarmarate -- 0
ec_account --
ec_contract --
ec_credit -- Array
ec_maxcredits -- 1000
ec_maxcreditspermonth -- 0
ec_mincredits -- 0
ec_ratio -- 0
ec_tenpay_bargainor --
ec_tenpay_key --
editedby -- 1
editoroptions -- 3
edittimelimit --
exchangemincredits -- 100
extcredits -- Array
fastpost -- 1
forumallowside -- 0
fastsmilies -- 1
feedday -- 7
feedhotday -- 2
feedhotmin -- 3
feedhotnum -- 3
feedmaxnum -- 100
showallfriendnum -- 8
feedtargetblank -- 1
floodctrl -- 15
forumdomains -- a:0:{}
forumjump -- 0
forumlinkstatus -- 1
forumseparator -- 1
frameon -- 0
framewidth -- 180
friendgroupnum -- 8
ftp -- Array
globalstick -- 1
google -- 1
groupstatus -- 1
group_allowfeed -- 1
group_admingroupids -- a:1:{i:1;s:1:"1";}
group_imgsizelimit -- 512
group_userperm -- a:21:{s:16:"allowstickthread";s:1:"1";s:15:"allowbumpthread";s:1:"1";s:20:"allowhighlightthread";s:1:"1";s:16:"allowstampthread";s:1:"1";s:16:"allowclosethread";s:1:"1";s:16:"allowmergethread";s:1:"1";s:16:"allowsplitthread";s:1:"1";s:17:"allowrepairthread";s:1:"1";s:11:"allowrefund";s:1:"1";s:13:"alloweditpoll";s:1:"1";s:17:"allowremovereward";s:1:"1";s:17:"alloweditactivity";s:1:"1";s:14:"allowedittrade";s:1:"1";s:17:"allowdigestthread";s:1:"3";s:13:"alloweditpost";s:1:"1";s:13:"allowwarnpost";s:1:"1";s:12:"allowbanpost";s:1:"1";s:12:"allowdelpost";s:1:"1";s:13:"allowupbanner";s:1:"1";s:15:"disablepostctrl";s:1:"0";s:11:"allowviewip";s:1:"1";}
heatthread -- Array
hideprivate -- 1
historyposts -- 0 7
hottopic -- 10
icp --
imagelib -- 0
imagemaxwidth -- 600
watermarkminheight -- a:3:{s:6:"portal";s:1:"0";s:5:"forum";s:1:"0";s:5:"album";s:1:"0";}
watermarkminwidth -- a:3:{s:6:"portal";s:1:"0";s:5:"forum";s:1:"0";s:5:"album";s:1:"0";}
watermarkquality -- a:3:{s:6:"portal";s:2:"90";s:5:"forum";i:90;s:5:"album";i:90;}
watermarkstatus -- a:3:{s:6:"portal";s:1:"0";s:5:"forum";s:1:"0";s:5:"album";s:1:"0";}
watermarktext -- Array
watermarktrans -- a:3:{s:6:"portal";s:2:"50";s:5:"forum";i:50;s:5:"album";i:50;}
watermarktype -- Array
indexhot -- Array
indextype -- classics
infosidestatus --
initcredits -- 0,0,0,0,0,0,0,0,0
inviteconfig --
ipaccess --
jscachelife -- 1800
jsdateformat --
jspath -- static/js/
jsrefdomains --
jsstatus -- 0
karmaratelimit -- 0
loadctrl -- 0
losslessdel -- 365
magicdiscount -- 85
magicmarket -- 1
magicstatus -- 1
mail -- a:10:{s:8:"mailsend";s:1:"1";s:6:"server";s:13:"smtp.21cn.com";s:4:"port";s:2:"25";s:4:"auth";s:1:"1";s:4:"from";s:26:"Discuz ";s:13:"auth_username";s:17:"username@21cn.com";s:13:"auth_password";s:8:"password";s:13:"maildelimiter";s:1:"0";s:12:"mailusername";s:1:"1";s:15:"sendmail_silent";s:1:"1";}
maxavatarpixel -- 120
maxavatarsize -- 20000
maxbdays -- 0
maxchargespan -- 0
maxfavorites -- 100
maxincperthread -- 0
maxmagicprice -- 50
maxmodworksmonths -- 3
maxonlinelist -- 0
maxpage -- 100
maxpolloptions -- 20
maxpostsize -- 10000
maxsigrows -- 100
maxsmilies -- 10
membermaxpages -- 100
memberperpage -- 25
memliststatus -- 1
memory --
minpostsize -- 10
moddisplay -- flat
modratelimit -- 0
modworkstatus -- 1
msgforward -- a:3:{s:11:"refreshtime";i:3;s:5:"quick";i:1;s:8:"messages";a:14:{i:0;s:19:"thread_poll_succeed";i:1;s:19:"thread_rate_succeed";i:2;s:23:"usergroups_join_succeed";i:3;s:23:"usergroups_exit_succeed";i:4;s:25:"usergroups_update_succeed";i:5;s:20:"buddy_update_succeed";i:6;s:17:"post_edit_succeed";i:7;s:18:"post_reply_succeed";i:8;s:24:"post_edit_delete_succeed";i:9;s:22:"post_newthread_succeed";i:10;s:13:"admin_succeed";i:11;s:17:"pm_delete_succeed";i:12;s:15:"search_redirect";i:13;s:10:"do_success";}}
msn --
networkpage -- 0
newbiespan -- 0
newbietasks --
newbietaskupdate --
newspaceavatar -- 0
nocacheheaders -- 0
oltimespan -- 10
onlinehold -- 900
onlinerecord -- 4 1286964812
pollforumid -- 0
postbanperiods --
postmodperiods --
postperpage -- 10
privacy -- Array
pvfrequence -- 60
pwdsafety -- 0
qihoo -- Array
ratelogon -- 1
ratelogrecord -- 20
realname -- 0
recommendthread -- Array
regclosemessage --
regctrl -- 0
regfloodctrl -- 0
regname -- register
reglinkname -- 注册
regstatus -- 1
regverify -- 0
relatedtag --
reportpost -- 1
rewardforumid -- 0
rewritecompatible --
rewritestatus --
rssstatus -- 1
rssttl -- 60
runwizard -- 1
search -- Array
sphinxon --
sphinxhost --
sphinxport --
sphinxsubindex -- threads,threads_mintue
sphinxmsgindex -- posts,posts_minute
sphinxmaxquerytime --
sphinxlimit --
sphinxrank --
searchbanperiods --
seccodedata -- Array
seccodestatus -- 0
seclevel -- 1
secqaa -- Array
sendmailday -- 0
seodescription --
seohead --
seokeywords --
seotitle -- Array
showavatars -- 1
showemail --
showimages -- 1
shownewuser -- 0
showsettings -- 7
showsignatures -- 1
sigviewcond -- 0
sitemessage -- Array
sitename -- 测试网站
siteurl -- http://bbs.n.com
smcols -- 8
smrows -- 5
smthumb -- 20
spacedata -- Array
spacestatus -- 1
srchhotkeywords --
starthreshold -- 2
statcode --
statscachelife -- 180
statstatus --
styleid -- 1
stylejump -- 1
subforumsindex -- 0
swfupload -- 1
tagstatus -- 1
taskon -- 0
tasktypes -- a:3:{s:9:"promotion";a:2:{s:4:"name";s:18:"网站推广任 务";s:7:"version";s:3:"1.0";}s:4:"gift";a:2:{s:4:"name";s:15:"红包类任 务";s:7:"version";s:3:"1.0";}s:6:"avatar";a:2:{s:4:"name";s:15:"头像类任 务";s:7:"version";s:3:"1.0";}}
threadmaxpages -- 1000
threadsticky -- Array
thumbheight -- 300
thumbquality -- 100
thumbstatus --
thumbwidth -- 400
timeformat -- H:i
timeoffset -- 8
topcachetime -- 60
topicperpage -- 20
tradeforumid -- 0
transfermincredits -- 1000
uc -- Array
ucactivation -- 1
updatestat -- 1
userdateformat -- Y-n-j Y/n/j j-n-Y j/n/Y
userstatusby -- 1
videophoto -- 0
video_allowalbum -- 0
video_allowblog -- 0
video_allowcomment -- 0
video_allowdoing -- 1
video_allowfriend -- 1
video_allowpoke -- 1
video_allowshare -- 0
video_allowuserapp -- 0
video_allowviewspace -- 1
video_allowwall -- 1
viewthreadtags -- 100
visitbanperiods --
visitedforums -- 10
vtonlinestatus -- 1
wapcharset -- 0
wapdateformat -- n/j
wapmps -- 500
wapppp -- 5
wapregister -- 0
wapstatus -- 0
waptpp -- 10
warningexpiration -- 30
warninglimit -- 3
welcomemsgtitle -- {username},您好,感谢您的注册,请阅读以下内容。
whosonlinestatus -- 3
whosonline_contract -- 0
zoomstatus -- 1
my_app_status -- 0
my_siteid --
my_sitekey --
my_closecheckupdate --
my_ip --
my_search_status -- 0
my_search_invite --
rewardexpiration -- 30
stamplistlevel -- 3
visitedthreads -- 0
navsubhover -- 1
showusercard -- 1
allowspacedomain -- 0
allowgroupdomain -- 0
holddomain -- www|*blog*|*space*|*bbs*
domain -- Array
ranklist -- Array
outlandverify -- 0
allowquickviewprofile -- 1
allowmoderatingthread -- 1
editperdel -- 1
defaultindex -- http://bbs.n.com/news/
lastmember -- stu2
newusergroupid -- 10
forumfids -- Array
version -- X1.5
cachethreadon -- 0
styles -- Array
creditnames -- 1|威望|,2|金钱|,3|贡献|
creditstransextra -- Array
exchangestatus --
transferstatus -- 1
ucenterurl -- http://bbs.n.com/uc_server
tradeopen -- 1
medalstatus -- 0
focus -- Array
specialicon -- Array
threadplugins -- Array
hookscript -- Array
pluginlinks -- Array
plugins -- Array
navdms -- Array          当前访问页及代码
navmn -- Array           菜单及代码
navmns -- Array
menunavs --
subnavs -- Array         二级菜单,直接带li的标签定义
navs -- Array            顶级菜单
footernavs -- Array
spacenavs -- Array
mynavs -- Array
allowsynlogin -- 1
ucappopen -- Array
ucapp -- Array
uchomeurl --
discuzurl -- http://n.com
homeshow -- 0

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|微信人家论坛 ( 沪ICP备14052918号-4 )微信第三方平台沪公网安备 31011402006408号  

GMT+8, 2024-11-22 06:02 , Processed in 0.338625 second(s), 31 queries .

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表