From: Stricted Date: Thu, 4 Jun 2015 13:38:53 +0000 (+0200) Subject: remove unused stuff X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2f2349235ac0702daad6418a4726c7cb05dded0a;p=GitHub%2FStricted%2FDomain-Control-Panel.git remove unused stuff --- diff --git a/lib/api/page/IndexPage.class.php b/lib/api/page/IndexPage.class.php index 6ab2ad2..40a2cfc 100644 --- a/lib/api/page/IndexPage.class.php +++ b/lib/api/page/IndexPage.class.php @@ -9,7 +9,7 @@ use dns\page\AbstractPage; */ 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 diff --git a/lib/system/DNS.class.php b/lib/system/DNS.class.php index cd7c8a4..31d428c 100644 --- a/lib/system/DNS.class.php +++ b/lib/system/DNS.class.php @@ -52,7 +52,6 @@ class DNS { 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(); @@ -62,16 +61,6 @@ class DNS { 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 */ diff --git a/lib/system/RequestHandler.class.php b/lib/system/RequestHandler.class.php index 8109afa..bf61611 100644 --- a/lib/system/RequestHandler.class.php +++ b/lib/system/RequestHandler.class.php @@ -10,7 +10,7 @@ class RequestHandler { /** * 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"])) {