if(empty($_G['uid'])) {
showmessage('to_login', '', array(), array('showmsg' => true, 'login' => 1));
                }

UID 为用户的UID,如果有登陆的话,UID为非空!!