diff options
author | 2008-05-09 07:37:54 +0000 | |
---|---|---|
committer | 2008-05-09 07:37:54 +0000 | |
commit | 5172b0b4ea973cca531269dc30dfca29501b0804 (patch) | |
tree | b7bf0115e7d238281fff6f2f1f2aee49bf53a67e | |
parent | c1c23e20dba5d935b39cc7603e5c496560a2bac3 (diff) | |
download | scuttle-5172b0b4ea973cca531269dc30dfca29501b0804.tar.gz scuttle-5172b0b4ea973cca531269dc30dfca29501b0804.zip |
Interface fix: displays an error message if the config.inc.php file has not been created
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@120 b3834d28-1941-0410-a4f8-b48e95affb8f
-rw-r--r-- | header.inc.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/header.inc.php b/header.inc.php index 361d233..9d147b0 100644 --- a/header.inc.php +++ b/header.inc.php @@ -7,6 +7,10 @@ error_reporting(E_ALL ^ E_NOTICE); define('DEBUG', true); session_start(); +if(!file_exists(dirname(__FILE__) .'/config.inc.php')) { + die("Please, create the 'config.inc.php' file. You can copy the 'config.inc.php.example' file."); +} + require_once(dirname(__FILE__) .'/services/servicefactory.php'); require_once(dirname(__FILE__) .'/config.inc.php'); require_once(dirname(__FILE__) .'/constants.inc.php'); |