Repair a small typo

This commit is contained in:
zontreck 2024-05-15 16:03:07 -07:00
parent 10d7b8be65
commit e5faf9aeff
3 changed files with 12 additions and 10 deletions

View file

@ -16,22 +16,22 @@ function getJsonizedInput() {
function rewrite_DB_conf($host, $user, $pass, $db)
{
$ptl = "<\?php\n"
$ptl = "<"."?php\n"
. "define(\"DB_HOST\", \"$host\");\n"
. "define(\"DB_USER\", \"$user\");\n"
. "define(\"DB_PASS\", \"$pass\");\n"
. "define(\"DB_NAME\", \"$db\");\n"
. "\?>";
. "?".">";
file_put_contents("../database.user.php", $ptl);
}
function rewriteSystemInclude($psk, $clientPSK)
{
$ptl = "<\?php\n"
$ptl = "<"."?php\n"
. "define(\"PSK\", \"$psk\");\n"
. "define(\"CLIENTPSK\", \"$clientPSK\");\n"
. "\?>";
. "?".">";
file_put_contents("../system.user.php", $ptl);
}