主站的登录程序:login.php
/////////////////////////
$passport_key="wwwburnfarcom";
$time=time();
$member = array(
'time'=> $time,
'username' => $SESSION_USERS_NAME,
'password' => md5($password),
'email' => $email,
'regdate' => $time
);
$auth = passport_encrypt(passport_encode($member), $passport_key);
setcookie("auth",$auth,time()+365*24*3600);
$forward=$_REQUEST['forward'];
$action="login";
if($forward=="")$forward="../index.php";
$verify=md5($action.$auth.$forward.$passport_key);
header("Location: /forums/api/passport.php?action=login&auth=".rawurlencode($auth)."&forward=". rawurlencode($forward)."&verify=".$verify."") ;
exit;
这个是登录部分,登录之后,程序直接显示到"../index.php"该文件,中间没有提示任何文件。而数据是应同步的。登录/注册/注销文件在附件中 |