summaryrefslogtreecommitdiffstats
path: root/api.php
diff options
context:
space:
mode:
Diffstat (limited to 'api.php')
-rw-r--r--api.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/api.php b/api.php
index b7745c22..e3ef94ce 100644
--- a/api.php
+++ b/api.php
@@ -5,6 +5,9 @@ chdir(dirname($_SERVER['SCRIPT_FILENAME']));
require_once 'config.php';
+define('API', true);
+define('AJAX', false);
+
if (CONFIG_SQL_PASS === '%MYSQL_OPENSLX_PASS%')
exit(0); // Ignore API calls if not configured yet