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 + +
+
"> +
+ + + +
+
+ + +
+
+
diff --git a/users/control/style.css b/users/control/style.css index 83ae9c8..cfcbc60 100644 --- a/users/control/style.css +++ b/users/control/style.css @@ -281,7 +281,7 @@ label { font-family: Helvetica,sans-serif; font-size: 20px; } -label #type { +#type { border-radius: 4px; width: 100%; margin: 0 0 10px 0; @@ -827,6 +827,14 @@ summary{ padding: 0 0 0 5px; margin: 0; } +#selectregistration { + border-radius: 4px; + width: 79px; + margin: 0 0 0 5px; + padding: 5px 35px 5px 5px; + font-size: 14px; + border: none; +} @media only screen and (max-width: 1300px) { .users { display: none;