]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
Interface fix: displays an error message if the config.inc.php file has not been...
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Fri, 9 May 2008 07:37:54 +0000 (07:37 +0000)
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Fri, 9 May 2008 07:37:54 +0000 (07:37 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@120 b3834d28-1941-0410-a4f8-b48e95affb8f

header.inc.php

index 361d2337604feefbc974cf3fd601ff70fcd0460a..9d147b043d5f0d1bb84a17d2533c3f814eedbbcc 100644 (file)
@@ -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');