diff --git a/index.php b/index.php index 0fef7848..f7c46677 100755 --- a/index.php +++ b/index.php @@ -339,16 +339,16 @@ else if(isset($_GET['do'])) // Let them know this might take a while echo "Please wait, this might take a few seconds depending on the amount of mods being enabled..."; // Check to see which mods where selected, and go from there! + include("mtm_db/users/$username.php"); chdir("mods"); foreach(glob("*") as $modname) { // server_announce = true - include("mtm_db/users/$username.php"); if(isset($_POST[$modname]) && !is_dir("mtm_db/worlds/$userid/worlds/world/worldmods/" . $_POST[$modname])) { echo "Copying $modname..."; chdir(".."); file_put_contents("mtm_db/events/$userid", "cp -a mods/$modname mtm_db/worlds/$userid/worlds/world/worldmods/$modname"); chdir("mods"); - sleep(2); + sleep(1); } } chdir("..");