/** * Gets the administraion of the request */ public function getAdministration() { $this->setState('LOADING_MODULE_ADMIN'); //Get in admin request $request = $this->getInputString("req", "", "G"); //Get Module Request $module = $this->getActiveRequest(); //Make sure the administraion Exists if (file_exists("modules/" . $module . "/" . $module . "ModuleAdmin.php")) { //Include Module Information include_once "core/lib/ModuleAdmin.php"; include_once "modules/" . $module . "/" . $module . "ModuleAdmin.php"; //Creates new module admin $m = new ModuleAdmin($this->getController()); //Give the module administration it's request $m->setRequest($request); //Sets the controller properly. $m->setController($this->getController()); //Process the given request $m->process(); //Get the content created after processing return array($module, $m->getContent()); } else { $this->setState('NO_MODULE_MODULE_ADMIN'); //Report Error die("Error: No Module Administration Exists. Please report to developer and stop using this module until it is fixed."); } }