This commit is contained in:
jhuesser 2018-06-12 19:00:46 +02:00 committed by Thomas Nilsen
parent a56e6ae8ef
commit 1172eeaf1b

View File

@ -118,7 +118,7 @@ if(isset($_POST['server']) && empty($message))
$config = str_replace("##name##", $_POST['servername'], $config); $config = str_replace("##name##", $_POST['servername'], $config);
$config = str_replace("##title##", $_POST['title'], $config); $config = str_replace("##title##", $_POST['title'], $config);
$config = str_replace("##url##", $_POST['url'], $config); $config = str_replace("##url##", $_POST['url'], $config);
$policy = str_replace("##mailer##", $_POST['mailer'], $policy); $policy = str_replace("##email##", $_POST['mailer_email'], $policy);
$config = str_replace("##mailer_email##", $_POST['mailer_email'], $config); $config = str_replace("##mailer_email##", $_POST['mailer_email'], $config);
$config = str_replace("##server##", $_POST['server'], $config); $config = str_replace("##server##", $_POST['server'], $config);
$config = str_replace("##database##", $_POST['database'], $config); $config = str_replace("##database##", $_POST['database'], $config);
@ -136,7 +136,7 @@ if(isset($_POST['server']) && empty($message))
$config = str_replace("##tg_bot_username##", $_POST['tgbot'], $config); $config = str_replace("##tg_bot_username##", $_POST['tgbot'], $config);
$policy = str_replace("##name##", $fullname, $policy); $policy = str_replace("##name##", $fullname, $policy);
file_put_contents("config.php", $config); file_put_contents("config.php", $config);
file_put_contents("policy.php", $policy);
unlink("config.php.template"); unlink("config.php.template");
unlink("install.sql"); unlink("install.sql");