]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-usr_online.php
AJAX installation is 'basicly finished' :) Plus I threw in a small christmas present...
[mailer.git] / inc / modules / admin / what-usr_online.php
index 501f6480dcfede44b08c34b54aeadb51d25ffe6b..29c6b6f502fc5e58cab161baa9f7326333d5718a 100644 (file)
@@ -16,8 +16,8 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
- * For more information visit: http://www.mxchange.org                  *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -41,18 +41,18 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 } // END - if
 
 // Add description as navigation point
-addMenuDescription('admin', __FILE__);
+addYouAreHereLink('admin', __FILE__);
 
 // Online stats are only working if extension ext-online is installed
 if (isExtensionActive('online')) {
        // Count guests, members and admins
        // @TODO Add a filter for sponsor
-       $content['guests_online']  = countSumTotalData('N', 'online', 'id', 'is_admin', true, " AND `is_member`='N'");
-       $content['admins_online']  = countSumTotalData('N', 'online', 'id', 'is_admin', true, " AND `is_member`='Y'");
-       $content['members_online'] = countSumTotalData('N', 'online', 'id', 'is_admin', true);
+       $content['guests_online']  = countSumTotalData('N', 'online', 'id', 'is_admin', TRUE, " AND `is_member`='N'");
+       $content['admins_online']  = countSumTotalData('N', 'online', 'id', 'is_admin', TRUE, " AND `is_member`='Y'");
+       $content['members_online'] = countSumTotalData('N', 'online', 'id', 'is_admin', TRUE);
 
        // Load template
-       loadTemplate('admin_mini_online', false, $content);
+       loadTemplate('admin_mini_online', FALSE, $content);
 
        // Check for online users
        $result = SQL_QUERY("SELECT `id`, `ip`, `userid`, `refid`, `module`, `action`, `what`, `is_member`, `is_admin`, `timestamp` FROM `{?_MYSQL_PREFIX?}_online` ORDER by `timestamp` DESC",
@@ -76,7 +76,7 @@ if (isExtensionActive('online')) {
                        $row['timestamp'] = generateDateTime($row['timestamp'], 2);
 
                        // Load row template and switch color
-                       $OUT .= loadTemplate('admin_list_online_row', true, $row);
+                       $OUT .= loadTemplate('admin_list_online_row', TRUE, $row);
                } // END - while
 
                // Free memory
@@ -86,11 +86,11 @@ if (isExtensionActive('online')) {
                $content['rows']           = $OUT;
 
                // Load footer template
-               loadTemplate('admin_list_online', false, $content);
+               loadTemplate('admin_list_online', FALSE, $content);
        } // END - if
 } else {
        // Online statistics deactivated!
-       loadTemplate('admin_settings_saved', false, '{--ONLINE_STATISTICS_DEACTIVATED--}');
+       displayMessage('{--ONLINE_STATISTICS_DEACTIVATED--}');
 }
 
 // [EOF]