Added slot count to config.php, call this v1.1b
parent
2e967ff116
commit
14bebfe4c0
|
@ -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*
|
||||
|
|
|
@ -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"; // <port range>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!";
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue