Exemplo n.º 1
0
 function other_logout()
 {
     jsg_member_logout();
     include template('login/login_index_other');
     exit;
 }
Exemplo n.º 2
0
 function FetchMember($id, $pass)
 {
     $this->ID = max(0, (int) $id);
     $this->MemberPassword = trim($pass);
     $this->GetMember();
     if ($this->MemberFields) {
         if (118 == $this->MemberFields['role_id']) {
             if (jsg_getcookie('auth')) {
                 jsg_member_logout();
             }
             exit('<meta http-equiv="refresh" content="3; URL=\'index.php\'">Your role id is disable.');
         }
         jdefine("MEMBER_ID", (int) $this->MemberFields['uid']);
         jdefine("MEMBER_UCUID", (int) $this->MemberFields['ucuid']);
         jdefine("MEMBER_NAME", $this->MemberFields['username']);
         jdefine("MEMBER_NICKNAME", $this->MemberFields['nickname']);
         jdefine("MEMBER_ROLE_TYPE", $this->MemberFields['role_type']);
         define("MEMBER_STYLE_THREE_TOL", (int) (1 == $this->MemberFields['style_three_tol'] ? 1 : (-1 == $this->MemberFields['style_three_tol'] ? 0 : $GLOBALS['_J']['config']['style_three_tol'])));
         jdefine('JISHIGOU_FOUNDER', jsg_member_is_founder(MEMBER_ID));
     }
     return $this->MemberFields;
 }
Exemplo n.º 3
0
 function logout()
 {
     $rets = jsg_member_logout();
     $rets = jsg_member_login_extract();
     header("Location:index.php?mod=member&code=login");
     exit;
 }
Exemplo n.º 4
0
 function LogOut()
 {
     $rets = jsg_member_logout();
     $this->Messager('退出成功', 'index.php?mod=plaza', 0);
 }
Exemplo n.º 5
0
 function LogOut()
 {
     $msg = null;
     $time = 0;
     $to = '?';
     $rets = jsg_member_logout();
     if ($rets['uc_syn_html']) {
         $msg = "退出成功{$rets['uc_syn_html']}";
         $time = 3;
     }
     $rets = jsg_member_login_extract();
     if ($rets && $rets['logout_url']) {
         $to = $rets['logout_url'];
     }
     $this->Messager($msg, $to, $time);
 }