Beispiel #1
0
            $strErrorMessage .= GetMessage("SUP_ACT_NO_USER_PASSWORD_CONFIRM") . ". ";
        }
    }
    if (strlen($strErrorMessage) <= 0) {
        $arFields = array("NAME" => $NAME, "EMAIL" => $EMAIL, "SITE_URL" => $SITE_URL, "CONTACT_INFO" => $CONTACT_INFO, "GENERATE_USER" => $GENERATE_USER == "Y" ? "Y" : "N", "USER_NAME" => $USER_NAME, "USER_LAST_NAME" => $USER_LAST_NAME, "USER_LOGIN" => $USER_LOGIN, "USER_PASSWORD" => $USER_PASSWORD);
        CUpdateSystem::ActivateLicenseKey($arFields, $strErrorMessage, LANG, $stableVersionsOnly);
    }
    $TYPE = "UPDATE";
}
/*********** ДЕЙСТВИЯ НАД САЙТОМ *************/
if ($TYPE == "ADD_SITE" && $MAIN_RIGHT == "W" && $STEP == 2) {
    if (strlen($CHECK) <= 0) {
        $strErrorMessage .= GetMessage("SUP_ENTER_CHECK") . ". ";
    }
    if (strlen($strErrorMessage) <= 0) {
        CUpdateSystem::AddSites($CHECK, $strErrorMessage, LANG, $stableVersionsOnly);
    }
    $STEP = 1;
    if (strlen($strErrorMessage) <= 0) {
        $TYPE = "UPDATE";
    }
}
/*********** ДЕЙСТВИЯ НАД РЕГИСТРАЦИЕЙ *************/
if ($TYPE == "REGVER" && $MAIN_RIGHT == "W") {
    if (CUpdateSystem::RegisterVersion($strErrorMessage, LANG, $stableVersionsOnly)) {
        LocalRedirect("sysupdate.php?STEP=1&TYPE=UPDATE&lang=" . LANG);
    }
    $TYPE = "UPDATE";
}
/*********** ДЕЙСТВИЯ НАД ИСХОДНИКАМИ *************/
if ($TYPE == "LOADSRC" && $MAIN_RIGHT == "W") {