*/
class IndexPage extends AbstractPage {
public function prepare () {
- /* we have no index page */
- exit;
+ /* we have no index page */
+ exit;
}
}
\ No newline at end of file
spl_autoload_register(array('dns\system\DNS', 'autoload'));
set_exception_handler(array('dns\system\DNS', 'handleException'));
set_error_handler(array('dns\system\DNS', 'handleError'), E_ALL);
- /*register_shutdown_function(array('dns\system\DNS', 'destruct'));*/
$this->initDB();
self::buildOptions();
new RequestHandler(self::$module);
}
- /*
- public static function destruct() {
- $error = error_get_last();
- if (!empty($error)) {
- self::handleException(new SystemException($error['message'], $error['line']));
- }
-
- }
- */
-
/**
* get database
*/
/**
* init RequestHandler
*/
- public function __construct ($module = '') {
+ public function __construct ($module = '') {
$className = "";
$pages = glob(DNS_DIR.'/lib/'.(empty($module) ? '' : $module.'/').'page/*Page.class.php');
if (isset($_GET["page"]) && !empty($_GET["page"])) {