From b9f3247f72c914d6ae9d631d7a978e7b00950bc2 Mon Sep 17 00:00:00 2001 From: Radex Date: Mon, 10 Nov 2008 10:53:11 +0100 Subject: [PATCH] =?utf8?q?Dobra,=20jeszcze=20tylko=20to=20i=20b=C4=99dzie?= =?utf8?q?=20ok.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- cms/config_template.php | 2 ++ cms/index.php | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/cms/config_template.php b/cms/config_template.php index 3009746..a743242 100644 --- a/cms/config_template.php +++ b/cms/config_template.php @@ -49,6 +49,7 @@ $_w_siteSlogan = ''; $_w_theme = ''; $_w_defaultCnt = ''; $_w_hashAlgo = array('_sha1'); +$_w_dHashAlgo = 0; // autoload @@ -98,6 +99,7 @@ include WTRMLN_LIBS . 'config.php'; Config::$theme = $_w_theme; Config::$defaultController = $_w_defaultCnt; Config::$hashAlgo = $_w_hashAlgo; +Config::$defaultHashAlgo = $_w_dHashAlgo; Config::$siteName = $_w_siteName; Config::$siteSlogan = $_w_siteSlogan; diff --git a/cms/index.php b/cms/index.php index e668841..ca50e96 100644 --- a/cms/index.php +++ b/cms/index.php @@ -75,7 +75,15 @@ if(get_magic_quotes_gpc()) $_REQUEST = array_map('stripslashes_deep', $_REQUEST); } -include 'config.php'; +if(file_exists('config.php')) +{ + include 'config.php'; +} +else +{ + die('Plik konfiguracyjny nie zostaƂ utworzony.'); +} + include WTRMLN_CMSPATH . 'system.php'; -- 2.11.4.GIT