Tweaks
This commit is contained in:
parent
125522d4c0
commit
1bb2e34aac
@ -166,7 +166,7 @@ else if(isset($_GET['do']))
|
||||
// Trigger event to start server
|
||||
file_put_contents("mtm_db/events/$userid", "tar -xzf servers/multicraft.tgz -C mtm_db/worlds/$userid");
|
||||
file_put_contents("mtm_db/users/$userid.type", "multicraft");
|
||||
echo "Server created! Refer to the user management panel for start / up info.";
|
||||
header("Location: index.php?do=manage");
|
||||
} else {
|
||||
echo "Error: World exists, please click "Manage" to start / stop your server, download a world backup, or delete your current world!";
|
||||
}
|
||||
@ -206,7 +206,7 @@ else if(isset($_GET['do']))
|
||||
// Trigger event to start servver
|
||||
file_put_contents("mtm_db/events/$userid", "tar -xzf servers/minetest-current.tgz -C mtm_db/worlds/$userid");
|
||||
file_put_contents("mtm_db/users/$userid.type", "minetest");
|
||||
echo "Server created! Refer to the user management panel for start / up info.";
|
||||
header("Location: index.php?do=manage");
|
||||
} else {
|
||||
echo "Error: World exists, please click "Manage" to start / stop your server, download a world backup, or delete your current world!";
|
||||
}
|
||||
@ -501,7 +501,7 @@ else if(isset($_GET['do']))
|
||||
if(!is_dir("mtm_db/worlds/$userid/bin")) {
|
||||
echo "Please wait: Server is being created, this process shouldn't take longer than 30 seconds...";
|
||||
// Refresh the page every 3 seconds for updates on the VM status.
|
||||
echo "<meta http-equiv='refresh' content='3' />";
|
||||
echo "<meta http-equiv='refresh' content='1' />";
|
||||
} else {
|
||||
|
||||
// Check if usermods folder exists, create if not!
|
||||
|
Loading…
x
Reference in New Issue
Block a user