function TB_run() { global $TB_settings; global $AM_settings; global $TB_settings_place; TB_loadAnimalMoverSettings(); TB_loadSettings(); TB_loadSections(); $TB_settings['TB_needReload'] = false; $farm = null; $farm = TB_run_animalmanager_farmGold($farm); $farm = TB_run_animalmanager($farm); $farm = TB_run_mysterygift($farm); $farm = TB_run_flowermanager($farm); $farm = TB_run_storagemanager($farm); // reloding farm if ($TB_settings['TB_needReload']) { DoInit(); $TB_settings['TB_needReload'] = false; } save_array($TB_settings, ToolBox_settings); }
$TB_settings['SM_action']['place'][$i] = $_POST['place_' . $i]; if ($TB_settings['SM_action']['place'][$i] > $num) { $TB_settings['SM_action']['place'][$i] = $num; } } } } } save_array($TB_settings, ToolBox_settings); } if (isset($_GET['show'])) { $show = @$_GET['show']; } if (isset($_GET['importSections'])) { TB_importSections(); TB_loadSections(); save_array($TB_settings, ToolBox_settings); } if (isset($_GET['updateTempStats'])) { $update_tempStats = true; } //small checks to avoid problmes if ($tempStats['itemName'] != $TB_settings['AM_ItemName']) { $update_tempStats = true; } if ($tempStats['countGiftsInGiftBox'] != TB_numberGiftBox()) { $update_tempStats = true; save_array($TB_settings, ToolBox_settings); } //update temp stats? if ($update_tempStats) {