// Return float
return $float;
}
+
// Handle menu-depending failed logins and return the rendered content
function HANDLE_LOGIN_FAILTURES ($accessLevel) {
// Default output is empty ;-)
// Return rendered content
return $OUT;
}
+
// Rebuild cache
function REBUILD_CACHE ($cache, $inc="") {
global $cacheInstance, $CSS;
} // END - if
} // END - if
}
+
// Purge admin menu cache
function CACHE_PURGE_ADMIN_MENU ($id=0, $action="", $what="", $str="") {
global $cacheInstance;
}
// Experiemental feature!
- trigger_error("You have to delete the admin_*.cache files by yourself at this point.");
+ trigger_error("<strong>Experimental feature:</strong> You have to delete the admin_*.cache files by yourself at this point.");
}
+
// Translates the "pool type" into human-readable
function TRANSLATE_POOL_TYPE ($type) {
// Default type is unknown
// Return "translation"
return $translated;
}
+
// "Getter" for remote IP number
function GET_REMOTE_ADDR () {
// Get remote ip from environment
return $id;
}
-// Increment or init with 1 the given config entry
-function incrementConfigEntry ($configEntry) {
+// Increment or init with given value or 1 as default the given config entry
+function incrementConfigEntry ($configEntry, $value=1) {
global $_CONFIG;
// Increment it if set or init it with 1
- if (getConfig($configEntry) > 0) { $_CONFIG[$configEntry]++; } else { $_CONFIG[$configEntry] = 1; }
+ if (getConfig($configEntry) > 0) {
+ $_CONFIG[$configEntry] += $value;
+ } else {
+ $_CONFIG[$configEntry] = $value;
+ }
}
//////////////////////////////////////////////////