/**
  * Refreshes the global extension list
  *
  * @return void
  */
 public static function refreshGlobalExtList()
 {
     global $TYPO3_LOADED_EXT;
     $TYPO3_LOADED_EXT = t3lib_extMgm::typo3_loadExtensions();
     if ($TYPO3_LOADED_EXT['_CACHEFILE']) {
         require PATH_typo3conf . $TYPO3_LOADED_EXT['_CACHEFILE'] . '_ext_localconf.php';
     }
     return;
     $GLOBALS['TYPO3_LOADED_EXT'] = t3lib_extMgm::typo3_loadExtensions();
     if ($TYPO3_LOADED_EXT['_CACHEFILE']) {
         require PATH_typo3conf . $TYPO3_LOADED_EXT['_CACHEFILE'] . '_ext_localconf.php';
     } else {
         $temp_TYPO3_LOADED_EXT = $TYPO3_LOADED_EXT;
         foreach ($temp_TYPO3_LOADED_EXT as $_EXTKEY => $temp_lEDat) {
             if (is_array($temp_lEDat) && $temp_lEDat['ext_localconf.php']) {
                 $_EXTCONF = $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY];
                 require $temp_lEDat['ext_localconf.php'];
             }
         }
     }
 }
define('TYPO3_REQUESTTYPE_FE', 1);
define('TYPO3_REQUESTTYPE_BE', 2);
define('TYPO3_REQUESTTYPE_CLI', 4);
define('TYPO3_REQUESTTYPE_AJAX', 8);
define('TYPO3_REQUESTTYPE_INSTALL', 16);
define('TYPO3_REQUESTTYPE', (TYPO3_MODE == 'FE' ? TYPO3_REQUESTTYPE_FE : 0) | (TYPO3_MODE == 'BE' ? TYPO3_REQUESTTYPE_BE : 0) | (defined('TYPO3_cliMode') && TYPO3_cliMode ? TYPO3_REQUESTTYPE_CLI : 0) | (defined('TYPO3_enterInstallScript') && TYPO3_enterInstallScript ? TYPO3_REQUESTTYPE_INSTALL : 0) | ($TYPO3_AJAX ? TYPO3_REQUESTTYPE_AJAX : 0));
// *********************
// Autoloader
// *********************
require_once PATH_t3lib . 'class.t3lib_autoloader.php';
t3lib_autoloader::registerAutoloader();
// Load extensions:
if (TYPO3_MODE == 'FE' && is_object($TT)) {
    $TT->push('Loading localconf.php extensions', '');
}
$TYPO3_LOADED_EXT = t3lib_extMgm::typo3_loadExtensions();
if ($TYPO3_LOADED_EXT['_CACHEFILE']) {
    require PATH_typo3conf . $TYPO3_LOADED_EXT['_CACHEFILE'] . '_ext_localconf.php';
} else {
    $temp_TYPO3_LOADED_EXT = $TYPO3_LOADED_EXT;
    foreach ($temp_TYPO3_LOADED_EXT as $_EXTKEY => $temp_lEDat) {
        if (is_array($temp_lEDat) && $temp_lEDat['ext_localconf.php']) {
            $_EXTCONF = $TYPO3_CONF_VARS['EXT']['extConf'][$_EXTKEY];
            require $temp_lEDat['ext_localconf.php'];
        }
    }
}
if (TYPO3_MODE == 'FE' && is_object($TT)) {
    $TT->pull();
}
require_once t3lib_extMgm::extPath('lang') . 'lang.php';
 /**
  * Generates update wizard
  *
  * @return void
  */
 function updateWizard()
 {
     global $TYPO3_CONF_VARS;
     // clear cache files
     t3lib_extMgm::removeCacheFiles();
     // generate new cache files and include them
     $GLOBALS['TYPO3_CONF_VARS']['EXT']['extCache'] = 1;
     $TYPO3_LOADED_EXT = t3lib_extMgm::typo3_loadExtensions();
     if ($TYPO3_LOADED_EXT['_CACHEFILE']) {
         require PATH_typo3conf . $TYPO3_LOADED_EXT['_CACHEFILE'] . '_ext_localconf.php';
     }
     // call wizard
     $action = $this->INSTALL['database_type'] ? $this->INSTALL['database_type'] : 'checkForUpdate';
     $this->updateWizard_parts($action);
     $this->output($this->outputWrapper($this->printAll()));
 }