Add Moodle support for proxies

This commit is contained in:
martin
2002-09-02 06:30:57 +00:00
parent 8aed46c7eb
commit d3fcd70b3d
+9 -3
View File
@@ -48,8 +48,14 @@ $logging = "yes";
$cookiepath = "/";
# set $use_firewall to "1" if behind a proxy
$use_firewall="";
$firewall_host="localhost";
$firewall_port=3128;
if ($CFG->proxyhost and $CFG->proxyport) {
$use_firewall="1";
$firewall_host=$CFG->proxyhost;
$firewall_port=$CFG->proxyport;
} else {
$use_firewall="";
$firewall_host="localhost";
$firewall_port=3128;
}
?>