Finish implementing initial setup process

This commit is contained in:
zontreck 2024-05-15 15:53:13 -07:00
parent d47906e10f
commit 7c358d48e0
9 changed files with 340 additions and 41 deletions

View file

@ -4,11 +4,28 @@ if(!defined("COMMON"))
$js = getJsonizedInput();
$host = $js['host'];
$user = $js['user'];
$pass = $js['pass'];
$db = $js['db'];
if(!defined("PSK") || PSK == $js['psk']) {
rewrite_DB_conf($host, $user, $pass, $db);
$host = $js['host'];
$user = $js['user'];
$pass = $js['pass'];
$db = $js['db'];
$psk = $js['psk'];
$clientPsk = $js['client'];
rewrite_DB_conf($host, $user, $pass, $db);
rewriteSystemInclude($psk, $clientPsk);
die(json_encode(array(
"done" => true,
"type" => "S2CSimpleReply"
)));
}
die(json_encode(array(
"done" => false,
"type" => "S2CSimpleReply"
)));
?>