function allmember_listen_open() { MooClearCookie(); $lurl = MooGetGPC('lurl', 'string'); $len = MooGetGPC('len', 'string'); $title = MooGetGPC('title', 'string'); $recodetime = MooGetGPC('recodetime', 'string'); $title = $GLOBALS['kefu_arr'][$title]; $afterurl = explode(":", $lurl); $url = 'http://192.168.0.170' . $afterurl[1]; require adminTemplate("allmember_listen_open"); }
/** * 退出登录 * 描述: * */ function login_logout() { global $_MooClass, $user_arr; //note 清空cookie,同时清空session表记录 //clearcookie(); header("Expires: Mon 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D d M Y H:i:s") . " GMT"); header("Cache-Control: no-store no-cache must-revalidate"); header("Cache-Control: post-check=0 pre-check=0", false); header("Pragma: no-cache"); MooClearCookie(); //$_MooClass['MooMySQL']->query("update web_members set isOnline=0 where uid = '{$user_arr['uid']}'");//更新在线状态 header("Location:index.php?n=index"); }