X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fother_functions.php;h=d80080f1cd58cae28a74e85a1ee08bf011b5e46d;hb=023d240bd9154811e5ebca23892ed06fefc72c08;hp=46a5aa6199ff5312f45edfe19ad3a16d5045df15;hpb=c3b4eaf29946349ff058691db2dcb615a5379bb2;p=mailer.git diff --git a/inc/libs/other_functions.php b/inc/libs/other_functions.php index 46a5aa6199..d80080f1cd 100644 --- a/inc/libs/other_functions.php +++ b/inc/libs/other_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 - 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 * @@ -50,23 +50,30 @@ function displayDebugSqls () { $content['timing'] = translateComma($content['timing'] * 1000); // Load row template - $OUT .= loadTemplate('admin_other_sqls_row', true, $content); + $OUT .= loadTemplate('admin_other_sqls_row', TRUE, $content); // Count one up $i++; } // END - foreach // Load main template - $GLOBALS['page_footer'] .= loadTemplate('admin_other_sqls', true, $OUT); + $GLOBALS['__page_footer'] .= loadTemplate('admin_other_sqls', TRUE, $OUT); } -// Filter for debugging SQLs -function FILTER_DISPLAY_DEBUG_SQL () { - // Shall we display SQL queries? - if ((isAdmin()) && (isDisplayDebugSqlEnabled()) && (!isGetRequestParameterSet('frame')) && ($GLOBALS['header_sent'] == 2)) { - // Then display it here - displayDebugSqls(); +//----------------------------------------------------------------------------- +// Wrapper functions for configuration entries +//----------------------------------------------------------------------------- + +// Getter for 'reject_url' config entry +function getRejectUrl () { + // Is there cache? + if (!isset($GLOBALS[__FUNCTION__])) { + // Determine it + $GLOBALS[__FUNCTION__] = getConfig('reject_url'); } // END - if + + // Return cache + return $GLOBALS[__FUNCTION__]; } // [EOF]