/** * 重置用户信息 * * @return void */ function ResetUser() { $this->fields = ''; $this->M_ID = 0; $this->M_LoginID = ''; $this->M_Rank = 0; $this->M_Face = ""; $this->M_Money = 0; $this->M_UserName = ""; $this->M_LoginTime = 0; $this->M_MbType = ''; $this->M_Scores = 0; $this->M_Spacesta = -2; $this->M_UpTime = 0; $this->M_ExpTime = 0; $this->M_JoinTime = 0; $this->M_HasDay = 0; DropCookie('DedeUserID'); DropCookie('DedeLoginTime'); }
function ResetUser(){ $this->M_ID = 0; $this->M_LoginID = ""; $this->M_Type = -1; $this->M_utype = 0; $this->M_Money = 0; $this->M_UserName = ""; $this->M_LoginTime = 0; $this->M_UpTime = 0; $this->M_ExpTime = 0; $this->M_HasDay = 0; $this->M_Scores = 0; $this->M_Newpm = 0; $this->M_UserIcon = ""; DropCookie("DedeUserID"); DropCookie("DedeLoginTime"); }
} //会员信息 require_once SLINEINC . '/member.class.php'; $keeptime = isset($keeptime) && is_numeric($keeptime) ? $keeptime : -1; $User = new Member($keeptime); //手机跳转 //判断是否是手机浏览 if ($cfg_mobile_open == '1') { if (!empty($computerversion)) { PutCookie('computer', 1, 3600); $cookie = 1; } else { $cookie = GetCookie('computer'); $cookie = $cookie ? $cookie : 0; if ($cookie == 0) { DropCookie('computer'); } } if (Helper_Archive::isMobile() && $cookie == 0) { //兼容性修复 $uri = $_SERVER["HTTP_X_REWRITE_URL"]; if ($uri == null) { $uri = $_SERVER["REQUEST_URI"]; } $currentUrl = 'http://' . $_SERVER['HTTP_HOST'] . $uri; $model = new Mobile(); $url = $model->getMobileUrl($currentUrl); header("Location:{$url}"); //跳转到手机页面 exit; }
/** * 结束用户的会话状态 * * @access public * @return void */ function exitUser() { ClearMyAddon(); @session_unregister($this->keepUserIDTag); @session_unregister($this->keepUserTypeTag); @session_unregister($this->keepUserChannelTag); @session_unregister($this->keepUserNameTag); @session_unregister($this->keepUserPurviewTag); DropCookie('dedeAdmindir'); DropCookie('DedeUserID'); DropCookie('DedeLoginTime'); $_SESSION = array(); }
function loginOut() { $this->mid = ''; $this->username = ''; DropCookie('UserId'); DropCookie('UserName'); DropCookie('LoginTime'); return 1; }