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


PHP sockets::SET_INFO方法代码示例

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


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

示例1: save

function save()
{
    $sock = new sockets();
    $sock->SET_INFO("FreeRadiusListenIP", $_POST["FreeRadiusListenIP"]);
    $sock->SET_INFO("FreeRadiusListenPort", $_POST["FreeRadiusListenPort"]);
    $sock->getFrameWork("freeradius.php?restart=yes");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:freeradius.network.php

示例2: Save

function Save()
{
    $sock = new sockets();
    $sock->SET_INFO("EnableFreeWeb", $_POST["EnableFreeWeb"]);
    $sock->SET_INFO("FreeWebLeftMenu", $_POST["FreeWebLeftMenu"]);
    $sock->SET_INFO("EnableGroupWareScreen", $_POST["EnableGroupWareScreen"]);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:system.index.freeweb.php

示例3: Save

function Save()
{
    $sock = new sockets();
    $sock->SET_INFO("PhishTagURL", $_GET["PhishTagURL"]);
    $sock->SET_INFO("PhishTagRatio", $_GET["PhishTagRatio"]);
    $sock->getFrameWork("cmd.php?spamass-build=yes");
}
开发者ID:,项目名称:,代码行数:7,代码来源:

示例4: Save

function Save()
{
    $sock = new sockets();
    $SquidGuardApachePort = intval($sock->GET_INFO("SquidGuardApachePort"));
    $SquidGuardApacheSSLPort = intval($sock->GET_INFO("SquidGuardApacheSSLPort"));
    $_POST["servername_squidguard"] = str_replace("http://", "", $_POST["servername_squidguard"]);
    $_POST["servername_squidguard"] = str_replace("https://", "", $_POST["servername_squidguard"]);
    if (preg_match("#^(.+?)\\/#", $_POST["servername_squidguard"], $re)) {
        $_POST["servername_squidguard"] = "{$re[1]}";
    }
    if (preg_match("#(.+?):([0-9]+)#", $_POST["servername_squidguard"], $re)) {
        $_POST["servername_squidguard"] = "{$re[1]}";
    }
    if ($SquidGuardApacheSSLPort == 0) {
        $SquidGuardApacheSSLPort = 9025;
    }
    if ($SquidGuardApachePort == 0) {
        $SquidGuardApachePort = 9020;
    }
    $sock->SET_INFO("SquidGuardServerName", $_POST["servername_squidguard"]);
    $SquidGuardIPWeb = "http://" . $_POST["servername_squidguard"] . ":{$SquidGuardApachePort}/ufdbguardd.php";
    $SquidGuardIPWebSSL = "https://" . $_POST["servername_squidguard"] . ":{$SquidGuardApacheSSLPort}/ufdbguardd.php";
    $sock->SET_INFO("SquidGuardIPWeb", $SquidGuardIPWeb);
    $sock->SET_INFO("SquidGuardIPWebSSL", $SquidGuardIPWebSSL);
}
开发者ID:articatech,项目名称:artica,代码行数:25,代码来源:ufdbguard.urichange.php

示例5: Save

function Save()
{
    $sock = new sockets();
    $sock->SET_INFO("EnableHaProxy", $_POST["EnableHaProxy"]);
    $sock->SET_INFO("DenyHaproxyConf", $_POST["DenyHaproxyConf"]);
    $sock->getFrameWork("haproxy.php?service-cmds=restart");
}
开发者ID:articatech,项目名称:artica,代码行数:7,代码来源:haproxy.status.php

示例6: Disable

function Disable()
{
    $sock = new sockets();
    $sock->SET_INFO("EnableUfdbGuard", 0);
    $sock->SET_INFO("EnableUfdbGuard2", 0);
    $sock->getFrameWork("cmd.php?restart-artica-status=yes");
}
开发者ID:articatech,项目名称:artica,代码行数:7,代码来源:squid.disableUfdb.php

示例7: SquidEnableRockStore_save

function SquidEnableRockStore_save()
{
    $sock = new sockets();
    $sock->SET_INFO("SquidRockStoreSize", $_POST["SquidRockStoreSize"]);
    $sock->SET_INFO("SquidRockStorePath", $_POST["SquidRockStorePath"]);
    $sock->SET_INFO("SquidEnableRockStore", $_POST["SquidEnableRockStore"]);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:squid.rockstore.php

示例8: SaveFreeWeb

function SaveFreeWeb()
{
    $sock = new sockets();
    $sock->SET_INFO("EnableFreeWeb", $_POST["EnableFreeWeb"]);
    $sock->SET_INFO("EnableApacheSystem", $_POST["EnableFreeWeb"]);
    $sock->getFrameWork("cmd.php?freeweb-restart=yes");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:zarafa.freewebs.php

示例9: EnableSS5

function EnableSS5()
{
    $sock = new sockets();
    $sock->SET_INFO("EnableSS5", $_POST["EnableSS5"]);
    $sock->SET_INFO("SS5_SOCKS_INTERFACE", $_POST["SS5_SOCKS_INTERFACE"]);
    $sock->SET_INFO("SS5_SOCKS_PORT", $_POST["SS5_SOCKS_PORT"]);
}
开发者ID:articatech,项目名称:artica,代码行数:7,代码来源:ss5.php

示例10: SquidEnableIdentdService

function SquidEnableIdentdService()
{
    $sock = new sockets();
    $sock->SET_INFO("SquidEnableIdentdService", $_POST["SquidEnableIdentdService"]);
    $sock->SET_INFO("SquidEnableIdentdServiceOnly", $_POST["SquidEnableIdentdServiceOnly"]);
    $sock->SET_INFO("SquidEnableIdentTimeout", $_POST["SquidEnableIdentTimeout"]);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:squid.identd.php

示例11: Save

function Save()
{
    $sock = new sockets();
    $sock->SET_INFO("EnableAmavisWatchdog", $_GET["EnableAmavisWatchdog"]);
    $sock->SET_INFO("AmavisWatchdogKillProcesses", $_GET["AmavisWatchdogKillProcesses"]);
    $sock->SET_INFO("AmavisWatchdogMaxCPU", $_GET["AmavisWatchdogMaxCPU"]);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:amavis.daemon.watchdog.php

示例12: save

function save()
{
    $sock = new sockets();
    $sock->SET_INFO("ApacheGroupware", $_GET["ApacheGroupware"]);
    $sock->SET_INFO("ShowApacheGroupware", $_GET["ApacheGroupware"]);
    $sock->getFrameWork("cmd.php?RestartApacheGroupwareForce=yes");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:apache-groupware.php

示例13: obm2_save

function obm2_save()
{
    $sock = new sockets();
    $sock->SET_INFO("Obm2Externaluri", $_GET["Obm2Externaluri"]);
    $sock->SET_INFO("Obm2ListenPort", $_GET["Obm2ListenPort"]);
    $sock->getfile("Obm2restart");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:obm2.index.php

示例14: 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

示例15: detectCards

function detectCards()
{
    $unix = new unix();
    $detect = false;
    $sock = new sockets();
    $lspci = $unix->find_program("lspci");
    $iwlist = $unix->find_program("iwlist");
    if ($iwlist == null) {
        if ($GLOBALS["VERBOSE"]) {
            echo "Unable to stat iwlist\n";
        }
        $sock->SET_INFO("WifiCardOk", 0);
        exit;
    }
    exec("{$lspci} -mm", $results);
    while (list($num, $ligne) = each($results)) {
        if (preg_match('#[0-9\\:\\.]+\\s+".+?"\\s+".+?"\\s+"(.+?)"#', $ligne, $re)) {
            if (SupportedCards($re[1])) {
                $detect = true;
            }
        }
    }
    if ($detect) {
        echo "Starting......: WIFI Network Card detected\n";
        $sock = new sockets();
        $sock->SET_INFO("WifiCardOk", 1);
        exit;
    }
    $sock->SET_INFO("WifiCardOk", 0);
}
开发者ID:,项目名称:,代码行数:30,代码来源:


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