]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/coupon_functions.php
Extension ext-network continued:
[mailer.git] / inc / libs / coupon_functions.php
index c61c2c5a0268b99f16b0590a5f6761dd8393088f..2ee0f69a15f9e0ca5646387cc2516097e06729f1 100644 (file)
@@ -17,7 +17,7 @@
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * 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 *
@@ -64,5 +64,17 @@ function getCouponAutopurgeTime () {
        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]
 ?>