]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/coupon_functions.php
mailer project continued:
[mailer.git] / inc / libs / coupon_functions.php
index e17e52553205ad16d14901b4ff2a6d660ca0859c..62bc2d4167251b320094a766d67571286eeedffe 100644 (file)
@@ -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 *
@@ -52,5 +52,29 @@ function getCouponDefaultPoints () {
        return $GLOBALS[__FUNCTION__];
 }
 
+// Wrapper function for 'coupon_autopurge_time'
+function getCouponAutopurgeTime () {
+       // Do we have 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 () {
+       // Do we have cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Get config entry
+               $GLOBALS[__FUNCTION__] = getConfig('coupon_userid');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
 // [EOF]
 ?>