"; print_r($array); echo ""; if($die) die(); } /////// Remove Keys of Empty Array; function array_exclude($array, $exclude) { $new_array = array(); foreach($array as $v) { if(!in_array($v, $exclude)) $new_array[] = $v; } return $new_array; } ?>set('Core.Encoding', 'UTF-8'); // replace with your encoding $html_config->set('HTML.Doctype', 'XHTML 1.0 Transitional'); // replace with your doctype $html_config->set('HTML.DefinitionID', 'webadmin-custom.html'); $html_config->set('HTML.DefinitionRev', 1); $html_config->set('Cache.DefinitionImpl', null); // remove this later! $def = $html_config->getHTMLDefinition(true); $def->addAttribute('a', 'target', 'Enum#_blank,_self,_target,_top'); */ //show_array($def); // Date Manangement Class include('date.class.php'); // Uploaders Class include('uploads.class.php'); $date = new date(); // Countries, regions etc Class include('places.class.php'); $places = new places(); // Browser Class include('browser.class.php'); $browser = new browser(); /* LOAD THE INCLUDED MODULE CLASSES. */ $getModules = $db->query("SELECT * FROM modules order by id"); if ($db->num_rows($getModules) > 0) { while($rowModules = $db->next_record($getModules)) { if (is_dir($config->siteRoot.'/modules/'.$rowModules['folder'].'/')) { if (file_exists($config->siteRoot.'/modules/'.$rowModules['folder'].'/'.$rowModules['folder'].'.class.php')) { include($config->siteRoot.'/modules/'.$rowModules['folder'].'/'.$rowModules['folder'].'.class.php'); $$rowModules['folder'] = new $rowModules['folder']; } } } } ?>