
利用主站校验 ,实现跳转回来
同步php$action=param(1);if($action==login){$_SESSION[referer]=http_referer();// 发起的 token$token=xn_encrypt($time."t".$useragent);$s=xn_decrypt($token);$return_url=xn_urlencode(http_url_path().url(user-synlogin));http_location(BBS_URL."user-synlogin.htm?token=$token&return_url=$return_url");// 接受跳转回来的 token} elseif($action == synlogin) {$token=param(token);$s=xn_decrypt($token);$arr=xn_json_decode($s);empty($arr)ANDmessage(-1,TOKEN 有错误);$_SESSION[uid]=$arr[uid];$_SESSION[user]=$arr;$referer=$_SESSION[referer];unset($_SESSION[referer]);message(-1,jump(登陆成功,$referer,2));}elseif($action==create){http_location(BBS_URL.url("user-create"));}elseif($action==logout){$uid=0;unset($_SESSION[uid]);unset($_SESSION[user]);message(-1,jump(退出成功,http_referer(),2));}?>php$action=param(1);if($action==login){$_SESSION[referer]=http_referer();// 发起的 token$token=xn_encrypt($time."t".$useragent);$s=xn_decrypt($token);$return_url=xn_urlencode(http_url_path().url(user-synlogin));http_location(BBS_URL."user-synlogin.htm?token=$token&return_url=$return_url");// 接受跳转回来的 token} elseif($action == synlogin) {$token=param(token);$s=xn_decrypt($token);$arr=xn_json_decode($s);empty($arr)ANDmessage(-1,TOKEN 有错误);$_SESSION[uid]=$arr[uid];$_SESSION[user]=$arr;$referer=$_SESSION[referer];unset($_SESSION[referer]);message(-1,jump(登陆成功,$referer,2));}elseif($action==create){http_location(BBS_URL.url("user-create"));}elseif($action==logout){$uid=0;unset($_SESSION[uid]);unset($_SESSION[user]);message(-1,jump(退出成功,http_referer(),2));}?> 内容看完了 © 版权声明 1:本网站名称:蜡笔傻新2:本站永久网址 :https://labishaxin.com/
3:本站部分内容收集于互联网,如果有侵权内容、登陆请联系我们删除,实现不妥之处,同步敬请谅解
4:本站一切资源不代表本站立场,登陆并不代表本站赞同其观点和对其真实性负责
5:本站一律禁止以任何方式发布或转载任何违法的实现相关信息 ,访客发现请向站长举报
6:本站资源大多存储在云盘