Repair a small typo
This commit is contained in:
parent
10d7b8be65
commit
e5faf9aeff
3 changed files with 12 additions and 10 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue