Changeset 7638
- Timestamp:
- 01/27/07 07:09:23 (18 months ago)
- Location:
- wp-useronline/trunk/useronline
- Files:
-
- 4 modified
-
useronline-js.php (modified) (1 diff)
-
useronline-options.php (modified) (3 diffs)
-
useronline.php (modified) (9 diffs)
-
wp-useronline.pot (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-useronline/trunk/useronline/useronline-js.php
r7426 r7638 30 30 // Variables 31 31 var useronline_ajax_url = "<?php echo $useronline_ajax_url; ?>/useronline.php"; 32 var useronline_timeout = <?php echo (get_ settings('useronline_timeout')*1000); ?>;32 var useronline_timeout = <?php echo (get_option('useronline_timeout')*1000); ?>; 33 33 34 34 // UserOnline JavaScript Init -
wp-useronline/trunk/useronline/useronline-options.php
r7426 r7638 57 57 58 58 ### Get Useronline Bots 59 $useronline_options_bots = get_ settings('useronline_bots');59 $useronline_options_bots = get_option('useronline_bots'); 60 60 $useronline_options_bots_name = ''; 61 61 $useronline_options_bots_agent = ''; … … 77 77 <th align="left" width="30%"><?php _e('Time Out', 'wp-useronline'); ?></th> 78 78 <td align="left"> 79 <input type="text" name="useronline_timeout" value="<?php echo get_ settings('useronline_timeout'); ?>" size="4" /><br /><?php _e('How long till it will remove the user from the database (In seconds).', 'wp-useronline'); ?>79 <input type="text" name="useronline_timeout" value="<?php echo get_option('useronline_timeout'); ?>" size="4" /><br /><?php _e('How long till it will remove the user from the database (In seconds).', 'wp-useronline'); ?> 80 80 </td> 81 81 </tr> … … 83 83 <th align="left" width="30%"><?php _e('UserOnline URL', 'wp-useronline'); ?></th> 84 84 <td align="left"> 85 <input type="text" name="useronline_url" value="<?php echo get_ settings('useronline_url'); ?>" size="50" /><br /><?php _e('URL To UserOnline Page<br />Example: http://www.yoursite.com/blogs/useronline/<br />Example: http://www.yoursite.com/blogs/?page_id=2', 'wp-useronline'); ?>85 <input type="text" name="useronline_url" value="<?php echo get_option('useronline_url'); ?>" size="50" /><br /><?php _e('URL To UserOnline Page<br />Example: http://www.yoursite.com/blogs/useronline/<br />Example: http://www.yoursite.com/blogs/?page_id=2', 'wp-useronline'); ?> 86 86 </td> 87 87 </tr> -
wp-useronline/trunk/useronline/useronline.php
r7605 r7638 71 71 global $wpdb, $useronline; 72 72 // Useronline Settings 73 $timeoutseconds = get_ settings('useronline_timeout');73 $timeoutseconds = get_option('useronline_timeout'); 74 74 $timestamp = current_time('timestamp'); 75 75 $timeout = ($timestamp-$timeoutseconds); … … 80 80 81 81 // Check For Bot 82 $bots = get_ settings('useronline_bots');82 $bots = get_option('useronline_bots'); 83 83 foreach ($bots as $name => $lookfor) { 84 84 if (stristr($useragent, $lookfor) !== false) { … … 143 143 144 144 // Get Most User Online 145 $most_useronline = intval(get_ settings('useronline_most_users'));145 $most_useronline = intval(get_option('useronline_most_users')); 146 146 147 147 // Check Whether Current Users Online Is More Than Most Users Online … … 163 163 $users = __('Users', 'wp-useronline'); 164 164 } 165 $useronline_url = get_ settings('useronline_url');165 $useronline_url = get_option('useronline_url'); 166 166 // Display User Online 167 167 if($display) { … … 181 181 if(!function_exists('get_most_useronline')) { 182 182 function get_most_useronline($display = true) { 183 $most_useronline_users = intval(get_ settings('useronline_most_users'));183 $most_useronline_users = intval(get_option('useronline_most_users')); 184 184 if($display) { 185 185 echo number_format($most_useronline_users); … … 194 194 if(!function_exists('get_most_useronline_date')) { 195 195 function get_most_useronline_date($display = true, $date_format = 'jS F Y, H:i') { 196 $most_useronline_timestamp = get_ settings('useronline_most_timestamp');196 $most_useronline_timestamp = get_option('useronline_most_timestamp'); 197 197 $most_useronline_date = gmdate($date_format, $most_useronline_timestamp); 198 198 if($display) { … … 315 315 if($users_browse) { 316 316 // Reassign Bots Name 317 $bots = get_ settings('useronline_bots');317 $bots = get_option('useronline_bots'); 318 318 $bots_name = array(); 319 319 foreach($bots as $botname => $botlookfor) { … … 602 602 ### Function: Stats Page Link 603 603 function useronline_stats_page_link($author) { 604 $stats_url = get_ settings('stats_url');604 $stats_url = get_option('stats_url'); 605 605 if(strpos($stats_url, '?') !== false) { 606 606 $stats_url = "$stats_url&stats_author=$author"; … … 663 663 add_option('useronline_bots', $bots, 'Bots Name/Useragent'); 664 664 // Database Upgrade For WP-UserOnline 2.05 665 add_option('useronline_url', get_ settings('siteurl').'/useronline/', 'UserOnline Page URL');665 add_option('useronline_url', get_option('siteurl').'/useronline/', 'UserOnline Page URL'); 666 666 } 667 667 ?> -
wp-useronline/trunk/useronline/wp-useronline.pot
r7605 r7638 3 3 "Project-Id-Version: WP-UserOnline 2.10\n" 4 4 "POT-Creation-Date: \n" 5 "PO-Revision-Date: 2007-01-2 6 15:07+0800\n"5 "PO-Revision-Date: 2007-01-27 15:08+0800\n" 6 6 "Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n" 7 7 "Language-Team: Lester Chan <gamerz84@hotmail.com>\n"
