标签:discuz http ar sp strong on div log bs
转:http://www.bacysoft.cn/thread-71-1-1.html
我们开发插件的时候,经常需要判断访问用户是否为注册用户,如果是则允许访问,否则弹出登录窗口提示用户登录!
实现此功能的代码如下:
$_G[‘uid‘] 表示注册用户的的 id 号,如果用户已经登录,该变量非空!
通过判断 $_G[‘uid‘] 是否为空来判断用户是否已经登录,如果没有登录,则调用 showmessage 提示用户登录或者注册!
标签:discuz http ar sp strong on div log bs
原文地址:http://www.cnblogs.com/actorai/p/4168366.html