當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。