// First is config
(
(
- isConfigEntrySet('MXCHANGE_INSTALLED')
+ isConfigEntrySet('MAILER_INSTALLED')
) && (
- getConfig('MXCHANGE_INSTALLED') == 'Y'
+ getConfig('MAILER_INSTALLED') == 'Y'
)
)
) || (
return $GLOBALS[__FUNCTION__];
}
+// Checks whether debugging of build mails is enabled
+function isDebugBuildMailsEnabled () {
+ // Is cache set?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Simply check it
+ $GLOBALS[__FUNCTION__] = ((isConfigEntrySet('DEBUG_BUILD_MAILS')) && (getConfig('DEBUG_BUILD_MAILS') == 'Y'));
+ } // END - if
+
+ // Return it
+ return $GLOBALS[__FUNCTION__];
+}
+
// Checks whether the cache instance is valid
function isCacheInstanceValid () {
// Is there cache?
}
// Checks whether what is set and optionally aborts on miss
-function isWhatSet ($strict = false) {
+function isWhatSet ($strict = FALSE) {
// Check for it
$isset = (isset($GLOBALS['__what']) && (!empty($GLOBALS['__what'])));
}
// Checks whether action is set and optionally aborts on miss
-function isActionSet ($strict = false) {
+function isActionSet ($strict = FALSE) {
// Check for it
$isset = ((isset($GLOBALS['__action'])) && (!empty($GLOBALS['__action'])));
}
// Checks whether module is set and optionally aborts on miss
-function isModuleSet ($strict = false) {
+function isModuleSet ($strict = FALSE) {
// Check for it
$isset = ((isset($GLOBALS['__module'])) && (!empty($GLOBALS['__module'])));
}
// Setter for 'output_mode' value
-function setOutputMode ($newOutputMode) {
+function setScriptOutputMode ($newOutputMode) {
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'output_mode=' . $newOutputMode);
$GLOBALS['__output_mode'] = (int) $newOutputMode;
}
// Checks whether output_mode is set and optionally aborts on miss
-function isOutputModeSet ($strict = false) {
+function isOutputModeSet ($strict = FALSE) {
// Check for it
$isset = (isset($GLOBALS['__output_mode']));
$GLOBALS['__output'] = '';
// To make redirects working (no content type), output mode must be raw
- setOutputMode(-1);
+ setScriptOutputMode(-1);
// Send helping header
setHttpStatus('302 Found');
// Is there cache?
if (!isset($GLOBALS[__FUNCTION__][$userid])) {
// Check it out
- $GLOBALS[__FUNCTION__][$userid] = ((!is_null($userid)) && (!empty($userid)) && ($userid > 0));
+ $GLOBALS[__FUNCTION__][$userid] = ((!is_null($userid)) && (!empty($userid)) && ($userid != 'NULL') && ($userid > 0));
} // END - if
// Return cache
// Return cache
return $GLOBALS[__FUNCTION__];
}
-
-// "Getter" for auto_purge
-function getAutoPurge () {
- // Is there cache?
- if (!isset($GLOBALS[__FUNCTION__])) {
- // Determine it
- $GLOBALS[__FUNCTION__] = getConfig('auto_purge');
- } // END - if
-
- // Return cache
- return $GLOBALS[__FUNCTION__];
-}
-
-// "Getter" for bonus_userid
-function getBonusUserid () {
- // Is there cache?
- if (!isset($GLOBALS[__FUNCTION__])) {
- // Determine it
- $GLOBALS[__FUNCTION__] = getConfig('bonus_userid');
- } // END - if
-
- // Return cache
- return $GLOBALS[__FUNCTION__];
-}
-
-// "Getter" for ap_inactive_time
-function getApInactiveTime () {
- // Is there cache?
- if (!isset($GLOBALS[__FUNCTION__])) {
- // Determine it
- $GLOBALS[__FUNCTION__] = getConfig('ap_inactive_time');
- } // END - if
-
- // Return cache
- return $GLOBALS[__FUNCTION__];
-}
-
-// "Getter" for ap_dm_timeout
-function getApDmTimeout () {
- // Is there cache?
- if (!isset($GLOBALS[__FUNCTION__])) {
- // Determine it
- $GLOBALS[__FUNCTION__] = getConfig('ap_dm_timeout');
- } // END - if
-
- // Return cache
- return $GLOBALS[__FUNCTION__];
-}
-
-// "Getter" for ap_tasks_time
-function getApTasksTime () {
- // Is there cache?
- if (!isset($GLOBALS[__FUNCTION__])) {
- // Determine it
- $GLOBALS[__FUNCTION__] = getConfig('ap_tasks_time');
- } // END - if
-
- // Return cache
- return $GLOBALS[__FUNCTION__];
-}
-
-// "Getter" for ap_unconfirmed_time
-function getApUnconfirmedTime () {
- // Is there cache?
- if (!isset($GLOBALS[__FUNCTION__])) {
- // Determine it
- $GLOBALS[__FUNCTION__] = getConfig('ap_unconfirmed_time');
- } // END - if
-
- // Return cache
- return $GLOBALS[__FUNCTION__];
-}
-
// "Getter" for points
function getPoints () {
// Is there cache?
return $GLOBALS[__FUNCTION__];
}
+// Getter for 'ap_server_name_since'
+function getApServerNameSince () {
+ // Is the cache entry set?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // No, so determine it
+ $GLOBALS[__FUNCTION__] = getConfig('ap_server_name_since');
+ } // END - if
+
+ // Return cached entry
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Getter for 'ap_server_name'
+function getApServerName () {
+ // Is the cache entry set?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // No, so determine it
+ $GLOBALS[__FUNCTION__] = getConfig('ap_server_name');
+ } // END - if
+
+ // Return cached entry
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Checks whether 'ap_server_name' is 'Y'
+function isApServerNameEnabled () {
+ // Is the cache entry set?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // No, so determine it
+ $GLOBALS[__FUNCTION__] = (getApServerName() == 'Y');
+ } // END - if
+
+ // Return cached entry
+ return $GLOBALS[__FUNCTION__];
+}
+
// Getter for 'admin_menu_javascript'
function getAdminMenuJavascript () {
// Is the cache entry set?