Changeset 21743
- Timestamp:
- 10/13/07 08:12:57 (9 months ago)
- Files:
-
- wp-useronline/trunk/useronline/useronline.php (modified) (6 diffs)
- wp-useronline/trunk/useronline/wp-useronline.mo (modified) (previous)
- wp-useronline/trunk/useronline/wp-useronline.pot (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wp-useronline/trunk/useronline/useronline.php
r21739 r21743 4 4 Plugin URI: http://lesterchan.net/portfolio/programming.php 5 5 Description: 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.2 06 Version: 2.21 7 7 Author: Lester 'GaMerZ' Chan 8 8 Author URI: http://lesterchan.net … … 61 61 add_action('wp_head', 'useronline_header'); 62 62 function useronline_header() { 63 echo "\n".'<!-- Start Of Script Generated By WP-UserOnline 2.2 0-->'."\n";64 wp_register_script('wp-useronline', '/wp-content/plugins/useronline/useronline-js.php', false, '2.2 0');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'); 65 65 wp_print_scripts(array('sack', 'wp-useronline')); 66 echo '<!-- End Of Script Generated By WP-UserOnline 2.2 0-->'."\n";66 echo '<!-- End Of Script Generated By WP-UserOnline 2.21 -->'."\n"; 67 67 } 68 68 … … 75 75 // Useronline Settings 76 76 $timeoutseconds = get_option('useronline_timeout'); 77 $timestamp = current_time('timestamp' , 1);77 $timestamp = current_time('timestamp'); 78 78 $timeout = ($timestamp-$timeoutseconds); 79 79 $ip = get_ipaddress(); … … 154 154 if($useronline > $most_useronline) { 155 155 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')); 157 157 } 158 158 } … … 238 238 global $current_user, $user_ID; 239 239 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')); 241 241 } 242 242 } … … 837 837 // Add In Options 838 838 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'); 840 840 add_option('useronline_timeout', 300, 'Timeout In Seconds'); 841 841 add_option('useronline_bots', $bots, 'Bots Name/Useragent'); wp-useronline/trunk/useronline/wp-useronline.pot
r21739 r21743 3 3 "Project-Id-Version: WP-UserOnline 2.21\n" 4 4 "POT-Creation-Date: \n" 5 "PO-Revision-Date: 2007-10-13 1 5:52+0800\n"5 "PO-Revision-Date: 2007-10-13 16:13+0800\n" 6 6 "Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n" 7 7 "Language-Team: Lester Chan <gamerz84@hotmail.com>\n"
