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.
18 lines
382 B
18 lines
382 B
<?php |
|
|
|
include './functions.php'; |
|
|
|
|
|
$cnn = db__connect(); |
|
|
|
if(isset($_COOKIE['_token']) && db__rowNum($cnn, "token", "token", $_COOKIE['_token'])){ |
|
db__pushData($cnn, "token", array( |
|
"state"=>'0' |
|
), array( |
|
"token"=>$_COOKIE['_token'] |
|
)); |
|
|
|
} |
|
|
|
setcookie("_token", "", time()-3600); |
|
echo '<script>window.location.href="https://login.yimian.xyz/"</script>';
|
|
|