24 lines
No EOL
394 B
PHP
24 lines
No EOL
394 B
PHP
<?php
|
|
|
|
if(!defined("COMMON"))
|
|
require("Common.php");
|
|
|
|
$js = getJsonizedInput();
|
|
$DB = get_DB();
|
|
|
|
$clientKey = $js['client'];
|
|
$id = $js['id'];
|
|
|
|
$complete=false;
|
|
if($clientKey == md5(CLIENTPSK)) {
|
|
$complete=true;
|
|
$res = $DB->query("UPDATE `UserAccounts` SET `active`=1 WHERE `PrincipalID` = '$id';");
|
|
}
|
|
|
|
|
|
die(json_encode(array(
|
|
"done" => $complete,
|
|
"type" => "S2CSimpleReply"
|
|
)));
|
|
|
|
?>
|