mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-15 12:38:01 +00:00
fixed major mistake where server thought that config was missing even when it wasn't
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
session_start();
|
session_start();
|
||||||
|
define('DS', DIRECTORY_SEPARATOR);
|
||||||
|
define('ROOT', dirname(__FILE__));
|
||||||
|
|
||||||
if(!file_exists(ROOT.DS.'inc'.DS.'config.inc.php'))
|
if(!file_exists(ROOT.DS.'inc'.DS.'config.inc.php'))
|
||||||
exit('Rename /inc/example.config.inc.php to /inc/config.inc.php first!');
|
exit('Rename /inc/example.config.inc.php to /inc/config.inc.php first!');
|
||||||
@@ -9,8 +11,6 @@ if(FORCE_DOMAIN)
|
|||||||
define('DOMAINPATH',FORCE_DOMAIN);
|
define('DOMAINPATH',FORCE_DOMAIN);
|
||||||
else
|
else
|
||||||
define('DOMAINPATH',(isset($_SERVER['HTTPS'])?'https':'http').'://'.$_SERVER['HTTP_HOST'].'/');
|
define('DOMAINPATH',(isset($_SERVER['HTTPS'])?'https':'http').'://'.$_SERVER['HTTP_HOST'].'/');
|
||||||
define('DS', DIRECTORY_SEPARATOR);
|
|
||||||
define('ROOT', dirname(__FILE__));
|
|
||||||
error_reporting(E_ALL & ~E_NOTICE);
|
error_reporting(E_ALL & ~E_NOTICE);
|
||||||
if(SHOW_ERRORS)
|
if(SHOW_ERRORS)
|
||||||
ini_set('display_errors','On');
|
ini_set('display_errors','On');
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
session_start();
|
session_start();
|
||||||
|
define('DS', DIRECTORY_SEPARATOR);
|
||||||
|
define('ROOT', dirname(__FILE__));
|
||||||
|
|
||||||
if(!file_exists(ROOT.DS.'inc'.DS.'config.inc.php'))
|
if(!file_exists(ROOT.DS.'inc'.DS.'config.inc.php'))
|
||||||
exit('Rename /inc/example.config.inc.php to /inc/config.inc.php first!');
|
exit('Rename /inc/example.config.inc.php to /inc/config.inc.php first!');
|
||||||
@@ -9,8 +11,6 @@ if(FORCE_DOMAIN)
|
|||||||
define('DOMAINPATH',FORCE_DOMAIN);
|
define('DOMAINPATH',FORCE_DOMAIN);
|
||||||
else
|
else
|
||||||
define('DOMAINPATH',(isset($_SERVER['HTTPS'])?'https':'http').'://'.$_SERVER['HTTP_HOST'].'/');
|
define('DOMAINPATH',(isset($_SERVER['HTTPS'])?'https':'http').'://'.$_SERVER['HTTP_HOST'].'/');
|
||||||
define('DS', DIRECTORY_SEPARATOR);
|
|
||||||
define('ROOT', dirname(__FILE__));
|
|
||||||
error_reporting(E_ALL & ~E_NOTICE);
|
error_reporting(E_ALL & ~E_NOTICE);
|
||||||
if(SHOW_ERRORS)
|
if(SHOW_ERRORS)
|
||||||
ini_set('display_errors','On');
|
ini_set('display_errors','On');
|
||||||
|
|||||||
Reference in New Issue
Block a user