}
// Checks wether stats are enabled
-function ifStatsAreEnabled () {
+function ifInternalStatsEnabled () {
// Do we have cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Then determine it
- $GLOBALS[__FUNCTION__] = (getConfig('stats_enabled') == 'Y');
+ $GLOBALS[__FUNCTION__] = (getConfig('internal_stats') == 'Y');
} // END - if
// Return cached value
return $GLOBALS[__FUNCTION__];
}
+// Checks wether JavaScript-based admin menu is enabled
+function isAdminMenuJavascriptEnabled () {
+ // Do we have cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = ((isExtensionInstalledAndNewer('sql_patches', '0.8.7')) && (getConfig('admin_menu_javascript') == 'Y'));
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
// Wrapper to check if current task is for extension (not update)
function isExtensionTask ($content) {
// Do we have cache?
}
// Generates a YES/NO option list from given default
-function generateYesNoOptionList ($configValue = '') {
+function generateYesNoOptionList ($defaultValue = '') {
// Generate it
- return generateOptionList('/ARRAY/', array('Y', 'N'), array('{--YES--}', '{--NO--}'), $configValue);
+ return generateOptionList('/ARRAY/', array('Y', 'N'), array('{--YES--}', '{--NO--}'), $defaultValue);
}
// "Getter" for total available receivers