Portions created by the Initial Developer are Copyright (C) 2008-2016 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane */ //process one time if ($domains_processed == 1) { //add missing switch directories in default settings $obj = new switch_settings; $obj->settings(); unset($obj); //use the module class to get the list of modules from the db and add any missing modules if (isset($_SESSION['switch']['mod']['dir'])) { $mod = new modules; $mod->db = $db; $mod->dir = $_SESSION['switch']['mod']['dir']; $mod->get_modules(); $mod->synch(); $msg = $mod->msg; //save the modules.conf save_module_xml(); } } ?>