diff --git a/interface/lib/app.inc.php b/interface/lib/app.inc.php index 1cc96e9c2e28a5399040b6c2c2c5b450e5c96a41..12b7e9e922386692f684ddd6759f1bcdb8806180 100755 --- a/interface/lib/app.inc.php +++ b/interface/lib/app.inc.php @@ -342,7 +342,7 @@ $app = new app(); // load and enable PHP Intrusion Detection System (PHPIDS) $ids_security_config = $app->getconf->get_security_config('ids'); -if(is_dir(ISPC_CLASS_PATH.'/IDS') && ($ids_security_config['ids_anon_enabled'] == 'yes' || $ids_security_config['ids_user_enabled'] == 'yes' || $ids_security_config['ids_admin_enabled'] == 'yes')) { +if(is_dir(ISPC_CLASS_PATH.'/IDS') && !defined('REMOTE_API_CALL') && ($ids_security_config['ids_anon_enabled'] == 'yes' || $ids_security_config['ids_user_enabled'] == 'yes' || $ids_security_config['ids_admin_enabled'] == 'yes')) { $app->uses('ids'); $app->ids->start(); } diff --git a/interface/web/remote/index.php b/interface/web/remote/index.php index 3e111394a365541e0f4ef5cbe764d7e110f8d49d..670a9db13b41b62daf99ab425174ac2d9cd03a7f 100644 --- a/interface/web/remote/index.php +++ b/interface/web/remote/index.php @@ -1,5 +1,7 @@ <?php +define('REMOTE_API_CALL', true); + require_once '../../lib/config.inc.php'; $conf['start_session'] = false; require_once '../../lib/app.inc.php'; diff --git a/interface/web/remote/json.php b/interface/web/remote/json.php index 17bc41cd3b94c2ab09f0e4666716d5f2ca2bf73d..926a9953958afdd2ed8686c3112dce18f2be5351 100644 --- a/interface/web/remote/json.php +++ b/interface/web/remote/json.php @@ -1,5 +1,7 @@ <?php +define('REMOTE_API_CALL', true); + require_once '../../lib/config.inc.php'; $conf['start_session'] = false; require_once '../../lib/app.inc.php'; diff --git a/interface/web/remote/rest.php b/interface/web/remote/rest.php index 37db80d66b2ca436a49a65610eb4ad3106eb7495..d57915004520e9895d4fafe1b463a3ffc47b1d21 100644 --- a/interface/web/remote/rest.php +++ b/interface/web/remote/rest.php @@ -1,5 +1,7 @@ <?php +define('REMOTE_API_CALL', true); + require_once '../../lib/config.inc.php'; $conf['start_session'] = false; require_once '../../lib/app.inc.php';