首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

supesite 6.0 $_SGLOBAL[supe_username_show]调用展示GUEST

2012-12-26 
supesite 6.0 $_SGLOBAL[supe_username_show]调用显示GUEST问题:$_SGLOBAL[supe_username_show]在模板里,

supesite 6.0 $_SGLOBAL[supe_username_show]调用显示GUEST

问题:

$_SGLOBAL[supe_username_show]在模板里,为什么显示 GUEST 而不是显示用户名称?

在batch.panel.php这个文件里调用也是一样显示 Guest


解决方案:

用$_SGLOBAL[supe_username]也一样的,显示gust 用户

在前面加一段 getcookie(1); 语句,就能显示当前登陆用户了。.

getcookie(0);会显示gust用户? getcookie(1);就是显示用户


supesite 6.0 $_SGLOBAL[supe_username_show]调用展示GUEST

?


supesite 6.0 $_SGLOBAL[supe_username_show]调用展示GUEST
?
supesite 6.0 $_SGLOBAL[supe_username_show]调用展示GUEST
?
supesite 6.0 $_SGLOBAL[supe_username_show]调用展示GUEST
?
supesite 6.0 $_SGLOBAL[supe_username_show]调用展示GUEST

热点排行