From 14bebfe4c0a84038adcb3f387916aa7ae5b7ada6 Mon Sep 17 00:00:00 2001 From: Pentium44 Date: Wed, 3 Feb 2021 15:09:52 -0800 Subject: [PATCH] Added slot count to config.php, call this v1.1b --- README.md | 6 +++++- config.php | 6 ++++-- ctn/style.css | 12 ++++++------ index.php | 4 ++-- 4 files changed, 17 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index fb2e3ad2..ada73db5 100755 --- a/README.md +++ b/README.md @@ -56,11 +56,15 @@ Mods / Gamepacks ChangeLog ---- +2/03/2021 - v1.1b +* CSS clean-up +* Admin configuration of server max slots -> config.php + 2/03/2021 - v1.1 * Allow for user mods directory * Add user mod upload portal (ZIP only) * CSS tweaks -* Bugfix in mod reset function +* Bugfixes in mod reset function * Server creation cleanup * Administration panel for registration token generation and server management * User / Server delete functions *TO BE ADDED* diff --git a/config.php b/config.php index a400c5e6..a6d06245 100755 --- a/config.php +++ b/config.php @@ -7,12 +7,14 @@ /////// $mtsmtitle = "webpanel ~ panel.edgy1.net"; // MTSM Title -$desc = "Simple, ad-free, and lightweight Minetest hosting solution that's number one for YOU! " . $mtsmtitle . " is powered by MTSM."; // Description +$desc = "Simple, ad-free, and lightweight Minetest hosting solution that's number one for YOU! " +. $mtsmtitle . " is powered by MTSM."; // Description of the panel. $domain = "https://panel.edgy1.net"; // where is MTSM operating? -$version = "1.0"; // version of MTSM +$version = "1.1b"; // version of MTSM $defaultip = "fi.edgy1.net"; // Default IP for user servers $maxservers = "100"; // max server count. $portrange = "30"; // xxx example 30, would be 30001 for port usage on the first user +$max_slot_count = "50"; // Maximum amount of slots per servers of a user, set in minetest.conf // Default "admin" account password $admin_passwd = "ChangeM3!"; diff --git a/ctn/style.css b/ctn/style.css index f964c9af..947750cc 100755 --- a/ctn/style.css +++ b/ctn/style.css @@ -96,12 +96,12 @@ input, button, select, label { } .button { - background-color: #222222; - border: solid 1px #323232; - outline: none; - font-size: 14px; - border-radius: 6px; - color: #d7d7d7; + background-color: #222222; + border: solid 1px #323232; + outline: none; + font-size: 14px; + border-radius: 6px; + color: #d7d7d7; margin: auto; padding: 4px; display: inline-flex; diff --git a/index.php b/index.php index 8bba13cf..290d0638 100755 --- a/index.php +++ b/index.php @@ -148,7 +148,7 @@ else if(isset($_GET['do'])) // Lets setup a default configuration script $config_contents = "port = 30" . $userid . "\n"; $config_contents .= "name = " . $username . "\n"; - $config_contents .= "max_users = 25\n"; + $config_contents .= "max_users = $max_slot_count\n"; $config_contents .= "default_game = minetest_game\n"; $config_contents .= "default_privs = shout, interact\n"; $config_contents .= "secure.trusted_mods = irc\n"; @@ -187,7 +187,7 @@ else if(isset($_GET['do'])) // Lets setup a default configuration script $config_contents = "port = " . $portrange . $userid . "\n"; $config_contents .= "name = " . $username . "\n"; - $config_contents .= "max_users = 25\n"; + $config_contents .= "max_users = $max_slout_count\n"; $config_contents .= "default_game = minetest_game\n"; $config_contents .= "default_privs = shout, interact\n"; $config_contents .= "secure.trusted_mods = irc\n";