WP-Ban - Version 1.40

Version Description

Download this release

Release Info

Developer GamerZ
Plugin Icon WP-Ban
Version 1.40
Comparing to
See all releases

Code changes from version 1.31 to 1.40

Files changed (7) hide show
  1. ban-options.php +40 -39
  2. ban-preview.php +1 -1
  3. readme.html +23 -7
  4. readme.txt +2 -2
  5. wp-ban.mo +0 -0
  6. wp-ban.php +14 -23
  7. wp-ban.pot +67 -62
ban-options.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
- | WordPress 2.5 Plugin: WP-Ban 1.31 |
6
  | Copyright (c) 2008 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
@@ -139,7 +139,7 @@ if(!empty($_POST['do'])) {
139
  $text = '<font color="green">'.__('All IP Ban Stats And Total Ban Stat Reseted', 'wp-ban').'</font>';
140
  } else {
141
  $banned_stats = get_option('banned_stats');
142
- $delete_ips = $_POST['delete_ips'];
143
  foreach($delete_ips as $delete_ip) {
144
  unset($banned_stats['users'][$delete_ip]);
145
  }
@@ -244,7 +244,7 @@ switch($mode) {
244
  var default_template;
245
  switch(template) {
246
  case "message":
247
- default_template = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=<?php echo get_option('blog_charset'); ?>\" />\n<title>%SITE_NAME% - %SITE_URL%</title>\n</head>\n<body>\n<p style=\"text-align: center; font-weight: bold;\"><?php _e('You Are Banned.', 'wp-ban'); ?></p>\n</body>\n</html>";
248
  break;
249
  }
250
  document.getElementById("banned_template_" + template).value = default_template;
@@ -273,6 +273,7 @@ switch($mode) {
273
  <!-- Ban Options -->
274
  <form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
275
  <div class="wrap">
 
276
  <h2><?php _e('Ban Options', 'wp-ban'); ?></h2>
277
  <table class="form-table">
278
  <tr>
@@ -286,13 +287,13 @@ switch($mode) {
286
  <strong><?php _e('Banned IPs', 'wp-ban'); ?>:</strong><br />
287
  <?php _e('Use <strong>*</strong> for wildcards.', 'wp-ban'); ?><br />
288
  <?php _e('Start each entry on a new line.', 'wp-ban'); ?><br /><br />
289
- <?php _e('Examples:', 'wp-ban'); ?><br />
290
- <strong>&raquo;</strong> 192.168.1.100<br />
291
- <strong>&raquo;</strong> 192.168.1.*<br />
292
- <strong>&raquo;</strong> 192.168.*.*<br />
293
  </td>
294
  <td>
295
- <textarea cols="40" rows="10" name="banned_ips"><?php echo $banned_ips_display; ?></textarea>
296
  </td>
297
  </tr>
298
  <tr>
@@ -300,12 +301,12 @@ switch($mode) {
300
  <strong><?php _e('Banned IP Range', 'wp-ban'); ?>:</strong><br />
301
  <?php _e('Start each entry on a new line.', 'wp-ban'); ?><br /><br />
302
  <?php _e('Examples:', 'wp-ban'); ?><br />
303
- <strong>&raquo;</strong> 192.168.1.1-192.168.1.255<br /><br />
304
  <?php _e('Notes:', 'wp-ban'); ?><br />
305
  <strong>&raquo;</strong> <?php _e('No Wildcards Allowed.', 'wp-ban'); ?><br />
306
  </td>
307
  <td>
308
- <textarea cols="40" rows="10" name="banned_ips_range"><?php echo $banned_ips_range_display; ?></textarea>
309
  </td>
310
  </tr>
311
  <tr>
@@ -313,13 +314,13 @@ switch($mode) {
313
  <strong><?php _e('Banned Host Names', 'wp-ban'); ?>:</strong><br />
314
  <?php _e('Use <strong>*</strong> for wildcards', 'wp-ban'); ?>.<br />
315
  <?php _e('Start each entry on a new line.', 'wp-ban'); ?><br /><br />
316
- <?php _e('Examples:', 'wp-ban'); ?><br />
317
- <strong>&raquo;</strong> *.sg<br />
318
- <strong>&raquo;</strong> *.cn<br />
319
- <strong>&raquo;</strong> *.th<br />
320
  </td>
321
  <td>
322
- <textarea cols="40" rows="10" name="banned_hosts"><?php echo $banned_hosts_display; ?></textarea>
323
  </td>
324
  </tr>
325
  <tr>
@@ -328,12 +329,12 @@ switch($mode) {
328
  <?php _e('Use <strong>*</strong> for wildcards', 'wp-ban'); ?>.<br />
329
  <?php _e('Start each entry on a new line.', 'wp-ban'); ?><br /><br />
330
  <?php _e('Examples:', 'wp-ban'); ?><br />
331
- <strong>&raquo;</strong> http://*.blogspot.com<br /><br />
332
  <?php _e('Notes:', 'wp-ban'); ?><br />
333
  <strong>&raquo;</strong> <?php _e('There are ways to bypass this method of banning.', 'wp-ban'); ?>
334
  </td>
335
  <td>
336
- <textarea cols="40" rows="10" name="banned_referers"><?php echo $banned_referers_display; ?></textarea>
337
  </td>
338
  </tr>
339
  <tr>
@@ -341,15 +342,15 @@ switch($mode) {
341
  <strong><?php _e('Banned User Agents', 'wp-ban'); ?>:</strong><br />
342
  <?php _e('Use <strong>*</strong> for wildcards', 'wp-ban'); ?>.<br />
343
  <?php _e('Start each entry on a new line.', 'wp-ban'); ?><br /><br />
344
- <?php _e('Examples:', 'wp-ban'); ?><br />
345
- <strong>&raquo;</strong> EmailSiphon*<br />
346
- <strong>&raquo;</strong> LMQueueBot*<br />
347
- <strong>&raquo;</strong> ContactBot*<br /><br />
348
  <?php _e('Suggestions:', 'wp-ban'); ?><br />
349
  <strong>&raquo;</strong> <?php _e('See <a href="http://www.user-agents.org/">http://www.user-agents.org/</a>', 'wp-ban'); ?>
350
  </td>
351
  <td>
352
- <textarea cols="40" rows="10" name="banned_user_agents"><?php echo $banned_user_agents_display; ?></textarea>
353
  </td>
354
  </tr>
355
  <tr>
@@ -357,25 +358,25 @@ switch($mode) {
357
  <strong><?php _e('Banned Exclude IPs', 'wp-ban'); ?>:</strong><br />
358
  <?php _e('Start each entry on a new line.', 'wp-ban'); ?><br /><br />
359
  <?php _e('Examples:', 'wp-ban'); ?><br />
360
- <strong>&raquo;</strong> 192.168.1.100<br /><br />
361
  <?php _e('Notes:', 'wp-ban'); ?><br />
362
  <strong>&raquo;</strong> <?php _e('No Wildcards Allowed.', 'wp-ban'); ?><br />
363
  <strong>&raquo;</strong> <?php _e('These Users Will Not Get Banned.', 'wp-ban'); ?>
364
  </td>
365
  <td>
366
- <textarea cols="40" rows="10" name="banned_exclude_ips"><?php echo $banned_exclude_ips_display; ?></textarea>
367
  </td>
368
  </tr>
369
  <tr>
370
  <td valign="top">
371
  <strong><?php _e('Banned Message', 'wp-ban'); ?>:</strong><br /><br /><br />
372
- <?php _e('Allowed Variables:', 'wp-ban'); ?><br />
373
- - %SITE_NAME%<br />
374
- - %SITE_URL%<br />
375
- - %USER_ATTEMPTS_COUNT%<br />
376
- - %USER_IP%<br />
377
- - %USER_HOSTNAME%<br />
378
- - %TOTAL_ATTEMPTS_COUNT%<br /><br />
379
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-ban'); ?>" onclick="banned_default_templates('message');" class="button" /><br /><br />
380
  <input type="button" name="RestoreDefault" value="<?php _e('Preview Banned Message', 'wp-ban'); ?>" onclick="preview_bannedmessage();" class="button" /><br />
381
  </td>
@@ -393,13 +394,13 @@ switch($mode) {
393
 
394
  <form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
395
  <div class="wrap">
396
- <h2><?php _e('Ban Stats', 'wp-ban'); ?></h2>
397
  <br style="clear" />
398
  <table class="widefat">
399
  <thead>
400
  <tr>
401
- <th width="40%"><?php _e('IPs', 'wp-ban'); ?></th>
402
- <th width="30%"><?php _e('Attempts', 'wp-ban'); ?></th>
403
  <th width="30%"><input type="checkbox" id="toogle_checkbox" name="toogle_checkbox" value="1" onclick="toggle_checkbox();" />&nbsp;<label for="toogle_checkbox"><?php _e('Action', 'wp-ban'); ?></label></th>
404
  </tr>
405
  </thead>
@@ -417,7 +418,7 @@ switch($mode) {
417
  echo "<tr$style>\n";
418
  echo "<td style=\"text-align: center;\">$key</td>\n";
419
  echo "<td style=\"text-align: center;\">".number_format_i18n(intval($value))."</td>\n";
420
- echo "<td><input type=\"checkbox\" id=\"ban-$i\" name=\"delete_ips[]\" value=\"$key\" />&nbsp;<label for=\"ban-$i\">Reset this IP ban stat?</label></td>\n";
421
  echo '</tr>'."\n";
422
  $i++;
423
  }
@@ -441,15 +442,15 @@ switch($mode) {
441
  <!-- Uninstall WP-Ban -->
442
  <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
443
  <div class="wrap">
444
- <h2><?php _e('Uninstall WP-Ban', 'wp-ban'); ?></h2>
445
- <p style="text-align: left;">
446
  <?php _e('Deactivating WP-Ban plugin does not remove any data that may have been created, such as the ban options. To completely remove this plugin, you can uninstall it here.', 'wp-ban'); ?>
447
  </p>
448
- <p style="text-align: left; color: red">
449
  <strong><?php _e('WARNING:', 'wp-ban'); ?></strong><br />
450
  <?php _e('Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first.', 'wp-ban'); ?>
451
  </p>
452
- <p style="text-align: left; color: red">
453
  <strong><?php _e('The following WordPress Options will be DELETED:', 'wp-ban'); ?></strong><br />
454
  </p>
455
  <table class="widefat">
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
+ | WordPress 2.6 Plugin: WP-Ban 1.40 |
6
  | Copyright (c) 2008 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
139
  $text = '<font color="green">'.__('All IP Ban Stats And Total Ban Stat Reseted', 'wp-ban').'</font>';
140
  } else {
141
  $banned_stats = get_option('banned_stats');
142
+ $delete_ips = (array) $_POST['delete_ips'];
143
  foreach($delete_ips as $delete_ip) {
144
  unset($banned_stats['users'][$delete_ip]);
145
  }
244
  var default_template;
245
  switch(template) {
246
  case "message":
247
+ default_template = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" <?php echo str_replace('"', '\"', get_language_attributes()); ?>>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=<?php echo get_option('blog_charset'); ?>\" />\n<title>%SITE_NAME% - %SITE_URL%</title>\n</head>\n<body>\n<p style=\"text-align: center; font-weight: bold;\"><?php _e('You Are Banned.', 'wp-ban'); ?></p>\n</body>\n</html>";
248
  break;
249
  }
250
  document.getElementById("banned_template_" + template).value = default_template;
273
  <!-- Ban Options -->
274
  <form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
275
  <div class="wrap">
276
+ <?php screen_icon(); ?>
277
  <h2><?php _e('Ban Options', 'wp-ban'); ?></h2>
278
  <table class="form-table">
279
  <tr>
287
  <strong><?php _e('Banned IPs', 'wp-ban'); ?>:</strong><br />
288
  <?php _e('Use <strong>*</strong> for wildcards.', 'wp-ban'); ?><br />
289
  <?php _e('Start each entry on a new line.', 'wp-ban'); ?><br /><br />
290
+ <?php _e('Examples:', 'wp-ban'); ?>
291
+ <p style="margin: 2px 0"><strong>&raquo;</strong> <span dir="ltr">192.168.1.100</span></p>
292
+ <p style="margin: 2px 0"><strong>&raquo;</strong> <span dir="ltr">192.168.1.*</span></p>
293
+ <p style="margin: 2px 0"><strong>&raquo;</strong> <span dir="ltr">192.168.*.*</span></p>
294
  </td>
295
  <td>
296
+ <textarea cols="40" rows="10" name="banned_ips" dir="ltr"><?php echo $banned_ips_display; ?></textarea>
297
  </td>
298
  </tr>
299
  <tr>
301
  <strong><?php _e('Banned IP Range', 'wp-ban'); ?>:</strong><br />
302
  <?php _e('Start each entry on a new line.', 'wp-ban'); ?><br /><br />
303
  <?php _e('Examples:', 'wp-ban'); ?><br />
304
+ <strong>&raquo;</strong> <span dir="ltr">192.168.1.1-192.168.1.255</span><br /><br />
305
  <?php _e('Notes:', 'wp-ban'); ?><br />
306
  <strong>&raquo;</strong> <?php _e('No Wildcards Allowed.', 'wp-ban'); ?><br />
307
  </td>
308
  <td>
309
+ <textarea cols="40" rows="10" name="banned_ips_range" dir="ltr"><?php echo $banned_ips_range_display; ?></textarea>
310
  </td>
311
  </tr>
312
  <tr>
314
  <strong><?php _e('Banned Host Names', 'wp-ban'); ?>:</strong><br />
315
  <?php _e('Use <strong>*</strong> for wildcards', 'wp-ban'); ?>.<br />
316
  <?php _e('Start each entry on a new line.', 'wp-ban'); ?><br /><br />
317
+ <?php _e('Examples:', 'wp-ban'); ?>
318
+ <p style="margin: 2px 0"><strong>&raquo;</strong> <span dir="ltr">*.sg</span></p>
319
+ <p style="margin: 2px 0"><strong>&raquo;</strong> <span dir="ltr">*.cn</span></p>
320
+ <p style="margin: 2px 0"><strong>&raquo;</strong> <span dir="ltr">*.th</span></p>
321
  </td>
322
  <td>
323
+ <textarea cols="40" rows="10" name="banned_hosts" dir="ltr"><?php echo $banned_hosts_display; ?></textarea>
324
  </td>
325
  </tr>
326
  <tr>
329
  <?php _e('Use <strong>*</strong> for wildcards', 'wp-ban'); ?>.<br />
330
  <?php _e('Start each entry on a new line.', 'wp-ban'); ?><br /><br />
331
  <?php _e('Examples:', 'wp-ban'); ?><br />
332
+ <strong>&raquo;</strong> <span dir="ltr">http://*.blogspot.com</span><br /><br />
333
  <?php _e('Notes:', 'wp-ban'); ?><br />
334
  <strong>&raquo;</strong> <?php _e('There are ways to bypass this method of banning.', 'wp-ban'); ?>
335
  </td>
336
  <td>
337
+ <textarea cols="40" rows="10" name="banned_referers" dir="ltr"><?php echo $banned_referers_display; ?></textarea>
338
  </td>
339
  </tr>
340
  <tr>
342
  <strong><?php _e('Banned User Agents', 'wp-ban'); ?>:</strong><br />
343
  <?php _e('Use <strong>*</strong> for wildcards', 'wp-ban'); ?>.<br />
344
  <?php _e('Start each entry on a new line.', 'wp-ban'); ?><br /><br />
345
+ <?php _e('Examples:', 'wp-ban'); ?>
346
+ <p style="margin: 2px 0"><strong>&raquo;</strong> <span dir="ltr">EmailSiphon*</span></p>
347
+ <p style="margin: 2px 0"><strong>&raquo;</strong> <span dir="ltr">LMQueueBot*</span></p>
348
+ <p style="margin: 2px 0"><strong>&raquo;</strong> <span dir="ltr">ContactBot*</span></p>
349
  <?php _e('Suggestions:', 'wp-ban'); ?><br />
350
  <strong>&raquo;</strong> <?php _e('See <a href="http://www.user-agents.org/">http://www.user-agents.org/</a>', 'wp-ban'); ?>
351
  </td>
352
  <td>
353
+ <textarea cols="40" rows="10" name="banned_user_agents" dir="ltr"><?php echo $banned_user_agents_display; ?></textarea>
354
  </td>
355
  </tr>
356
  <tr>
358
  <strong><?php _e('Banned Exclude IPs', 'wp-ban'); ?>:</strong><br />
359
  <?php _e('Start each entry on a new line.', 'wp-ban'); ?><br /><br />
360
  <?php _e('Examples:', 'wp-ban'); ?><br />
361
+ <strong>&raquo;</strong> <span dir="ltr">192.168.1.100</span><br /><br />
362
  <?php _e('Notes:', 'wp-ban'); ?><br />
363
  <strong>&raquo;</strong> <?php _e('No Wildcards Allowed.', 'wp-ban'); ?><br />
364
  <strong>&raquo;</strong> <?php _e('These Users Will Not Get Banned.', 'wp-ban'); ?>
365
  </td>
366
  <td>
367
+ <textarea cols="40" rows="10" name="banned_exclude_ips" dir="ltr"><?php echo $banned_exclude_ips_display; ?></textarea>
368
  </td>
369
  </tr>
370
  <tr>
371
  <td valign="top">
372
  <strong><?php _e('Banned Message', 'wp-ban'); ?>:</strong><br /><br /><br />
373
+ <?php _e('Allowed Variables:', 'wp-ban'); ?>
374
+ <p style="margin: 2px 0">- %SITE_NAME%</p>
375
+ <p style="margin: 2px 0">- %SITE_URL%</p>
376
+ <p style="margin: 2px 0">- %USER_ATTEMPTS_COUNT%</p>
377
+ <p style="margin: 2px 0">- %USER_IP%<br />
378
+ <p style="margin: 2px 0">- %USER_HOSTNAME%<br />
379
+ <p style="margin: 2px 0">- %TOTAL_ATTEMPTS_COUNT%</p><br />
380
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-ban'); ?>" onclick="banned_default_templates('message');" class="button" /><br /><br />
381
  <input type="button" name="RestoreDefault" value="<?php _e('Preview Banned Message', 'wp-ban'); ?>" onclick="preview_bannedmessage();" class="button" /><br />
382
  </td>
394
 
395
  <form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
396
  <div class="wrap">
397
+ <h3><?php _e('Ban Stats', 'wp-ban'); ?></h3>
398
  <br style="clear" />
399
  <table class="widefat">
400
  <thead>
401
  <tr>
402
+ <th width="40%" style="text-align: center;"><?php _e('IPs', 'wp-ban'); ?></th>
403
+ <th width="30%" style="text-align: center;"><?php _e('Attempts', 'wp-ban'); ?></th>
404
  <th width="30%"><input type="checkbox" id="toogle_checkbox" name="toogle_checkbox" value="1" onclick="toggle_checkbox();" />&nbsp;<label for="toogle_checkbox"><?php _e('Action', 'wp-ban'); ?></label></th>
405
  </tr>
406
  </thead>
418
  echo "<tr$style>\n";
419
  echo "<td style=\"text-align: center;\">$key</td>\n";
420
  echo "<td style=\"text-align: center;\">".number_format_i18n(intval($value))."</td>\n";
421
+ echo "<td><input type=\"checkbox\" id=\"ban-$i\" name=\"delete_ips[]\" value=\"$key\" />&nbsp;<label for=\"ban-$i\">".__('Reset this IP ban stat?', 'wp-ban')."</label></td>\n";
422
  echo '</tr>'."\n";
423
  $i++;
424
  }
442
  <!-- Uninstall WP-Ban -->
443
  <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
444
  <div class="wrap">
445
+ <h3><?php _e('Uninstall WP-Ban', 'wp-ban'); ?></h3>
446
+ <p>
447
  <?php _e('Deactivating WP-Ban plugin does not remove any data that may have been created, such as the ban options. To completely remove this plugin, you can uninstall it here.', 'wp-ban'); ?>
448
  </p>
449
+ <p style="color: red">
450
  <strong><?php _e('WARNING:', 'wp-ban'); ?></strong><br />
451
  <?php _e('Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first.', 'wp-ban'); ?>
452
  </p>
453
+ <p style="color: red">
454
  <strong><?php _e('The following WordPress Options will be DELETED:', 'wp-ban'); ?></strong><br />
455
  </p>
456
  <table class="widefat">
ban-preview.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
- | WordPress 2.5 Plugin: WP-Ban 1.31 |
6
  | Copyright (c) 2008 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
+ | WordPress 2.6 Plugin: WP-Ban 1.40 |
6
  | Copyright (c) 2008 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
readme.html CHANGED
@@ -1,8 +1,8 @@
1
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
- <html>
3
  <head>
4
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
5
- <title>WP-Ban 1.31 Readme</title>
6
  <style type="text/css" media="screen">
7
  /* Default Style */
8
  BODY {
@@ -203,7 +203,7 @@
203
  <body>
204
  <div id="Container">
205
  <!-- Title -->
206
- <div id="Title">WP-Ban 1.31&nbsp;&nbsp;&nbsp;<span style="color: #aaaaaa;">Readme</span></div>
207
 
208
  <!-- Tabs -->
209
  <ul id="Tabs">
@@ -234,7 +234,9 @@
234
  </p>
235
  <p>
236
  <strong>Download:</strong><br />
237
- <strong>&raquo;</strong> <a href="http://downloads.wordpress.org/plugin/wp-ban.1.31.zip" title="http://downloads.wordpress.org/plugin/wp-ban.1.31.zip">WP-Ban 1.31 For WordPress 2.1.x And Above</a><br />
 
 
238
  <strong>&raquo;</strong> <a href="http://downloads.wordpress.org/plugin/wp-ban.1.00.zip" title="http://downloads.wordpress.org/plugin/wp-ban.1.00.zip">WP-Ban 1.00 For WordPress 2.0.x</a><br />
239
  </p>
240
  <p>
@@ -257,6 +259,10 @@
257
  <strong>Support Forums:</strong><br />
258
  <strong>&raquo;</strong> <a href="http://forums.lesterchan.net/index.php?board=10.0" title="http://forums.lesterchan.net/index.php?board=10.0">http://forums.lesterchan.net/index.php?board=10.0</a>
259
  </p>
 
 
 
 
260
  <p>
261
  <strong>Note:</strong><br />
262
  <strong>&raquo;</strong> The <strong>Changelog</strong>, <strong>Installation</strong>, <strong>Upgrade</strong>, <strong>Usage</strong> Tab at the top of the page.<br />
@@ -276,6 +282,16 @@
276
  <div id="Changelog" style="display: none;">
277
  <div class="SubTitle">&raquo; Changelog</div>
278
  <ul>
 
 
 
 
 
 
 
 
 
 
279
  <li>
280
  <strong>Version 1.31 (16-07-2008)</strong>
281
  <ul>
@@ -354,7 +370,7 @@
354
  <!-- Upgrade Instructions -->
355
  <div id="Upgrade" style="display: none;">
356
  <div class="SubTitle">&raquo; Upgrade Instructions</div>
357
- <div class="SubSubTitle">From v1.0x To v1.31</div>
358
  <ol>
359
  <li>
360
  <strong>Deactivate</strong> WP-Ban Plugin
@@ -387,7 +403,7 @@
387
  <div class="SubSubTitle">General Usage</div>
388
  <ol>
389
  <li>
390
- Go to '<strong>WP-Admin -> Manage -> Ban</strong>'
391
  </li>
392
  <li>
393
  Configure your ban options
@@ -396,6 +412,6 @@
396
  </div>
397
  </div>
398
  </div>
399
- <p id="Copyright">WP-Ban 1.31<br />Copyright &copy; 2008 Lester 'GaMerZ' Chan. All Rights Reserved.</p>
400
  </body>
401
  </html>
1
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
  <head>
4
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
5
+ <title>WP-Ban 1.40 Readme</title>
6
  <style type="text/css" media="screen">
7
  /* Default Style */
8
  BODY {
203
  <body>
204
  <div id="Container">
205
  <!-- Title -->
206
+ <div id="Title">WP-Ban 1.40&nbsp;&nbsp;&nbsp;<span style="color: #aaaaaa;">Readme</span></div>
207
 
208
  <!-- Tabs -->
209
  <ul id="Tabs">
234
  </p>
235
  <p>
236
  <strong>Download:</strong><br />
237
+ <strong>&raquo;</strong> <a href="http://downloads.wordpress.org/plugin/wp-ban.1.40.zip" title="http://downloads.wordpress.org/plugin/wp-ban.1.40.zip">WP-Ban 1.40 For WordPress 2.7.x</a><br />
238
+ <strong>&raquo;</strong> <a href="http://downloads.wordpress.org/plugin/wp-ban.1.31.zip" title="http://downloads.wordpress.org/plugin/wp-ban.1.31.zip">WP-Ban 1.31 For WordPress 2.5.x And 2.6.x</a><br />
239
+ <strong>&raquo;</strong> <a href="http://downloads.wordpress.org/plugin/wp-ban.1.20.zip" title="http://downloads.wordpress.org/plugin/wp-ban.1.20.zip">WP-Ban 1.20 For WordPress 2.1.x To WordPress 2.3.x</a><br />
240
  <strong>&raquo;</strong> <a href="http://downloads.wordpress.org/plugin/wp-ban.1.00.zip" title="http://downloads.wordpress.org/plugin/wp-ban.1.00.zip">WP-Ban 1.00 For WordPress 2.0.x</a><br />
241
  </p>
242
  <p>
259
  <strong>Support Forums:</strong><br />
260
  <strong>&raquo;</strong> <a href="http://forums.lesterchan.net/index.php?board=10.0" title="http://forums.lesterchan.net/index.php?board=10.0">http://forums.lesterchan.net/index.php?board=10.0</a>
261
  </p>
262
+ <p>
263
+ <strong>Credits:</strong><br />
264
+ <strong>&raquo;</strong> Right To Left Language Support by <a href="http://persian-programming.com/" title="http://persian-programming.com/">Kambiz R. Khojasteh</a>.
265
+ </p>
266
  <p>
267
  <strong>Note:</strong><br />
268
  <strong>&raquo;</strong> The <strong>Changelog</strong>, <strong>Installation</strong>, <strong>Upgrade</strong>, <strong>Usage</strong> Tab at the top of the page.<br />
282
  <div id="Changelog" style="display: none;">
283
  <div class="SubTitle">&raquo; Changelog</div>
284
  <ul>
285
+ <li>
286
+ <strong>Version 1.40 (12-12-2008)</strong>
287
+ <ul>
288
+ <li>NEW: Works With WordPress 2.7 Only</li>
289
+ <li>NEW: Changed Ban Admin Setting Location To 'WP-Admin -> Settings -> Ban'</li>
290
+ <li>NEW: Right To Left Language Support by <a href="http://persian-programming.com/" title="http://persian-programming.com/">Kambiz R. Khojasteh</a></li>
291
+ <li>NEW: Called ban_textdomain() In ban_init() by <a href="http://persian-programming.com/" title="http://persian-programming.com/">Kambiz R. Khojasteh</a><li>
292
+ <li>NEW: Use language_attributes() To Get Attributes Of HTML Tag For Default Template by <a href="http://persian-programming.com/" title="http://persian-programming.com/">Kambiz R. Khojasteh</a></li>
293
+ </ul>
294
+ </li>
295
  <li>
296
  <strong>Version 1.31 (16-07-2008)</strong>
297
  <ul>
370
  <!-- Upgrade Instructions -->
371
  <div id="Upgrade" style="display: none;">
372
  <div class="SubTitle">&raquo; Upgrade Instructions</div>
373
+ <div class="SubSubTitle">From v1.0x To v1.40</div>
374
  <ol>
375
  <li>
376
  <strong>Deactivate</strong> WP-Ban Plugin
403
  <div class="SubSubTitle">General Usage</div>
404
  <ol>
405
  <li>
406
+ Go to '<strong>WP-Admin -> Settings -> Ban</strong>'
407
  </li>
408
  <li>
409
  Configure your ban options
412
  </div>
413
  </div>
414
  </div>
415
+ <p id="Copyright">WP-Ban 1.40<br />Copyright &copy; 2008 Lester 'GaMerZ' Chan. All Rights Reserved.</p>
416
  </body>
417
  </html>
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: GamerZ
3
  Donate link: http://lesterchan.net/wordpress
4
  Tags: banned, ban, deny, denied, permission, ip, hostname, host, spam, bots, bot, exclude, referer, url, referral, range
5
- Requires at least: 2.5.0
6
- Stable tag: 1.31
7
 
8
  Ban users by IP, IP Range, host name and referer url from visiting your WordPress's blog.
9
 
2
  Contributors: GamerZ
3
  Donate link: http://lesterchan.net/wordpress
4
  Tags: banned, ban, deny, denied, permission, ip, hostname, host, spam, bots, bot, exclude, referer, url, referral, range
5
+ Requires at least: 2.7
6
+ Stable tag: 1.40
7
 
8
  Ban users by IP, IP Range, host name and referer url from visiting your WordPress's blog.
9
 
wp-ban.mo CHANGED
Binary file
wp-ban.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP-Ban
4
  Plugin URI: http://lesterchan.net/portfolio/programming/php/
5
  Description: Ban users by IP, IP Range, host name, user agent and referer url from visiting your WordPress's blog. It will display a custom ban message when the banned IP, IP range, host name, user agent or referer url tries to visit you blog. You can also exclude certain IPs from being banned. There will be statistics recordered on how many times they attemp to visit your blog. It allows wildcard matching too.
6
- Version: 1.31
7
  Author: Lester 'GaMerZ' Chan
8
  Author URI: http://lesterchan.net
9
  */
@@ -28,29 +28,10 @@ Author URI: http://lesterchan.net
28
  */
29
 
30
 
31
- ### Use WordPress 2.6 Constants
32
- if (!defined('WP_CONTENT_DIR')) {
33
- define( 'WP_CONTENT_DIR', ABSPATH.'wp-content');
34
- }
35
- if (!defined('WP_CONTENT_URL')) {
36
- define('WP_CONTENT_URL', get_option('siteurl').'/wp-content');
37
- }
38
- if (!defined('WP_PLUGIN_DIR')) {
39
- define('WP_PLUGIN_DIR', WP_CONTENT_DIR.'/plugins');
40
- }
41
- if (!defined('WP_PLUGIN_URL')) {
42
- define('WP_PLUGIN_URL', WP_CONTENT_URL.'/plugins');
43
- }
44
-
45
-
46
  ### Create Text Domain For Translation
47
  add_action('init', 'ban_textdomain');
48
  function ban_textdomain() {
49
- if (!function_exists('wp_print_styles')) {
50
- load_plugin_textdomain('wp-ban', 'wp-content/plugins/wp-ban');
51
- } else {
52
- load_plugin_textdomain('wp-ban', false, 'wp-ban');
53
- }
54
  }
55
 
56
 
@@ -58,7 +39,7 @@ function ban_textdomain() {
58
  add_action('admin_menu', 'ban_menu');
59
  function ban_menu() {
60
  if (function_exists('add_management_page')) {
61
- add_management_page(__('Ban', 'wp-ban'), __('Ban', 'wp-ban'), 'manage_options', 'wp-ban/ban-options.php');
62
  }
63
  }
64
 
@@ -223,11 +204,21 @@ function is_admin_user_agent($check) {
223
  return ereg("^$regexp$", $_SERVER['HTTP_USER_AGENT']);
224
  }
225
 
 
 
 
 
 
 
 
 
 
226
 
227
  ### Function: Create Ban Options
228
  add_action('activate_wp-ban/wp-ban.php', 'ban_init');
229
  function ban_init() {
230
  global $wpdb;
 
231
  $banned_ips = array();
232
  $banned_ips_range = array();
233
  $banned_hosts = array();
@@ -238,7 +229,7 @@ function ban_init() {
238
  add_option('banned_hosts', $banned_hosts, 'Banned Hosts');
239
  add_option('banned_stats', $banned_stats, 'WP-Ban Stats');
240
  add_option('banned_message', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n".
241
- '<html xmlns="http://www.w3.org/1999/xhtml">'."\n".
242
  '<head>'."\n".
243
  '<meta http-equiv="Content-Type" content="text/html; charset='.get_option('blog_charset').'" />'."\n".
244
  '<title>%SITE_NAME% - %SITE_URL%</title>'."\n".
3
  Plugin Name: WP-Ban
4
  Plugin URI: http://lesterchan.net/portfolio/programming/php/
5
  Description: Ban users by IP, IP Range, host name, user agent and referer url from visiting your WordPress's blog. It will display a custom ban message when the banned IP, IP range, host name, user agent or referer url tries to visit you blog. You can also exclude certain IPs from being banned. There will be statistics recordered on how many times they attemp to visit your blog. It allows wildcard matching too.
6
+ Version: 1.40
7
  Author: Lester 'GaMerZ' Chan
8
  Author URI: http://lesterchan.net
9
  */
28
  */
29
 
30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  ### Create Text Domain For Translation
32
  add_action('init', 'ban_textdomain');
33
  function ban_textdomain() {
34
+ load_plugin_textdomain('wp-ban', false, 'wp-ban');
 
 
 
 
35
  }
36
 
37
 
39
  add_action('admin_menu', 'ban_menu');
40
  function ban_menu() {
41
  if (function_exists('add_management_page')) {
42
+ add_options_page(__('Ban', 'wp-ban'), __('Ban', 'wp-ban'), 'manage_options', 'wp-ban/ban-options.php');
43
  }
44
  }
45
 
204
  return ereg("^$regexp$", $_SERVER['HTTP_USER_AGENT']);
205
  }
206
 
207
+ ### Function: Returns page's language attributes depends on WordPress language
208
+ function get_language_attributes($doctype = 'html') {
209
+ ob_start();
210
+ language_attributes();
211
+ $language_attributes = ob_get_contents();
212
+ ob_end_clean();
213
+ return $language_attributes;
214
+ }
215
+
216
 
217
  ### Function: Create Ban Options
218
  add_action('activate_wp-ban/wp-ban.php', 'ban_init');
219
  function ban_init() {
220
  global $wpdb;
221
+ ban_textdomain();
222
  $banned_ips = array();
223
  $banned_ips_range = array();
224
  $banned_hosts = array();
229
  add_option('banned_hosts', $banned_hosts, 'Banned Hosts');
230
  add_option('banned_stats', $banned_stats, 'WP-Ban Stats');
231
  add_option('banned_message', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n".
232
+ '<html xmlns="http://www.w3.org/1999/xhtml" '.get_language_attributes().'>'."\n".
233
  '<head>'."\n".
234
  '<meta http-equiv="Content-Type" content="text/html; charset='.get_option('blog_charset').'" />'."\n".
235
  '<title>%SITE_NAME% - %SITE_URL%</title>'."\n".
wp-ban.pot CHANGED
@@ -1,18 +1,19 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: WP-Ban 1.31\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2008-07-15 15:17+0800\n"
6
- "PO-Revision-Date: 2008-07-15 15:18+0800\n"
7
  "Last-Translator: Lester Chan <lesterchan@gmail.com>\n"
8
- "Language-Team: Lester Chan <gamerz84@hotmail.com>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "X-Poedit-Language: English\n"
13
  "X-Poedit-Country: SINGAPORE\n"
14
- "X-Poedit-KeywordsList: __;_e\n"
15
  "X-Poedit-Basepath: .\n"
 
16
  "X-Poedit-SearchPath-0: .\n"
17
 
18
  #: ban-options.php:51
@@ -41,27 +42,27 @@ msgid "This User Agent '%s' Is Used By The Current Admin And Will Not Be Added T
41
  msgstr ""
42
 
43
  #: ban-options.php:113
44
- #: ban-options.php:286
45
  msgid "Banned IPs"
46
  msgstr ""
47
 
48
  #: ban-options.php:114
49
- #: ban-options.php:300
50
  msgid "Banned IP Range"
51
  msgstr ""
52
 
53
  #: ban-options.php:115
54
- #: ban-options.php:313
55
  msgid "Banned Host Names"
56
  msgstr ""
57
 
58
  #: ban-options.php:116
59
- #: ban-options.php:327
60
  msgid "Banned Referers"
61
  msgstr ""
62
 
63
  #: ban-options.php:117
64
- #: ban-options.php:341
65
  msgid "Banned User Agents"
66
  msgstr ""
67
 
@@ -70,7 +71,7 @@ msgid "Banned Excluded IPs"
70
  msgstr ""
71
 
72
  #: ban-options.php:119
73
- #: ban-options.php:371
74
  msgid "Banned Message"
75
  msgstr ""
76
 
@@ -83,7 +84,7 @@ msgid "No Ban Option Updated"
83
  msgstr ""
84
 
85
  #: ban-options.php:135
86
- #: ban-options.php:436
87
  msgid "Reset Ban Stats"
88
  msgstr ""
89
 
@@ -96,7 +97,7 @@ msgid "Selected IP Ban Stats Reseted"
96
  msgstr ""
97
 
98
  #: ban-options.php:151
99
- #: ban-options.php:476
100
  msgid "UNINSTALL WP-Ban"
101
  msgstr ""
102
 
@@ -111,7 +112,7 @@ msgid "Error deleting Setting Key '%s'."
111
  msgstr ""
112
 
113
  #: ban-options.php:185
114
- #: ban-options.php:444
115
  msgid "Uninstall WP-Ban"
116
  msgstr ""
117
 
@@ -121,34 +122,25 @@ msgid "<a href=\"%s\">Click Here</a> To Finish The Uninstallation And WP-Ban Wil
121
  msgstr ""
122
 
123
  #: ban-options.php:247
124
- #: wp-ban.php:247
125
  msgid "You Are Banned."
126
  msgstr ""
127
 
128
- #: ban-options.php:276
129
  msgid "Ban Options"
130
  msgstr ""
131
 
132
- #: ban-options.php:280
133
  #, php-format
134
  msgid "Your IP is: <strong>%s</strong><br />Your Host Name is: <strong>%s</strong><br />Your Site URL is: <strong>%s</strong>"
135
  msgstr ""
136
 
137
- #: ban-options.php:281
138
  msgid "Please <strong>DO NOT</strong> ban yourself."
139
  msgstr ""
140
 
141
- #: ban-options.php:287
142
- msgid "Use <strong>*</strong> for wildcards."
143
- msgstr ""
144
-
145
  #: ban-options.php:288
146
- #: ban-options.php:301
147
- #: ban-options.php:315
148
- #: ban-options.php:329
149
- #: ban-options.php:343
150
- #: ban-options.php:358
151
- msgid "Start each entry on a new line."
152
  msgstr ""
153
 
154
  #: ban-options.php:289
@@ -157,123 +149,136 @@ msgstr ""
157
  #: ban-options.php:330
158
  #: ban-options.php:344
159
  #: ban-options.php:359
160
- msgid "Examples:"
161
  msgstr ""
162
 
163
- #: ban-options.php:304
164
- #: ban-options.php:332
165
- #: ban-options.php:361
166
- msgid "Notes:"
 
 
 
167
  msgstr ""
168
 
169
  #: ban-options.php:305
 
170
  #: ban-options.php:362
 
 
 
 
 
171
  msgid "No Wildcards Allowed."
172
  msgstr ""
173
 
174
- #: ban-options.php:314
175
- #: ban-options.php:328
176
- #: ban-options.php:342
177
  msgid "Use <strong>*</strong> for wildcards"
178
  msgstr ""
179
 
180
- #: ban-options.php:333
181
  msgid "There are ways to bypass this method of banning."
182
  msgstr ""
183
 
184
- #: ban-options.php:348
185
  msgid "Suggestions:"
186
  msgstr ""
187
 
188
- #: ban-options.php:349
189
  msgid "See <a href=\"http://www.user-agents.org/\">http://www.user-agents.org/</a>"
190
  msgstr ""
191
 
192
- #: ban-options.php:357
193
  msgid "Banned Exclude IPs"
194
  msgstr ""
195
 
196
- #: ban-options.php:363
197
  msgid "These Users Will Not Get Banned."
198
  msgstr ""
199
 
200
- #: ban-options.php:372
201
  msgid "Allowed Variables:"
202
  msgstr ""
203
 
204
- #: ban-options.php:379
205
  msgid "Restore Default Template"
206
  msgstr ""
207
 
208
- #: ban-options.php:380
209
  msgid "Preview Banned Message"
210
  msgstr ""
211
 
212
- #: ban-options.php:388
213
  msgid "Save Changes"
214
  msgstr ""
215
 
216
- #: ban-options.php:396
217
  msgid "Ban Stats"
218
  msgstr ""
219
 
220
- #: ban-options.php:401
221
  msgid "IPs"
222
  msgstr ""
223
 
224
- #: ban-options.php:402
225
  msgid "Attempts"
226
  msgstr ""
227
 
228
- #: ban-options.php:403
229
  msgid "Action"
230
  msgstr ""
231
 
232
- #: ban-options.php:426
 
 
 
 
233
  msgid "No Attempts"
234
  msgstr ""
235
 
236
- #: ban-options.php:431
237
  msgid "Total Attempts:"
238
  msgstr ""
239
 
240
- #: ban-options.php:433
241
  msgid "Reset all IP ban stats and total ban stat?"
242
  msgstr ""
243
 
244
- #: ban-options.php:436
245
  msgid "You Are About To Reset Ban Stats."
246
  msgstr ""
247
 
248
- #: ban-options.php:436
249
  msgid "This Action Is Not Reversible. Are you sure?"
250
  msgstr ""
251
 
252
- #: ban-options.php:446
253
  msgid "Deactivating WP-Ban plugin does not remove any data that may have been created, such as the ban options. To completely remove this plugin, you can uninstall it here."
254
  msgstr ""
255
 
256
- #: ban-options.php:449
257
  msgid "WARNING:"
258
  msgstr ""
259
 
260
- #: ban-options.php:450
261
  msgid "Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first."
262
  msgstr ""
263
 
264
- #: ban-options.php:453
265
  msgid "The following WordPress Options will be DELETED:"
266
  msgstr ""
267
 
268
- #: ban-options.php:458
269
  msgid "WordPress Options"
270
  msgstr ""
271
 
272
- #: ban-options.php:475
273
  msgid "Yes"
274
  msgstr ""
275
 
276
- #: ban-options.php:476
277
  msgid ""
278
  "You Are About To Uninstall WP-Ban From WordPress.\\n"
279
  "This Action Is Not Reversible.\\n"
@@ -281,7 +286,7 @@ msgid ""
281
  " Choose [Cancel] To Stop, [OK] To Uninstall."
282
  msgstr ""
283
 
284
- #: wp-ban.php:61
285
  msgid "Ban"
286
  msgstr ""
287
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: WP-Ban 1.40\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2008-12-10 00:49+0800\n"
6
+ "PO-Revision-Date: 2008-12-10 00:49+0800\n"
7
  "Last-Translator: Lester Chan <lesterchan@gmail.com>\n"
8
+ "Language-Team: Lester Chan <lesterchan@gmail.com>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "X-Poedit-Language: English\n"
13
  "X-Poedit-Country: SINGAPORE\n"
14
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;__ngettext_noop:1,2\n"
15
  "X-Poedit-Basepath: .\n"
16
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
 
19
  #: ban-options.php:51
42
  msgstr ""
43
 
44
  #: ban-options.php:113
45
+ #: ban-options.php:287
46
  msgid "Banned IPs"
47
  msgstr ""
48
 
49
  #: ban-options.php:114
50
+ #: ban-options.php:301
51
  msgid "Banned IP Range"
52
  msgstr ""
53
 
54
  #: ban-options.php:115
55
+ #: ban-options.php:314
56
  msgid "Banned Host Names"
57
  msgstr ""
58
 
59
  #: ban-options.php:116
60
+ #: ban-options.php:328
61
  msgid "Banned Referers"
62
  msgstr ""
63
 
64
  #: ban-options.php:117
65
+ #: ban-options.php:342
66
  msgid "Banned User Agents"
67
  msgstr ""
68
 
71
  msgstr ""
72
 
73
  #: ban-options.php:119
74
+ #: ban-options.php:372
75
  msgid "Banned Message"
76
  msgstr ""
77
 
84
  msgstr ""
85
 
86
  #: ban-options.php:135
87
+ #: ban-options.php:437
88
  msgid "Reset Ban Stats"
89
  msgstr ""
90
 
97
  msgstr ""
98
 
99
  #: ban-options.php:151
100
+ #: ban-options.php:477
101
  msgid "UNINSTALL WP-Ban"
102
  msgstr ""
103
 
112
  msgstr ""
113
 
114
  #: ban-options.php:185
115
+ #: ban-options.php:445
116
  msgid "Uninstall WP-Ban"
117
  msgstr ""
118
 
122
  msgstr ""
123
 
124
  #: ban-options.php:247
125
+ #: wp-ban.php:238
126
  msgid "You Are Banned."
127
  msgstr ""
128
 
129
+ #: ban-options.php:277
130
  msgid "Ban Options"
131
  msgstr ""
132
 
133
+ #: ban-options.php:281
134
  #, php-format
135
  msgid "Your IP is: <strong>%s</strong><br />Your Host Name is: <strong>%s</strong><br />Your Site URL is: <strong>%s</strong>"
136
  msgstr ""
137
 
138
+ #: ban-options.php:282
139
  msgid "Please <strong>DO NOT</strong> ban yourself."
140
  msgstr ""
141
 
 
 
 
 
142
  #: ban-options.php:288
143
+ msgid "Use <strong>*</strong> for wildcards."
 
 
 
 
 
144
  msgstr ""
145
 
146
  #: ban-options.php:289
149
  #: ban-options.php:330
150
  #: ban-options.php:344
151
  #: ban-options.php:359
152
+ msgid "Start each entry on a new line."
153
  msgstr ""
154
 
155
+ #: ban-options.php:290
156
+ #: ban-options.php:303
157
+ #: ban-options.php:317
158
+ #: ban-options.php:331
159
+ #: ban-options.php:345
160
+ #: ban-options.php:360
161
+ msgid "Examples:"
162
  msgstr ""
163
 
164
  #: ban-options.php:305
165
+ #: ban-options.php:333
166
  #: ban-options.php:362
167
+ msgid "Notes:"
168
+ msgstr ""
169
+
170
+ #: ban-options.php:306
171
+ #: ban-options.php:363
172
  msgid "No Wildcards Allowed."
173
  msgstr ""
174
 
175
+ #: ban-options.php:315
176
+ #: ban-options.php:329
177
+ #: ban-options.php:343
178
  msgid "Use <strong>*</strong> for wildcards"
179
  msgstr ""
180
 
181
+ #: ban-options.php:334
182
  msgid "There are ways to bypass this method of banning."
183
  msgstr ""
184
 
185
+ #: ban-options.php:349
186
  msgid "Suggestions:"
187
  msgstr ""
188
 
189
+ #: ban-options.php:350
190
  msgid "See <a href=\"http://www.user-agents.org/\">http://www.user-agents.org/</a>"
191
  msgstr ""
192
 
193
+ #: ban-options.php:358
194
  msgid "Banned Exclude IPs"
195
  msgstr ""
196
 
197
+ #: ban-options.php:364
198
  msgid "These Users Will Not Get Banned."
199
  msgstr ""
200
 
201
+ #: ban-options.php:373
202
  msgid "Allowed Variables:"
203
  msgstr ""
204
 
205
+ #: ban-options.php:380
206
  msgid "Restore Default Template"
207
  msgstr ""
208
 
209
+ #: ban-options.php:381
210
  msgid "Preview Banned Message"
211
  msgstr ""
212
 
213
+ #: ban-options.php:389
214
  msgid "Save Changes"
215
  msgstr ""
216
 
217
+ #: ban-options.php:397
218
  msgid "Ban Stats"
219
  msgstr ""
220
 
221
+ #: ban-options.php:402
222
  msgid "IPs"
223
  msgstr ""
224
 
225
+ #: ban-options.php:403
226
  msgid "Attempts"
227
  msgstr ""
228
 
229
+ #: ban-options.php:404
230
  msgid "Action"
231
  msgstr ""
232
 
233
+ #: ban-options.php:421
234
+ msgid "Reset this IP ban stat?"
235
+ msgstr ""
236
+
237
+ #: ban-options.php:427
238
  msgid "No Attempts"
239
  msgstr ""
240
 
241
+ #: ban-options.php:432
242
  msgid "Total Attempts:"
243
  msgstr ""
244
 
245
+ #: ban-options.php:434
246
  msgid "Reset all IP ban stats and total ban stat?"
247
  msgstr ""
248
 
249
+ #: ban-options.php:437
250
  msgid "You Are About To Reset Ban Stats."
251
  msgstr ""
252
 
253
+ #: ban-options.php:437
254
  msgid "This Action Is Not Reversible. Are you sure?"
255
  msgstr ""
256
 
257
+ #: ban-options.php:447
258
  msgid "Deactivating WP-Ban plugin does not remove any data that may have been created, such as the ban options. To completely remove this plugin, you can uninstall it here."
259
  msgstr ""
260
 
261
+ #: ban-options.php:450
262
  msgid "WARNING:"
263
  msgstr ""
264
 
265
+ #: ban-options.php:451
266
  msgid "Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first."
267
  msgstr ""
268
 
269
+ #: ban-options.php:454
270
  msgid "The following WordPress Options will be DELETED:"
271
  msgstr ""
272
 
273
+ #: ban-options.php:459
274
  msgid "WordPress Options"
275
  msgstr ""
276
 
277
+ #: ban-options.php:476
278
  msgid "Yes"
279
  msgstr ""
280
 
281
+ #: ban-options.php:477
282
  msgid ""
283
  "You Are About To Uninstall WP-Ban From WordPress.\\n"
284
  "This Action Is Not Reversible.\\n"
286
  " Choose [Cancel] To Stop, [OK] To Uninstall."
287
  msgstr ""
288
 
289
+ #: wp-ban.php:42
290
  msgid "Ban"
291
  msgstr ""
292