function alias_add() { $free = new freeweb($_POST["servername"]); writelogs("Add ServerAlias {$_POST["AddAlias"]} -> {$_POST["servername"]}", __FUNCTION__, __FILE__, __LINE__); $free->Params["ServerAlias"][$_POST["AddAlias"]] = true; $free->SaveParams(); }
function SaveWebCache() { $freeweb = new freeweb($_POST["servername"]); while (list($num, $ligne) = each($_POST)) { $freeweb->Params["MOD_CACHE"][$num] = $ligne; } $freeweb->SaveParams(); }
function save() { $free = new freeweb($_POST["servername"]); $CONF = $free->Params["PageSpeedParams"]; while (list($num, $ligne) = each($_POST)) { $free->Params["PageSpeedParams"][$num] = $ligne; } $free->SaveParams(); }
function Save() { $free = new freeweb($_POST["servername"]); $_POST["BandwidthAll"] = intval($_POST["BandwidthAll"]) * 1024; while (list($num, $ligne) = each($_POST)) { $free->Params["ModeBw"][$num] = $ligne; } $q = new mysql(); $q->QUERY_SQL("UPDATE freeweb SET `bandlimit`='{$_POST["bandlimit"]}' WHERE servername='{$_POST["servername"]}'", "artica_backup"); if (!$q->ok) { echo $q->mysql_error; return; } $free->SaveParams(); }
function adv_form_save() { $f = new freeweb($_POST["servername"]); while (list($key, $line) = each($_POST)) { $f->Params["Proxy"][$key] = $line; } $f->SaveParams(); }
function authip_enable() { $freeweb = new freeweb($_POST["servername"]); $freeweb->Params["LimitByIp"]["enabled"] = $_POST["LimitByIp"]; $freeweb->SaveParams(); }
function SaveWebQOS() { $sql = "SELECT * FROM freeweb WHERE servername='{$_GET["servername"]}'"; $page = CurrentPageName(); $tpl = new templates(); $free = new freeweb($_GET["servername"]); while (list($num, $ligne) = each($_GET)) { $free->Params["QOS"][$num] = $ligne; } $free->SaveParams(); }
function Save() { $free = new freeweb($_POST["servername"]); if (isset($_POST["LDAP_PASSWORD"])) { $_POST["LDAP_PASSWORD"] = url_decode_special_tool($_POST["LDAP_PASSWORD"]); } if (isset($_POST["LDAP_FILTER"])) { $_POST["LDAP_FILTER"] = url_decode_special_tool($_POST["LDAP_FILTER"]); } $t = time(); while (list($num, $line) = each($_POST)) { $free->Params["FILEZ"][$num] = $line; } $free->SaveParams(); }
function membersDel() { $freeweb = new freeweb($_POST["servername"]); unset($freeweb->Params["LDAP"]["members"][$_POST["freeweb-member-del"]]); $freeweb->SaveParams(); }
function DosEngineSave() { $freeweb = new freeweb($_POST["servername"]); while (list($num, $ligne) = each($_POST)) { $freeweb->Params["mod_evasive"][$num] = $ligne; } $freeweb->SaveParams(); }
function SaveConfig() { $free = new freeweb($_POST["servername"]); $page = CurrentPageName(); $tpl = new templates(); $free->Params["NTLM"]["enabled"] = $_POST["enable_ntlm_authentication"]; $free->Params["LDAP"]["enabled"] = $_POST["enable_ldap_authentication"]; $free->Params["LDAP"]["authentication_banner"] = base64_encode($_POST["authentication_banner"]); $free->Params["LDAP"]["EnableLDAPAllSubDirectories"] = $_POST["EnableLDAPAllSubDirectories"]; $free->SaveParams(); }
function DelStore() { $freeweb = new freeweb($_POST["servername"]); unset($freeweb->Params["ZPUSH"]["STORES"][$_POST["delete"]]); $freeweb->SaveParams(); }
function SaveConf() { $free = new freeweb($_POST["servername"]); $free->Params["ZARAFAWEB_PARAMS"] = $_POST; $free->Params["NginxFrontEnd"] = $_POST["NginxFrontEnd"]; $free->SaveParams(); $q = new mysql(); $sql = "SELECT ID FROM drupal_queue_orders WHERE `ORDER`='REBUILD_GROUPWARE' AND `servername`='{$_POST["servername"]}'"; $ligneDrup = @mysql_fetch_array($q->QUERY_SQL($sql, 'artica_backup')); if (!is_numeric($ligneDrup["ID"])) { $ligneDrup["ID"] = 0; } if ($ligneDrup["ID"] == 0) { $sql = "INSERT INTO drupal_queue_orders(`ORDER`,`servername`) VALUES('REBUILD_GROUPWARE','{$_POST["servername"]}')"; $q = new mysql(); $q->QUERY_SQL($sql, "artica_backup"); if (!$q->ok) { echo $q->mysql_error; return; } } $sock = new sockets(); $sock->getFrameWork("drupal.php?perform-orders=yes"); }
function SecFilterEngineSave() { $freeweb = new freeweb($_POST["servername"]); while (list($num, $ligne) = each($_POST)) { $freeweb->Params["mod_security"][$num] = $ligne; } $freeweb->SaveParams(); }
function replication_save() { $free = new freeweb($_POST["servername"]); $_POST["ARTICA_PASSWORD"] = url_decode_special_tool($_POST["ARTICA_PASSWORD"]); $free->Params["ROUNDCUBE"]["ARTICA_PORT"] = $_POST["ARTICA_PORT"]; $free->Params["ROUNDCUBE"]["ARTICA_ADMIN"] = $_POST["ARTICA_ADMIN"]; $free->Params["ROUNDCUBE"]["ARTICA_PASSWORD"] = $_POST["ARTICA_PASSWORD"]; $free->Params["ROUNDCUBE"]["ARTICA_HOST"] = $_POST["ARTICA_HOST"]; $free->Params["ROUNDCUBE"]["ARTICA_RMWEB"] = $_POST["ARTICA_RMWEB"]; $free->Params["ROUNDCUBE"]["ENABLE_REPLIC"] = $_POST["ENABLE_REPLIC"]; $free->SaveParams(); $sock = new sockets(); $sock->getFrameWork("freeweb.php?roudce-replic-host=yes&servername={$_POST["servername"]}"); }
function save() { $free = new freeweb($_POST["servername"]); $GEOIP = $free->Params["GEOIP"]; if ($_POST["value"] == 0) { unset($free->Params["GEOIP"][$_POST["country"]]); } else { $free->Params["GEOIP"][$_POST["country"]] = 1; } $free->SaveParams(); }
function SavePHPVals() { $freeweb = new freeweb($_POST["servername"]); while (list($num, $ligne) = each($_POST)) { $freeweb->Params["PHP_VALUES"][$num] = $ligne; } $freeweb->SaveParams(); }