Till Brehm
2014-08-25 cb1221013251b4e9cba8e129edc6b8dbd8fd5145
interface/lib/app.inc.php
@@ -48,6 +48,7 @@
   private $_wb;
   private $_loaded_classes = array();
   private $_conf;
   private $_security_config;
   
   public $loaded_plugins = array();
@@ -109,7 +110,8 @@
      }
      $this->uses('functions'); // we need this before all others!
      $this->uses('auth,plugin');
      $this->uses('auth,plugin,ini_parser,getconf');
   }
   public function __get($prop) {
@@ -327,4 +329,13 @@
//* possible future =  new app($conf);
$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_enabled'] == 'yes') {
   $app->uses('ids');
   $app->ids->start();
}
unset($ids_security_config);
?>