X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Factive_functions.php;h=568fc1bdbe02b9be8667e31fc3e55bccff766db1;hb=6ef6799565051ceac37a56b80c3f2a87b01e3ca2;hp=30e4c74da63fe521a69fc60e42a5dc00ed2d1659;hpb=c3b4eaf29946349ff058691db2dcb615a5379bb2;p=mailer.git diff --git a/inc/libs/active_functions.php b/inc/libs/active_functions.php index 30e4c74da6..568fc1bdbe 100644 --- a/inc/libs/active_functions.php +++ b/inc/libs/active_functions.php @@ -16,8 +16,8 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * 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 * * it under the terms of the GNU General Public License as published by * @@ -40,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' => '{?menu_blur_spacer?}{--GUEST_ACTIVE_LINK--}', - '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]