コード例 #1
0
function DelCompon()
{
    $retranslator = new retranslator();
    unset($retranslator->MyRetranslateComponentsList[$_GET["DelCompon"]]);
    $retranslator->SaveToServer();
}
コード例 #2
0
function compile()
{
    $retranslator = new retranslator();
    $retranslator->httpd_enabled = 1;
    $retranslator->RetranslatorHttpdEnabled = 1;
    $retranslator->RetranslatorHttpdPort = $_SESSION["WIZARD_RETRANS"]["RetranslatorHttpdPort"];
    $retranslator->RetranslatorEnabled = 1;
    $retranslator->RetranslatorRegionSettings = $_SESSION["WIZARD_RETRANS"]["RetranslatorRegionSettings"];
    if (trim($_SESSION["WIZARD_RETRANS"]["PROXY_NAME"]) != null) {
        if (trim($_SESSION["WIZARD_RETRANS"]["PROXY_USR"] != null)) {
            $user = "******"WIZARD_RETRANS"]["PROXY_USR"]}:{$_SESSION["WIZARD_RETRANS"]["PROXY_PASS"]}@";
        }
        $retranslator->RetranslatorProxyAddress = "http://{$user}{$_SESSION["WIZARD_RETRANS"]["PROXY_NAME"]}:{$_SESSION["WIZARD_RETRANS"]["PROXY_PORT"]}/";
        $retranslator->RetranslatorUseProxy = "yes";
    } else {
        $retranslator->RetranslatorUseProxy = "no";
    }
    $pr["AVS"] = true;
    $pr["CORE"] = true;
    $pr["BLST"] = true;
    $pr["UPDATER"] = true;
    if ($_SESSION["WIZARD_RETRANS"]["W_WKS"] == 1) {
        $pr["UPDATER"] = true;
        $pr["AVS"] = true;
        $pr["KDB"] = true;
        $pr["ARK"] = true;
        $pr["ADB"] = true;
        $pr["ADBU"] = true;
        $pr["AH"] = true;
        $pr["APU"] = true;
        $pr["BLST2"] = true;
        $pr["WMUF"] = true;
        $pr["WA"] = true;
        $pr["EMU"] = true;
        $pr["PAS"] = true;
        $pr["ASTRM"] = true;
        $pr["AHI386"] = true;
        $pr["AHX64"] = true;
        $pr["AP"] = true;
        $pr["AS"] = true;
        $pr["BB"] = true;
        $pr["BB2"] = true;
        $pr["CORE"] = true;
        $pr["KAV2006EXEC"] = true;
        $pr["NEWS"] = true;
        $pr["RM"] = true;
        $pr["RT"] = true;
        $pr["WM"] = true;
        $pr["AK6"] = true;
        $pr["INDEX60"] = true;
    }
    if ($_SESSION["WIZARD_RETRANS"]["W_AK"] == 1) {
        $pr["UPDATER"] = true;
        $pr["CORE"] = true;
        $pr["BLST"] = true;
        $pr["AKP8"] = true;
        $pr["RT"] = true;
        $pr["RTAK7"] = true;
        $pr["AK7"] = true;
        $pr["AK6"] = true;
        $pr["INDEX60"] = true;
    }
    if ($_SESSION["WIZARD_RETRANS"]["W_LNX"] == 1) {
        $pr["UPDATER"] = true;
        $pr["AVS"] = true;
        $pr["AVS_OLD"] = true;
        $pr["CORE"] = true;
        $pr["BLST"] = true;
        $pr["RT"] = true;
        $pr["AK6"] = true;
        $pr["INDEX60"] = true;
        $pr["INDEX50"] = true;
    }
    $retranslator->MyRetranslateComponentsList = $pr;
    $retranslator->SaveToServer();
}