]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/action-online.php
mailer project continued:
[mailer.git] / inc / modules / guest / action-online.php
index 50c832d6603289c05dbe59a30808025cc980fbe6..05e5e187200430f1abc826a296275f1dfe4d7897 100644 (file)
  * $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 - 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 *
@@ -38,7 +37,7 @@
 
 // Some security stuff...
 if (!defined('__SECURITY')) {
-       die();
+       exit();
 } elseif ((!isExtensionActive('online')) && (!isAdmin())) {
        // Just skip this extension
        return;
@@ -57,10 +56,10 @@ if (getConfig('mad_count') < $total) {
 
 // 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