X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Factive_functions.php;h=db2dc024c4459b73fff46c998a7076c1e035e897;hb=d1922ab361b5e104b7c14b28c76d1c47651635ef;hp=c5ed6c7a0bef39510da69e4695b162a62c01bd62;hpb=09f5758c42a33a56bdd461c946ffe759a59c54aa;p=mailer.git diff --git a/inc/libs/active_functions.php b/inc/libs/active_functions.php index c5ed6c7a0b..db2dc024c4 100644 --- a/inc/libs/active_functions.php +++ b/inc/libs/active_functions.php @@ -14,12 +14,10 @@ * $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 - 2016 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,19 +40,16 @@ if (!defined('__SECURITY')) { die(); } // END - if -// Filter for adding link to "active list" -function FILTER_ADD_LINK_ACTIVE_LIST () { - // Are the extensions online and active there? - if (isExtensionActive('online')) { - // Init content - $content = array( - 'menu' => '{%config=menu_blur_spacer%}' . getMessage('GUEST_ACTIVE_LINK') . '', - 'what' => 'active' - ); - - // 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]