mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-11 18:56:21 +00:00
added json header closes #146
This commit is contained in:
@@ -3,6 +3,8 @@
|
|||||||
define('DS', DIRECTORY_SEPARATOR);
|
define('DS', DIRECTORY_SEPARATOR);
|
||||||
define('ROOT', dirname(__FILE__).'/..');
|
define('ROOT', dirname(__FILE__).'/..');
|
||||||
|
|
||||||
|
header('Content-Type: application/json; charset=utf-8');
|
||||||
|
|
||||||
//loading default settings if exist
|
//loading default settings if exist
|
||||||
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!');
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
define('DS', DIRECTORY_SEPARATOR);
|
define('DS', DIRECTORY_SEPARATOR);
|
||||||
define('ROOT', dirname(__FILE__).'/..');
|
define('ROOT', dirname(__FILE__).'/..');
|
||||||
|
|
||||||
|
header('Content-Type: application/json; charset=utf-8');
|
||||||
|
|
||||||
//loading default settings if exist
|
//loading default settings if exist
|
||||||
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!');
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
define('DS', DIRECTORY_SEPARATOR);
|
define('DS', DIRECTORY_SEPARATOR);
|
||||||
define('ROOT', dirname(__FILE__).'/..');
|
define('ROOT', dirname(__FILE__).'/..');
|
||||||
|
|
||||||
|
header('Content-Type: application/json; charset=utf-8');
|
||||||
|
|
||||||
//loading default settings if exist
|
//loading default settings if exist
|
||||||
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!');
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
define('DS', DIRECTORY_SEPARATOR);
|
define('DS', DIRECTORY_SEPARATOR);
|
||||||
define('ROOT', dirname(__FILE__).DS.'..');
|
define('ROOT', dirname(__FILE__).DS.'..');
|
||||||
|
|
||||||
|
header('Content-Type: application/json; charset=utf-8');
|
||||||
|
|
||||||
//loading default settings if exist
|
//loading default settings if exist
|
||||||
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!');
|
||||||
|
|||||||
Reference in New Issue
Block a user