Changeset 21743

Show
Ignore:
Timestamp:
10/13/07 08:12:57 (9 months ago)
Author:
GamerZ
Message:

--

Files:

Legend:

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

    r21739 r21743  
    44Plugin URI: http://lesterchan.net/portfolio/programming.php 
    55Description: Enable you to display how many users are online on your Wordpress blog with detailed statistics of where they are and who there are(Members/Guests/Search Bots). 
    6 Version: 2.20 
     6Version: 2.21 
    77Author: Lester 'GaMerZ' Chan 
    88Author URI: http://lesterchan.net 
     
    6161add_action('wp_head', 'useronline_header'); 
    6262function useronline_header() { 
    63       echo "\n".'<!-- Start Of Script Generated By WP-UserOnline 2.20 -->'."\n"; 
    64       wp_register_script('wp-useronline', '/wp-content/plugins/useronline/useronline-js.php', false, '2.20'); 
     63      echo "\n".'<!-- Start Of Script Generated By WP-UserOnline 2.21 -->'."\n"; 
     64      wp_register_script('wp-useronline', '/wp-content/plugins/useronline/useronline-js.php', false, '2.21'); 
    6565      wp_print_scripts(array('sack', 'wp-useronline')); 
    66       echo '<!-- End Of Script Generated By WP-UserOnline 2.20 -->'."\n"; 
     66      echo '<!-- End Of Script Generated By WP-UserOnline 2.21 -->'."\n"; 
    6767} 
    6868 
     
    7575      // Useronline Settings 
    7676      $timeoutseconds = get_option('useronline_timeout'); 
    77       $timestamp = current_time('timestamp', 1); 
     77      $timestamp = current_time('timestamp'); 
    7878      $timeout = ($timestamp-$timeoutseconds); 
    7979      $ip = get_ipaddress(); 
     
    154154      if($useronline > $most_useronline) { 
    155155            update_option('useronline_most_users', $useronline); 
    156             update_option('useronline_most_timestamp', current_time('timestamp', 1)); 
     156            update_option('useronline_most_timestamp', current_time('timestamp')); 
    157157      } 
    158158} 
     
    238238      global $current_user, $user_ID; 
    239239      if(!empty($current_user) && intval($user_ID) > 0) { 
    240             update_user_option($user_ID, 'member_last_login', current_time('timestamp', 1));    
     240            update_user_option($user_ID, 'member_last_login', current_time('timestamp'));    
    241241      } 
    242242} 
     
    837837      // Add In Options 
    838838      add_option('useronline_most_users', 1, 'Most Users Ever Online Count'); 
    839       add_option('useronline_most_timestamp', current_time('timestamp', 1), 'Most Users Ever Online Date'); 
     839      add_option('useronline_most_timestamp', current_time('timestamp'), 'Most Users Ever Online Date'); 
    840840      add_option('useronline_timeout', 300, 'Timeout In Seconds'); 
    841841      add_option('useronline_bots', $bots, 'Bots Name/Useragent'); 
  • wp-useronline/trunk/useronline/wp-useronline.pot

    r21739 r21743  
    33"Project-Id-Version: WP-UserOnline 2.21\n" 
    44"POT-Creation-Date: \n" 
    5 "PO-Revision-Date: 2007-10-13 15:52+0800\n" 
     5"PO-Revision-Date: 2007-10-13 16:13+0800\n" 
    66"Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n" 
    77"Language-Team: Lester Chan <gamerz84@hotmail.com>\n"