本文整理汇总了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");
}
示例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"]);
}
示例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");
}
示例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);
}
示例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");
}
示例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");
}
示例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"]);
}
示例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");
}
示例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"]);
}
示例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"]);
}
示例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"]);
}
示例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");
}
示例13: obm2_save
function obm2_save()
{
$sock = new sockets();
$sock->SET_INFO("Obm2Externaluri", $_GET["Obm2Externaluri"]);
$sock->SET_INFO("Obm2ListenPort", $_GET["Obm2ListenPort"]);
$sock->getfile("Obm2restart");
}
示例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");
}
示例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);
}