# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
--- D:\Archive\Webserver\Drupal 6 contrib\modules\phpids\phpids.admin.inc
+++ D:\Archive\Webserver\Drupal 6 contrib\modules\phpids\phpids.admin.inc.modified
@@ -31,23 +31,48 @@
     '#description' => t('Defines temp path used by PHP-IDS. Example: /tmp/phpids'),
   );
   $form['general']['phpids_loglevel'] = array(
-    '#type' => 'textfield',
+    '#type' => 'select',
     '#title' => t('Logging impact'),
-    '#default_value' => variable_get('phpids_loglevel', 1),
+    '#options' => range(1, 30),
+    '#default_value' => variable_get('phpids_loglevel', '1'),
     '#description' => t('Impact level which must be reached to be logged by watchdog.'),
   );
   $form['general']['phpids_warnlevel'] = array(
-    '#type' => 'textfield',
+    '#type' => 'select',
     '#title' => t('Warning impact'),
-    '#default_value' => variable_get('phpids_warnlevel', 9),
+    '#options' => range(1, 30),
+    '#default_value' => variable_get('phpids_warnlevel', '9'),
     '#description' => t('Sends out mail when this level of impact is reached.'),
   );
   $form['general']['phpids_blocklevel'] = array(
-    '#type' => 'textfield',
+    '#type' => 'select',
     '#title' => t('Blocking impact'),
-    '#default_value' => variable_get('phpids_blocklevel', 27),
+    '#options' => range(1, 30),
+    '#default_value' => variable_get('phpids_blocklevel', '27'),
     '#description' => t('Redirects to a warning page after this level of impact is reached.'),
   );
+    $form['general']['phpids_log_disable'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Disable logging'),
+    '#default_value' => variable_get('phpids_log_disable', 0),
+    '#description' => t('Disable PHP-IDS logging for Blocked IP\'s. Logs can become very large during sustained attacks. Only disable logging if you are sure that PHP-IDS is not blocking legitimate visitors.'),
+  );
+  // Check Troll module is installed before displaying Troll ban form fields
+  if (is_dir(drupal_get_path('module', 'troll'))) {
+  $form['general']['phpids_troll_enable'] = array(
+      '#type' => 'checkbox',
+      '#title' => t('Enable Troll IP Banning'),
+      '#default_value' => variable_get('phpids_troll_enable', 0),
+      '#description' => t('Enable persistent IP banning via Troll module. Banned IP\'s will be denied all site access by Troll. No further Phpids scanning or logging will be done and Troll logs will only record that access has been denied.'),
+    );
+    $form['general']['phpids_troll_level'] = array(
+      '#type' => 'select',
+      '#title' => t('Troll IP Banning impact'),
+      '#options' => range(1, 40),
+      '#default_value' => variable_get('phpids_troll_level', '28'),
+      '#description' => t('Troll IP Ban is created after this level of impact is reached. Set this to a value higher than the Blocking impact to ban the worst offenders.'),
+     );
+  }
   $form['general']['phpids_mail'] = array(
     '#type' => 'textfield',
     '#title' => t('Email'),
@@ -120,7 +145,7 @@
     '#type' => 'checkbox',
     '#title' => t('Activate PHPIDS test-only mode'),
     '#default_value' => variable_get('phpids_testonly_activated', FALSE),
-    '#description' => t('When PHPIDS test-only mode is activated PHPIDS only loggs infos, warnings, alerts and does not block any user activity. So it is possible to test your PHPIDS settings.'),
\ No newline at end of file
+    '#description' => t('When PHPIDS test-only mode is activated PHPIDS only logs infos, warnings, alerts and does not block any user activity. So it is possible to test your PHPIDS settings.'),
\ No newline at end of file
   );
   $form['testonly']['phpids_testonly_withmail'] = array(
     '#type' => 'checkbox',
