X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Faction-online.php;h=4526803264aa93df9ada4e575e341afc05c91d0e;hp=50c832d6603289c05dbe59a30808025cc980fbe6;hb=e9da1508b2a3ccbf63adc999981674740a47e074;hpb=e2148142f8b1a8f40fd6e7ca32185569c5a9083e diff --git a/inc/modules/guest/action-online.php b/inc/modules/guest/action-online.php index 50c832d660..4526803264 100644 --- a/inc/modules/guest/action-online.php +++ b/inc/modules/guest/action-online.php @@ -10,15 +10,9 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Wer ist wo? (KEINE Untermenues anhaengen!) * * -------------------------------------------------------------------- * - * $Revision:: $ * - * $Date:: $ * - * $Tag:: 0.2.1-FINAL $ * - * $Author:: $ * - * Needs to be in all Files and every File needs "svn propset * - * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * - * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2015 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 * @@ -38,7 +32,7 @@ // Some security stuff... if (!defined('__SECURITY')) { - die(); + exit(); } elseif ((!isExtensionActive('online')) && (!isAdmin())) { // Just skip this extension return; @@ -48,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' => translateComma(countSumTotalData('N', 'online', 'id', 'is_admin', true, " AND `is_member`='N'")), - 'members' => translateComma(countSumTotalData('N', 'online', 'id', 'is_admin', true, " AND `is_member`='Y'")), - 'admins' => translateComma(countSumTotalData('Y', 'online', 'id', 'is_admin', true)), - 'total' => translateComma($total) + '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');