WP-UserOnline - Version 2.20

Version Description

Download this release

Release Info

Developer GamerZ
Plugin Icon WP-UserOnline
Version 2.20
Comparing to
See all releases

Code changes from version 2.11 to 2.20

readme.html CHANGED
@@ -2,7 +2,7 @@
2
  <html>
3
  <head>
4
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
5
- <title>WP-UserOnline 2.11 Readme</title>
6
  <style type="text/css" media="screen">
7
  /* Default Style */
8
  BODY {
@@ -204,7 +204,7 @@
204
  <body>
205
  <div id="Container">
206
  <!-- Title -->
207
- <div id="Title">WP-UserOnline 2.11&nbsp;&nbsp;&nbsp;<span style="color: #aaaaaa;">Readme</span></div>
208
 
209
  <!-- Tabs -->
210
  <ul id="Tabs">
@@ -230,13 +230,13 @@
230
  <strong>&raquo;</strong>
231
  <script type="text/javascript">
232
  /* <![CDATA[*/
233
- document.write(' <a href="mailto:gamerz84@hotmail.com?Subject=WP-UserOnline%202.11%20Support" title="EMail To gamerz84@hotmail.com">gamerz84@hotmail.com</a>');
234
  /* ]]> */
235
  </script>
236
  </p>
237
  <p>
238
  <strong>Website:</strong><br />
239
- <strong>&raquo;</strong> <a href="http://www.lesterchan.net/" title="http://www.lesterchan.net/">http://www.lesterchan.net/</a>
240
  </p>
241
  <p>
242
  <strong>Features:</strong><br />
@@ -244,13 +244,18 @@
244
  </p>
245
  <p>
246
  <strong>Download:</strong><br />
247
- <strong>&raquo;</strong> <a href="http://www.lesterchan.net/others/downloads.php?id=14" title="http://www.lesterchan.net/others/downloads.php?id=14">WP-UserOnline 2.11 For WordPress 2.1.x And Above</a><br />
248
- <strong>&raquo;</strong> <a href="http://www.lesterchan.net/others/downloads/wp-useronline206.zip" title="http://www.lesterchan.net/others/downloads/wp-useronline206.zip">WP-UserOnline 2.06 For WordPress 2.0.x</a><br />
249
- <strong>&raquo;</strong> <a href="http://www.lesterchan.net/others/downloads/wp-useronline.zip" title="http://www.lesterchan.net/others/downloads/wp-useronline.zip">WP-UserOnline 1.00 For WordPress 1.5.2</a>
 
 
 
 
 
250
  </p>
251
  <p>
252
  <strong>Demo:</strong><br />
253
- <strong>&raquo;</strong> <a href="http://www.lesterchan.net/wordpress/useronline/" title="http://www.lesterchan.net/wordpress/useronline/">http://www.lesterchan.net/wordpress/useronline/</a>
254
  </p>
255
  <p>
256
  <strong>Development:</strong><br />
@@ -266,7 +271,7 @@
266
  </p>
267
  <p>
268
  <strong>Updated:</strong><br />
269
- <strong>&raquo;</strong> 1st June 2007
270
  </p>
271
  <p>
272
  <strong>Note:</strong><br />
@@ -287,6 +292,15 @@
287
  <div id="Changelog" style="display: none;">
288
  <div class="SubTitle">&raquo; Changelog</div>
289
  <ul>
 
 
 
 
 
 
 
 
 
290
  <li>
291
  <strong>Version 2.11 (01-06-2007)</strong>
292
  <ul>
@@ -396,7 +410,7 @@
396
  <!-- Upgrade Instructions -->
397
  <div id="Upgrade" style="display: none;">
398
  <div class="SubTitle">&raquo; Upgrade Instructions</div>
399
- <div class="SubSubTitle">From v1.0x To v2.11</div>
400
  <ol>
401
  <li>
402
  <strong>Deactivate</strong> WP-UserOnline Plugin
@@ -527,6 +541,6 @@
527
  </div>
528
  </div>
529
  </div>
530
- <p id="Copyright">WP-UserOnline 2.11<br />Copyright &copy; 2007 Lester 'GaMerZ' Chan. All Rights Reserved.</p>
531
  </body>
532
  </html>
2
  <html>
3
  <head>
4
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
5
+ <title>WP-UserOnline 2.20 Readme</title>
6
  <style type="text/css" media="screen">
7
  /* Default Style */
8
  BODY {
204
  <body>
205
  <div id="Container">
206
  <!-- Title -->
207
+ <div id="Title">WP-UserOnline 2.20&nbsp;&nbsp;&nbsp;<span style="color: #aaaaaa;">Readme</span></div>
208
 
209
  <!-- Tabs -->
210
  <ul id="Tabs">
230
  <strong>&raquo;</strong>
231
  <script type="text/javascript">
232
  /* <![CDATA[*/
233
+ document.write(' <a href="mailto:gamerz84@hotmail.com?Subject=WP-UserOnline%202.20%20Support" title="EMail To gamerz84@hotmail.com">gamerz84@hotmail.com</a>');
234
  /* ]]> */
235
  </script>
236
  </p>
237
  <p>
238
  <strong>Website:</strong><br />
239
+ <strong>&raquo;</strong> <a href="http://lesterchan.net/" title="http://lesterchan.net/">http://lesterchan.net/</a>
240
  </p>
241
  <p>
242
  <strong>Features:</strong><br />
244
  </p>
245
  <p>
246
  <strong>Download:</strong><br />
247
+ <strong>&raquo;</strong> <a href="http://lesterchan.net/others/downloads.php?id=14" title="http://lesterchan.net/others/downloads.php?id=14">WP-UserOnline 2.20 For WordPress 2.3.x</a><br />
248
+ <strong>&raquo;</strong> <a href="http://lesterchan.net/others/downloads/wp-useronline211.zip" title="http://lesterchan.net/others/downloads/wp-useronline211.zip">WP-UserOnline 2.11 For WordPress 2.1.x And 2.2.x</a><br />
249
+ <strong>&raquo;</strong> <a href="http://lesterchan.net/others/downloads/wp-useronline206.zip" title="http://lesterchan.net/others/downloads/wp-useronline206.zip">WP-UserOnline 2.06 For WordPress 2.0.x</a><br />
250
+ <strong>&raquo;</strong> <a href="http://lesterchan.net/others/downloads/wp-useronline.zip" title="http://lesterchan.net/others/downloads/wp-useronline.zip">WP-UserOnline 1.00 For WordPress 1.5.2</a>
251
+ </p>
252
+ <p>
253
+ <strong>Screenshots:</strong><br />
254
+ <strong>&raquo;</strong> <a href="http://lesterchan.net/wordpress/screenshots/browse/wp-useronline/" title="http://lesterchan.net/wordpress/screenshots/browse/wp-useronline/">http://lesterchan.net/wordpress/screenshots/browse/wp-useronline/</a>
255
  </p>
256
  <p>
257
  <strong>Demo:</strong><br />
258
+ <strong>&raquo;</strong> <a href="http://lesterchan.net/wordpress/useronline/" title="http://lesterchan.net/wordpress/useronline/">http://lesterchan.net/wordpress/useronline/</a>
259
  </p>
260
  <p>
261
  <strong>Development:</strong><br />
271
  </p>
272
  <p>
273
  <strong>Updated:</strong><br />
274
+ <strong>&raquo;</strong> 1st October 2007
275
  </p>
276
  <p>
277
  <strong>Note:</strong><br />
292
  <div id="Changelog" style="display: none;">
293
  <div class="SubTitle">&raquo; Changelog</div>
294
  <ul>
295
+ <li>
296
+ <strong>Version 2.20 (01-10-2007)</strong>
297
+ <ul>
298
+ <li>NEW: Works For WordPress 2.3 Only</li>
299
+ <li>NEW:Templates Options Added</li>
300
+ <li>NEW: Ability To Uninstall WP-UserOnline</li>
301
+ <li>NEW: Uses WP-Stats Filter To Add Stats Into WP-Stats Page</li>
302
+ </ul>
303
+ </li>
304
  <li>
305
  <strong>Version 2.11 (01-06-2007)</strong>
306
  <ul>
410
  <!-- Upgrade Instructions -->
411
  <div id="Upgrade" style="display: none;">
412
  <div class="SubTitle">&raquo; Upgrade Instructions</div>
413
+ <div class="SubSubTitle">From v1.0x To v2.20</div>
414
  <ol>
415
  <li>
416
  <strong>Deactivate</strong> WP-UserOnline Plugin
541
  </div>
542
  </div>
543
  </div>
544
+ <p id="Copyright">WP-UserOnline 2.20<br />Copyright &copy; 2007 Lester 'GaMerZ' Chan. All Rights Reserved.</p>
545
  </body>
546
  </html>
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === WP-UserOnline ===
2
  Contributors: GamerZ
3
- Donate link: http://www.lesterchan.net/wordpress
4
  Tags: useronline, usersonline, wp-useronline, online, users, user, ajax, widget
5
- Requires at least: 2.1.0
6
- Stable tag: 2.11
7
 
8
  Enable you to display how many users are online on your Wordpress blog with detailed statistics.
9
 
@@ -11,21 +11,21 @@ Enable you to display how many users are online on your Wordpress blog with deta
11
 
12
  Detailed statistics of where they are and who there are(Members/Guests/Search Bots).
13
 
14
- All the information (general, changelog, installation, upgrade, usage) you need about this plugin can be found here: [WP-UserOnline Readme](http://www.lesterchan.net/wordpress/readme/wp-useronline.html "WP-UserOnline Readme").
15
  It is the exact same readme.html is included in the zip package.
16
 
17
  == Development Blog ==
18
 
19
- [GaMerZ WordPress Plugins Development Blog](http://www.lesterchan.net/wordpress/ "GaMerZ WordPress Plugins Development Blog")
20
 
21
  == Installation ==
22
 
23
- [WP-UserOnline Readme](http://www.lesterchan.net/wordpress/readme/wp-useronline.html "WP-UserOnline Readme") (Installation Tab)
24
 
25
  == Screenshots ==
26
 
27
- [GaMerZ WordPress Plugins Screenshots](http://www.lesterchan.net/wordpress/screenshots/ "GaMerZ WordPress Plugins Screenshots")
28
 
29
  == Frequently Asked Questions ==
30
 
31
- You will need [GaMerZ WordPress Plugins Support Forums](http://forums.lesterchan.net/ "GaMerZ WordPress Plugins Support Forums")
1
  === WP-UserOnline ===
2
  Contributors: GamerZ
3
+ Donate link: http://lesterchan.net/wordpress
4
  Tags: useronline, usersonline, wp-useronline, online, users, user, ajax, widget
5
+ Requires at least: 2.3.0
6
+ Stable tag: 2.20
7
 
8
  Enable you to display how many users are online on your Wordpress blog with detailed statistics.
9
 
11
 
12
  Detailed statistics of where they are and who there are(Members/Guests/Search Bots).
13
 
14
+ All the information (general, changelog, installation, upgrade, usage) you need about this plugin can be found here: [WP-UserOnline Readme](http://lesterchan.net/wordpress/readme/wp-useronline.html "WP-UserOnline Readme").
15
  It is the exact same readme.html is included in the zip package.
16
 
17
  == Development Blog ==
18
 
19
+ [GaMerZ WordPress Plugins Development Blog](http://lesterchan.net/wordpress/ "GaMerZ WordPress Plugins Development Blog")
20
 
21
  == Installation ==
22
 
23
+ [WP-UserOnline Readme](http://lesterchan.net/wordpress/readme/wp-useronline.html "WP-UserOnline Readme") (Installation Tab)
24
 
25
  == Screenshots ==
26
 
27
+ [WP-UserOnline Screenshots](http://lesterchan.net/wordpress/screenshots/browse/wp-useronline/ "WP-UserOnline Screenshots")
28
 
29
  == Frequently Asked Questions ==
30
 
31
+ [WP-UserOnline Support Forums](http://forums.lesterchan.net/index.php?board=21.0 "WP-UserOnline Support Forums")
useronline/useronline-js.php CHANGED
@@ -2,12 +2,12 @@
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
- | WordPress 2.1 Plugin: WP-UserOnline 2.11 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
- | - http://www.lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - Useronline Javascript File |
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
+ | WordPress 2.1 Plugin: WP-UserOnline 2.20 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
+ | - http://lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - Useronline Javascript File |
useronline/useronline-options.php CHANGED
@@ -2,12 +2,12 @@
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
- | WordPress 2.1 Plugin: WP-UserOnline 2.11 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
- | - http://www.lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - Useronline Options Page |
@@ -20,84 +20,355 @@
20
  ### Variables Variables Variables
21
  $base_name = plugin_basename('useronline/useronline-options.php');
22
  $base_page = 'admin.php?page='.$base_name;
 
 
 
23
 
24
- ### If Form Is Submitted
25
- if($_POST['Submit']) {
26
- $useronline_bots = array();
27
- $useronline_timeout = intval($_POST['useronline_timeout']);
28
- $useronline_bots_name = explode("\n", trim($_POST['useronline_bots_name']));
29
- $useronline_bots_agent = explode("\n", trim($_POST['useronline_bots_agent']));
30
- $useronline_bots_keys = array_values((array) $useronline_bots_name);
31
- $useronline_bots_vals = array_values((array) $useronline_bots_agent);
32
- $n = max(count($useronline_bots_keys), count($useronline_bots_vals));
33
- for($i = 0; $i < $n; $i++) {
34
- $useronline_bots[trim($useronline_bots_keys[$i])] = trim($useronline_bots_vals[$i]);
35
- }
36
- $useronline_url = addslashes(trim($_POST['useronline_url']));
37
- $update_useronline_queries = array();
38
- $update_useronline_text = array();
39
- $update_useronline_queries[] = update_option('useronline_timeout', $useronline_timeout);
40
- $update_useronline_queries[] = update_option('useronline_bots', $useronline_bots);
41
- $update_useronline_queries[] = update_option('useronline_url', $useronline_url);
42
- $update_useronline_text[] = __('Useronline Timeout', 'wp-useronline');
43
- $update_useronline_text[] = __('Useronline Bots', 'wp-useronline');
44
- $update_useronline_text[] = __('Useronline URL', 'wp-useronline');
45
- $i=0;
46
- $text = '';
47
- foreach($update_useronline_queries as $update_useronline_query) {
48
- if($update_useronline_query) {
49
- $text .= '<font color="green">'.$update_useronline_text[$i].' '.__('Updated', 'wp-useronline').'</font><br />';
50
- }
51
- $i++;
52
- }
53
- if(empty($text)) {
54
- $text = '<font color="red">'.__('No Useronline Option Updated', 'wp-useronline').'</font>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  }
56
  }
57
 
58
- ### Get Useronline Bots
59
- $useronline_options_bots = get_option('useronline_bots');
60
- $useronline_options_bots_name = '';
61
- $useronline_options_bots_agent = '';
62
- foreach($useronline_options_bots as $botname => $botagent) {
63
- $useronline_options_bots_name .= $botname."\n";
64
- $useronline_options_bots_agent .= $botagent."\n";
65
- }
66
- $useronline_options_bots_name = trim($useronline_options_bots_name);
67
- $useronline_options_bots_agent = trim($useronline_options_bots_agent);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  ?>
69
  <?php if(!empty($text)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$text.'</p></div>'; } ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  <div class="wrap">
71
  <h2><?php _e('Useronline Options', 'wp-useronline'); ?></h2>
72
- <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
73
- <fieldset class="options">
74
- <legend><?php _e('Useronline Options', 'wp-useronline'); ?></legend>
75
- <table width="100%" border="0" cellspacing="3" cellpadding="3">
76
- <tr valign="top">
77
- <th align="left" width="30%"><?php _e('Time Out', 'wp-useronline'); ?></th>
78
- <td align="left">
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
  </td>
81
- </tr>
82
- <tr valign="top">
83
- <th align="left" width="30%"><?php _e('UserOnline URL', 'wp-useronline'); ?></th>
84
- <td align="left">
85
- <input type="text" name="useronline_url" value="<?php echo get_option('useronline_url'); ?>" size="50" /><br /><?php _e('URL To UserOnline Page (leave blank if you do not want to link it to the UserOnline Page)<br />Example: http://www.yoursite.com/blogs/useronline/<br />Example: http://www.yoursite.com/blogs/?page_id=2', 'wp-useronline'); ?>
86
- </td>
87
- </tr>
88
- <tr valign="top">
89
- <th align="left" width="30%"><?php _e('Bots Name/User Agent', 'wp-useronline'); ?></th>
90
- <td align="left">
91
- <?php _e('Here are a list of bots and their partial browser agents.<br />On the left column will be the <strong>Bot\'s Name</strong> and on the right column will be their <strong>Partial Browser Agent</strong>.<br />Start each entry on a new line.', 'wp-useronline'); ?>
92
- <br /><br />
93
- <textarea cols="20" rows="30" name="useronline_bots_name"><?php echo $useronline_options_bots_name; ?></textarea>
94
- <textarea cols="20" rows="30" name="useronline_bots_agent"><?php echo $useronline_options_bots_agent; ?></textarea>
95
- </td>
96
- </tr>
97
- </table>
98
- </fieldset>
99
- <div align="center">
100
- <input type="submit" name="Submit" class="button" value="<?php _e('Update Options', 'wp-useronline'); ?>" />&nbsp;&nbsp;<input type="button" name="cancel" value="<?php _e('Cancel', 'wp-useronline'); ?>" class="button" onclick="javascript:history.go(-1)" />
101
- </div>
102
- </form>
103
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
+ | WordPress 2.1 Plugin: WP-UserOnline 2.20 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
+ | - http://lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - Useronline Options Page |
20
  ### Variables Variables Variables
21
  $base_name = plugin_basename('useronline/useronline-options.php');
22
  $base_page = 'admin.php?page='.$base_name;
23
+ $mode = trim($_GET['mode']);
24
+ $useronline_tables = array($wpdb->useronline);
25
+ $useronline_settings = array('useronline_most_users', 'useronline_most_timestamp', 'useronline_timeout', 'useronline_bots', 'useronline_url', 'useronline_naming', 'useronline_template_useronline', 'useronline_template_browsingsite', 'useronline_template_browsingpage', 'widget_useronline');
26
 
27
+
28
+ ### Form Processing
29
+ if(!empty($_POST['do'])) {
30
+ // Decide What To Do
31
+ switch($_POST['do']) {
32
+ case __('Update Options', 'wp-useronline'):
33
+ $useronline_bots = array();
34
+ $useronline_timeout = intval($_POST['useronline_timeout']);
35
+ $useronline_bots_name = explode("\n", trim($_POST['useronline_bots_name']));
36
+ $useronline_bots_agent = explode("\n", trim($_POST['useronline_bots_agent']));
37
+ $useronline_bots_keys = array_values((array) $useronline_bots_name);
38
+ $useronline_bots_vals = array_values((array) $useronline_bots_agent);
39
+ $n = max(count($useronline_bots_keys), count($useronline_bots_vals));
40
+ for($i = 0; $i < $n; $i++) {
41
+ $useronline_bots[trim($useronline_bots_keys[$i])] = trim($useronline_bots_vals[$i]);
42
+ }
43
+ $useronline_url = trim($_POST['useronline_url']);
44
+ $useronline_naming_user = trim($_POST['useronline_naming_user']);
45
+ $useronline_naming_users = trim($_POST['useronline_naming_users']);
46
+ $useronline_naming_member = trim($_POST['useronline_naming_member']);
47
+ $useronline_naming_members = trim($_POST['useronline_naming_members']);
48
+ $useronline_naming_guest = trim($_POST['useronline_naming_guest']);
49
+ $useronline_naming_guests = trim($_POST['useronline_naming_guests']);
50
+ $useronline_naming_bot = trim($_POST['useronline_naming_bot']);
51
+ $useronline_naming_bots = trim($_POST['useronline_naming_bots']);
52
+ $useronline_naming = array('user' => $useronline_naming_user, 'users' => $useronline_naming_users, 'member' => $useronline_naming_member, 'members' => $useronline_naming_members, 'guest' => $useronline_naming_guest, 'guests' => $useronline_naming_guests, 'bot' => $useronline_naming_bot, 'bots' => $useronline_naming_bots);
53
+ $useronline_template_useronline = trim($_POST['useronline_template_useronline']);
54
+ $useronline_template_browsingsite = array($_POST['useronline_separator_browsingsite_members'], $_POST['useronline_separator_browsingsite_guests'], $_POST['useronline_separator_browsingsite_bots'], trim($_POST['useronline_template_browsingsite']));
55
+ $useronline_template_browsingpage = array($_POST['useronline_separator_browsingpage_members'], $_POST['useronline_separator_browsingpage_guests'], $_POST['useronline_separator_browsingpage_bots'], trim($_POST['useronline_template_browsingpage']));
56
+ $update_useronline_queries = array();
57
+ $update_useronline_text = array();
58
+ $update_useronline_queries[] = update_option('useronline_timeout', $useronline_timeout);
59
+ $update_useronline_queries[] = update_option('useronline_bots', $useronline_bots);
60
+ $update_useronline_queries[] = update_option('useronline_url', $useronline_url);
61
+ $update_useronline_queries[] = update_option('useronline_naming', $useronline_naming);
62
+ $update_useronline_queries[] = update_option('useronline_template_useronline', $useronline_template_useronline);
63
+ $update_useronline_queries[] = update_option('useronline_template_browsingsite', $useronline_template_browsingsite);
64
+ $update_useronline_queries[] = update_option('useronline_template_browsingpage', $useronline_template_browsingpage);
65
+ $update_useronline_text[] = __('Useronline Timeout', 'wp-useronline');
66
+ $update_useronline_text[] = __('Useronline Bots', 'wp-useronline');
67
+ $update_useronline_text[] = __('Useronline URL', 'wp-useronline');
68
+ $update_useronline_text[] = __('Useronline Naming Conventions', 'wp-useronline');
69
+ $update_useronline_text[] = __('User(s) Online Template', 'wp-useronline');
70
+ $update_useronline_text[] = __('User(s) Browsing Site Template', 'wp-useronline');
71
+ $update_useronline_text[] = __('User(s) Browsing Page Template', 'wp-useronline');
72
+ $i=0;
73
+ $text = '';
74
+ foreach($update_useronline_queries as $update_useronline_query) {
75
+ if($update_useronline_query) {
76
+ $text .= '<font color="green">'.$update_useronline_text[$i].' '.__('Updated', 'wp-useronline').'</font><br />';
77
+ }
78
+ $i++;
79
+ }
80
+ if(empty($text)) {
81
+ $text = '<font color="red">'.__('No Useronline Option Updated', 'wp-useronline').'</font>';
82
+ }
83
+ break;
84
+ // Uninstall WP-UserOnline
85
+ case __('UNINSTALL WP-UserOnline', 'wp-useronline') :
86
+ if(trim($_POST['uninstall_useronline_yes']) == 'yes') {
87
+ echo '<div id="message" class="updated fade">';
88
+ echo '<p>';
89
+ foreach($useronline_tables as $table) {
90
+ $wpdb->query("DROP TABLE {$table}");
91
+ echo '<font style="color: green;">';
92
+ printf(__('Table \'%s\' has been deleted.', 'wp-useronline'), "<strong><em>{$table}</em></strong>");
93
+ echo '</font><br />';
94
+ }
95
+ echo '</p>';
96
+ echo '<p>';
97
+ foreach($useronline_settings as $setting) {
98
+ $delete_setting = delete_option($setting);
99
+ if($delete_setting) {
100
+ echo '<font color="green">';
101
+ printf(__('Setting Key \'%s\' has been deleted.', 'wp-useronline'), "<strong><em>{$setting}</em></strong>");
102
+ echo '</font><br />';
103
+ } else {
104
+ echo '<font color="red">';
105
+ printf(__('Error deleting Setting Key \'%s\'.', 'wp-useronline'), "<strong><em>{$setting}</em></strong>");
106
+ echo '</font><br />';
107
+ }
108
+ }
109
+ echo '</p>';
110
+ echo '</div>';
111
+ $mode = 'end-UNINSTALL';
112
+ }
113
+ break;
114
  }
115
  }
116
 
117
+
118
+ ### Determines Which Mode It Is
119
+ switch($mode) {
120
+ // Deactivating WP-UserOnline
121
+ case 'end-UNINSTALL':
122
+ $deactivate_url = 'plugins.php?action=deactivate&amp;plugin=useronline/useronline.php';
123
+ if(function_exists('wp_nonce_url')) {
124
+ $deactivate_url = wp_nonce_url($deactivate_url, 'deactivate-plugin_useronline/useronline.php');
125
+ }
126
+ echo '<div class="wrap">';
127
+ echo '<h2>'.__('Uninstall WP-UserOnline', 'wp-useronline').'</h2>';
128
+ echo '<p><strong>'.sprintf(__('<a href="%s">Click Here</a> To Finish The Uninstallation And WP-UserOnline Will Be Deactivated Automatically.', 'wp-useronline'), $deactivate_url).'</strong></p>';
129
+ echo '</div>';
130
+ break;
131
+ // Main Page
132
+ default:
133
+ $useronline_options_naming = get_option('useronline_naming');
134
+ $useronline_options_bots = get_option('useronline_bots');
135
+ $useronline_template_browsingsite = get_option('useronline_template_browsingsite');
136
+ $useronline_template_browsingpage = get_option('useronline_template_browsingpage');
137
+ $useronline_options_bots_name = '';
138
+ $useronline_options_bots_agent = '';
139
+ foreach($useronline_options_bots as $botname => $botagent) {
140
+ $useronline_options_bots_name .= $botname."\n";
141
+ $useronline_options_bots_agent .= $botagent."\n";
142
+ }
143
+ $useronline_options_bots_name = trim($useronline_options_bots_name);
144
+ $useronline_options_bots_agent = trim($useronline_options_bots_agent);
145
  ?>
146
  <?php if(!empty($text)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$text.'</p></div>'; } ?>
147
+ <script type="text/javascript">
148
+ /* <![CDATA[*/
149
+ function useronline_default_templates(template) {
150
+ var default_template;
151
+ switch(template) {
152
+ case "useronline":
153
+ default_template = "<a href=\"%USERONLINE_PAGE_URL%\" title=\"%USERONLINE_USERS%\"><strong>%USERONLINE_USERS%</strong> <?php _e('Online', 'wp-useronline'); ?></a>";
154
+ break;
155
+ }
156
+ document.getElementById("useronline_template_" + template).value = default_template;
157
+ }
158
+
159
+ function useronline_default_naming() {
160
+ document.getElementById('useronline_naming_user').value = "<?php _e('1 User', 'wp-useronline'); ?>";
161
+ document.getElementById('useronline_naming_users').value = "<?php _e('%USERONLINE_COUNT% Users', 'wp-useronline'); ?>";
162
+ document.getElementById('useronline_naming_member').value = "<?php _e('1 Member', 'wp-useronline'); ?>";
163
+ document.getElementById('useronline_naming_members').value = "<?php _e('%USERONLINE_COUNT% Members', 'wp-useronline'); ?>";
164
+ document.getElementById('useronline_naming_guest').value = "<?php _e('1 Guest', 'wp-useronline'); ?>";
165
+ document.getElementById('useronline_naming_guests').value = "<?php _e('%USERONLINE_COUNT% Guests', 'wp-useronline'); ?>";
166
+ document.getElementById('useronline_naming_bot').value = "<?php _e('1 Bot', 'wp-useronline'); ?>";
167
+ document.getElementById('useronline_naming_bots').value = "<?php _e('%USERONLINE_COUNT% Bots', 'wp-useronline'); ?>";
168
+ }
169
+ function useronline_default_browsing_site() {
170
+ document.getElementById('useronline_separator_browsingsite_members').value = ', ';
171
+ document.getElementById('useronline_separator_browsingsite_guests').value = ', ';
172
+ document.getElementById('useronline_separator_browsingsite_bots').value = ', ';
173
+ document.getElementById('useronline_template_browsingsite').value = "<?php _e('Users', 'wp-useronline'); ?>: <strong>%USERONLINE_MEMBER_NAMES%%USERONLINE_GUESTS_SEPERATOR%%USERONLINE_GUESTS%%USERONLINE_BOTS_SEPERATOR%%USERONLINE_BOTS%</strong>";
174
+ }
175
+ function useronline_default_browsing_page() {
176
+ document.getElementById('useronline_separator_browsingpage_members').value = ', ';
177
+ document.getElementById('useronline_separator_browsingpage_guests').value = ', ';
178
+ document.getElementById('useronline_separator_browsingpage_bots').value = ', ';
179
+ document.getElementById('useronline_template_browsingpage').value = "<strong>%USERONLINE_USERS%</strong> <?php _e('Browsing This Page.', 'wp-useronline'); ?><br /><?php _e('Users', 'wp-useronline'); ?>: <strong>%USERONLINE_MEMBER_NAMES%%USERONLINE_GUESTS_SEPERATOR%%USERONLINE_GUESTS%%USERONLINE_BOTS_SEPERATOR%%USERONLINE_BOTS%</strong>";
180
+ }
181
+ /* ]]> */
182
+ </script>
183
+ <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
184
  <div class="wrap">
185
  <h2><?php _e('Useronline Options', 'wp-useronline'); ?></h2>
186
+ <fieldset class="options">
187
+ <legend><?php _e('Useronline Options', 'wp-useronline'); ?></legend>
188
+ <table width="100%" border="0" cellspacing="3" cellpadding="3">
189
+ <tr valign="top">
190
+ <th align="left" width="30%"><?php _e('Time Out', 'wp-useronline'); ?></th>
191
+ <td align="left">
192
+ <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'); ?>
193
+ </td>
194
+ </tr>
195
+ <tr valign="top">
196
+ <th align="left" width="30%"><?php _e('UserOnline URL', 'wp-useronline'); ?></th>
197
+ <td align="left">
198
+ <input type="text" name="useronline_url" value="<?php echo get_option('useronline_url'); ?>" size="50" /><br /><?php _e('URL To UserOnline Page (leave blank if you do not want to link it to the UserOnline Page)<br />Example: http://www.yoursite.com/blogs/useronline/<br />Example: http://www.yoursite.com/blogs/?page_id=2', 'wp-useronline'); ?>
199
+ </td>
200
+ </tr>
201
+ <tr valign="top">
202
+ <th align="left" width="30%"><?php _e('Bots Name/User Agent', 'wp-useronline'); ?></th>
203
+ <td align="left">
204
+ <?php _e('Here are a list of bots and their partial browser agents.<br />On the left column will be the <strong>Bot\'s Name</strong> and on the right column will be their <strong>Partial Browser Agent</strong>.<br />Start each entry on a new line.', 'wp-useronline'); ?>
205
+ <br /><br />
206
+ <textarea cols="20" rows="30" name="useronline_bots_name"><?php echo $useronline_options_bots_name; ?></textarea>
207
+ <textarea cols="20" rows="30" name="useronline_bots_agent"><?php echo $useronline_options_bots_agent; ?></textarea>
208
+ </td>
209
+ </tr>
210
+ <tr valign="top">
211
+ <td width="30%" align="left">
212
+ <strong><?php _e('Naming Conventions:', 'wp-useronline'); ?></strong><br /><br /><br />
213
+ <?php _e('Allowed Variables:', 'wp-useronline'); ?><br />
214
+ - %USERONLINE_COUNT%<br /><br />
215
+ <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-useronline'); ?>" onclick="useronline_default_naming();" class="button" />
216
  </td>
217
+ <td align="left">
218
+ <table width="100%" border="0" cellspacing="3" cellpadding="3">
219
+ <tr>
220
+ <th><?php _e('Singular Form', 'wp-useronline'); ?></th>
221
+ <th><?php _e('Plural Form', 'wp-useronline'); ?></th>
222
+ </tr>
223
+ <tr>
224
+ <td><input type="text" id="useronline_naming_user" name="useronline_naming_user" value="<?php echo stripslashes($useronline_options_naming['user']); ?>" size="20" /></td>
225
+ <td><input type="text" id="useronline_naming_users" name="useronline_naming_users" value="<?php echo stripslashes($useronline_options_naming['users']); ?>" size="40" /></td>
226
+ </tr>
227
+ <tr>
228
+ <td><input type="text" id="useronline_naming_member" name="useronline_naming_member" value="<?php echo stripslashes($useronline_options_naming['member']); ?>" size="20" /></td>
229
+ <td><input type="text" id="useronline_naming_members" name="useronline_naming_members" value="<?php echo stripslashes($useronline_options_naming['members']); ?>" size="40" /></td>
230
+ </tr>
231
+ <tr>
232
+ <td><input type="text" id="useronline_naming_guest" name="useronline_naming_guest" value="<?php echo stripslashes($useronline_options_naming['guest']); ?>" size="20" /></td>
233
+ <td><input type="text" id="useronline_naming_guests" name="useronline_naming_guests" value="<?php echo stripslashes($useronline_options_naming['guests']); ?>" size="40" /></td>
234
+ </tr>
235
+ <tr>
236
+ <td><input type="text" id="useronline_naming_bot" name="useronline_naming_bot" value="<?php echo stripslashes($useronline_options_naming['bot']); ?>" size="20" /></td>
237
+ <td><input type="text" id="useronline_naming_bots" name="useronline_naming_bots" value="<?php echo stripslashes($useronline_options_naming['bots']); ?>" size="40" /></td>
238
+ </tr>
239
+ </table>
240
+ </td>
241
+ </tr>
242
+ </table>
243
+ </fieldset>
244
+ <fieldset class="options">
245
+ <legend><?php _e('Useronline Templates', 'wp-useronline'); ?></legend>
246
+ <table width="100%" border="0" cellspacing="3" cellpadding="3">
247
+ <tr valign="top">
248
+ <td width="30%" align="left">
249
+ <strong><?php _e('User(s) Online:', 'wp-useronline'); ?></strong><br /><br /><br />
250
+ <?php _e('Allowed Variables:', 'wp-useronline'); ?><br />
251
+ - %USERONLINE_USERS%<br />
252
+ - %USERONLINE_PAGE_URL%<br />
253
+ - %USERONLINE_MOSTONLINE_COUNT%<br />
254
+ - %USERONLINE_MOSTONLINE_DATE%<br /><br />
255
+ <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-useronline'); ?>" onclick="useronline_default_templates('useronline');" class="button" />
256
+ </td>
257
+ <td align="left"><textarea cols="80" rows="12" id="useronline_template_useronline" name="useronline_template_useronline"><?php echo htmlspecialchars(stripslashes(get_option('useronline_template_useronline'))); ?></textarea></td>
258
+ </tr>
259
+ <tr valign="top">
260
+ <td width="30%" align="left">
261
+ <strong><?php _e('User(s) Browsing Site:', 'wp-useronline'); ?></strong><br /><br /><br />
262
+ <?php _e('Allowed Variables:', 'wp-useronline'); ?><br />
263
+ - %USERONLINE_USERS%<br />
264
+ - %USERONLINE_MEMBERS%<br />
265
+ - %USERONLINE_MEMBER_NAMES%<br />
266
+ - %USERONLINE_GUESTS_SEPERATOR%<br />
267
+ - %USERONLINE_GUESTS%<br />
268
+ - %USERONLINE_BOTS_SEPERATOR%<br />
269
+ - %USERONLINE_BOTS%<br /><br />
270
+ <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-useronline'); ?>" onclick="useronline_default_browsing_site();" class="button" />
271
+ </td>
272
+ <td align="left">
273
+ <table width="90%" border="0" cellspacing="3" cellpadding="3">
274
+ <tr>
275
+ <th><?php _e('Member Names Separator', 'wp-useronline'); ?></th>
276
+ <th><?php _e('Guests Separator', 'wp-useronline'); ?></th>
277
+ <th><?php _e('Bots Separator', 'wp-useronline'); ?></th>
278
+ </tr>
279
+ <tr>
280
+ <td><input type="text" id="useronline_separator_browsingsite_members" name="useronline_separator_browsingsite_members" value="<?php echo stripslashes($useronline_template_browsingsite[0]); ?>" size="15" /></td>
281
+ <td><input type="text" id="useronline_separator_browsingsite_guests" name="useronline_separator_browsingsite_guests" value="<?php echo stripslashes($useronline_template_browsingsite[1]); ?>" size="15" /></td>
282
+ <td><input type="text" id="useronline_separator_browsingsite_bots" name="useronline_separator_browsingsite_bots" value="<?php echo stripslashes($useronline_template_browsingsite[2]); ?>" size="15" /></td>
283
+ </tr>
284
+ </table>
285
+ <textarea cols="80" rows="12" id="useronline_template_browsingsite" name="useronline_template_browsingsite"><?php echo htmlspecialchars(stripslashes($useronline_template_browsingsite[3])); ?></textarea>
286
+ </td>
287
+ </tr>
288
+ <tr valign="top">
289
+ <td width="30%" align="left">
290
+ <strong><?php _e('User(s) Browsing Page:', 'wp-useronline'); ?></strong><br /><br /><br />
291
+ <?php _e('Allowed Variables:', 'wp-useronline'); ?><br />
292
+ - %USERONLINE_USERS%<br />
293
+ - %USERONLINE_MEMBERS%<br />
294
+ - %USERONLINE_MEMBER_NAMES%<br />
295
+ - %USERONLINE_GUESTS_SEPERATOR%<br />
296
+ - %USERONLINE_GUESTS%<br />
297
+ - %USERONLINE_BOTS_SEPERATOR%<br />
298
+ - %USERONLINE_BOTS%<br /><br />
299
+ <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-useronline'); ?>" onclick="useronline_default_browsing_page();" class="button" />
300
+ </td>
301
+ <td align="left">
302
+ <table width="90%" border="0" cellspacing="3" cellpadding="3">
303
+ <tr>
304
+ <th><?php _e('Member Names Separator', 'wp-useronline'); ?></th>
305
+ <th><?php _e('Guests Separator', 'wp-useronline'); ?></th>
306
+ <th><?php _e('Bots Separator', 'wp-useronline'); ?></th>
307
+ </tr>
308
+ <tr>
309
+ <td><input type="text" id="useronline_separator_browsingpage_members" name="useronline_separator_browsingpage_members" value="<?php echo stripslashes($useronline_template_browsingpage[0]); ?>" size="15" /></td>
310
+ <td><input type="text" id="useronline_separator_browsingpage_guests" name="useronline_separator_browsingpage_guests" value="<?php echo stripslashes($useronline_template_browsingpage[1]); ?>" size="15" /></td>
311
+ <td><input type="text" id="useronline_separator_browsingpage_bots" name="useronline_separator_browsingpage_bots" value="<?php echo stripslashes($useronline_template_browsingpage[2]); ?>" size="15" /></td>
312
+ </tr>
313
+ </table>
314
+ <textarea cols="80" rows="12" id="useronline_template_browsingpage" name="useronline_template_browsingpage"><?php echo htmlspecialchars(stripslashes($useronline_template_browsingpage[3])); ?></textarea>
315
+ </td>
316
+ </tr>
317
+ </table>
318
+ </fieldset>
319
+ <div align="center">
320
+ <input type="submit" name="do" class="button" value="<?php _e('Update Options', 'wp-useronline'); ?>" />&nbsp;&nbsp;<input type="button" name="cancel" value="<?php _e('Cancel', 'wp-useronline'); ?>" class="button" onclick="javascript:history.go(-1)" />
321
+ </div>
322
+ </div>
323
+ </form>
324
+
325
+ <!-- Uninstall WP-UserOnline -->
326
+ <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
327
+ <div class="wrap">
328
+ <h2><?php _e('Uninstall WP-UserOnline', 'wp-useronline'); ?></h2>
329
+ <p style="text-align: left;">
330
+ <?php _e('Deactivating WP-UserOnline plugin does not remove any data that may have been created, such as the useronline options. To completely remove this plugin, you can uninstall it here.', 'wp-useronline'); ?>
331
+ </p>
332
+ <p style="text-align: left; color: red">
333
+ <strong><?php _e('WARNING:', 'wp-useronline'); ?></strong><br />
334
+ <?php _e('Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first.', 'wp-useronline'); ?>
335
+ </p>
336
+ <p style="text-align: left; color: red">
337
+ <strong><?php _e('The following WordPress Options/Tables will be DELETED:', 'wp-useronline'); ?></strong><br />
338
+ </p>
339
+ <table width="70%" border="0" cellspacing="3" cellpadding="3">
340
+ <tr class="thead">
341
+ <td align="center"><strong><?php _e('WordPress Options', 'wp-useronline'); ?></strong></td>
342
+ <td align="center"><strong><?php _e('WordPress Tables', 'wp-useronline'); ?></strong></td>
343
+ </tr>
344
+ <tr>
345
+ <td valign="top" style="background-color: #eee;">
346
+ <ol>
347
+ <?php
348
+ foreach($useronline_settings as $settings) {
349
+ echo '<li>'.$settings.'</li>'."\n";
350
+ }
351
+ ?>
352
+ </ol>
353
+ </td>
354
+ <td valign="top" style="background-color: #eee;">
355
+ <ol>
356
+ <?php
357
+ foreach($useronline_tables as $tables) {
358
+ echo '<li>'.$tables.'</li>'."\n";
359
+ }
360
+ ?>
361
+ </ol>
362
+ </td>
363
+ </tr>
364
+ </table>
365
+ <p>&nbsp;</p>
366
+ <p style="text-align: center;">
367
+ <input type="checkbox" name="uninstall_useronline_yes" value="yes" />&nbsp;<?php _e('Yes', 'wp-useronline'); ?><br /><br />
368
+ <input type="submit" name="do" value="<?php _e('UNINSTALL WP-UserOnline', 'wp-useronline'); ?>" class="button" onclick="return confirm('<?php _e('You Are About To Uninstall WP-UserOnline From WordPress.\nThis Action Is Not Reversible.\n\n Choose [Cancel] To Stop, [OK] To Uninstall.', 'wp-useronline'); ?>')" />
369
+ </p>
370
+ </div>
371
+ </form>
372
+ <?php
373
+ } // End switch($mode)
374
+ ?>
useronline/useronline-widget.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
  /*
3
  Plugin Name: WP-UserOnline Widget
4
- Plugin URI: http://www.lesterchan.net/portfolio/programming.php
5
  Description: Adds a UserOnline Widget to display users online from WP-UserOnline Plugin. You need to activate WP-UserOnline first.
6
- Version: 2.11
7
- Author: GaMerZ
8
- Author URI: http://www.lesterchan.net
9
  */
10
 
11
 
@@ -67,12 +67,12 @@ function widget_useronline_init() {
67
  update_option('widget_useronline', $options);
68
  }
69
  echo '<p style="text-align: left;"><label for="useronline-title">'.__('Widget Title', 'wp-useronline').':</label>&nbsp;&nbsp;&nbsp;<input type="text" id="useronline-title" name="useronline-title" value="'.htmlspecialchars($options['title']).'" />';
70
- echo '<p style="text-align: center;"><label for="useronline-usersbrowsingsite">'.__('Display Users Browsing Site Under Users Online Count?', 'wp-useronline').'</label></p>'."\n";
71
- echo '<p style="text-align: center;"><input type="radio" id="useronline-usersbrowsingsite" name="useronline-usersbrowsingsite" value="1"';
72
  checked(1, intval($options['display_usersbrowsingsite']));
73
- echo ' />&nbsp;'.__('Yes', 'wp-useronline').'&nbsp;&nbsp;&nbsp;<input type="radio" id="useronline-usersbrowsingsite" name="useronline-usersbrowsingsite" value="0"';
74
  checked(0, intval($options['display_usersbrowsingsite']));
75
- echo ' />&nbsp;'.__('No', 'wp-useronline').'</p>'."\n";
76
  echo '<input type="hidden" id="useronline-submit" name="useronline-submit" value="1" />'."\n";
77
  }
78
 
1
  <?php
2
  /*
3
  Plugin Name: WP-UserOnline Widget
4
+ Plugin URI: http://lesterchan.net/portfolio/programming.php
5
  Description: Adds a UserOnline Widget to display users online from WP-UserOnline Plugin. You need to activate WP-UserOnline first.
6
+ Version: 2.20
7
+ Author: Lester 'GaMerZ' Chan
8
+ Author URI: http://lesterchan.net
9
  */
10
 
11
 
67
  update_option('widget_useronline', $options);
68
  }
69
  echo '<p style="text-align: left;"><label for="useronline-title">'.__('Widget Title', 'wp-useronline').':</label>&nbsp;&nbsp;&nbsp;<input type="text" id="useronline-title" name="useronline-title" value="'.htmlspecialchars($options['title']).'" />';
70
+ echo '<p style="text-align: center;">'.__('Display Users Browsing Site Under Users Online Count?', 'wp-useronline').'</p>'."\n";
71
+ echo '<p style="text-align: center;"><input type="radio" id="useronline-usersbrowsingsite-1" name="useronline-usersbrowsingsite" value="1"';
72
  checked(1, intval($options['display_usersbrowsingsite']));
73
+ echo ' />&nbsp;<label for="useronline-usersbrowsingsite-1">'.__('Yes', 'wp-useronline').'</label>&nbsp;&nbsp;&nbsp;<input type="radio" id="useronline-usersbrowsingsite-0" name="useronline-usersbrowsingsite" value="0"';
74
  checked(0, intval($options['display_usersbrowsingsite']));
75
+ echo ' />&nbsp;<label for="useronline-usersbrowsingsite-0">'.__('No', 'wp-useronline').'</label></p>'."\n";
76
  echo '<input type="hidden" id="useronline-submit" name="useronline-submit" value="1" />'."\n";
77
  }
78
 
useronline/useronline.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
  /*
3
  Plugin Name: WP-UserOnline
4
- Plugin URI: http://www.lesterchan.net/portfolio/programming.php
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.11
7
  Author: Lester 'GaMerZ' Chan
8
- Author URI: http://www.lesterchan.net
9
  */
10
 
11
 
@@ -34,8 +34,11 @@ if (!function_exists('add_action')) {
34
  }
35
 
36
 
37
- ### Create Text Domain For Translation
38
- load_plugin_textdomain('wp-useronline', 'wp-content/plugins/useronline');
 
 
 
39
 
40
 
41
  ### UserOnline Table Name
@@ -57,10 +60,10 @@ function useronline_menu() {
57
  ### Function: Displays UserOnline Header
58
  add_action('wp_head', 'useronline_header');
59
  function useronline_header() {
60
- echo "\n".'<!-- Start Of Script Generated By WP-UserOnline 2.11 -->'."\n";
61
- wp_register_script('wp-useronline', '/wp-content/plugins/useronline/useronline-js.php', false, '2.11');
62
  wp_print_scripts(array('sack', 'wp-useronline'));
63
- echo '<!-- End Of Script Generated By WP-UserOnline 2.11 -->'."\n";
64
  }
65
 
66
 
@@ -157,29 +160,37 @@ function useronline() {
157
 
158
  ### Function: Display UserOnline
159
  if(!function_exists('get_useronline')) {
160
- function get_useronline($user = '', $users = '', $display = true) {
161
- global $useronline;
162
- $output = '';
163
- if(empty($user)) {
164
- $user = __('User', 'wp-useronline');
 
 
 
 
 
 
 
 
165
  }
166
- if(empty($users)) {
167
- $users = __('Users', 'wp-useronline');
 
 
168
  }
169
- $useronline_url = get_option('useronline_url');
170
- // Display User Online
 
 
 
 
 
 
171
  if($display) {
172
- if($useronline > 1) {
173
- $output = '<a href="'.$useronline_url.'"><strong>'.number_format($useronline).'</strong> '.$users.' '.__('Online', 'wp-useronline').'</a>'."\n";
174
- } else {
175
- $output = '<a href="'.$useronline_url.'"><strong>'.$useronline.'</strong> '.$user.' '.__('Online', 'wp-useronline').'</a>'."\n";
176
- }
177
- if(empty($useronline_url)) {
178
- $output = strip_tags($output, '<strong>');
179
- }
180
- echo $output;
181
  } else {
182
- return number_format($useronline);
183
  }
184
  }
185
  }
@@ -187,7 +198,7 @@ if(!function_exists('get_useronline')) {
187
 
188
  ### Function: Display Max UserOnline
189
  if(!function_exists('get_most_useronline')) {
190
- function get_most_useronline($display = true) {
191
  $most_useronline_users = intval(get_option('useronline_most_users'));
192
  if($display) {
193
  echo number_format($most_useronline_users);
@@ -200,7 +211,7 @@ if(!function_exists('get_most_useronline')) {
200
 
201
  ### Function: Display Max UserOnline Date
202
  if(!function_exists('get_most_useronline_date')) {
203
- function get_most_useronline_date($display = true) {
204
  $most_useronline_timestamp = get_option('useronline_most_timestamp');
205
  $most_useronline_date = gmdate(sprintf(__('%s @ %s', 'wp-useronline'), get_option('date_format'), get_option('time_format')), $most_useronline_timestamp);
206
  if($display) {
@@ -254,7 +265,6 @@ function get_users_browsing_site($display = true) {
254
  $members = array();
255
  $guests = array();
256
  $bots = array();
257
- $total_users = 0;
258
  $total_members = 0;
259
  $total_guests = 0;
260
  $total_bots = 0;
@@ -281,47 +291,90 @@ function get_users_browsing_site($display = true) {
281
  break;
282
  }
283
  }
284
- $total_users = ($total_guests+$total_bots+$total_members);
285
 
286
  // If We Do Not Display It, Return Respective Users Count
287
  if(!$display) {
288
- return array ($total_users, $total_members, $total_guests, $total_bots);
289
  }
290
-
291
- // Nice Text For Guests
292
- if($total_guests == 1) {
293
- $nicetext_guests = $total_guests.' '.__('Guest', 'wp-useronline');
294
- } else {
295
- $nicetext_guests = number_format($total_guests).' '.__('Guests', 'wp-useronline');
296
- }
297
- // Nice Text For Bots
298
- if($total_bots == 1) {
299
- $nicetext_bots = $total_bots.' '.__('Bot', 'wp-useronline');
 
 
 
 
300
  } else {
301
- $nicetext_bots = number_format($total_bots).' '.__('Bots', 'wp-useronline');
 
302
  }
303
 
304
  // Print Member Name
305
  if($members) {
306
  $temp_member = '';
307
- foreach($members as $member) {
308
- $temp_member .= '<a href="'.useronline_stats_page_link(urlencode($member)).'">'.$member.'</a>, ';
309
- }
310
  if(!function_exists('get_totalposts')) {
311
- $temp_member = strip_tags($temp_member);
 
 
 
 
 
 
312
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
313
  }
314
- // Print Guests
315
- if($total_guests > 0) {
316
- $temp_member .= $nicetext_guests.', ';
 
 
 
 
 
 
317
  }
318
- // Print Bots
319
- if($total_bots > 0) {
320
- $temp_member .= $nicetext_bots.', ';
 
 
321
  }
322
- // Print User Count
323
- $temp_member = substr($temp_member, 0, -2);
324
- echo __('Users', 'wp-useronline').': <strong>'.$temp_member.'</strong><br />';
 
 
 
 
 
325
  } else {
326
  // This Should Not Happen
327
  _e('No User Is Browsing This Site', 'wp-useronline');
@@ -381,39 +434,85 @@ function get_users_browsing_page($display = true) {
381
  return array ($total_users, $total_members, $total_guests, $total_bots);
382
  }
383
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
384
  // Nice Text For Members
385
- if($total_members == 1) {
386
- $nicetext_members = $total_members.' '.__('Member', 'wp-useronline');
 
 
 
387
  } else {
388
- $nicetext_members = number_format($total_members).' '.__('Members', 'wp-useronline');
389
  }
 
390
  // Nice Text For Guests
391
- if($total_guests == 1) {
392
- $nicetext_guests = $total_guests.' '.__('Guest', 'wp-useronline');
 
 
 
393
  } else {
394
- $nicetext_guests = number_format($total_guests).' '.__('Guests', 'wp-useronline');
395
  }
 
396
  // Nice Text For Bots
397
- if($total_bots == 1) {
398
- $nicetext_bots = $total_bots.' '.__('Bot', 'wp-useronline');
 
 
 
399
  } else {
400
- $nicetext_bots = number_format($total_bots).' '.__('Bots', 'wp-useronline');
401
  }
402
-
403
- // Print User Count
404
- echo __('Users Browsing This Page', 'wp-useronline').': <strong>'.number_format($total_users).'</strong> ('.$nicetext_members.', '.$nicetext_guests.' '.__('and', 'wp-useronline').' '.$nicetext_bots.')<br />';
405
-
406
- // Print Member Name
407
- if($members) {
408
- $temp_member = '';
409
- foreach($members as $member) {
410
- $temp_member .= '<a href="'.useronline_stats_page_link(urlencode($member)).'">'.$member.'</a>, ';
411
- }
412
- if(!function_exists('get_totalposts')) {
413
- $temp_member = strip_tags($temp_member);
414
- }
415
- echo __('Members', 'wp-useronline').': '.substr($temp_member, 0, -2);
416
  }
 
 
 
 
 
 
 
 
 
417
  } else {
418
  // This Should Not Happen
419
  _e('No User Is Browsing This Page', 'wp-useronline');
@@ -455,10 +554,10 @@ function ip2nation_country($ip, $display_countryname = 0) {
455
  $country_code = wp_ozh_getCountryCode(0, $ip);
456
  $country_name = wp_ozh_getCountryName(0, $ip);
457
  $country_mirror = '';
458
- $mirrors = array("http://frenchfragfactory.net/images", "http://www.lesterchan.net/wordpress/images/flags");
459
  if($country_name != 'Private') {
460
  foreach($mirrors as $mirror) {
461
- if(file($mirror.'/flag_sg.gif')) {
462
  $country_mirror = $mirror;
463
  break;
464
  }
@@ -574,7 +673,7 @@ function useronline_page() {
574
  $useronline_output .= __('There are a total of', 'wp-useronline').' ';
575
  }
576
  $useronline_output .= "<strong>$nicetext_users</strong> ".__('online now', 'wp-useronline').": <strong>$nicetext_members</strong>, <strong>$nicetext_guests</strong> ".__('and', 'wp-useronline')." <strong>$nicetext_bots</strong>.</p>\n";
577
- $useronline_output .= '<p>'.__('Most users ever online were', 'wp-useronline')." <strong>".get_most_useronline(false)."</strong>, ".__('on', 'wp-useronline')." <strong>".get_most_useronline_date(false)."</strong></p>\n";
578
  // Print Out Members
579
  if($total_members > 0) {
580
  $useronline_output .= '<h2>'.$nicetext_members.' '.__('Online Now', 'wp-useronline').'</h2>'."\n";
@@ -673,12 +772,52 @@ function useronline_ajax() {
673
  }
674
 
675
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
676
  ### Function: Create UserOnline Table
677
  add_action('activate_useronline/useronline.php', 'create_useronline_table');
678
  function create_useronline_table() {
679
  global $wpdb;
680
  $bots = array('Google Bot' => 'googlebot', 'Google Bot' => 'google', 'MSN' => 'msnbot', 'Alex' => 'ia_archiver', 'Lycos' => 'lycos', 'Ask Jeeves' => 'jeeves', 'Altavista' => 'scooter', 'AllTheWeb' => 'fast-webcrawler', 'Inktomi' => 'slurp@inktomi', 'Turnitin.com' => 'turnitinbot', 'Technorati' => 'technorati', 'Yahoo' => 'yahoo', 'Findexa' => 'findexa', 'NextLinks' => 'findlinks', 'Gais' => 'gaisbo', 'WiseNut' => 'zyborg', 'WhoisSource' => 'surveybot', 'Bloglines' => 'bloglines', 'BlogSearch' => 'blogsearch', 'PubSub' => 'pubsub', 'Syndic8' => 'syndic8', 'RadioUserland' => 'userland', 'Gigabot' => 'gigabot', 'Become.com' => 'become.com');
681
- include_once(ABSPATH.'/wp-admin/upgrade-functions.php');
 
 
 
 
 
 
682
  // Drop UserOnline Table
683
  $wpdb->query("DROP TABLE IF EXISTS $wpdb->useronline");
684
  // Create UserOnline Table
@@ -702,5 +841,10 @@ function create_useronline_table() {
702
  add_option('useronline_bots', $bots, 'Bots Name/Useragent');
703
  // Database Upgrade For WP-UserOnline 2.05
704
  add_option('useronline_url', get_option('siteurl').'/useronline/', 'UserOnline Page URL');
 
 
 
 
 
705
  }
706
  ?>
1
  <?php
2
  /*
3
  Plugin Name: WP-UserOnline
4
+ Plugin URI: http://lesterchan.net/portfolio/programming.php
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.20
7
  Author: Lester 'GaMerZ' Chan
8
+ Author URI: http://lesterchan.net
9
  */
10
 
11
 
34
  }
35
 
36
 
37
+ ### Create Text Domain For Translations
38
+ add_action('init', 'useronline_textdomain');
39
+ function useronline_textdomain() {
40
+ load_plugin_textdomain('wp-useronline', 'wp-content/plugins/useronline');
41
+ }
42
 
43
 
44
  ### UserOnline Table Name
60
  ### Function: Displays UserOnline Header
61
  add_action('wp_head', 'useronline_header');
62
  function 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');
65
  wp_print_scripts(array('sack', 'wp-useronline'));
66
+ echo '<!-- End Of Script Generated By WP-UserOnline 2.20 -->'."\n";
67
  }
68
 
69
 
160
 
161
  ### Function: Display UserOnline
162
  if(!function_exists('get_useronline')) {
163
+ function get_useronline($deprecated = '', $deprecated2 = '', $display = true) {
164
+ // Template - Naming Conventions
165
+ $useronline_naming = get_option('useronline_naming');
166
+ // Template - User(s) Online
167
+ $template_useronline = stripslashes(get_option('useronline_template_useronline'));
168
+ $template_useronline = str_replace('%USERONLINE_PAGE_URL%', get_option('useronline_url'), $template_useronline);
169
+ $template_useronline = str_replace('%USERONLINE_MOSTONLINE_COUNT%', number_format(get_most_useronline()), $template_useronline);
170
+ $template_useronline = str_replace('%USERONLINE_MOSTONLINE_DATE%', get_most_useronline_date(), $template_useronline);
171
+ if(get_useronline_count() == 1) {
172
+ $template_useronline = str_replace('%USERONLINE_USERS%', stripslashes($useronline_naming['user']), $template_useronline);
173
+ } else {
174
+ $useronline_naming_users = str_replace('%USERONLINE_COUNT%', number_format(get_useronline_count()), stripslashes($useronline_naming['users']));
175
+ $template_useronline = str_replace('%USERONLINE_USERS%', $useronline_naming_users, $template_useronline);
176
  }
177
+ if($display) {
178
+ echo $template_useronline;
179
+ } else {
180
+ return $template_useronline;
181
  }
182
+ }
183
+ }
184
+
185
+
186
+ ### Function: Display UserOnline Count
187
+ if(!function_exists('get_useronline_count')) {
188
+ function get_useronline_count($display = false) {
189
+ global $useronline;
190
  if($display) {
191
+ echo number_format($useronline);
 
 
 
 
 
 
 
 
192
  } else {
193
+ return $useronline;
194
  }
195
  }
196
  }
198
 
199
  ### Function: Display Max UserOnline
200
  if(!function_exists('get_most_useronline')) {
201
+ function get_most_useronline($display = false) {
202
  $most_useronline_users = intval(get_option('useronline_most_users'));
203
  if($display) {
204
  echo number_format($most_useronline_users);
211
 
212
  ### Function: Display Max UserOnline Date
213
  if(!function_exists('get_most_useronline_date')) {
214
+ function get_most_useronline_date($display = false) {
215
  $most_useronline_timestamp = get_option('useronline_most_timestamp');
216
  $most_useronline_date = gmdate(sprintf(__('%s @ %s', 'wp-useronline'), get_option('date_format'), get_option('time_format')), $most_useronline_timestamp);
217
  if($display) {
265
  $members = array();
266
  $guests = array();
267
  $bots = array();
 
268
  $total_members = 0;
269
  $total_guests = 0;
270
  $total_bots = 0;
291
  break;
292
  }
293
  }
 
294
 
295
  // If We Do Not Display It, Return Respective Users Count
296
  if(!$display) {
297
+ return array($total_members, $total_guests, $total_bots);
298
  }
299
+
300
+ // Template - Naming Conventions
301
+ $useronline_naming = get_option('useronline_naming');
302
+
303
+ // Template - User(s) Browsing Site
304
+ $options_browsingsite = get_option('useronline_template_browsingsite');
305
+ $separator_members_browsingsite = stripslashes($options_browsingsite[0]);
306
+ $separator_guests_browsingsite = stripslashes($options_browsingsite[1]);
307
+ $separator_bots_browsingsite = stripslashes($options_browsingsite[2]);
308
+ $template_browsingsite = stripslashes($options_browsingsite[3]);
309
+
310
+ // Nice Text For Users
311
+ if(get_useronline_count() == 1) {
312
+ $template_browsingsite = str_replace('%USERONLINE_USERS%', stripslashes($useronline_naming['user']), $template_browsingsite);
313
  } else {
314
+ $useronline_naming_users = str_replace('%USERONLINE_COUNT%', number_format(get_useronline_count()), stripslashes($useronline_naming['users']));
315
+ $template_browsingsite = str_replace('%USERONLINE_USERS%', $useronline_naming_users, $template_browsingsite);
316
  }
317
 
318
  // Print Member Name
319
  if($members) {
320
  $temp_member = '';
 
 
 
321
  if(!function_exists('get_totalposts')) {
322
+ foreach($members as $member) {
323
+ $temp_member .= $member.$separator_members_browsingsite;
324
+ }
325
+ } else {
326
+ foreach($members as $member) {
327
+ $temp_member .= '<a href="'.useronline_stats_page_link(urlencode($member)).'">'.$member.'</a>'.$separator_members_browsingsite;
328
+ }
329
  }
330
+ $template_browsingsite = str_replace('%USERONLINE_MEMBER_NAMES%', substr($temp_member, 0, -strlen($separator_members_browsingsite)), $template_browsingsite);
331
+ } else {
332
+ $template_browsingsite = str_replace('%USERONLINE_MEMBER_NAMES%', '', $template_browsingsite);
333
+ }
334
+
335
+ // Nice Text For Members
336
+ if($total_members > 1) {
337
+ $useronline_naming_members = str_replace('%USERONLINE_COUNT%', number_format($total_members), stripslashes($useronline_naming['members']));
338
+ $template_browsingsite = str_replace('%USERONLINE_MEMBERS%', $useronline_naming_members, $template_browsingsite);
339
+ } elseif($total_members == 1) {
340
+ $template_browsingsite = str_replace('%USERONLINE_MEMBERS%', stripslashes($useronline_naming['member']), $template_browsingsite);
341
+ } else {
342
+ $template_browsingsite = str_replace('%USERONLINE_MEMBERS%', '', $template_browsingsite);
343
+ }
344
+
345
+ // Nice Text For Guests
346
+ if($total_guests > 1) {
347
+ $useronline_naming_guests = str_replace('%USERONLINE_COUNT%', number_format($total_guests), stripslashes($useronline_naming['guests']));
348
+ $template_browsingsite = str_replace('%USERONLINE_GUESTS%', $useronline_naming_guests, $template_browsingsite);
349
+ } elseif($total_guests == 1) {
350
+ $template_browsingsite = str_replace('%USERONLINE_GUESTS%', stripslashes($useronline_naming['guest']), $template_browsingsite);
351
+ } else {
352
+ $template_browsingsite = str_replace('%USERONLINE_GUESTS%', '', $template_browsingsite);
353
  }
354
+
355
+ // Nice Text For Bots
356
+ if($total_bots > 1) {
357
+ $useronline_naming_bots = str_replace('%USERONLINE_COUNT%', number_format($total_bots), stripslashes($useronline_naming['bots']));
358
+ $template_browsingsite = str_replace('%USERONLINE_BOTS%', $useronline_naming_bots, $template_browsingsite);
359
+ } elseif($total_bots == 1) {
360
+ $template_browsingsite = str_replace('%USERONLINE_BOTS%', stripslashes($useronline_naming['bot']), $template_browsingsite);
361
+ } else {
362
+ $template_browsingsite = str_replace('%USERONLINE_BOTS%', '', $template_browsingsite);
363
  }
364
+ // Seperators
365
+ if($total_members > 0 && $total_guests > 0) {
366
+ $template_browsingsite = str_replace('%USERONLINE_GUESTS_SEPERATOR%', $separator_guests_browsingsite, $template_browsingsite);
367
+ } else {
368
+ $template_browsingsite = str_replace('%USERONLINE_GUESTS_SEPERATOR%', '', $template_browsingsite);
369
  }
370
+ if(($total_guests > 0 || $total_members > 0) && $total_bots > 0) {
371
+ $template_browsingsite = str_replace('%USERONLINE_BOTS_SEPERATOR%', $separator_bots_browsingsite, $template_browsingsite);
372
+ } else {
373
+ $template_browsingsite = str_replace('%USERONLINE_BOTS_SEPERATOR%', '', $template_browsingsite);
374
+ }
375
+
376
+ // Output The Template
377
+ echo $template_browsingsite;
378
  } else {
379
  // This Should Not Happen
380
  _e('No User Is Browsing This Site', 'wp-useronline');
434
  return array ($total_users, $total_members, $total_guests, $total_bots);
435
  }
436
 
437
+ // Template - Naming Conventions
438
+ $useronline_naming = get_option('useronline_naming');
439
+
440
+ // Template - User(s) Browsing Site
441
+ $options_browsingpage = get_option('useronline_template_browsingpage');
442
+ $separator_members_browsingpage = stripslashes($options_browsingpage[0]);
443
+ $separator_guests_browsingpage = stripslashes($options_browsingpage[1]);
444
+ $separator_bots_browsingpage = stripslashes($options_browsingpage[2]);
445
+ $template_browsingpage = stripslashes($options_browsingpage[3]);
446
+
447
+ // Nice Text For Users
448
+ if($total_users == 1) {
449
+ $template_browsingpage = str_replace('%USERONLINE_USERS%', stripslashes($useronline_naming['user']), $template_browsingpage);
450
+ } else {
451
+ $useronline_naming_users = str_replace('%USERONLINE_COUNT%', number_format($total_users), stripslashes($useronline_naming['users']));
452
+ $template_browsingpage = str_replace('%USERONLINE_USERS%', $useronline_naming_users, $template_browsingpage);
453
+ }
454
+
455
+ // Print Member Name
456
+ if($members) {
457
+ $temp_member = '';
458
+ if(!function_exists('get_totalposts')) {
459
+ foreach($members as $member) {
460
+ $temp_member .= $member.$separator_members_browsingpage;
461
+ }
462
+ } else {
463
+ foreach($members as $member) {
464
+ $temp_member .= '<a href="'.useronline_stats_page_link(urlencode($member)).'">'.$member.'</a>'.$separator_members_browsingpage;
465
+ }
466
+ }
467
+ $template_browsingpage = str_replace('%USERONLINE_MEMBER_NAMES%', substr($temp_member, 0, -strlen($separator_members_browsingpage)), $template_browsingpage);
468
+ } else {
469
+ $template_browsingpage = str_replace('%USERONLINE_MEMBER_NAMES%', '', $template_browsingpage);
470
+ }
471
+
472
  // Nice Text For Members
473
+ if($total_members > 1) {
474
+ $useronline_naming_members = str_replace('%USERONLINE_COUNT%', number_format($total_members), stripslashes($useronline_naming['members']));
475
+ $template_browsingpage = str_replace('%USERONLINE_MEMBERS%', $useronline_naming_members, $template_browsingpage);
476
+ } elseif($total_members == 1) {
477
+ $template_browsingpage = str_replace('%USERONLINE_MEMBERS%', stripslashes($useronline_naming['member']), $template_browsingpage);
478
  } else {
479
+ $template_browsingpage = str_replace('%USERONLINE_MEMBERS%', '', $template_browsingpage);
480
  }
481
+
482
  // Nice Text For Guests
483
+ if($total_guests > 1) {
484
+ $useronline_naming_guests = str_replace('%USERONLINE_COUNT%', number_format($total_guests), stripslashes($useronline_naming['guests']));
485
+ $template_browsingpage = str_replace('%USERONLINE_GUESTS%', $useronline_naming_guests, $template_browsingpage);
486
+ } elseif($total_guests == 1) {
487
+ $template_browsingpage = str_replace('%USERONLINE_GUESTS%', stripslashes($useronline_naming['guest']), $template_browsingpage);
488
  } else {
489
+ $template_browsingpage = str_replace('%USERONLINE_GUESTS%', '', $template_browsingpage);
490
  }
491
+
492
  // Nice Text For Bots
493
+ if($total_bots > 1) {
494
+ $useronline_naming_bots = str_replace('%USERONLINE_COUNT%', number_format($total_bots), stripslashes($useronline_naming['bots']));
495
+ $template_browsingpage = str_replace('%USERONLINE_BOTS%', $useronline_naming_bots, $template_browsingpage);
496
+ } elseif($total_bots == 1) {
497
+ $template_browsingpage = str_replace('%USERONLINE_BOTS%', stripslashes($useronline_naming['bot']), $template_browsingpage);
498
  } else {
499
+ $template_browsingpage = str_replace('%USERONLINE_BOTS%', '', $template_browsingpage);
500
  }
501
+ // Seperators
502
+ if($total_members > 0 && $total_guests > 0) {
503
+ $template_browsingpage = str_replace('%USERONLINE_GUESTS_SEPERATOR%', $separator_guests_browsingpage, $template_browsingpage);
504
+ } else {
505
+ $template_browsingpage = str_replace('%USERONLINE_GUESTS_SEPERATOR%', '', $template_browsingpage);
 
 
 
 
 
 
 
 
 
506
  }
507
+ if(($total_guests > 0 || $total_members > 0) && $total_bots > 0) {
508
+ $template_browsingpage = str_replace('%USERONLINE_BOTS_SEPERATOR%', $separator_bots_browsingpage, $template_browsingpage);
509
+ } else {
510
+ $template_browsingpage = str_replace('%USERONLINE_BOTS_SEPERATOR%', '', $template_browsingpage);
511
+ }
512
+
513
+
514
+ // Output The Template
515
+ echo $template_browsingpage;
516
  } else {
517
  // This Should Not Happen
518
  _e('No User Is Browsing This Page', 'wp-useronline');
554
  $country_code = wp_ozh_getCountryCode(0, $ip);
555
  $country_name = wp_ozh_getCountryName(0, $ip);
556
  $country_mirror = '';
557
+ $mirrors = array("http://frenchfragfactory.net/images", "http://lesterchan.net/wordpress/images/flags");
558
  if($country_name != 'Private') {
559
  foreach($mirrors as $mirror) {
560
+ if(@file($mirror.'/flag_sg.gif')) {
561
  $country_mirror = $mirror;
562
  break;
563
  }
673
  $useronline_output .= __('There are a total of', 'wp-useronline').' ';
674
  }
675
  $useronline_output .= "<strong>$nicetext_users</strong> ".__('online now', 'wp-useronline').": <strong>$nicetext_members</strong>, <strong>$nicetext_guests</strong> ".__('and', 'wp-useronline')." <strong>$nicetext_bots</strong>.</p>\n";
676
+ $useronline_output .= '<p>'.__('Most users ever online were', 'wp-useronline')." <strong>".number_format(get_most_useronline())."</strong>, ".__('on', 'wp-useronline')." <strong>".get_most_useronline_date()."</strong></p>\n";
677
  // Print Out Members
678
  if($total_members > 0) {
679
  $useronline_output .= '<h2>'.$nicetext_members.' '.__('Online Now', 'wp-useronline').'</h2>'."\n";
772
  }
773
 
774
 
775
+ ### Function: Plug Into WP-Stats
776
+ if(strpos(get_option('stats_url'), $_SERVER['REQUEST_URI']) || strpos($_SERVER['REQUEST_URI'], 'stats-options.php') || strpos($_SERVER['REQUEST_URI'], 'stats/stats.php')) {
777
+ add_filter('wp_stats_page_admin_plugins', 'useronline_page_admin_general_stats');
778
+ add_filter('wp_stats_page_plugins', 'useronline_page_general_stats');
779
+ }
780
+
781
+
782
+ ### Function: Add WP-UserOnline General Stats To WP-Stats Page Options
783
+ function useronline_page_admin_general_stats($content) {
784
+ $stats_display = get_option('stats_display');
785
+ if($stats_display['useronline'] == 1) {
786
+ $content .= '<input type="checkbox" name="stats_display[]" id="wpstats_useronline" value="useronline" checked="checked" />&nbsp;&nbsp;<label for="wpstats_useronline">'.__('WP-UserOnline', 'wp-useronline').'</label><br />'."\n";
787
+ } else {
788
+ $content .= '<input type="checkbox" name="stats_display[]" id="wpstats_useronline" value="useronline" />&nbsp;&nbsp;<label for="wpstats_useronline">'.__('WP-UserOnline', 'wp-useronline').'</label><br />'."\n";
789
+ }
790
+ return $content;
791
+ }
792
+
793
+
794
+ ### Function: Add WP-UserOnline General Stats To WP-Stats Page
795
+ function useronline_page_general_stats($content) {
796
+ $stats_display = get_option('stats_display');
797
+ if($stats_display['useronline'] == 1) {
798
+ $content .= '<p><strong>'.__('WP-UserOnline', 'wp-useronline').'</strong></p>'."\n";
799
+ $content .= '<ul>'."\n";
800
+ $content .= '<li><strong>'.number_format(get_useronline_count()).'</strong> '.__('user(s) online now.', 'wp-useronline').'</li>'."\n";
801
+ $content .= '<li>'.__('Most users ever online was', 'wp-useronline').' <strong>'.number_format(get_most_useronline()).'</strong>.</li>'."\n";
802
+ $content .= '<li>'.__('On', 'wp-useronline').' <strong>'.get_most_useronline_date().'</strong>.</li>'."\n";
803
+ $content .= '</ul>'."\n";
804
+ }
805
+ return $content;
806
+ }
807
+
808
+
809
  ### Function: Create UserOnline Table
810
  add_action('activate_useronline/useronline.php', 'create_useronline_table');
811
  function create_useronline_table() {
812
  global $wpdb;
813
  $bots = array('Google Bot' => 'googlebot', 'Google Bot' => 'google', 'MSN' => 'msnbot', 'Alex' => 'ia_archiver', 'Lycos' => 'lycos', 'Ask Jeeves' => 'jeeves', 'Altavista' => 'scooter', 'AllTheWeb' => 'fast-webcrawler', 'Inktomi' => 'slurp@inktomi', 'Turnitin.com' => 'turnitinbot', 'Technorati' => 'technorati', 'Yahoo' => 'yahoo', 'Findexa' => 'findexa', 'NextLinks' => 'findlinks', 'Gais' => 'gaisbo', 'WiseNut' => 'zyborg', 'WhoisSource' => 'surveybot', 'Bloglines' => 'bloglines', 'BlogSearch' => 'blogsearch', 'PubSub' => 'pubsub', 'Syndic8' => 'syndic8', 'RadioUserland' => 'userland', 'Gigabot' => 'gigabot', 'Become.com' => 'become.com');
814
+ if(@is_file(ABSPATH.'/wp-admin/upgrade-functions.php')) {
815
+ include_once(ABSPATH.'/wp-admin/upgrade-functions.php');
816
+ } elseif(@is_file(ABSPATH.'/wp-admin/includes/upgrade.php')) {
817
+ include_once(ABSPATH.'/wp-admin/includes/upgrade.php');
818
+ } else {
819
+ die('We have problem finding your \'/wp-admin/upgrade-functions.php\' and \'/wp-admin/includes/upgrade.php\'');
820
+ }
821
  // Drop UserOnline Table
822
  $wpdb->query("DROP TABLE IF EXISTS $wpdb->useronline");
823
  // Create UserOnline Table
841
  add_option('useronline_bots', $bots, 'Bots Name/Useragent');
842
  // Database Upgrade For WP-UserOnline 2.05
843
  add_option('useronline_url', get_option('siteurl').'/useronline/', 'UserOnline Page URL');
844
+ // Database Upgrade For WP-UserOnline 2.20
845
+ add_option('useronline_naming', array('user' => __('1 User', 'wp-useronline'), 'users' => __('%USERONLINE_COUNT% Users', 'wp-useronline'), 'member' => __('1 Member', 'wp-useronline'), 'members' => __('%USERONLINE_COUNT% Members', 'wp-useronline'), 'guest' => __('1 Guest', 'wp-useronline'), 'guests' => __('%USERONLINE_COUNT% Guests', 'wp-useronline'), 'bot' => __('1 Bot', 'wp-useronline'), 'bots' => __('%USERONLINE_COUNT% Bots', 'wp-useronline')),'Member(s), Guest(s) or Bot(s)');
846
+ add_option('useronline_template_useronline', '<a href="%USERONLINE_PAGE_URL%" title="%USERONLINE_USERS%"><strong>%USERONLINE_USERS%</strong> '.__('Online', 'wp-useronline').'</a>', 'Useronline Template');
847
+ add_option('useronline_template_browsingsite', array(', ', ', ', ', ', __('Users', 'wp-useronline').': <strong>%USERONLINE_MEMBER_NAMES%%USERONLINE_GUESTS_SEPERATOR%%USERONLINE_GUESTS%%USERONLINE_BOTS_SEPERATOR%%USERONLINE_BOTS%</strong>'), 'User Browsing Site Template');
848
+ add_option('useronline_template_browsingpage', array(', ', ', ', ', ', '<strong>%USERONLINE_USERS%</strong> '.__('Browsing This Page.', 'wp-useronline').'<br />'.__('Users', 'wp-useronline').': <strong>%USERONLINE_MEMBER_NAMES%%USERONLINE_GUESTS_SEPERATOR%%USERONLINE_GUESTS%%USERONLINE_BOTS_SEPERATOR%%USERONLINE_BOTS%</strong>'), 'User Browsing Site Template');
849
  }
850
  ?>
useronline/wp-useronline.mo CHANGED
Binary file
useronline/wp-useronline.pot CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: WP-UserOnline 2.11\n"
4
  "POT-Creation-Date: \n"
5
- "PO-Revision-Date: 2007-05-31 19:48+0800\n"
6
  "Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n"
7
  "Language-Team: Lester Chan <gamerz84@hotmail.com>\n"
8
  "MIME-Version: 1.0\n"
@@ -14,63 +14,262 @@ msgstr ""
14
  "X-Poedit-Language: English\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
- #: useronline-options.php:42
 
 
 
 
 
18
  msgid "Useronline Timeout"
19
  msgstr ""
20
 
21
- #: useronline-options.php:43
22
  msgid "Useronline Bots"
23
  msgstr ""
24
 
25
- #: useronline-options.php:44
26
  msgid "Useronline URL"
27
  msgstr ""
28
 
29
- #: useronline-options.php:49
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  msgid "Updated"
31
  msgstr ""
32
 
33
- #: useronline-options.php:54
34
  msgid "No Useronline Option Updated"
35
  msgstr ""
36
 
37
- #: useronline-options.php:71
38
- #: useronline-options.php:74
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  msgid "Useronline Options"
40
  msgstr ""
41
 
42
- #: useronline-options.php:77
43
  msgid "Time Out"
44
  msgstr ""
45
 
46
- #: useronline-options.php:79
47
  msgid "How long till it will remove the user from the database (In seconds)."
48
  msgstr ""
49
 
50
- #: useronline-options.php:83
51
  msgid "UserOnline URL"
52
  msgstr ""
53
 
54
- #: useronline-options.php:85
55
  msgid "URL To UserOnline Page (leave blank if you do not want to link it to the UserOnline Page)<br />Example: http://www.yoursite.com/blogs/useronline/<br />Example: http://www.yoursite.com/blogs/?page_id=2"
56
  msgstr ""
57
 
58
- #: useronline-options.php:89
59
  msgid "Bots Name/User Agent"
60
  msgstr ""
61
 
62
- #: useronline-options.php:91
63
  msgid "Here are a list of bots and their partial browser agents.<br />On the left column will be the <strong>Bot's Name</strong> and on the right column will be their <strong>Partial Browser Agent</strong>.<br />Start each entry on a new line."
64
  msgstr ""
65
 
66
- #: useronline-options.php:100
67
- msgid "Update Options"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  msgstr ""
69
 
70
- #: useronline-options.php:100
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  msgid "Cancel"
72
  msgstr ""
73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  #: useronline-widget.php:62
75
  msgid "UserOnline"
76
  msgstr ""
@@ -83,155 +282,138 @@ msgstr ""
83
  msgid "Display Users Browsing Site Under Users Online Count?"
84
  msgstr ""
85
 
86
- #: useronline-widget.php:73
87
- msgid "Yes"
88
- msgstr ""
89
-
90
  #: useronline-widget.php:75
91
  msgid "No"
92
  msgstr ""
93
 
94
- #: useronline.php:49
 
 
 
95
  msgid "WP-UserOnline"
96
  msgstr ""
97
 
98
- #: useronline.php:52
99
  msgid "Useronline"
100
  msgstr ""
101
 
102
- #: useronline.php:111
103
  msgid "guest"
104
  msgstr ""
105
 
106
- #: useronline.php:117
107
- #: useronline.php:293
108
- #: useronline.php:392
109
- #: useronline.php:553
110
  msgid "Guest"
111
  msgstr ""
112
 
113
- #: useronline.php:132
114
  msgid "Blog Archive"
115
  msgstr ""
116
 
117
- #: useronline.php:164
118
- #: useronline.php:538
119
- msgid "User"
120
- msgstr ""
121
-
122
- #: useronline.php:167
123
- #: useronline.php:324
124
- #: useronline.php:540
125
- msgid "Users"
126
- msgstr ""
127
-
128
- #: useronline.php:173
129
- #: useronline.php:175
130
- msgid "Online"
131
- msgstr ""
132
-
133
- #: useronline.php:205
134
- #: useronline.php:236
135
- #: useronline.php:590
136
- #: useronline.php:592
137
- #: useronline.php:610
138
- #: useronline.php:612
139
- #: useronline.php:625
140
  #, php-format
141
  msgid "%s @ %s"
142
  msgstr ""
143
 
144
- #: useronline.php:295
145
- #: useronline.php:394
146
- #: useronline.php:555
147
- msgid "Guests"
148
- msgstr ""
149
-
150
- #: useronline.php:299
151
- #: useronline.php:398
152
- #: useronline.php:560
153
- msgid "Bot"
154
  msgstr ""
155
 
156
- #: useronline.php:301
157
- #: useronline.php:400
158
- #: useronline.php:562
159
- msgid "Bots"
160
  msgstr ""
161
 
162
- #: useronline.php:327
163
- msgid "No User Is Browsing This Site"
164
  msgstr ""
165
 
166
- #: useronline.php:386
167
- #: useronline.php:545
168
  msgid "Member"
169
  msgstr ""
170
 
171
- #: useronline.php:388
172
- #: useronline.php:415
173
- #: useronline.php:547
174
  msgid "Members"
175
  msgstr ""
176
 
177
- #: useronline.php:404
178
- msgid "Users Browsing This Page"
179
  msgstr ""
180
 
181
- #: useronline.php:404
182
- #: useronline.php:576
183
- msgid "and"
184
  msgstr ""
185
 
186
- #: useronline.php:419
187
- msgid "No User Is Browsing This Page"
188
  msgstr ""
189
 
190
- #: useronline.php:572
191
  msgid "There is"
192
  msgstr ""
193
 
194
- #: useronline.php:574
195
  msgid "There are a total of"
196
  msgstr ""
197
 
198
- #: useronline.php:576
199
  msgid "online now"
200
  msgstr ""
201
 
202
- #: useronline.php:577
 
 
 
 
203
  msgid "Most users ever online were"
204
  msgstr ""
205
 
206
- #: useronline.php:577
207
- #: useronline.php:590
208
- #: useronline.php:592
209
- #: useronline.php:610
210
- #: useronline.php:612
211
- #: useronline.php:625
212
  msgid "on"
213
  msgstr ""
214
 
215
- #: useronline.php:580
216
- #: useronline.php:600
217
- #: useronline.php:620
218
  msgid "Online Now"
219
  msgstr ""
220
 
221
- #: useronline.php:587
222
- #: useronline.php:607
223
  msgid "referral"
224
  msgstr ""
225
 
226
- #: useronline.php:590
227
- #: useronline.php:592
228
- #: useronline.php:610
229
- #: useronline.php:612
230
- #: useronline.php:625
231
  msgid "url"
232
  msgstr ""
233
 
234
- #: useronline.php:632
235
  msgid "No One Is Online Now"
236
  msgstr ""
237
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: WP-UserOnline 2.20\n"
4
  "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2007-09-30 16:12+0800\n"
6
  "Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n"
7
  "Language-Team: Lester Chan <gamerz84@hotmail.com>\n"
8
  "MIME-Version: 1.0\n"
14
  "X-Poedit-Language: English\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
+ #: useronline-options.php:32
18
+ #: useronline-options.php:320
19
+ msgid "Update Options"
20
+ msgstr ""
21
+
22
+ #: useronline-options.php:65
23
  msgid "Useronline Timeout"
24
  msgstr ""
25
 
26
+ #: useronline-options.php:66
27
  msgid "Useronline Bots"
28
  msgstr ""
29
 
30
+ #: useronline-options.php:67
31
  msgid "Useronline URL"
32
  msgstr ""
33
 
34
+ #: useronline-options.php:68
35
+ msgid "Useronline Naming Conventions"
36
+ msgstr ""
37
+
38
+ #: useronline-options.php:69
39
+ msgid "User(s) Online Template"
40
+ msgstr ""
41
+
42
+ #: useronline-options.php:70
43
+ msgid "User(s) Browsing Site Template"
44
+ msgstr ""
45
+
46
+ #: useronline-options.php:71
47
+ msgid "User(s) Browsing Page Template"
48
+ msgstr ""
49
+
50
+ #: useronline-options.php:76
51
  msgid "Updated"
52
  msgstr ""
53
 
54
+ #: useronline-options.php:81
55
  msgid "No Useronline Option Updated"
56
  msgstr ""
57
 
58
+ #: useronline-options.php:85
59
+ #: useronline-options.php:368
60
+ msgid "UNINSTALL WP-UserOnline"
61
+ msgstr ""
62
+
63
+ #: useronline-options.php:92
64
+ #, php-format
65
+ msgid "Table '%s' has been deleted."
66
+ msgstr ""
67
+
68
+ #: useronline-options.php:101
69
+ #, php-format
70
+ msgid "Setting Key '%s' has been deleted."
71
+ msgstr ""
72
+
73
+ #: useronline-options.php:105
74
+ #, php-format
75
+ msgid "Error deleting Setting Key '%s'."
76
+ msgstr ""
77
+
78
+ #: useronline-options.php:127
79
+ #: useronline-options.php:328
80
+ msgid "Uninstall WP-UserOnline"
81
+ msgstr ""
82
+
83
+ #: useronline-options.php:128
84
+ #, php-format
85
+ msgid "<a href=\"%s\">Click Here</a> To Finish The Uninstallation And WP-UserOnline Will Be Deactivated Automatically."
86
+ msgstr ""
87
+
88
+ #: useronline-options.php:153
89
+ #: useronline.php:846
90
+ msgid "Online"
91
+ msgstr ""
92
+
93
+ #: useronline-options.php:160
94
+ #: useronline.php:845
95
+ msgid "1 User"
96
+ msgstr ""
97
+
98
+ #: useronline-options.php:161
99
+ #: useronline.php:845
100
+ msgid "%USERONLINE_COUNT% Users"
101
+ msgstr ""
102
+
103
+ #: useronline-options.php:162
104
+ #: useronline.php:845
105
+ msgid "1 Member"
106
+ msgstr ""
107
+
108
+ #: useronline-options.php:163
109
+ #: useronline.php:845
110
+ msgid "%USERONLINE_COUNT% Members"
111
+ msgstr ""
112
+
113
+ #: useronline-options.php:164
114
+ #: useronline.php:845
115
+ msgid "1 Guest"
116
+ msgstr ""
117
+
118
+ #: useronline-options.php:165
119
+ #: useronline.php:845
120
+ msgid "%USERONLINE_COUNT% Guests"
121
+ msgstr ""
122
+
123
+ #: useronline-options.php:166
124
+ #: useronline.php:845
125
+ msgid "1 Bot"
126
+ msgstr ""
127
+
128
+ #: useronline-options.php:167
129
+ #: useronline.php:845
130
+ msgid "%USERONLINE_COUNT% Bots"
131
+ msgstr ""
132
+
133
+ #: useronline-options.php:173
134
+ #: useronline-options.php:179
135
+ #: useronline.php:639
136
+ #: useronline.php:847
137
+ #: useronline.php:848
138
+ msgid "Users"
139
+ msgstr ""
140
+
141
+ #: useronline-options.php:179
142
+ #: useronline.php:848
143
+ msgid "Browsing This Page."
144
+ msgstr ""
145
+
146
+ #: useronline-options.php:185
147
+ #: useronline-options.php:187
148
  msgid "Useronline Options"
149
  msgstr ""
150
 
151
+ #: useronline-options.php:190
152
  msgid "Time Out"
153
  msgstr ""
154
 
155
+ #: useronline-options.php:192
156
  msgid "How long till it will remove the user from the database (In seconds)."
157
  msgstr ""
158
 
159
+ #: useronline-options.php:196
160
  msgid "UserOnline URL"
161
  msgstr ""
162
 
163
+ #: useronline-options.php:198
164
  msgid "URL To UserOnline Page (leave blank if you do not want to link it to the UserOnline Page)<br />Example: http://www.yoursite.com/blogs/useronline/<br />Example: http://www.yoursite.com/blogs/?page_id=2"
165
  msgstr ""
166
 
167
+ #: useronline-options.php:202
168
  msgid "Bots Name/User Agent"
169
  msgstr ""
170
 
171
+ #: useronline-options.php:204
172
  msgid "Here are a list of bots and their partial browser agents.<br />On the left column will be the <strong>Bot's Name</strong> and on the right column will be their <strong>Partial Browser Agent</strong>.<br />Start each entry on a new line."
173
  msgstr ""
174
 
175
+ #: useronline-options.php:212
176
+ msgid "Naming Conventions:"
177
+ msgstr ""
178
+
179
+ #: useronline-options.php:213
180
+ #: useronline-options.php:250
181
+ #: useronline-options.php:262
182
+ #: useronline-options.php:291
183
+ msgid "Allowed Variables:"
184
+ msgstr ""
185
+
186
+ #: useronline-options.php:215
187
+ #: useronline-options.php:255
188
+ #: useronline-options.php:270
189
+ #: useronline-options.php:299
190
+ msgid "Restore Default Template"
191
+ msgstr ""
192
+
193
+ #: useronline-options.php:220
194
+ msgid "Singular Form"
195
+ msgstr ""
196
+
197
+ #: useronline-options.php:221
198
+ msgid "Plural Form"
199
+ msgstr ""
200
+
201
+ #: useronline-options.php:245
202
+ msgid "Useronline Templates"
203
+ msgstr ""
204
+
205
+ #: useronline-options.php:249
206
+ msgid "User(s) Online:"
207
  msgstr ""
208
 
209
+ #: useronline-options.php:261
210
+ msgid "User(s) Browsing Site:"
211
+ msgstr ""
212
+
213
+ #: useronline-options.php:275
214
+ #: useronline-options.php:304
215
+ msgid "Member Names Separator"
216
+ msgstr ""
217
+
218
+ #: useronline-options.php:276
219
+ #: useronline-options.php:305
220
+ msgid "Guests Separator"
221
+ msgstr ""
222
+
223
+ #: useronline-options.php:277
224
+ #: useronline-options.php:306
225
+ msgid "Bots Separator"
226
+ msgstr ""
227
+
228
+ #: useronline-options.php:290
229
+ msgid "User(s) Browsing Page:"
230
+ msgstr ""
231
+
232
+ #: useronline-options.php:320
233
  msgid "Cancel"
234
  msgstr ""
235
 
236
+ #: useronline-options.php:330
237
+ msgid "Deactivating WP-UserOnline plugin does not remove any data that may have been created, such as the useronline options. To completely remove this plugin, you can uninstall it here."
238
+ msgstr ""
239
+
240
+ #: useronline-options.php:333
241
+ msgid "WARNING:"
242
+ msgstr ""
243
+
244
+ #: useronline-options.php:334
245
+ msgid "Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first."
246
+ msgstr ""
247
+
248
+ #: useronline-options.php:337
249
+ msgid "The following WordPress Options/Tables will be DELETED:"
250
+ msgstr ""
251
+
252
+ #: useronline-options.php:341
253
+ msgid "WordPress Options"
254
+ msgstr ""
255
+
256
+ #: useronline-options.php:342
257
+ msgid "WordPress Tables"
258
+ msgstr ""
259
+
260
+ #: useronline-options.php:367
261
+ #: useronline-widget.php:73
262
+ msgid "Yes"
263
+ msgstr ""
264
+
265
+ #: useronline-options.php:368
266
+ msgid ""
267
+ "You Are About To Uninstall WP-UserOnline From WordPress.\\n"
268
+ "This Action Is Not Reversible.\\n"
269
+ "\\n"
270
+ " Choose [Cancel] To Stop, [OK] To Uninstall."
271
+ msgstr ""
272
+
273
  #: useronline-widget.php:62
274
  msgid "UserOnline"
275
  msgstr ""
282
  msgid "Display Users Browsing Site Under Users Online Count?"
283
  msgstr ""
284
 
 
 
 
 
285
  #: useronline-widget.php:75
286
  msgid "No"
287
  msgstr ""
288
 
289
+ #: useronline.php:52
290
+ #: useronline.php:786
291
+ #: useronline.php:788
292
+ #: useronline.php:798
293
  msgid "WP-UserOnline"
294
  msgstr ""
295
 
296
+ #: useronline.php:55
297
  msgid "Useronline"
298
  msgstr ""
299
 
300
+ #: useronline.php:114
301
  msgid "guest"
302
  msgstr ""
303
 
304
+ #: useronline.php:120
305
+ #: useronline.php:652
 
 
306
  msgid "Guest"
307
  msgstr ""
308
 
309
+ #: useronline.php:135
310
  msgid "Blog Archive"
311
  msgstr ""
312
 
313
+ #: useronline.php:216
314
+ #: useronline.php:247
315
+ #: useronline.php:689
316
+ #: useronline.php:691
317
+ #: useronline.php:709
318
+ #: useronline.php:711
319
+ #: useronline.php:724
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
320
  #, php-format
321
  msgid "%s @ %s"
322
  msgstr ""
323
 
324
+ #: useronline.php:380
325
+ msgid "No User Is Browsing This Site"
 
 
 
 
 
 
 
 
326
  msgstr ""
327
 
328
+ #: useronline.php:518
329
+ msgid "No User Is Browsing This Page"
 
 
330
  msgstr ""
331
 
332
+ #: useronline.php:637
333
+ msgid "User"
334
  msgstr ""
335
 
336
+ #: useronline.php:644
 
337
  msgid "Member"
338
  msgstr ""
339
 
340
+ #: useronline.php:646
 
 
341
  msgid "Members"
342
  msgstr ""
343
 
344
+ #: useronline.php:654
345
+ msgid "Guests"
346
  msgstr ""
347
 
348
+ #: useronline.php:659
349
+ msgid "Bot"
 
350
  msgstr ""
351
 
352
+ #: useronline.php:661
353
+ msgid "Bots"
354
  msgstr ""
355
 
356
+ #: useronline.php:671
357
  msgid "There is"
358
  msgstr ""
359
 
360
+ #: useronline.php:673
361
  msgid "There are a total of"
362
  msgstr ""
363
 
364
+ #: useronline.php:675
365
  msgid "online now"
366
  msgstr ""
367
 
368
+ #: useronline.php:675
369
+ msgid "and"
370
+ msgstr ""
371
+
372
+ #: useronline.php:676
373
  msgid "Most users ever online were"
374
  msgstr ""
375
 
376
+ #: useronline.php:676
377
+ #: useronline.php:689
378
+ #: useronline.php:691
379
+ #: useronline.php:709
380
+ #: useronline.php:711
381
+ #: useronline.php:724
382
  msgid "on"
383
  msgstr ""
384
 
385
+ #: useronline.php:679
386
+ #: useronline.php:699
387
+ #: useronline.php:719
388
  msgid "Online Now"
389
  msgstr ""
390
 
391
+ #: useronline.php:686
392
+ #: useronline.php:706
393
  msgid "referral"
394
  msgstr ""
395
 
396
+ #: useronline.php:689
397
+ #: useronline.php:691
398
+ #: useronline.php:709
399
+ #: useronline.php:711
400
+ #: useronline.php:724
401
  msgid "url"
402
  msgstr ""
403
 
404
+ #: useronline.php:731
405
  msgid "No One Is Online Now"
406
  msgstr ""
407
 
408
+ #: useronline.php:800
409
+ msgid "user(s) online now."
410
+ msgstr ""
411
+
412
+ #: useronline.php:801
413
+ msgid "Most users ever online was"
414
+ msgstr ""
415
+
416
+ #: useronline.php:802
417
+ msgid "On"
418
+ msgstr ""
419
+