]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/active_functions.php
Use countSumTotalData() instead of SQL query
[mailer.git] / inc / libs / active_functions.php
index 97390364d67be3284f1c7e52a79a8743a7c71179..5103339448060613dbfbff241ebddd53eb6b9fc3 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                           *
- * 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 *
@@ -42,21 +40,16 @@ if (!defined('__SECURITY')) {
        die();
 } // END - if
 
-// Filter for adding link to "active list"
-function FILTER_ADD_LINK_ACTIVE_LIST () {
-       // Is ext-active/online there?
-       if ((isExtensionActive('active')) && (isExtensionActive('online'))) {
-               // Init fake-content because there is no `what`='active' in database
-               $content = array(
-                       'menu'    => '<a class="menu_blur" href="{%url=modules.php?module=index&amp;what=active%}">{?menu_blur_spacer?}{--GUEST_ACTIVE_LINK--}</a>',
-                       'what'    => 'active',
-                       'visible' => 'Y',
-                       'locked'  => 'N'
-               );
-
-               // Add link to "we were active today" page
-               $GLOBALS['rows'] .= loadTemplate('guest_menu_bottom', true, $content);
+// Wrapper function for 'active_limit'
+function getActiveLimit () {
+       // Is there cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Get config entry
+               $GLOBALS[__FUNCTION__] = getConfig('active_limit');
        } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
 }
 
 // [EOF]