* $Date:: $ *
* $Tag:: 0.2.1-FINAL $ *
* $Author:: $ *
- * Needs to be in all Files and every File needs "svn propset *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* Copyright (c) 2009, 2010 by Mailer Developer Team *
// Getter for HTTP status
function getHttpStatus () {
+ // Is the status set?
+ if (!isset($GLOBALS['http_status'])) {
+ // Abort here
+ debug_report_bug(__FUNCTION__, __LINE__, 'No HTTP status set!');
+ } // END - if
+
+ // Return it
return $GLOBALS['http_status'];
}
function getMonth ($timestamp = null) {
// Is it cached?
if (!isset($GLOBALS[__FUNCTION__][$timestamp])) {
- // null is time()
- if (is_null($timestamp)) $timestamp = time();
+ // If null is set, use time()
+ if (is_null($timestamp)) {
+ // Use time() which is current timestamp
+ $timestamp = time();
+ } // END - if
// Then create it
$GLOBALS[__FUNCTION__][$timestamp] = date('m', $timestamp);
// Do we have cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
- $GLOBALS[__FUNCTION__] = (getConfig('select_user_zero_refid') == 'Y');
+ $GLOBALS[__FUNCTION__] = ((isExtensionInstalledAndNewer('user', '0.3.4')) && (getConfig('select_user_zero_refid') == 'Y'));
} // END - if
// Return cache
return $GLOBALS[__FUNCTION__];
}
+// "Getter" for default referal id
+function getDefRefid () {
+ // Do we have cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('def_refid');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
// "Getter" for path
function getPath () {
// Do we have cache?
}
// "Getter" for curr_svn_revision
-function getCurrSvnRevision () {
+function getCurrentRepositoryRevision () {
// Do we have cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
- $GLOBALS[__FUNCTION__] = getConfig('CURR_SVN_REVISION');
+ $GLOBALS[__FUNCTION__] = getConfig('CURRENT_REPOSITORY_REVISION');
} // END - if
// Return cache
return $GLOBALS[__FUNCTION__];
}
+// "Getter" for activate_xchange
+function getActivateXchange () {
+ // Do we have cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('activate_xchange');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
+// "Getter" for img_type
+function getImgType () {
+ // Do we have cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('img_type');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
+// "Getter" for code_length
+function getCodeLength () {
+ // Do we have cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('code_length');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
// Checks wether proxy configuration is used
function isProxyUsed () {
// Do we have cache?
return generateEmailLink($email, 'user_data');
}
+// Wrapper to check if user points are locked
+function ifUserPointsLocked ($userid) {
+ // Do we have cache?
+ if (!isset($GLOBALS[__FUNCTION__][$userid])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__][$userid] = ((getFetchedUserData('userid', $userid, 'ref_payout') > 0) && (!isDirectPaymentEnabled()));
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__][$userid];
+}
+
// [EOF]
?>