// Add description as navigation point
ADD_DESCR("admin", __FILE__);
-global $cacheInstance, $cacheArray, $cacheMode;
-
// Normally we want the overview of all registered extensions
$do = "overview";
$SEL = 0;
// De-/activate extensions
foreach ($_POST['sel'] as $ext_id => $active) {
// Shall we keep the extension always active?
- if ((isset($cacheArray['active_extensions'][GET_EXT_NAME($ext_id)])) && ($cacheArray['active_extensions'][GET_EXT_NAME($ext_id)] == "Y") && ($active == "N")) {
+ if ((isset($GLOBALS['cache_array']['active_extensions'][GET_EXT_NAME($ext_id)])) && ($GLOBALS['cache_array']['active_extensions'][GET_EXT_NAME($ext_id)] == "Y") && ($active == "N")) {
// Keep this extension active!
} else {
// De/activate extension
}
// Output row
- $CSS = "---";
- if (GET_EXT_VERSION("sql_patches") >= "0.0.6") $CSS = ADD_SELECTION("yn", $css, "css", $ext_id);
+ $cssSelection = "---";
+ if (GET_EXT_VERSION("sql_patches") >= "0.0.6") $cssSelection = ADD_SELECTION("yn", $css, "css", $ext_id);
// Prepare data for the row template
$content = array(
'id' => $ext_id,
'name' => $name,
'active' => ADD_SELECTION("yn", $active, "active", $ext_id),
- 'css' => $CSS,
+ 'css' => $cssSelection,
);
// Load row template and switch color
// Extensions are registered
$SW = 2; $OUT = "";
while ($content = SQL_FETCHARRAY($result)) {
- $CSS = "---";
- if (GET_EXT_VERSION("sql_patches") >= "0.0.6") $CSS = TRANSLATE_YESNO($content['ext_css']);
+ // Prepare CSS selection output
+ $cssSelection = "---";
+ if (GET_EXT_VERSION("sql_patches") >= "0.0.6") $cssSelection = TRANSLATE_YESNO($content['ext_css']);
// Prepare data for the row template
$content = array(
'name' => $content['ext_name'],
'active' => TRANSLATE_YESNO($content['ext_active']),
'act_val' => $content['ext_active'],
- 'css' => $CSS,
+ 'css' => $cssSelection,
'ver' => $content['ext_version'],
);
}
// Do we need to update cache file?
- if ((EXT_IS_ACTIVE("cache")) && ($cacheMode != "no")) {
+ if ((EXT_IS_ACTIVE("cache")) && ($GLOBALS['cacheMode'] != "no")) {
// Remove cache file (will be auto-created again!)
- if ($cacheInstance->loadCacheFile("config")) $cacheInstance->destroyCacheFile();
- if ($cacheInstance->loadCacheFile("extensions", true)) $cacheInstance->destroyCacheFile();
- if ($cacheInstance->loadCacheFile("mod_reg")) $cacheInstance->destroyCacheFile();
+ if ($GLOBALS['cache_instance']->loadCacheFile("config")) $GLOBALS['cache_instance']->destroyCacheFile();
+ if ($GLOBALS['cache_instance']->loadCacheFile("extensions", true)) $GLOBALS['cache_instance']->destroyCacheFile();
+ if ($GLOBALS['cache_instance']->loadCacheFile("mod_reg")) $GLOBALS['cache_instance']->destroyCacheFile();
} // END - if
} elseif (GET_EXT_VERSION($ext_name) != "") {
// Notify the admin that we have a problem here...