ZontreckWebsite/php/Logout.php

18 lines
328 B
PHP
Raw Permalink Normal View History

2024-05-16 03:52:45 -07:00
<?php
if(!defined("COMMON"))
require ("Common.php");
// Edit database
$js = getJsonizedInput();
$token = $js['id'];
$DB = get_DB();
$res = $DB->query("UPDATE `auth` SET `webLoginKey` = '".NULLKEY."' WHERE `webLoginKey` = '".$token."';");
2024-05-16 03:52:45 -07:00
die(json_encode(array(
"done" => true,
"type" => "S2CSimpleReply"
)));
?>