X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fcoupon_functions.php;h=da1ba15fd89bc278cc45c56a44776a19f6336ccd;hb=25d546f45bdf68f8d843f7357d53eec4a7eacaa9;hp=e17e52553205ad16d14901b4ff2a6d660ca0859c;hpb=a44235215a481489b76a39269cf98b170901186b;p=mailer.git diff --git a/inc/libs/coupon_functions.php b/inc/libs/coupon_functions.php index e17e525532..da1ba15fd8 100644 --- a/inc/libs/coupon_functions.php +++ b/inc/libs/coupon_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 * @@ -42,7 +42,7 @@ if (!defined('__SECURITY')) { // Wrapper function for 'coupon_default_points' function getCouponDefaultPoints () { - // Do we have cache? + // Is there cache? if (!isset($GLOBALS[__FUNCTION__])) { // Get config entry $GLOBALS[__FUNCTION__] = getConfig('coupon_default_points'); @@ -52,5 +52,29 @@ function getCouponDefaultPoints () { return $GLOBALS[__FUNCTION__]; } +// Wrapper function for 'coupon_autopurge_time' +function getCouponAutopurgeTime () { + // Is there cache? + if (!isset($GLOBALS[__FUNCTION__])) { + // Get config entry + $GLOBALS[__FUNCTION__] = getConfig('coupon_autopurge_time'); + } // END - if + + // Return cache + return $GLOBALS[__FUNCTION__]; +} + +// Wrapper function for 'coupon_userid' +function getCouponUserid () { + // Is there cache? + if (!isset($GLOBALS[__FUNCTION__])) { + // Get config entry + $GLOBALS[__FUNCTION__] = getConfig('coupon_userid'); + } // END - if + + // Return cache + return $GLOBALS[__FUNCTION__]; +} + // [EOF] ?>