]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/action-online.php
More XHTML-fied and extended header added to templates
[mailer.git] / inc / modules / guest / action-online.php
index 0dea4fa9566ba99c02e7be1dec66237e52cd1e4c..af639eba1795736ba56a2b7459c1458faaac732f 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Wer ist wo? (KEINE Untermenues anhaengen!)       *
  * -------------------------------------------------------------------- *
- *                                                                      *
+ * $Revision:: 856                                                    $ *
+ * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. March 2009)             $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author:: stelzi                                                   $ *
+ * Needs to be in all Files and every File needs "svn propset           *
+ * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2008 by Roland Haeder                           *
  * For more information visit: http://www.mxchange.org                  *
@@ -38,19 +43,20 @@ if (!defined('__SECURITY')) {
 } elseif ((!EXT_IS_ACTIVE("online")) && (!IS_ADMIN())) {
        // Just skip this extension
        return;
+} elseif (defined('GUESTS_ONLINE_CNT')) {
+       // Skip it if already executed
+       return;
 }
 
-$result_guests  = SQL_QUERY("SELECT id FROM "._MYSQL_PREFIX."_online WHERE is_admin='N' AND is_member='N'", __FILE__, __LINE__);
-$result_members = SQL_QUERY("SELECT id FROM "._MYSQL_PREFIX."_online WHERE is_admin='N' AND is_member='Y'", __FILE__, __LINE__);
-$result_admins  = SQL_QUERY("SELECT id FROM "._MYSQL_PREFIX."_online WHERE is_admin='Y'", __FILE__, __LINE__);
+$result_guests  = SQL_QUERY("SELECT id FROM `{!_MYSQL_PREFIX!}_online` WHERE is_admin='N' AND is_member='N'", __FILE__, __LINE__);
+$result_members = SQL_QUERY("SELECT id FROM `{!_MYSQL_PREFIX!}_online` WHERE is_admin='N' AND is_member='Y'", __FILE__, __LINE__);
+$result_admins  = SQL_QUERY("SELECT id FROM `{!_MYSQL_PREFIX!}_online` WHERE is_admin='Y'", __FILE__, __LINE__);
 
 // Total visitors online
 $total      = SQL_NUMROWS($result_guests) + SQL_NUMROWS($result_members) + SQL_NUMROWS($result_admins);
 if (getConfig('mad_count') < $total) {
        // Update counter
        UPDATE_CONFIG(array("mad_timestamp", "mad_count"), array(time(), $total));
-       $_CONFIG['mad_count'] = $total;
-       $_CONFIG['last_mad']  = time();
 } // END - if
 
 // Put all values in constants for the template
@@ -62,7 +68,7 @@ define('ADMINS_ONLINE_CNT' , SQL_NUMROWS($result_admins));
 LOAD_TEMPLATE("online_now");
 
 // Add more links in this block
-RUN_FILTER('online_extra_links');
+runFilterChain('online_extra_links');
 
 //
 ?>