function ApplyConfigHTTP() { include_once "ressources/class.httpd.inc"; $http = new httpd(); $http->SaveToServer(); }
function HTTPS_PORT_SAVE() { $httpd = new httpd(); $sock = new sockets(); if (preg_match('#(.+?):(.+)#', $_GET["LighttpdUserAndGroup"])) { $sock->SET_INFO("LighttpdUserAndGroup", $_GET["LighttpdUserAndGroup"]); } $sock->SET_INFO("ArticaHttpsPort", $_GET["https_port"]); $sock->SET_INFO("ArticaHttpUseSSL", $_GET["ArticaHttpUseSSL"]); $httpd->https_port = $_GET["https_port"]; $httpd->LighttpdUseLdap = $_GET["LighttpdUseLdap"]; $httpd->ApacheConfig = $_GET["ApacheArticaEnabled"]; $httpd->ApacheArticaEnabled = $_GET["ApacheArticaEnabled"]; $httpd->SaveToServer(); }
function ARTICA_PORT_SAVE() { $httpd = new httpd(); $httpd->https_port = $_GET["artica_port"]; $httpd->SaveToServer(); }
function HTTPS_PROCESSES_SAVE() { $l = new httpd(); $l->lighttp_max_load_per_proc = $_GET["lighttp_max_load_per_proc"]; $l->lighttp_max_proc = $_GET["lighttp_max_proc"]; $l->lighttp_min_proc = $_GET["lighttp_min_proc"]; $l->PHP_FCGI_CHILDREN = $_GET["PHP_FCGI_CHILDREN"]; $l->PHP_FCGI_MAX_REQUESTS = $_GET["PHP_FCGI_MAX_REQUESTS"]; $tpl = new templates(); echo $tpl->_ENGINE_parse_body("\n{interface_restarted}"); $l->SaveToServer(); }
function mailmanctl() { $sock = new sockets(); $this->DEFAULT_URL_PATTERN = $sock->GET_INFO("MailManDefaultUriPattern"); $this->PUBLIC_ARCHIVE_URL = $sock->GET_INFO("MailManDefaultArchiveUri"); if ($this->DEFAULT_URL_PATTERN == null) { $this->DEFAULT_URL_PATTERN = "https://%s/cgi-bin/mailman/"; $this->PUBLIC_ARCHIVE_URL = "https://%(hostname)s/pipermail/%(listname)s"; $this->Save(1); $httpd = new httpd(); $httpd->SaveToServer(); } if ($this->PUBLIC_ARCHIVE_URL == null) { $this->PUBLIC_ARCHIVE_URL = "https://%(hostname)s/pipermail/%(listname)s"; $this->Save(1); } $this->BuildBranch(); }