73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
| require_once $this->system_folder."modules/".$loadarray[$i]."/".$loadarray[$i].".module.php"; $this->loaded['modules'][] = $loadarray[$i]; if(class_exists($loadarray[$i])) { $this->loadedObj['modules'][$loadarray[$i]] = new $loadarray[$i](); $this->loadedObj['modules'][$loadarray[$i]]->connect($this->parent); if(method_exists($this->loadedObj['modules'][$loadarray[$i]], "init")) { $this->loadedObj['modules'][$loadarray[$i]]->init(); } } } else { trigger_error("Module ".$loadarray[$i]." was not found", E_USER_WARNING); } } } if(!is_array($module)) { if(isset($this->loadedObj['modules'][$loadarray[0]])) { return $this->loadedObj['modules'][$loadarray[0]]; } } } public function helper($helper, $loadInCore=false) {
|