]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/action-online.php
First batch of removal of the headers needed for revision-functions.php
[mailer.git] / inc / modules / guest / action-online.php
index 05e5e187200430f1abc826a296275f1dfe4d7897..5019c5fcbfa38326143440e6396adfce9fa5a3c3 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Wer ist wo? (KEINE Untermenues anhaengen!)       *
  * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -47,23 +42,23 @@ if (!defined('__SECURITY')) {
 }
 
 // Total visitors online
-$total = countSumTotalData('', 'online', 'id', 'userid', true);
+$total = countSumTotalData('', 'online', 'id', 'userid', TRUE);
 
 if (getConfig('mad_count') < $total) {
        // Update counter
-       updateConfiguration(array('mad_timestamp', 'mad_count'), array(time(), $total));
+       updateConfiguration(array('mad_timestamp', 'mad_count'), array('UNIX_TIMESTAMP()', $total));
 } // END - if
 
 // Prepare content
 $content = array(
-       'guests'  => countSumTotalData('N', 'online', 'id', 'is_admin', true, " AND `is_member`='N'"),
-       'members' => countSumTotalData('N', 'online', 'id', 'is_admin', true, " AND `is_member`='Y'"),
-       'admins'  => countSumTotalData('Y', 'online', 'id', 'is_admin', true),
+       'guests'  => countSumTotalData('N', 'online', 'id', 'is_admin', TRUE, " AND `is_member`='N'"),
+       'members' => countSumTotalData('N', 'online', 'id', 'is_admin', TRUE, " AND `is_member`='Y'"),
+       'admins'  => countSumTotalData('Y', 'online', 'id', 'is_admin', TRUE),
        'total'   => $total
 );
 
 // Output table
-$GLOBALS['rows'] .= loadTemplate('online_now', true, $content);
+$GLOBALS['rows'] .= loadTemplate('online_now', TRUE, $content);
 
 // Add more links in this block
 runFilterChain('online_extra_links');