<commit_before><?php
// (c) Copyright 2002-2012 by authors of the Tiki Wiki CMS Groupware Project
// 
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$

function prefs_ids_list()
{
	return array(
		'ids_enabled' => array(
			'name' => tra('Intrusion Detection System'),
			'description' => tra('Use PHPIDS to check the input to pages to discover malicious requests.'),
			'type' => 'flag',
			'default' => 'n',
			'help' => 'PHPIDS',
			'tags' => array('experimental'),
			'keywords' => 'attack security rce csrf lfi exploit sqli phpids header filter security injection xss sql hacking ids directory traversal attacks injections detection intrusion ldap dt',
		),
		'ids_single_threshold' => array(
			'name' => tra('Per-request maximum impact'),
			'type' => 'text',
			'filter' => 'int',
			'default' => 25,
		),
		'ids_session_threshold' => array(
			'name' => tra('Per-session impact'),
			'type' => 'text',
			'filter' => 'int',
			'default' => 150,
		),
	);
}
<commit_msg>Revision: 44243           http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=44243&view=rev 			 Author:   marclaporte 			 Date:     2012-12-10 23:46:06 +0000 (Mon, 10 Dec 2012) 			 Log Message: 			 ----------- 			 PHPIDS integration: Reducing expectation of a feature which is not ready yet<commit_after><?php
// (c) Copyright 2002-2012 by authors of the Tiki Wiki CMS Groupware Project
// 
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$

function prefs_ids_list()
{
	return array(
		'ids_enabled' => array(
			'name' => tra('Intrusion Detection System'),
			'description' => tra('Use PHPIDS to check the input to pages to discover malicious requests.'),
			'type' => 'flag',
			'default' => 'n',
			'help' => 'PHPIDS',
			'tags' => array('experimental'),
			'keywords' => 'attack security rce csrf lfi exploit sqli phpids header filter security injection xss sql hacking ids directory traversal attacks injections detection intrusion ldap dt',
			'warning' => tra("This feature is not ready yet. Don't use yet unless you are a developer and are ready to help make it work. You will likely just lock yourself out of your site."),
		),
		'ids_single_threshold' => array(
			'name' => tra('Per-request maximum impact'),
			'type' => 'text',
			'filter' => 'int',
			'default' => 25,
			'tags' => array('experimental'),
			'warning' => tra("This feature is not ready yet. Don't use yet unless you are a developer and are ready to help make it work. You will likely just lock yourself out of your site."),
		),
		'ids_session_threshold' => array(
			'name' => tra('Per-session impact'),
			'type' => 'text',
			'filter' => 'int',
			'default' => 150,
			'tags' => array('experimental'),
			'warning' => tra("This feature is not ready yet. Don't use yet unless you are a developer and are ready to help make it work. You will likely just lock yourself out of your site."),
		),
	);
}

{'fraction_non_alphanumeric': 0.13754408464251364, 'fraction_numerical': 0.01923693491503687, 'mean_word_length': 3.642857142857143, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 44, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7174715', 'n_tokens_mistral': 1098, 'n_tokens_neox': 927, 'n_words': 365}