本文整理汇总了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");
}
示例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");
}
示例3: Save
function Save()
{
$sock = new sockets();
$final = base64_encode(serialize($_POST));
$sock->SaveConfigFile($final, "SambaWatchdogMonitConfig");
$sock->getFrameWork("samba.php?watchdog-config=yes");
}
示例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");
}
示例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");
}
示例6: save
function save()
{
$sock = new sockets();
$datas = base64_encode(serialize($_POST));
$sock->SaveConfigFile($datas, "SquidRedirectorsOptions");
$sock->getFrameWork("squid.php?build-smooth=yes");
}
示例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);
}
示例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");
}
示例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");
}
示例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");
}
示例11: save
function save()
{
$sock = new sockets();
$_POST["DansGuardianHTMLTemplate"] = stripslashes($_POST["DansGuardianHTMLTemplate"]);
$sock->SaveConfigFile($_POST["DansGuardianHTMLTemplate"], "DansGuardianHTMLTemplate");
$sock->getFrameWork("cmd.php?dansguardian-template=yes");
}
示例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");
}
示例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");
}
示例14: save
function save()
{
$tpl = new templates();
$sock = new sockets();
$sock->SET_INFO("DebugMimeFilter", $_POST["DEBUG"]);
$sock->SaveConfigFile(base64_encode(serialize($_POST)), "MimeDefangServiceOptions");
}
示例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");
}