]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/sponsor_functions.php
Naming convention applied, wrapper functions may use __FUNCTION__ as first index
[mailer.git] / inc / libs / sponsor_functions.php
index d038b478e4208511ff02bde915820d4ef2fdd4a1..d54a64238a42f2d22e02b4bbc08bc371d32c95b2 100644 (file)
@@ -841,5 +841,29 @@ function destroySponsorSession () {
        return ((setSession('sponsor_id', '')) && (setSession('sponsor_pass', '')));
 }
 
+// Getter for sponsor_min_points
+function getSponsorMinPoints () {
+       // Do we have cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = getConfig('sponsor_min_points');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
+// Getter for sponsor_ref_points
+function getSponsorRefPoints () {
+       // Do we have cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = getConfig('sponsor_ref_points');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
 // [EOF]
 ?>