当前位置: 首页>>代码示例>>PHP>>正文


PHP sockets::SaveConfigFile方法代码示例

本文整理汇总了PHP中sockets::SaveConfigFile方法的典型用法代码示例。如果您正苦于以下问题:PHP sockets::SaveConfigFile方法的具体用法?PHP sockets::SaveConfigFile怎么用?PHP sockets::SaveConfigFile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在sockets的用法示例。


在下文中一共展示了sockets::SaveConfigFile方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: save

function save()
{
    $sock = new sockets();
    $sock->SaveConfigFile(base64_encode($_POST["ChangeLDAPSuffixTo"]), "ChangeLDAPSuffixTo");
    $sock->SaveConfigFile(base64_encode($_POST["ChangeLDAPSuffixFrom"]), "ChangeLDAPSuffixFrom");
    $sock->getFrameWork("services.php?change-ldap-suffix=yes");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:openldap.changesuffix.php

示例2: save

function save()
{
    $sock = new sockets();
    $arraySamba["ADDOMAIN"] = $_GET["domain"];
    $arraySamba["ADSERVER"] = $_GET["servername"];
    $arraySamba["ADADMIN"] = $_GET["admin"];
    $arraySamba["PASSWORD"] = $_GET["password"];
    $sock->SaveConfigFile(serialize($arraySamba), "SambaAdInfos");
    $sock->SaveConfigFile(base64_encode(serialize($_GET)), "CyrusToADConfig");
    $sock->SET_INFO("CyrusToAD", $_GET["CyrusToAD"]);
    $sock->getFrameWork("cmd.php?cyrus-to-ad=yes");
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:12,代码来源:cyrus.ad.php

示例3: Save

function Save()
{
    $sock = new sockets();
    $final = base64_encode(serialize($_POST));
    $sock->SaveConfigFile($final, "SambaWatchdogMonitConfig");
    $sock->getFrameWork("samba.php?watchdog-config=yes");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:samba.watchdog.php

示例4: Save

function Save()
{
    $sock = new sockets();
    $_POST["WINDOWS_SERVER_PASS"] = url_decode_special_tool($_POST["WINDOWS_SERVER_PASS"]);
    $_POST["LDAP_SUFFIX"] = url_decode_special_tool($_POST["LDAP_SUFFIX"]);
    $sock->SaveConfigFile(serialize($_POST), "ZarafaImportADSettings");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:zarafa.import-ad-contacts.php

示例5: popup_import_list

function popup_import_list()
{
    $datas = url_decode_special_tool($_POST["popup_import_list"]);
    $sock = new sockets();
    $sock->SaveConfigFile($datas, "ComputerListToImport");
    $sock->getFrameWork("cmd.php?browse-computers-import-list=yes");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:ocs.import.php

示例6: save

function save()
{
    $sock = new sockets();
    $datas = base64_encode(serialize($_POST));
    $sock->SaveConfigFile($datas, "SquidRedirectorsOptions");
    $sock->getFrameWork("squid.php?build-smooth=yes");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:squid.redirectors.php

示例7: save

function save()
{
    $tpl = new templates();
    $sock = new sockets();
    $sock->SaveConfigFile(base64_encode(serialize($_POST)), "MimeDefangServiceOptions");
    echo $tpl->javascript_parse_text("{you_need_to_restart_service_take_effet}", 1);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:mimedefang.service.php

示例8: SAVE

function SAVE()
{
    $sock = new sockets();
    $sock->SET_INFO("EnableCyrusDBConfig", $_GET["EnableCyrusDBConfig"]);
    $sock->SaveConfigFile(base64_encode(serialize($_GET)), "CyrusDBConfig");
    $sock->getFrameWork("cmd.php?cyrus-db-config=yes");
}
开发者ID:,项目名称:,代码行数:7,代码来源:

示例9: save

function save()
{
    $sock = new sockets();
    if ($_POST["ID"] == 0) {
        $ligne = unserialize(base64_decode($sock->GET_INFO("DansGuardianDefaultMainRule")));
        $ligne["bypass"] = $_POST["bypass"];
        $ligne["BypassSecretKey"] = $_POST["BypassSecretKey"];
        writelogs("Default rule, saving DansGuardianDefaultMainRule", __FUNCTION__, __FILE__, __LINE__);
        $sock->SaveConfigFile(base64_encode(serialize($ligne)), "DansGuardianDefaultMainRule");
        writelogs("Ask to compile rule...", __FUNCTION__, __FILE__, __LINE__);
        $sock->getFrameWork("webfilter.php?compile-rules=yes");
        return;
    }
    $q = new mysql_squid_builder();
    $sql = "UPDATE webfilter_rules SET bypass='{$_POST["bypass"]}',BypassSecretKey='{$_POST["bypass"]}' WHERE ID='{$_POST["ID"]}'";
    $q->QUERY_SQL($sql);
    if (!$q->ok) {
        if (strpos($q->mysql_error, "Unknown column") > 0) {
            $q->CheckTables();
            $q->QUERY_SQL($sql);
        }
    }
    if (!$q->ok) {
        echo $q->mysql_error;
        return;
    }
    $sock->getFrameWork("webfilter.php?compile-rules=yes");
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:28,代码来源:dansguardian2.bypass.php

示例10: SAVE

function SAVE()
{
    $sock = new sockets();
    $DATA = base64_encode(stripslashes($_POST["c-icap-error-page"]));
    $sock->SaveConfigFile($DATA, "CiCApErrorPage");
    $sock->getFrameWork("squid.php?cicap-template=yes");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:c-icap.alertpage.php

示例11: save

function save()
{
    $sock = new sockets();
    $_POST["DansGuardianHTMLTemplate"] = stripslashes($_POST["DansGuardianHTMLTemplate"]);
    $sock->SaveConfigFile($_POST["DansGuardianHTMLTemplate"], "DansGuardianHTMLTemplate");
    $sock->getFrameWork("cmd.php?dansguardian-template=yes");
}
开发者ID:,项目名称:,代码行数:7,代码来源:

示例12: Save

function Save()
{
    $sock = new sockets();
    $content = url_decode_special_tool($_POST["SpamAssassinTemplate"]);
    $sock->SaveConfigFile($content, "SpamAssassinTemplate");
    $sock->getFrameWork("cmd.php?smtp-whitelist=yes");
}
开发者ID:articatech,项目名称:artica,代码行数:7,代码来源:spamassassin.template.php

示例13: SaveSwapAuto

function SaveSwapAuto()
{
    $sock = new sockets();
    $SwapOffOn = unserialize(base64_decode($sock->GET_INFO("SwapOffOn")));
    $sock->SET_INFO("DisableSWAPP", $_POST["DisableSWAPP"]);
    while (list($num, $line) = each($_POST)) {
        $SwapOffOn[$num] = $line;
    }
    if (!is_numeric($SwapOffOn["SwapEnabled"])) {
        $SwapOffOn["SwapEnabled"] = 1;
    }
    if (!is_numeric($SwapOffOn["SwapMaxPourc"])) {
        $SwapOffOn["SwapMaxPourc"] = 20;
    }
    if (!is_numeric($SwapOffOn["SwapMaxMB"])) {
        $SwapOffOn["SwapMaxMB"] = 0;
    }
    if (!is_numeric($SwapOffOn["SwapTimeOut"])) {
        $SwapOffOn["SwapTimeOut"] = 60;
    }
    if (!is_numeric($SwapOffOn["AutoMemWatchdog"])) {
        $SwapOffOn["AutoMemWatchdog"] = 1;
    }
    if (!is_numeric($SwapOffOn["AutoMemPerc"])) {
        $SwapOffOn["AutoMemPerc"] = 90;
    }
    if (!is_numeric($SwapOffOn["AutoMemInterval"])) {
        $SwapOffOn["AutoMemInterval"] = 180;
    }
    $sock->SaveConfigFile(base64_encode(serialize($SwapOffOn)), "SwapOffOn");
    $sock->getFrameWork("cmd.php?restart-artica-status=yes");
    $sock->getFrameWork("system.php?swap-init=yes");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:33,代码来源:system.memory.php

示例14: save

function save()
{
    $tpl = new templates();
    $sock = new sockets();
    $sock->SET_INFO("DebugMimeFilter", $_POST["DEBUG"]);
    $sock->SaveConfigFile(base64_encode(serialize($_POST)), "MimeDefangServiceOptions");
}
开发者ID:articatech,项目名称:artica,代码行数:7,代码来源:mimedefang.service.php

示例15: save

function save()
{
    $sock = new sockets();
    $sock->SET_INFO("ArticaFilterEnableRedirect", $_GET["ArticaFilterEnableRedirect"]);
    $sock->SET_INFO("ArticaFilterRedirectExternalSQL", $_GET["ArticaFilterRedirectExternalSQL"]);
    $sock->SaveConfigFile(base64_encode(serialize($_GET)), "ArticaFilterRedirectExternalSQLDatas");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:artica-filter.redirect.php


注:本文中的sockets::SaveConfigFile方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。