added json header closes #146

This commit is contained in:
Chris
2023-09-03 10:35:13 +02:00
parent 21aa1fbb7d
commit e551ef2bb2
4 changed files with 8 additions and 0 deletions

View File

@@ -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!');

View File

@@ -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!');

View File

@@ -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!');

View File

@@ -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!');