Changeset 14533

Show
Ignore:
Timestamp:
06/26/07 07:33:23 (1 year ago)
Author:
GamerZ
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wp-ban/trunk/ban/ban-preview.php

    r13124 r14533  
    33+----------------------------------------------------------------+ 
    44|                                                                                                                                         | 
    5 |     WordPress 2.1 Plugin: WP-Ban 1.11                                                             | 
     5|     WordPress 2.1 Plugin: WP-Ban 1.20                                                             | 
    66|     Copyright (c) 2007 Lester "GaMerZ" Chan                                                   | 
    77|                                                                                                                                         | 
  • wp-ban/trunk/ban/ban.php

    r13811 r14533  
    44Plugin URI: http://www.lesterchan.net/portfolio/programming.php 
    55Description: Ban users by IP, IP Range, host name and referer url from visiting your WordPress's blog. It will display a custom ban message when the banned IP, IP range, host name or referer url trys 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.11 
     6Version: 1.20 
    77Author: Lester 'GaMerZ' Chan 
    88Author URI: http://www.lesterchan.net 
     
    3737function ban_menu() { 
    3838      if (function_exists('add_management_page')) { 
    39             add_management_page(__('Ban', 'wp-ban'), __('Ban', 'wp-ban'), 'manage_options', 'ban.php',  'ban_options'); 
     39            add_management_page(__('Ban', 'wp-ban'), __('Ban', 'wp-ban'), 'manage_options', 'ban/ban-options.php'); 
    4040      } 
    4141} 
     
    135135 
    136136 
    137 ### Function: Ban Options 
    138 function ban_options() { 
    139       global $wpdb, $current_user; 
    140       $admin_login = trim($current_user->user_login); 
    141       // Form Processing  
    142       if(!empty($_POST['do'])) { 
    143             switch($_POST['do']) { 
    144                   // Credits To Joe (Ttech) - http://blog.fileville.net/ 
    145                   case __('Reset Ban Stats', 'wp-ban'): 
    146                         if($_POST['reset_ban_stats'] == 'yes') { 
    147                               $banned_stats = array('users' => array(), 'count' => 0); 
    148                               update_option('banned_stats', $banned_stats); 
    149                               $text = '<font color="green">'.__('All IP Ban Stats And Total Ban Stat Reseted', 'wp-ban').'</font>'; 
    150                         } else { 
    151                               $banned_stats = get_option('banned_stats'); 
    152                               $delete_ips = $_POST['delete_ips']; 
    153                               foreach($delete_ips as $delete_ip) { 
    154                                     unset($banned_stats['users'][$delete_ip]); 
    155                               } 
    156                               update_option('banned_stats', $banned_stats); 
    157                               $text = '<font color="green">'.__('Selected IP Ban Stats Reseted', 'wp-ban').'</font>'; 
    158                         } 
    159                         break; 
    160             } 
    161       } 
    162       if($_POST['Submit']) { 
    163             $text = ''; 
    164             $update_ban_queries = array(); 
    165             $update_ban_text = array();    
    166             $banned_ips_post = explode("\n", trim($_POST['banned_ips'])); 
    167             $banned_ips_range_post = explode("\n", trim($_POST['banned_ips_range'])); 
    168             $banned_hosts_post = explode("\n", trim($_POST['banned_hosts']));  
    169             $banned_referers_post = explode("\n", trim($_POST['banned_referers'])); 
    170             $banned_exclude_ips_post = explode("\n", trim($_POST['banned_exclude_ips'])); 
    171             $banned_message = trim($_POST['banned_template_message']); 
    172             if(!empty($banned_ips_post)) { 
    173                   $banned_ips = array(); 
    174                   foreach($banned_ips_post as $banned_ip) { 
    175                         if($admin_login == 'admin' && ($banned_ip == get_IP() || is_admin_ip($banned_ip))) { 
    176                               $text .= '<font color="blue">'.sprintf(__('This IP \'%s\' Belongs To The Admin And Will Not Be Added To Ban List', 'wp-ban'),$banned_ip).'</font><br />'; 
    177                         } else { 
    178                               $banned_ips[] = trim($banned_ip); 
    179                         } 
    180                   } 
    181             } 
    182             if(!empty($banned_ips_range_post)) { 
    183                   $banned_ips_range = array(); 
    184                   foreach($banned_ips_range_post as $banned_ip_range) { 
    185                         $range = explode('-', $banned_ip_range); 
    186                         $range_start = trim($range[0]); 
    187                         $range_end = trim($range[1]); 
    188                         if($admin_login == 'admin' && (check_ip_within_range(get_IP(), $range_start, $range_end))) { 
    189                               $text .= '<font color="blue">'.sprintf(__('The Admin\'s IP \'%s\' Fall Within This Range (%s - %s) And Will Not Be Added To Ban List', 'wp-ban'), get_IP(), $range_start, $range_end).'</font><br />'; 
    190                         } else { 
    191                               $banned_ips_range[] = trim($banned_ip_range); 
    192                         } 
    193                   } 
    194             } 
    195             if(!empty($banned_hosts_post)) { 
    196                   $banned_hosts = array(); 
    197                   foreach($banned_hosts_post as $banned_host) { 
    198                         if($admin_login == 'admin' && ($banned_host == @gethostbyaddr(get_IP()) || is_admin_hostname($banned_host))) { 
    199                               $text .= '<font color="blue">'.sprintf(__('This Hostname \'%s\' Belongs To The Admin And Will Not Be Added To Ban List', 'wp-ban'), $banned_host).'</font><br />'; 
    200                         } else { 
    201                               $banned_hosts[] = trim($banned_host); 
    202                         } 
    203                   } 
    204             } 
    205             if(!empty($banned_referers_post)) { 
    206                   $banned_referers = array(); 
    207                   foreach($banned_referers_post as $banned_referer) { 
    208                         if(is_admin_referer($banned_referer)) { 
    209                               $text .= '<font color="blue">'.sprintf(__('This Referer \'%s\' Belongs To This Site And Will Not Be Added To Ban List', 'wp-ban'), $banned_referer).'</font><br />'; 
    210                         } else { 
    211                               $banned_referers[] = trim($banned_referer); 
    212                         } 
    213                   } 
    214             } 
    215             if(!empty($banned_exclude_ips_post)) { 
    216                   $banned_exclude_ips = array(); 
    217                   foreach($banned_exclude_ips_post as $banned_exclude_ip) { 
    218                         $banned_exclude_ips[] = trim($banned_exclude_ip); 
    219                   } 
    220             } 
    221             $update_ban_queries[] = update_option('banned_ips', $banned_ips); 
    222             $update_ban_queries[] = update_option('banned_ips_range', $banned_ips_range); 
    223             $update_ban_queries[] = update_option('banned_hosts', $banned_hosts); 
    224             $update_ban_queries[] = update_option('banned_referers', $banned_referers); 
    225             $update_ban_queries[] = update_option('banned_exclude_ips', $banned_exclude_ips); 
    226             $update_ban_queries[] = update_option('banned_message', $banned_message); 
    227             $update_ban_text[] = __('Banned IPs', 'wp-ban'); 
    228             $update_ban_text[] = __('Banned IP Range', 'wp-ban'); 
    229             $update_ban_text[] = __('Banned Host Names', 'wp-ban'); 
    230             $update_ban_text[] = __('Banned Referers', 'wp-ban'); 
    231             $update_ban_text[] = __('Banned Excluded IPs', 'wp-ban'); 
    232             $update_ban_text[] = __('Banned Message', 'wp-ban'); 
    233             $i=0; 
    234             foreach($update_ban_queries as $update_ban_query) { 
    235                   if($update_ban_query) { 
    236                         $text .= '<font color="green">'.$update_ban_text[$i].' '.__('Updated', 'wp-ban').'</font><br />'; 
    237                   } 
    238                   $i++; 
    239             } 
    240             if(empty($text)) { 
    241                   $text = '<font color="red">'.__('No Ban Option Updated', 'wp-ban').'</font>'; 
    242             } 
    243       } 
    244       // Get Banned IPs/Hosts 
    245       $banned_ips = get_option('banned_ips'); 
    246       $banned_ips_range = get_option('banned_ips_range'); 
    247       $banned_hosts = get_option('banned_hosts'); 
    248       $banned_referers = get_option('banned_referers'); 
    249       $banned_exclude_ips = get_option('banned_exclude_ips'); 
    250       $banned_ips_display = ''; 
    251       $banned_ips_range_display = ''; 
    252       $banned_hosts_display = ''; 
    253       $banned_referers_display = ''; 
    254       $banned_exclude_ips_display = ''; 
    255       if(!empty($banned_ips)) { 
    256             foreach($banned_ips as $banned_ip) { 
    257                   $banned_ips_display .= $banned_ip."\n"; 
    258             } 
    259       } 
    260       if(!empty($banned_ips_range)) { 
    261             foreach($banned_ips_range as $banned_ip_range) { 
    262                   $banned_ips_range_display .= $banned_ip_range."\n"; 
    263             } 
    264       } 
    265       if(!empty($banned_hosts)) { 
    266             foreach($banned_hosts as $banned_host) { 
    267                   $banned_hosts_display .= $banned_host."\n"; 
    268             } 
    269       } 
    270       if(!empty($banned_referers)) { 
    271             foreach($banned_referers as $banned_referer) { 
    272                   $banned_referers_display .= $banned_referer."\n"; 
    273             } 
    274       } 
    275       if(!empty($banned_exclude_ips)) { 
    276             foreach($banned_exclude_ips as $banned_exclude_ip) { 
    277                   $banned_exclude_ips_display .= $banned_exclude_ip."\n"; 
    278             } 
    279       } 
    280       $banned_ips_display = trim($banned_ips_display); 
    281       $banned_ips_range_display = trim($banned_ips_range_display); 
    282       $banned_hosts_display = trim($banned_hosts_display); 
    283       $banned_referers_display = trim($banned_referers_display); 
    284       $banned_exclude_ips_display = trim($banned_exclude_ips_display); 
    285       // Get Banned Stats 
    286       $banned_stats = get_option('banned_stats'); 
    287 ?> 
    288 <script type="text/javascript"> 
    289 /* <![CDATA[*/ 
    290       var checked = 0; 
    291       function banned_default_templates(template) { 
    292             var default_template; 
    293             switch(template) { 
    294                   case "message": 
    295                         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>"; 
    296                         break; 
    297             } 
    298             document.getElementById("banned_template_" + template).value = default_template; 
    299       } 
    300       function toggle_checkbox() { 
    301             checkboxes =  document.getElementsByName('delete_ips[]'); 
    302             total = checkboxes.length; 
    303             if(checked == 0) { 
    304                   for (var i = 0; i < total; i++) { 
    305                         checkboxes[i].checked = true; 
    306                   } 
    307                   checked++; 
    308             } else if(checked == 1) { 
    309                   for (var i = 0; i < total; i++) { 
    310                         checkboxes[i].checked = false; 
    311                   } 
    312                   checked--; 
    313             } 
    314       } 
    315       function preview_bannedmessage() { 
    316             window.open('<?php echo get_option('siteurl').'/wp-content/plugins/ban/ban-preview.php'; ?>'); 
    317       } 
    318 /* ]]> */ 
    319 </script> 
    320 <?php if(!empty($text)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$text.'</p></div>'; } ?> 
    321 <!-- Ban Options --> 
    322 <div class="wrap"> 
    323       <h2><?php _e('Ban Options', 'wp-ban'); ?></h2> 
    324       <form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post"> 
    325             <table width="100%" cellspacing="3" cellpadding="3" border="0"> 
    326                   <tr> 
    327                         <td valign="top" colspan="2" align="center"> 
    328                               <?php printf(__('Your IP is: <strong>%s</strong><br />Your Host Name is: <strong>%s</strong><br />Your Site URL is: <strong>%s</strong>', 'wp-ban'), get_IP(), @gethostbyaddr(get_IP()), get_option('siteurl')); ?><br /> 
    329                               <?php _e('Please <strong>DO NOT</strong> ban yourself.', 'wp-ban'); ?> 
    330                         </td> 
    331                   </tr> 
    332                   <tr> 
    333                         <td valign="top"> 
    334                               <strong><?php _e('Banned IPs', 'wp-ban'); ?>:</strong><br /> 
    335                               <?php _e('Use <strong>*</strong> for wildcards.', 'wp-ban'); ?><br /> 
    336                               <?php _e('Start each entry on a new line.', 'wp-ban'); ?><br /><br /> 
    337                               <?php _e('Examples:', 'wp-ban'); ?><br /> 
    338                               <strong>&raquo;</strong> 192.168.1.100<br /> 
    339                               <strong>&raquo;</strong> 192.168.1.*<br /> 
    340                               <strong>&raquo;</strong> 192.168.*.*<br /> 
    341                         </td> 
    342                         <td> 
    343                               <textarea cols="40" rows="10" name="banned_ips"><?php echo $banned_ips_display; ?></textarea> 
    344                         </td> 
    345                   </tr> 
    346                   <tr> 
    347                         <td valign="top"> 
    348                               <strong><?php _e('Banned IP Range', 'wp-ban'); ?>:</strong><br /> 
    349                               <?php _e('Start each entry on a new line.', 'wp-ban'); ?><br /><br /> 
    350                               <?php _e('Examples:', 'wp-ban'); ?><br /> 
    351                               <strong>&raquo;</strong> 192.168.1.1-192.168.1.255<br /><br /> 
    352                               <?php _e('Notes:', 'wp-ban'); ?><br /> 
    353                               <strong>&raquo;</strong> <?php _e('No Wildcards Allowed.', 'wp-ban'); ?><br /> 
    354                         </td> 
    355                         <td> 
    356                               <textarea cols="40" rows="10" name="banned_ips_range"><?php echo $banned_ips_range_display; ?></textarea> 
    357                         </td> 
    358                   </tr> 
    359                   <tr> 
    360                         <td valign="top"> 
    361                               <strong><?php _e('Banned Host Names', 'wp-ban'); ?>:</strong><br /> 
    362                               <?php _e('Use <strong>*</strong> for wildcards', 'wp-ban'); ?>.<br /> 
    363                               <?php _e('Start each entry on a new line.', 'wp-ban'); ?><br /><br /> 
    364                               <?php _e('Examples:', 'wp-ban'); ?><br /> 
    365                               <strong>&raquo;</strong> *.sg<br /> 
    366                               <strong>&raquo;</strong> *.cn<br /> 
    367                               <strong>&raquo;</strong> *.th<br /> 
    368                         </td> 
    369                         <td> 
    370                               <textarea cols="40" rows="10" name="banned_hosts"><?php echo $banned_hosts_display; ?></textarea> 
    371                         </td> 
    372                   </tr> 
    373                   <tr> 
    374                         <td valign="top"> 
    375                               <strong><?php _e('Banned Referers', 'wp-ban'); ?>:</strong><br /> 
    376                               <?php _e('Use <strong>*</strong> for wildcards', 'wp-ban'); ?>.<br /> 
    377                               <?php _e('Start each entry on a new line.', 'wp-ban'); ?><br /><br /> 
    378                               <?php _e('Examples:', 'wp-ban'); ?><br /> 
    379                               <strong>&raquo;</strong> http://*.blogspot.com<br /><br /> 
    380                               <?php _e('Notes:', 'wp-ban'); ?><br /> 
    381                               <strong>&raquo;</strong> <?php _e('There are ways to bypass this method of banning.', 'wp-ban'); ?> 
    382                         </td> 
    383                         <td> 
    384                               <textarea cols="40" rows="10" name="banned_referers"><?php echo $banned_referers_display; ?></textarea> 
    385                         </td> 
    386                   </tr> 
    387                   <tr> 
    388                         <td valign="top"> 
    389                               <strong><?php _e('Banned Exclude IPs', 'wp-ban'); ?>:</strong><br /> 
    390                               <?php _e('Start each entry on a new line.', 'wp-ban'); ?><br /><br /> 
    391                               <?php _e('Examples:', 'wp-ban'); ?><br /> 
    392                               <strong>&raquo;</strong> 192.168.1.100<br /><br /> 
    393                               <?php _e('Notes:', 'wp-ban'); ?><br /> 
    394                               <strong>&raquo;</strong> <?php _e('No Wildcards Allowed.', 'wp-ban'); ?><br /> 
    395                               <strong>&raquo;</strong> <?php _e('These Users Will Not Get Banned.', 'wp-ban'); ?> 
    396                         </td> 
    397                         <td> 
    398                               <textarea cols="40" rows="10" name="banned_exclude_ips"><?php echo $banned_exclude_ips_display; ?></textarea> 
    399                         </td> 
    400                   </tr> 
    401                   <tr> 
    402                         <td valign="top"> 
    403                               <strong><?php _e('Banned Message', 'wp-ban'); ?>:</strong><br /><br /><br /> 
    404                                     <?php _e('Allowed Variables:', 'wp-ban'); ?><br /> 
    405                                     - %SITE_NAME%<br /> 
    406                                     - %SITE_URL%<br /> 
    407                                     - %USER_ATTEMPTS_COUNT%<br /> 
    408                                     - %USER_IP%<br /> 
    409                                     - %USER_HOSTNAME%<br /> 
    410                                     - %TOTAL_ATTEMPTS_COUNT%<br /><br /> 
    411                                     <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-ban'); ?>" onclick="javascript: banned_default_templates('message');" class="button" /><br /><br /> 
    412                                     <input type="button" name="RestoreDefault" value="<?php _e('Preview Banned Message', 'wp-ban'); ?>" onclick="javascript: preview_bannedmessage();" class="button" /><br /> 
    413                         </td> 
    414                         <td> 
    415                               <textarea cols="60" rows="20" id="banned_template_message" name="banned_template_message"><?php echo stripslashes(get_option('banned_message')); ?></textarea> 
    416                         </td> 
    417                   </tr> 
    418                   <tr> 
    419                         <td width="100%" colspan="2" align="center"><input type="submit" name="Submit" class="button" value="<?php _e('Update Options', 'wp-ban'); ?>" />&nbsp;&nbsp;<input type="button" name="cancel" value="<?php _e('Cancel', 'wp-ban'); ?>" class="button" onclick="javascript:history.go(-1)" /></td> 
    420                   </tr> 
    421             </table> 
    422       </form> 
    423 </div> 
    424 <div class="wrap"> 
    425       <h2><?php _e('Ban Stats', 'wp-ban'); ?></h2> 
    426       <form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post"> 
    427       <table width="100%" cellspacing="3" cellpadding="3" border="0"> 
    428             <tr class="thead"> 
    429                   <th width="40%"><?php _e('IPs', 'wp-ban'); ?></th> 
    430                   <th width="30%"><?php _e('Attempts', 'wp-ban'); ?></th> 
    431                   <th width="30%"><input type="checkbox" name="toogle_checkbox" value="1" onclick="toggle_checkbox();" />&nbsp; <?php _e('Action', 'wp-ban'); ?></th> 
    432             </tr> 
    433                   <?php 
    434                         // Credits To Joe (Ttech) - http://blog.fileville.net/ 
    435                         if(!empty($banned_stats['users'])) { 
    436                               $i = 0; 
    437                               foreach($banned_stats['users'] as $key => $value) { 
    438                                     if($i%2 == 0) { 
    439                                           $style = 'style=\'background-color: #eee\''; 
    440                                     }  else { 
    441                                           $style = 'style=\'background-color: none\''; 
    442                                     } 
    443                                     echo "<tr $style>\n"; 
    444                                     echo "<td style=\"text-align: center;\">$key</td>\n"; 
    445                                     echo "<td style=\"text-align: center;\">$value</td>\n"; 
    446                                     echo "<td><input type=\"checkbox\" name=\"delete_ips[]\" value=\"$key\" />&nbsp;Reset this IP ban stat?</td>\n"; 
    447                                     echo '</tr>'."\n"; 
    448                                     $i++; 
    449                               } 
    450                         } else { 
    451                               echo "<tr>\n"; 
    452                               echo '<td colspan="3" align="center">'.__('No Attempts', 'wp-ban').'</td>'."\n"; 
    453                               echo '</tr>'."\n"; 
    454                         } 
    455                   ?> 
    456             <tr class="thead"> 
    457                   <td style="text-align: center;"><strong><?php _e('Total  Attempts:', 'wp-ban'); ?></strong></td> 
    458                   <td style="text-align: center;"><strong><?php echo intval($banned_stats['count']); ?></strong></td> 
    459                   <td><input type="checkbox" name="reset_ban_stats" value="yes" />  &nbsp;<?php _e('Reset all IP ban stats and total ban stat?', 'wp-ban'); ?>&nbsp;</td> 
    460             </tr> 
    461       </table> 
    462       <p style="text-align: center;"><input type="submit" name="do" value="<?php _e('Reset Ban Stats', 'wp-ban'); ?>" class="button" onclick="return confirm('<?php _e('You Are About To Reset Ban Stats.', 'wp-ban'); ?>\n\n<?php _e('This Action Is Not Reversible. Are you sure?', 'wp-ban'); ?>')" /></p> 
    463       </form> 
    464 </div> 
    465 <?php 
    466 } 
    467  
    468  
    469137### Function: Check Whether Or Not The IP Address Belongs To Admin 
    470138function is_admin_ip($check) { 
     
    501169      return false; 
    502170} 
     171 
    503172 
    504173### Function: Check Whether Or Not The Referer Belongs To This Site 
  • wp-ban/trunk/ban/wp-ban.pot

    r13811 r14533  
    33"Project-Id-Version: WP-Ban 1.11\n" 
    44"POT-Creation-Date: \n" 
    5 "PO-Revision-Date: 2007-06-12 01:40+0800\n" 
     5"PO-Revision-Date: 2007-06-26 15:32+0800\n" 
    66"Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n" 
    77"Language-Team: Lester Chan <gamerz84@hotmail.com>\n" 
     
    1515"X-Poedit-SearchPath-0: .\n" 
    1616 
     17#: ban-options.php:39 
     18#: ban-options.php:394 
     19msgid "Reset Ban Stats" 
     20msgstr "" 
     21 
     22#: ban-options.php:43 
     23msgid "All IP Ban Stats And Total Ban Stat Reseted" 
     24msgstr "" 
     25 
     26#: ban-options.php:51 
     27msgid "Selected IP Ban Stats Reseted" 
     28msgstr "" 
     29 
     30#: ban-options.php:54 
     31#: ban-options.php:350 
     32msgid "Update Options" 
     33msgstr "" 
     34 
     35#: ban-options.php:68 
     36#, php-format 
     37msgid "This IP '%s' Belongs To The Admin And Will Not Be Added To Ban List" 
     38msgstr "" 
     39 
     40#: ban-options.php:81 
     41#, php-format 
     42msgid "The Admin's IP '%s' Fall Within This Range (%s - %s) And Will Not Be Added To Ban List" 
     43msgstr "" 
     44 
     45#: ban-options.php:91 
     46#, php-format 
     47msgid "This Hostname '%s' Belongs To The Admin And Will Not Be Added To Ban List" 
     48msgstr "" 
     49 
     50#: ban-options.php:101 
     51#, php-format 
     52msgid "This Referer '%s' Belongs To This Site And Will Not Be Added To Ban List" 
     53msgstr "" 
     54 
     55#: ban-options.php:119 
     56#: ban-options.php:265 
     57msgid "Banned IPs" 
     58msgstr "" 
     59 
     60#: ban-options.php:120 
     61#: ban-options.php:279 
     62msgid "Banned IP Range" 
     63msgstr "" 
     64 
     65#: ban-options.php:121 
     66#: ban-options.php:292 
     67msgid "Banned Host Names" 
     68msgstr "" 
     69 
     70#: ban-options.php:122 
     71#: ban-options.php:306 
     72msgid "Banned Referers" 
     73msgstr "" 
     74 
     75#: ban-options.php:123 
     76msgid "Banned Excluded IPs" 
     77msgstr "" 
     78 
     79#: ban-options.php:124 
     80#: ban-options.php:334 
     81msgid "Banned Message" 
     82msgstr "" 
     83 
     84#: ban-options.php:128 
     85msgid "Updated" 
     86msgstr "" 
     87 
     88#: ban-options.php:133 
     89msgid "No Ban Option Updated" 
     90msgstr "" 
     91 
     92#: ban-options.php:137 
     93#: ban-options.php:431 
     94msgid "UNINSTALL WP-Ban" 
     95msgstr "" 
     96 
     97#: ban-options.php:145 
     98#, php-format 
     99msgid "Setting Key '%s' has been deleted." 
     100msgstr "" 
     101 
     102#: ban-options.php:149 
     103#, php-format 
     104msgid "Error deleting Setting Key '%s'." 
     105msgstr "" 
     106 
     107#: ban-options.php:171 
     108#: ban-options.php:401 
     109msgid "Uninstall WP-Ban" 
     110msgstr "" 
     111 
     112#: ban-options.php:172 
     113#, php-format 
     114msgid "<a href=\"%s\">Click Here</a> To Finish The Uninstallation And WP-Ban Will Be Deactivated Automatically." 
     115msgstr "" 
     116 
     117#: ban-options.php:226 
     118#: ban.php:207 
     119msgid "You Are Banned." 
     120msgstr "" 
     121 
     122#: ban-options.php:255 
     123msgid "Ban Options" 
     124msgstr "" 
     125 
     126#: ban-options.php:259 
     127#, php-format 
     128msgid "Your IP is: <strong>%s</strong><br />Your Host Name is: <strong>%s</strong><br />Your Site URL is: <strong>%s</strong>" 
     129msgstr "" 
     130 
     131#: ban-options.php:260 
     132msgid "Please <strong>DO NOT</strong> ban yourself." 
     133msgstr "" 
     134 
     135#: ban-options.php:266 
     136msgid "Use <strong>*</strong> for wildcards." 
     137msgstr "" 
     138 
     139#: ban-options.php:267 
     140#: ban-options.php:280 
     141#: ban-options.php:294 
     142#: ban-options.php:308 
     143#: ban-options.php:321 
     144msgid "Start each entry on a new line." 
     145msgstr "" 
     146 
     147#: ban-options.php:268 
     148#: ban-options.php:281 
     149#: ban-options.php:295 
     150#: ban-options.php:309 
     151#: ban-options.php:322 
     152msgid "Examples:" 
     153msgstr "" 
     154 
     155#: ban-options.php:283 
     156#: ban-options.php:311 
     157#: ban-options.php:324 
     158msgid "Notes:" 
     159msgstr "" 
     160 
     161#: ban-options.php:284 
     162#: ban-options.php:325 
     163msgid "No Wildcards Allowed." 
     164msgstr "" 
     165 
     166#: ban-options.php:293 
     167#: ban-options.php:307 
     168msgid "Use <strong>*</strong> for wildcards" 
     169msgstr "" 
     170 
     171#: ban-options.php:312 
     172msgid "There are ways to bypass this method of banning." 
     173msgstr "" 
     174 
     175#: ban-options.php:320 
     176msgid "Banned Exclude IPs" 
     177msgstr "" 
     178 
     179#: ban-options.php:326 
     180msgid "These Users Will Not Get Banned." 
     181msgstr "" 
     182 
     183#: ban-options.php:335 
     184msgid "Allowed Variables:" 
     185msgstr "" 
     186 
     187#: ban-options.php:342 
     188msgid "Restore Default Template" 
     189msgstr "" 
     190 
     191#: ban-options.php:343 
     192msgid "Preview Banned Message" 
     193msgstr "" 
     194 
     195#: ban-options.php:350 
     196msgid "Cancel" 
     197msgstr "" 
     198 
     199#: ban-options.php:358 
     200msgid "Ban Stats" 
     201msgstr "" 
     202 
     203#: ban-options.php:361 
     204msgid "IPs" 
     205msgstr "" 
     206 
     207#: ban-options.php:362 
     208msgid "Attempts" 
     209msgstr "" 
     210 
     211#: ban-options.php:363 
     212msgid "Action" 
     213msgstr "" 
     214 
     215#: ban-options.php:384 
     216msgid "No Attempts" 
     217msgstr "" 
     218 
     219#: ban-options.php:389 
     220msgid "Total  Attempts:" 
     221msgstr "" 
     222 
     223#: ban-options.php:391 
     224msgid "Reset all IP ban stats and total ban stat?" 
     225msgstr "" 
     226 
     227#: ban-options.php:394 
     228msgid "You Are About To Reset Ban Stats." 
     229msgstr "" 
     230 
     231#: ban-options.php:394 
     232msgid "This Action Is Not Reversible. Are you sure?" 
     233msgstr "" 
     234 
     235#: ban-options.php:403 
     236msgid "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." 
     237msgstr "" 
     238 
     239#: ban-options.php:406 
     240msgid "WARNING:" 
     241msgstr "" 
     242 
     243#: ban-options.php:407 
     244msgid "Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first." 
     245msgstr "" 
     246 
     247#: ban-options.php:410 
     248msgid "The following WordPress Options will be DELETED:" 
     249msgstr "" 
     250 
     251#: ban-options.php:414 
     252msgid "WordPress Options" 
     253msgstr "" 
     254 
     255#: ban-options.php:430 
     256msgid "Yes" 
     257msgstr "" 
     258 
     259#: ban-options.php:431 
     260msgid "" 
     261"You Are About To Uninstall WP-Ban From WordPress.\\n" 
     262"This Action Is Not Reversible.\\n" 
     263"\\n" 
     264" Choose [Cancel] To Stop, [OK] To Uninstall." 
     265msgstr "" 
     266 
    17267#: ban.php:39 
    18268msgid "Ban" 
    19269msgstr "" 
    20270 
    21 #: ban.php:145 
    22 #: ban.php:462 
    23 msgid "Reset Ban Stats" 
    24 msgstr "" 
    25  
    26 #: ban.php:149 
    27 msgid "All IP Ban Stats And Total Ban Stat Reseted" 
    28 msgstr "" 
    29  
    30 #: ban.php:157 
    31 msgid "Selected IP Ban Stats Reseted" 
    32 msgstr "" 
    33  
    34 #: ban.php:176 
    35 #, php-format 
    36 msgid "This IP '%s' Belongs To The Admin And Will Not Be Added To Ban List" 
    37 msgstr "" 
    38  
    39 #: ban.php:189 
    40 #, php-format 
    41 msgid "The Admin's IP '%s' Fall Within This Range (%s - %s) And Will Not Be Added To Ban List" 
    42 msgstr "" 
    43  
    44 #: ban.php:199 
    45 #, php-format 
    46 msgid "This Hostname '%s' Belongs To The Admin And Will Not Be Added To Ban List" 
    47 msgstr "" 
    48  
    49 #: ban.php:209 
    50 #, php-format 
    51 msgid "This Referer '%s' Belongs To This Site And Will Not Be Added To Ban List" 
    52 msgstr "" 
    53  
    54 #: ban.php:227 
    55 #: ban.php:334 
    56 msgid "Banned IPs" 
    57 msgstr "" 
    58  
    59 #: ban.php:228 
    60 #: ban.php:348 
    61 msgid "Banned IP Range" 
    62 msgstr "" 
    63  
    64 #: ban.php:229 
    65 #: ban.php:361 
    66 msgid "Banned Host Names" 
    67 msgstr "" 
    68  
    69 #: ban.php:230 
    70 #: ban.php:375 
    71 msgid "Banned Referers" 
    72 msgstr "" 
    73  
    74 #: ban.php:231 
    75 msgid "Banned Excluded IPs" 
    76 msgstr "" 
    77  
    78 #: ban.php:232 
    79 #: ban.php:403 
    80 msgid "Banned Message" 
    81 msgstr "" 
    82  
    83 #: ban.php:236 
    84 msgid "Updated" 
    85 msgstr "" 
    86  
    87 #: ban.php:241 
    88 msgid "No Ban Option Updated" 
    89 msgstr "" 
    90  
    91 #: ban.php:295 
    92 #: ban.php:538 
    93 msgid "You Are Banned." 
    94 msgstr "" 
    95  
    96 #: ban.php:323 
    97 msgid "Ban Options" 
    98 msgstr "" 
    99  
    100 #: ban.php:328 
    101 #, php-format 
    102 msgid "Your IP is: <strong>%s</strong><br />Your Host Name is: <strong>%s</strong><br />Your Site URL is: <strong>%s</strong>" 
    103 msgstr "" 
    104  
    105 #: ban.php:329 
    106 msgid "Please <strong>DO NOT</strong> ban yourself." 
    107 msgstr "" 
    108  
    109 #: ban.php:335 
    110 msgid "Use <strong>*</strong> for wildcards." 
    111 msgstr "" 
    112  
    113 #: ban.php:336 
    114 #: ban.php:349 
    115 #: ban.php:363 
    116 #: ban.php:377 
    117 #: ban.php:390 
    118 msgid "Start each entry on a new line." 
    119 msgstr "" 
    120  
    121 #: ban.php:337 
    122 #: ban.php:350 
    123 #: ban.php:364 
    124 #: ban.php:378 
    125 #: ban.php:391 
    126 msgid "Examples:" 
    127 msgstr "" 
    128  
    129 #: ban.php:352 
    130 #: ban.php:380 
    131 #: ban.php:393 
    132 msgid "Notes:" 
    133 msgstr "" 
    134  
    135 #: ban.php:353 
    136 #: ban.php:394 
    137 msgid "No Wildcards Allowed." 
    138 msgstr "" 
    139  
    140 #: ban.php:362 
    141 #: ban.php:376 
    142 msgid "Use <strong>*</strong> for wildcards" 
    143 msgstr "" 
    144  
    145 #: ban.php:381 
    146 msgid "There are ways to bypass this method of banning." 
    147 msgstr "" 
    148  
    149 #: ban.php:389 
    150 msgid "Banned Exclude IPs" 
    151 msgstr "" 
    152  
    153 #: ban.php:395 
    154 msgid "These Users Will Not Get Banned." 
    155 msgstr "" 
    156  
    157 #: ban.php:404 
    158 msgid "Allowed Variables:" 
    159 msgstr "" 
    160  
    161 #: ban.php:411 
    162 msgid "Restore Default Template" 
    163 msgstr "" 
    164  
    165 #: ban.php:412 
    166 msgid "Preview Banned Message" 
    167 msgstr "" 
    168  
    169 #: ban.php:419 
    170 msgid "Update Options" 
    171 msgstr "" 
    172  
    173 #: ban.php:419 
    174 msgid "Cancel" 
    175 msgstr "" 
    176  
    177 #: ban.php:425 
    178 msgid "Ban Stats" 
    179 msgstr "" 
    180  
    181 #: ban.php:429 
    182 msgid "IPs" 
    183 msgstr "" 
    184  
    185 #: ban.php:430 
    186 msgid "Attempts" 
    187 msgstr "" 
    188  
    189 #: ban.php:431 
    190 msgid "Action" 
    191 msgstr "" 
    192  
    193 #: ban.php:452 
    194 msgid "No Attempts" 
    195 msgstr "" 
    196  
    197 #: ban.php:457 
    198 msgid "Total  Attempts:" 
    199 msgstr "" 
    200  
    201 #: ban.php:459 
    202 msgid "Reset all IP ban stats and total ban stat?" 
    203 msgstr "" 
    204  
    205 #: ban.php:462 
    206 msgid "You Are About To Reset Ban Stats." 
    207 msgstr "" 
    208  
    209 #: ban.php:462 
    210 msgid "This Action Is Not Reversible. Are you sure?" 
    211 msgstr "" 
    212  
  • wp-ban/trunk/readme.html

    r13472 r14533  
    33<head>       
    44      <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 
    5       <title>WP-Ban 1.11 Readme</title> 
     5      <title>WP-Ban 1.20 Readme</title> 
    66      <style type="text/css" media="screen"> 
    77            /* Default Style */ 
     
    204204<div id="Container"> 
    205205      <!-- Title --> 
    206       <div id="Title">WP-Ban 1.11&nbsp;&nbsp;&nbsp;<span style="color: #aaaaaa;">Readme</span></div> 
     206      <div id="Title">WP-Ban 1.20&nbsp;&nbsp;&nbsp;<span style="color: #aaaaaa;">Readme</span></div> 
    207207 
    208208      <!-- Tabs --> 
     
    230230                        <script type="text/javascript"> 
    231231                              /* <![CDATA[*/ 
    232                               document.write(' <a href="mailto:gamerz84@hotmail.com?Subject=WP-Ban%201.11%20Support" title="EMail To gamerz84@hotmail.com">gamerz84@hotmail.com</a>'); 
     232                              document.write(' <a href="mailto:gamerz84@hotmail.com?Subject=WP-Ban%201.20%20Support" title="EMail To gamerz84@hotmail.com">gamerz84@hotmail.com</a>'); 
    233233                              /* ]]> */ 
    234234                        </script> 
     
    244244                  <p> 
    245245                        <strong>Download:</strong><br /> 
    246                         <strong>&raquo;</strong> <a href="http://www.lesterchan.net/others/downloads.php?id=26" title="http://www.lesterchan.net/others/downloads.php?id=26">WP-Ban 1.11 For WordPress 2.1.x And Above</a><br /> 
     246                        <strong>&raquo;</strong> <a href="http://www.lesterchan.net/others/downloads.php?id=26" title="http://www.lesterchan.net/others/downloads.php?id=26">WP-Ban 1.20 For WordPress 2.1.x And Above</a><br /> 
    247247                        <strong>&raquo;</strong> <a href="http://www.lesterchan.net/others/downloads/wp-ban100.zip" title="http://www.lesterchan.net/others/downloads/wp-ban100.zip">WP-Ban 1.00 For WordPress 2.0.x</a><br /> 
    248248                  </p> 
     
    269269                  <p> 
    270270                        <strong>Updated:</strong><br /> 
    271                         <strong>&raquo;</strong> 1st June 2007 
     271                        <strong>&raquo;</strong> 1st October 2007 
    272272                  </p> 
    273273                  <p> 
     
    291291                  <div class="SubTitle">&raquo; Changelog</div> 
    292292                  <ul> 
     293                        <li> 
     294                              <strong>Version 1.20 (01-10-2007)</strong> 
     295                              <ul> 
     296                                    <li>NEW: Ability To Uninstall WP-Ban</li>              
     297                                    <li>NEW: Move Ban Options From ban.php To ban-options.php</li>     
     298                              </ul> 
     299                        </li> 
    293300                        <li> 
    294301                              <strong>Version 1.11 (01-06-2007)</strong> 
     
    344351            <div id="Upgrade" style="display: none;"> 
    345352                  <div class="SubTitle">&raquo; Upgrade Instructions</div> 
    346                   <div class="SubSubTitle">From v1.0x To v1.11</div> 
     353                  <div class="SubSubTitle">From v1.0x To v1.20</div> 
    347354                  <ol> 
    348355                        <li> 
     
    384391      </div> 
    385392</div> 
    386 <p id="Copyright">WP-Ban 1.11<br />Copyright &copy; 2007 Lester 'GaMerZ' Chan. All Rights Reserved.</p> 
     393<p id="Copyright">WP-Ban 1.20<br />Copyright &copy; 2007 Lester 'GaMerZ' Chan. All Rights Reserved.</p> 
    387394</body> 
    388395</html>