fixed major mistake where server thought that config was missing even when it wasn't

This commit is contained in:
Christian Haschek
2015-10-31 15:52:13 +01:00
parent 9cb7a2fe4e
commit 692ce79933
2 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,7 @@
<?php
session_start();
define('DS', DIRECTORY_SEPARATOR);
define('ROOT', dirname(__FILE__));
if(!file_exists(ROOT.DS.'inc'.DS.'config.inc.php'))
exit('Rename /inc/example.config.inc.php to /inc/config.inc.php first!');
@@ -9,8 +11,6 @@ if(FORCE_DOMAIN)
define('DOMAINPATH',FORCE_DOMAIN);
else
define('DOMAINPATH',(isset($_SERVER['HTTPS'])?'https':'http').'://'.$_SERVER['HTTP_HOST'].'/');
define('DS', DIRECTORY_SEPARATOR);
define('ROOT', dirname(__FILE__));
error_reporting(E_ALL & ~E_NOTICE);
if(SHOW_ERRORS)
ini_set('display_errors','On');