示例#1
0
            }
        }
    }
}
if ($action == OA_UPGRADE_FINISH) {
    OA_Upgrade_Login::autoLogin();
    // Execute any components which have registered at the afterLogin hook
    $aPlugins = OX_Component::getListOfRegisteredComponentsForHook('afterLogin');
    foreach ($aPlugins as $i => $id) {
        if ($obj = OX_Component::factoryByComponentIdentifier($id)) {
            $obj->afterLogin();
        }
    }
    // Delete the cookie
    setcookie('oat', '');
    $oUpgrader->setOpenadsInstalledOn();
    if (!$oUpgrader->removeUpgradeTriggerFile()) {
        $message .= '. ' . $strRemoveUpgradeFile;
        $strInstallSuccess = '<div class="sysinfoerror">' . $strOaUpToDateCantRemove . '</div>' . $strInstallSuccess;
    }
}
if ($installStatus == OA_STATUS_OAD_NOT_INSTALLED) {
    setcookie('oat', OA_UPGRADE_INSTALL);
    $_COOKIE['oat'] = OA_UPGRADE_INSTALL;
} elseif ($installStatus !== 'unknown') {
    setcookie('oat', OA_UPGRADE_UPGRADE);
    $_COOKIE['oat'] = OA_UPGRADE_UPGRADE;
}
// Used to detmine which page is active in nav
$activeNav = array(OA_UPGRADE_RECOVERY_INFORM => '10', OA_UPGRADE_RECOVERY => '10', OA_UPGRADE_WELCOME => '10', OA_UPGRADE_TERMS => '20', OA_UPGRADE_SYSCHECK => '30', OA_UPGRADE_APPCHECK => '30', OA_UPGRADE_DBSETUP => '50', OA_UPGRADE_UPGRADE => '50', OA_UPGRADE_INSTALL => '50', OA_UPGRADE_CONFIGSETUP => '60', OA_UPGRADE_PLUGINS => '80', OA_UPGRADE_POST => '90', OA_UPGRADE_FINISH => '100');
if (!empty($_COOKIE['oat']) && $_COOKIE['oat'] != OA_UPGRADE_UPGRADE) {