PHPIDS not working properly

This PHPIDS was brought up in another thread, but as  Iwas looking for something else, I noticed this.

In inc/security.inc.php aroun line 26 there is this:

 

            $init = IDS_Init::init(BX_DIRECTORY_PATH_PLUGINS . 'phpids/IDS/Config/Config.ini');

 

Now, I went and looked at my copy of the config.ini file - which is from a fresh install of dolphin, and I notice this on line 12:

 

    base_path       = /full/path/to/IDS/

 

So, I was wondering if the config file has to be edited to allow the PHPIDS to function properly.

caredesign.net
Quote · 25 Feb 2014

No.

It's dynamically adjusted when it's init is called in inc/security.inc.php right under that line 26 you mentioned is this.

$init = IDS_Init::init(BX_DIRECTORY_PATH_PLUGINS . 'phpids/IDS/Config/Config.ini');
$init->config['General']['base_path'] = BX_DIRECTORY_PATH_PLUGINS . 'phpids/IDS/';
$init->config['General']['use_base_path'] = true;
$init->config['General']['tmp_path'] = '../../../tmp/';
$init->config['Caching']['path'] = '../../../tmp/default_filter.cache';

That right there will override the settings in the config file.


https://www.deanbassett.com
Quote · 25 Feb 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.