mirror of
https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
synced 2024-11-08 12:35:59 -05:00
added policy form
This commit is contained in:
parent
df4c08d8c8
commit
8ffd5f9906
@ -111,14 +111,12 @@ if(isset($_POST['server']) && empty($message))
|
||||
|
||||
if (empty($message))
|
||||
{
|
||||
$fullname = $_POST['surname'] . " " . $_POST['name'];
|
||||
//Create config & privacy policy
|
||||
//Create config
|
||||
$config = file_get_contents("config.php.template");
|
||||
$policy = file_get_contents("policy.php");
|
||||
$config = str_replace("##name##", $_POST['servername'], $config);
|
||||
$config = str_replace("##title##", $_POST['title'], $config);
|
||||
$config = str_replace("##url##", $_POST['url'], $config);
|
||||
$policy = str_replace("##email##", $_POST['mailer_email'], $policy);
|
||||
$config = str_replace("##mailer##", $_POST['mailer'], $config);
|
||||
$config = str_replace("##mailer_email##", $_POST['mailer_email'], $config);
|
||||
$config = str_replace("##server##", $_POST['server'], $config);
|
||||
$config = str_replace("##database##", $_POST['database'], $config);
|
||||
@ -137,7 +135,7 @@ if(isset($_POST['server']) && empty($message))
|
||||
$policy = str_replace("##name##", $fullname, $policy);
|
||||
file_put_contents("config.php", $config);
|
||||
file_put_contents("policy.php", $policy);
|
||||
|
||||
|
||||
unlink("config.php.template");
|
||||
unlink("install.sql");
|
||||
unlink(__FILE__);
|
||||
|
Loading…
Reference in New Issue
Block a user