]> git.mjollnir.org Git - moodle.git/commitdiff
Add Moodle support for proxies
authormartin <martin>
Mon, 2 Sep 2002 06:30:57 +0000 (06:30 +0000)
committermartin <martin>
Mon, 2 Sep 2002 06:30:57 +0000 (06:30 +0000)
lib/ipatlas/plotconf.inc

index 711507faa44750a692de7e18aeb2128a35c74f66..e545dc8fb7487c15767c2bca3319e6a0fc7f0633 100644 (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;
+}
 
 ?>