ZontreckWebsite/php/ActivateUser.php

24 lines
394 B
PHP
Raw Normal View History

2024-05-16 18:28:43 -07:00
<?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"
)));
?>