From 89334bf58ad7b690adb0e329459b3ad6b3794bc1 Mon Sep 17 00:00:00 2001 From: killserver Date: Wed, 6 Aug 2014 08:53:09 +0300 Subject: [PATCH] small update in core --- core.php | 20 ++++++++++++++++++-- core/functions.php | 6 ++++-- index.php | 6 +++++- 3 files changed, 27 insertions(+), 5 deletions(-) diff --git a/core.php b/core.php index a8078d7..b8b9f41 100644 --- a/core.php +++ b/core.php @@ -1,9 +1,20 @@ \ No newline at end of file diff --git a/core/functions.php b/core/functions.php index e292614..f247930 100644 --- a/core/functions.php +++ b/core/functions.php @@ -12,7 +12,7 @@ include_once(ROOT_PATH."core/class/".$class.".".ROOT_EX); } elseif(file_exists(ROOT_PATH."core/class/system/".$class.".".ROOT_EX)) { include_once(ROOT_PATH."core/class/system/".$class.".".ROOT_EX); - } elseif(file_exists(ROOT_PATH."core/modules/".$class.".".ROOT_EX)) { + } elseif(!defined("IS_ADMINPANEL") && file_exists(ROOT_PATH."core/modules/".$class.".".ROOT_EX)) { include_once(ROOT_PATH."core/modules/".$class.".".ROOT_EX); } }); @@ -42,7 +42,9 @@ function include_dir($dir = null, $modules = null) { } } } -include_dir(ROOT_PATH."core/modules/", true); +if(!defined("IS_ADMINPANEL")) { + include_dir(ROOT_PATH."core/modules/", true); +} include_dir(); ?> \ No newline at end of file diff --git a/index.php b/index.php index 6dafd5f..3c273b1 100644 --- a/index.php +++ b/index.php @@ -7,7 +7,7 @@ } $server = $_SERVER['QUERY_STRING']; -//cut($server, nstrpos($server, "?")+1, nstrlen($server)) // <- ??? +//cut($server, nstrpos($server, "?")+1, nstrlen($server)) if(!empty($server)) { $page = $server; if(strpos($page, "&") !== false) { @@ -32,6 +32,10 @@ if(class_exists("page")) { new page(); } +if(defined("DEBUG")) { + ini_set('display_errors',1); + error_reporting(E_ALL); +} $Timer = microtime()-$Timer; GzipOut($templates->gzip);