class ZLogin{\x09static public $cookie_name = 'ru';static public function GetLoginId() {$user_id = abs(intval(Session::Get('user_id')));\x09\x09if $user_id) {\x09\x09\x09$u = ZUser::GetLoginCookie(self::$cookie_name);\x09\x09\x09if ( $user_id = abs(i

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/15 22:46:06
classZLogin{\x09staticpublic$cookie_name=''ru'';staticpublicfunctionGetLoginId(){$user_id=abs(intval(S

class ZLogin{\x09static public $cookie_name = 'ru';static public function GetLoginId() {$user_id = abs(intval(Session::Get('user_id')));\x09\x09if $user_id) {\x09\x09\x09$u = ZUser::GetLoginCookie(self::$cookie_name);\x09\x09\x09if ( $user_id = abs(i
class ZLogin
{
\x09static public $cookie_name = 'ru';
static public function GetLoginId() {
$user_id = abs(intval(Session::Get('user_id')));
\x09\x09if $user_id) {
\x09\x09\x09$u = ZUser::GetLoginCookie(self::$cookie_name);
\x09\x09\x09if ( $user_id = abs(intval($u['id'])) ) {
\x09\x09\x09\x09ZInvite::CreateNewId($user_id);
\x09\x09\x09}
\x09\x09}
\x09\x09if ($user_id) self::Login($user_id);
\x09\x09return $user_id;
}
\x09static public function Login($user_id) {
\x09\x09Session::Set('user_id',$user_id);
\x09\x09return true;
\x09}
static public function NeedLogin() {
$user_id = self::GetLoginId();
return $user_id $user_id :False;
}
\x09static public function Remember($user) {
\x09\x09$zone = "{$user['id']}@{$user['password']}";
\x09\x09cookieset(self::$cookie_name,base64_encode($zone),30*86400);
\x09}
\x09static public function NoRemember() {
\x09\x09cookieset(self::$cookie_name,null,-1);\x09
\x09}
}

class ZLogin{\x09static public $cookie_name = 'ru';static public function GetLoginId() {$user_id = abs(intval(Session::Get('user_id')));\x09\x09if $user_id) {\x09\x09\x09$u = ZUser::GetLoginCookie(self::$cookie_name);\x09\x09\x09if ( $user_id = abs(i
就像你所说,网上的多半是互相粘贴抄袭的,没什么价值.我祝愿你早日见到这个世界上,你一定听说了很多解命的故事,那么你是否注意到了这样一个共同