29 lines
No EOL
471 B
PHP
29 lines
No EOL
471 B
PHP
<?php
|
|
|
|
if(!defined("COMMON"))
|
|
require("Common.php");
|
|
|
|
$js = getJsonizedInput();
|
|
|
|
$token = $js["token"];
|
|
$client = $js["client"];
|
|
|
|
$DB = get_DB();
|
|
$id = "";
|
|
|
|
$res = $DB->query("SELECT * FROM `auth`;");
|
|
if($res->num_rows != 0){
|
|
while($row = $res->fetch_assoc()){
|
|
if(md5($row['webLoginKey']) == $token) {
|
|
$id = $row["UUID"];
|
|
}
|
|
}
|
|
}
|
|
die(json_encode(
|
|
array(
|
|
"id" => md5($id),
|
|
"type" => "S2CSessionCheck"
|
|
)
|
|
));
|
|
|
|
?>
|