mirror of https://github.com/IoTcat/ushio-auth.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
604 B
23 lines
604 B
<?php |
|
|
|
include './functions.php'; |
|
|
|
$from = $_REQUEST['from']; |
|
|
|
|
|
$cnn = db__connect(); |
|
|
|
if(isset($_COOKIE['_token']) && db__rowNum($cnn, "token", "token", $_COOKIE['_token'])){ |
|
db__pushData($cnn, "token", array( |
|
"state"=>'0', |
|
"updated_at"=>date("Y-m-d H:i:s", time()) |
|
), array( |
|
"token"=>$_COOKIE['_token'] |
|
)); |
|
$redis->hSet('session/dialog/'.$_COOKIE['_token'], 'group', 'anonymous'); |
|
} |
|
|
|
if($from) |
|
echo '<script>window.location.replace("'.base64_decode($from).'")</script>'; |
|
else |
|
echo '<script>window.location.replace("https://login.yimian.xyz/")</script>';
|
|
|