MDL-12789 - dont unnecessarily iterate over all groups
[moodle.git] / iplookup / ipatlas / plotconf.inc
CommitLineData
f4fb66d7 1<?php
2
3require("../../config.php");
4
5# try to find GD on the server? set this
6# to "0" if the script doesn't work or there is a broken image
7if ($CFG->gdversion == 1 or $CFG->gdversion == 2) {
8 $trygd = "1";
9} else {
10 $trygd = "0";
11}
12
13# language (look in language/ dir for language files)
14$language = "en"; global $language;
15
16include("translate.inc");
17
18# display warnings? set to "0" if there are warnings
19# on the screen. report these to ivan@xpenguin.com so
20# this option will become unnessessary.
21$warnings = "1";
22
23# earth images
24# url path:name:width:height
25# everything must be accurate!
26# take new image names out of the t()
27
28$earthimages = array();
29$earthimages[0] = "earth_620.jpg:".t("Color").":620:310";
30
31# which image out of those is the default?
32$defaultimage = 0;
33
34# css dots for netscape 4 users and systems without GD
35# url path:name:width:height
36$cssdots = array();
37$cssdots[0] = "reddot.gif:Red 7x7:7:7";
38$cssdots[1] = "yellowdot.gif:Yellow 7x7:7:7";
39$defaultdot = 0;
40
41# block user agents "libwww-perl" "lwp-trivial" "LWP::Simple" "PHP/"
42$blockbadagents = 1;
43
44# log entries? comment the line to disable.
978c243f 45#$logging = "yes";
f4fb66d7 46
47# path to the cookie
48$cookiepath = "/";
49
50# set $use_firewall to "1" if behind a proxy
51if ($CFG->proxyhost and $CFG->proxyport) {
52 $use_firewall="1";
53 $firewall_host=$CFG->proxyhost;
54 $firewall_port=$CFG->proxyport;
55} else {
56 $use_firewall="";
57 $firewall_host="localhost";
58 $firewall_port=3128;
59}
60
61?>