diff --git a/users/control/settings.php b/users/control/settings.php index dcdd12a..f5df486 100644 --- a/users/control/settings.php +++ b/users/control/settings.php @@ -100,6 +100,15 @@ function test_input($data) $configcontent = preg_replace('/\$rustmapsapi_key = \"(.*?)\";/', '$rustmapsapi_key = "'.$rustmapsapi_key.'";', $configcontent); file_put_contents($configfile, $configcontent); } +// Edit other settings +if (array_key_exists('other', $_POST)) { + $register = $_POST["registration"]; + $notification['other'] = "
Settings updated
";
+ $configcontent=file_get_contents($configfile);
+ $otherscript = "";
+ $configcontent = preg_replace('/\$register = (.*?);/', '$register = '.$register.';', $configcontent);
+ file_put_contents($configfile, $configcontent);
+}
?>
@@ -243,8 +252,24 @@ function test_input($data)
Other
-
+ Other
+
+