Changeset 21735
- Timestamp:
- 10/13/07 07:32:42 (9 months ago)
- Files:
-
- wp-ban/trunk/ban/ban-options.php (modified) (3 diffs)
- wp-ban/trunk/ban/ban-preview.php (modified) (2 diffs)
- wp-ban/trunk/ban/ban.php (modified) (2 diffs)
- wp-ban/trunk/ban/wp-ban.mo (modified) (previous)
- wp-ban/trunk/ban/wp-ban.pot (modified) (1 diff)
- wp-ban/trunk/readme.html (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wp-ban/trunk/ban/ban-options.php
r15764 r21735 3 3 +----------------------------------------------------------------+ 4 4 | | 5 | WordPress 2.1 Plugin: WP-Ban 1.2 0|5 | WordPress 2.1 Plugin: WP-Ban 1.21 | 6 6 | Copyright (c) 2007 Lester "GaMerZ" Chan | 7 7 | | … … 375 375 echo "<tr $style>\n"; 376 376 echo "<td style=\"text-align: center;\">$key</td>\n"; 377 echo "<td style=\"text-align: center;\"> $value</td>\n";377 echo "<td style=\"text-align: center;\">".number_format_i18n(intval($value))."</td>\n"; 378 378 echo "<td><input type=\"checkbox\" name=\"delete_ips[]\" value=\"$key\" /> Reset this IP ban stat?</td>\n"; 379 379 echo '</tr>'."\n"; … … 388 388 <tr class="thead"> 389 389 <td style="text-align: center;"><strong><?php _e('Total Attempts:', 'wp-ban'); ?></strong></td> 390 <td style="text-align: center;"><strong><?php echo intval($banned_stats['count']); ?></strong></td>390 <td style="text-align: center;"><strong><?php echo number_format_i18n(intval($banned_stats['count'])); ?></strong></td> 391 391 <td><input type="checkbox" name="reset_ban_stats" value="yes" /> <?php _e('Reset all IP ban stats and total ban stat?', 'wp-ban'); ?> </td> 392 392 </tr> wp-ban/trunk/ban/ban-preview.php
r15764 r21735 3 3 +----------------------------------------------------------------+ 4 4 | | 5 | WordPress 2.1 Plugin: WP-Ban 1.2 0|5 | WordPress 2.1 Plugin: WP-Ban 1.21 | 6 6 | Copyright (c) 2007 Lester "GaMerZ" Chan | 7 7 | | … … 24 24 ### Display Banned Message 25 25 $banned_stats = get_option('banned_stats'); 26 $banned_stats['count'] = (intval($banned_stats['count']));27 $banned_stats['users'][get_IP()] = intval($banned_stats['users'][get_IP()]);26 $banned_stats['count'] = number_format_i18n(intval($banned_stats['count'])); 27 $banned_stats['users'][get_IP()] = number_format_i18n(intval($banned_stats['users'][get_IP()])); 28 28 $banned_message = stripslashes(get_option('banned_message')); 29 29 $banned_message = str_replace("%SITE_NAME%", get_option('blogname'), $banned_message); wp-ban/trunk/ban/ban.php
r19226 r21735 4 4 Plugin URI: http://lesterchan.net/portfolio/programming.php 5 5 Description: 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.2 06 Version: 1.21 7 7 Author: Lester 'GaMerZ' Chan 8 8 Author URI: http://lesterchan.net … … 66 66 // Credits To Joe (Ttech) - http://blog.fileville.net/ 67 67 $banned_stats = get_option('banned_stats'); 68 $banned_stats['count'] = (intval($banned_stats['count'])+1);69 $banned_stats['users'][get_IP()] = intval($banned_stats['users'][get_IP()]+1);68 $banned_stats['count'] = number_format_i18n(intval($banned_stats['count'])+1); 69 $banned_stats['users'][get_IP()] = number_format_i18n(intval($banned_stats['users'][get_IP()])+1); 70 70 update_option('banned_stats', $banned_stats); 71 71 $banned_message = stripslashes(get_option('banned_message')); wp-ban/trunk/ban/wp-ban.pot
r19226 r21735 1 1 msgid "" 2 2 msgstr "" 3 "Project-Id-Version: WP-Ban 1.2 0\n"3 "Project-Id-Version: WP-Ban 1.21\n" 4 4 "POT-Creation-Date: \n" 5 "PO-Revision-Date: 2007- 09-19 00:18+0800\n"5 "PO-Revision-Date: 2007-10-13 15:31+0800\n" 6 6 "Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n" 7 7 "Language-Team: Lester Chan <gamerz84@hotmail.com>\n" wp-ban/trunk/readme.html
r15764 r21735 3 3 <head> 4 4 <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 5 <title>WP-Ban 1.2 0Readme</title>5 <title>WP-Ban 1.21 Readme</title> 6 6 <style type="text/css" media="screen"> 7 7 /* Default Style */ … … 204 204 <div id="Container"> 205 205 <!-- Title --> 206 <div id="Title">WP-Ban 1.2 0 <span style="color: #aaaaaa;">Readme</span></div>206 <div id="Title">WP-Ban 1.21 <span style="color: #aaaaaa;">Readme</span></div> 207 207 208 208 <!-- Tabs --> … … 226 226 </p> 227 227 <p> 228 <strong>EMail:</strong><br />229 <strong>»</strong>230 <script type="text/javascript">231 /* <![CDATA[*/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>');233 /* ]]> */234 </script>235 </p>236 <p>237 228 <strong>Website:</strong><br /> 238 229 <strong>»</strong> <a href="http://lesterchan.net/" title="http://lesterchan.net/">http://lesterchan.net/</a> … … 244 235 <p> 245 236 <strong>Download:</strong><br /> 246 <strong>»</strong> <a href="http://lesterchan.net/others/downloads.php?id=26" title="http://lesterchan.net/others/downloads.php?id=26">WP-Ban 1.2 0For WordPress 2.1.x And Above</a><br />237 <strong>»</strong> <a href="http://lesterchan.net/others/downloads.php?id=26" title="http://lesterchan.net/others/downloads.php?id=26">WP-Ban 1.21 For WordPress 2.1.x And Above</a><br /> 247 238 <strong>»</strong> <a href="http://lesterchan.net/others/downloads/wp-ban100.zip" title="http://lesterchan.net/others/downloads/wp-ban100.zip">WP-Ban 1.00 For WordPress 2.0.x</a><br /> 248 239 </p> … … 268 259 </p> 269 260 <p> 270 <strong>Credits:</strong><br />271 <strong>»</strong> Ban Stats By <a href="http://blog.fileville.net/">Joe (Ttech)</a>272 </p>273 <p>274 261 <strong>Updated:</strong><br /> 275 <strong>»</strong> 1st October 2007262 <strong>»</strong> 1st January 2008 276 263 </p> 277 264 <p> … … 296 283 <ul> 297 284 <li> 285 <strong>Version 1.21 (01-01-2008)</strong> 286 <ul> 287 <li>NEW: Uses number_format_i18n()</li> 288 </ul> 289 </li> 290 <li> 298 291 <strong>Version 1.20 (01-10-2007)</strong> 299 292 <ul> … … 355 348 <div id="Upgrade" style="display: none;"> 356 349 <div class="SubTitle">» Upgrade Instructions</div> 357 <div class="SubSubTitle">From v1.0x To v1.2 0</div>350 <div class="SubSubTitle">From v1.0x To v1.21</div> 358 351 <ol> 359 352 <li> … … 395 388 </div> 396 389 </div> 397 <p id="Copyright">WP-Ban 1.2 0<br />Copyright © 2007 Lester 'GaMerZ' Chan. All Rights Reserved.</p>390 <p id="Copyright">WP-Ban 1.21<br />Copyright © 2007 Lester 'GaMerZ' Chan. All Rights Reserved.</p> 398 391 </body> 399 392 </html>
