Changeset 21735

Show
Ignore:
Timestamp:
10/13/07 07:32:42 (9 months ago)
Author:
GamerZ
Message:

date_i18n() and number_format_i18n()

Files:

Legend:

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

    r15764 r21735  
    33+----------------------------------------------------------------+ 
    44|                                                                                                                                         | 
    5 |     WordPress 2.1 Plugin: WP-Ban 1.20                                                             | 
     5|     WordPress 2.1 Plugin: WP-Ban 1.21                                                             | 
    66|     Copyright (c) 2007 Lester "GaMerZ" Chan                                                   | 
    77|                                                                                                                                         | 
     
    375375                                    echo "<tr $style>\n"; 
    376376                                    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"; 
    378378                                    echo "<td><input type=\"checkbox\" name=\"delete_ips[]\" value=\"$key\" />&nbsp;Reset this IP ban stat?</td>\n"; 
    379379                                    echo '</tr>'."\n"; 
     
    388388            <tr class="thead"> 
    389389                  <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> 
    391391                  <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> 
    392392            </tr> 
  • wp-ban/trunk/ban/ban-preview.php

    r15764 r21735  
    33+----------------------------------------------------------------+ 
    44|                                                                                                                                         | 
    5 |     WordPress 2.1 Plugin: WP-Ban 1.20                                                             | 
     5|     WordPress 2.1 Plugin: WP-Ban 1.21                                                             | 
    66|     Copyright (c) 2007 Lester "GaMerZ" Chan                                                   | 
    77|                                                                                                                                         | 
     
    2424### Display Banned Message 
    2525$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()])); 
    2828$banned_message = stripslashes(get_option('banned_message')); 
    2929$banned_message = str_replace("%SITE_NAME%", get_option('blogname'), $banned_message); 
  • wp-ban/trunk/ban/ban.php

    r19226 r21735  
    44Plugin URI: http://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.20 
     6Version: 1.21 
    77Author: Lester 'GaMerZ' Chan 
    88Author URI: http://lesterchan.net 
     
    6666      // Credits To Joe (Ttech) - http://blog.fileville.net/ 
    6767      $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); 
    7070      update_option('banned_stats', $banned_stats); 
    7171      $banned_message = stripslashes(get_option('banned_message')); 
  • wp-ban/trunk/ban/wp-ban.pot

    r19226 r21735  
    11msgid "" 
    22msgstr "" 
    3 "Project-Id-Version: WP-Ban 1.20\n" 
     3"Project-Id-Version: WP-Ban 1.21\n" 
    44"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" 
    66"Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n" 
    77"Language-Team: Lester Chan <gamerz84@hotmail.com>\n" 
  • wp-ban/trunk/readme.html

    r15764 r21735  
    33<head>       
    44      <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 
    5       <title>WP-Ban 1.20 Readme</title> 
     5      <title>WP-Ban 1.21 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.20&nbsp;&nbsp;&nbsp;<span style="color: #aaaaaa;">Readme</span></div> 
     206      <div id="Title">WP-Ban 1.21&nbsp;&nbsp;&nbsp;<span style="color: #aaaaaa;">Readme</span></div> 
    207207 
    208208      <!-- Tabs --> 
     
    226226                  </p> 
    227227                  <p> 
    228                         <strong>EMail:</strong><br /> 
    229                         <strong>&raquo;</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> 
    237228                        <strong>Website:</strong><br /> 
    238229                        <strong>&raquo;</strong> <a href="http://lesterchan.net/" title="http://lesterchan.net/">http://lesterchan.net/</a> 
     
    244235                  <p> 
    245236                        <strong>Download:</strong><br /> 
    246                         <strong>&raquo;</strong> <a href="http://lesterchan.net/others/downloads.php?id=26" title="http://lesterchan.net/others/downloads.php?id=26">WP-Ban 1.20 For WordPress 2.1.x And Above</a><br /> 
     237                        <strong>&raquo;</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 /> 
    247238                        <strong>&raquo;</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 /> 
    248239                  </p> 
     
    268259                  </p> 
    269260                  <p> 
    270                         <strong>Credits:</strong><br /> 
    271                         <strong>&raquo;</strong> Ban Stats By <a href="http://blog.fileville.net/">Joe (Ttech)</a> 
    272                   </p> 
    273                   <p> 
    274261                        <strong>Updated:</strong><br /> 
    275                         <strong>&raquo;</strong> 1st October 2007 
     262                        <strong>&raquo;</strong> 1st January 2008 
    276263                  </p> 
    277264                  <p> 
     
    296283                  <ul> 
    297284                        <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> 
    298291                              <strong>Version 1.20 (01-10-2007)</strong> 
    299292                              <ul> 
     
    355348            <div id="Upgrade" style="display: none;"> 
    356349                  <div class="SubTitle">&raquo; Upgrade Instructions</div> 
    357                   <div class="SubSubTitle">From v1.0x To v1.20</div> 
     350                  <div class="SubSubTitle">From v1.0x To v1.21</div> 
    358351                  <ol> 
    359352                        <li> 
     
    395388      </div> 
    396389</div> 
    397 <p id="Copyright">WP-Ban 1.20<br />Copyright &copy; 2007 Lester 'GaMerZ' Chan. All Rights Reserved.</p> 
     390<p id="Copyright">WP-Ban 1.21<br />Copyright &copy; 2007 Lester 'GaMerZ' Chan. All Rights Reserved.</p> 
    398391</body> 
    399392</html>