X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FIDS.php;h=75713269ee1c6c71eb3dafc323883b80650fe636;hb=4c9b6178d4a1a1b93ae1302f606903117a52e87b;hp=c6055cf9d804c9df355153ad8870f1bae974f0bf;hpb=68acd6ae8e764d8e713829675cfadfdefff770e8;p=civicrm-core.git diff --git a/CRM/Core/IDS.php b/CRM/Core/IDS.php index c6055cf9d8..75713269ee 100644 --- a/CRM/Core/IDS.php +++ b/CRM/Core/IDS.php @@ -1,7 +1,7 @@ 25, @@ -44,7 +44,7 @@ class CRM_Core_IDS { ); /** - * the init object + * The init object */ private $init = NULL; @@ -77,7 +77,8 @@ class CRM_Core_IDS { try { $init = IDS_Init::init($configFile); $ids = new IDS_Monitor($_REQUEST, $init); - } catch (Exception $e) { + } + catch (Exception $e) { // might be an old stale copy of Config.IDS.ini // lets try to rebuild it again and see if it works $configFile = self::createConfigFile(TRUE); @@ -96,12 +97,13 @@ class CRM_Core_IDS { /** * Create the default config file for the IDS system * - * @param boolean $force should we recreate it irrespective if it exists or not + * @param bool $force + * Should we recreate it irrespective if it exists or not. * * @return string the full path to the config file * @static */ - static function createConfigFile($force = FALSE) { + public static function createConfigFile($force = FALSE) { $config = CRM_Core_Config::singleton(); $configFile = $config->configAndLogDir . 'Config.IDS.ini'; if (!$force && file_exists($configFile)) { @@ -205,11 +207,9 @@ class CRM_Core_IDS { * This function writes an entry about the intrusion * to the intrusion database * - * @param $result + * @param array $result * @param int $reaction * - * @internal param array $results - * * @return boolean */ private function log($result, $reaction = 0) { @@ -280,4 +280,3 @@ class CRM_Core_IDS { CRM_Core_Error::fatal($msg); } } -