From 1ff2bc4f3c694b7c76df8e57056c51ca39a23a34 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 20 Jan 2015 18:07:24 +0100 Subject: config module structure completed. Many other fixes. Hidden pw field support. --- api.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'api.php') 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 -- cgit v1.2.3-55-g7522