31 lines
No EOL
554 B
PHP
31 lines
No EOL
554 B
PHP
<?php
|
|
if(!defined("COMMON"))
|
|
require("Common.php");
|
|
|
|
$js = getJsonizedInput();
|
|
|
|
if(!defined("PSK") || PSK == $js['psk']) {
|
|
|
|
$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"
|
|
)));
|
|
?>
|