diff options
-rw-r--r-- | api.php | 6 | ||||
-rw-r--r-- | index.php | 5 |
2 files changed, 10 insertions, 1 deletions
@@ -1,9 +1,13 @@ <?php -error_reporting(E_ALL); chdir(dirname($_SERVER['SCRIPT_FILENAME'])); require_once 'config.php'; +if (CONFIG_DEBUG) { + error_reporting(E_ALL); +} else { + error_reporting(E_ALL & ~E_DEPRECATED); +} define('API', true); define('AJAX', false); @@ -1,6 +1,11 @@ <?php require_once 'config.php'; +if (CONFIG_DEBUG) { + error_reporting(E_ALL); +} else { + error_reporting(E_ALL & ~E_DEPRECATED); +} if (CONFIG_SQL_PASS === '%MYSQL_OPENSLX_PASS%') { Header('Content-Type: text/plain; charset=utf-8'); |