ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/BBClone/trunk/conf/config.php
Revision: 411
Committed: Sat Mar 19 16:11:26 2022 UTC (2 years, 8 months ago) by matthys
File size: 13571 byte(s)
Log Message:
Added new MaxMind (GeoIP2) plugin

File Contents

# Content
1 <?php
2 /* This file is part of BBClone (A PHP based Web Counter on Steroids)
3 *
4 * SVN FILE $Id$
5 *
6 * Copyright (C) 2001-2022, the BBClone Team (see doc/authors.txt for details)
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * See doc/copying.txt for details
19 */
20
21 ///////////////////////////
22 // BBClone Configuration //
23 ///////////////////////////
24
25 // Part I: Options affecting the visual presentation
26
27 // If this variable has been set, a link to the specified location will be generated. The default value
28 // is pointing to the parent directory. In case your main site is located elsewhere, you probably want
29 // to adjust the value to suit your needs.
30 // Syntax:
31 // $BBC_MAINSITE = "http://www.myserver.com/"; => Link to the specified URL
32 // $BBC_MAINSITE = ".." => Link to parent directory (Default)
33 // $BBC_MAINSITE = ""; => Show no link
34 $BBC_MAINSITE = "..";
35
36 // BBClone defaults to revealing the stats' settings. In case this behavior
37 // isn't desired you can deny access to it by deactivating the option.
38 // Syntax:
39 // $BBC_SHOW_CONFIG = 1; => Display show_config.php
40 // $BBC_SHOW_CONFIG = ""; => Don't display show_config.php (Default)
41 $BBC_SHOW_CONFIG = "1";
42
43 // The title being displayed in the navigation bar of all bbclone pages.
44 // The following macros are recognised:
45 // %SERVER => server name
46 // %DATE => the current date
47 // Syntax:
48 // $BBC_TITLEBAR = ""; => "Statistics for %SERVER generated on %DATE" but language specific (Default)
49 // $BBC_TITLEBAR = "Some text"; => FIXED TEXT, not language specific)
50 // $BBC_TITLEBAR = "Statistics for %SERVER generated on %DATE"; => Example
51 $BBC_TITLEBAR = "";
52
53 // BBClone's default language, in case it hasn't been specified by the browser.
54 // It's strongly recommended you set your language (if listed) because will encode search
55 // engine keywords according to $BBC_LANGUAGE. You can, however, overwrite the default.
56 // See explanation of $BBC_CUSTOM_CHARSET for details.
57 // The following languages are supported:
58 // ar, bg, bs, ca, cs, da, de, el, en, es, fi, fr, hu, id, it, ja, ko, lt, mk,
59 // nb, nl, pl, pt, pt-br, ro, ru, sk, sl, sv, th, tr, ua, zh-cn and zh-tw.
60 $BBC_LANGUAGE = "en";
61
62 // This variable defines the length of an unique visit in seconds. Each hit from the same visitor
63 // within this period will be considered as one visit, as long as two successive hits don't exceed
64 // the specified limit. Default is 30 minutes (1800 seconds), but depending on your needs
65 // you may wish to assign a different value.
66 // Syntax:
67 // $BBC_MAXTIME = 0; => Treat each single hit as unique
68 // $BBC_MAXTIME = 1800; => Treat every hit within 30 minutes by the same visitor as unique visit
69 $BBC_MAXTIME = 1800;
70
71 // How many entries you want to have listed in the detailed stats? The default value is 100.
72 // It's recommended not to set it higher than 500 to avoid too heavy load.
73 // A value of "0" will reset the detailed stats.
74 $BBC_MAXVISIBLE = 100;
75
76 // The following entries affect how much items will be displayed in each ranking of show_global.php.
77 // The second group can be reset by setting "0" as value.
78 $BBC_MAXBROWSER = 10; // Browsers
79 $BBC_MAXEXTENSION = 10; // Extensions
80 $BBC_MAXOS = 10; // Operating Systems
81 $BBC_MAXROBOT = 10; // Robots
82
83 $BBC_MAXHOST = 10; // Hosts (reset possible)
84 $BBC_MAXKEY = 10; // Keywords (reset possible)
85 $BBC_MAXORIGIN = 10; // Referrers (reset possible)
86 $BBC_MAXPAGE = 10; // Pages (reset possible)
87
88 // The variable $BBC_DETAILED_STAT_FIELDS Contains a comma separated list of
89 // all columns to be displayed in the detailed stats. You can choose from:
90
91 // id => The x-th visitor since you've started counting
92 // time => The time at which the last hit was registerred
93 // visits => The hits of one unique visitor
94 // dns => visitor's hostname
95 // ip => visitor's ip address
96 // os => The operating system (if available and/or no robot)
97 // browser => The software used for establishing the connection
98 // ext => visitor's country or extension
99 // referer => The link from which a visitor came (if available)
100 // page => the last visited page
101 // search => The search query a visitor used (if available)
102
103 // The order of the list is also representative for the column's arrangement
104 // in the detailed stats
105 // Syntax:
106 // $BBC_DETAILED_STAT_FIELDS = "id, time, visits, ip, ext, os, browser";
107 // $BBC_DETAILED_STAT_FIELDS = "date, ext, browser, os, ip";
108 $BBC_DETAILED_STAT_FIELDS = "id, time, ext, dns, visits, os, browser, referer";
109
110 // Part II: Options affecting BBClone's functionality
111
112 // Before BBClone writes to a file it attempts to lock the file to prevent it
113 // from being corrupted. Should BBClone complain that it would not be able to
114 // lock files you can set an alternative method by using this switch. As a rule
115 // of thumb you should use the method BBClone is suggesting unless you have a
116 // very good reason not to use it. Possible options are "dio", "flk" and "sem"
117 // Syntax:
118 // $BBC_USE_LOCK = "flk"; => Use flock() (default)
119 // $BBC_USE_LOCK = "sem"; => Use SysV Semaphores (PHP >= 4.1.0 and Unix only)
120 // $BBC_USE_LOCK = "dio"; => Use Direct I/O (PHP >= 4.2.0 and Unix only)
121 $BBC_USE_LOCK = "flk";
122
123 // In case the server time doesn't match your local timezone, you can adjust the time in minutes by
124 // using this switch. Negative values will set back the time, positive ones will set it forth.
125 // Syntax:
126 // $BBC_TIME_OFFSET = 300; => Set time forth by 5 hours (5 x 60 min)
127 // $BBC_TIME_OFFSET = -300; => Set time back by 5 hours (5 x 60 min)
128 // $BBC_TIME_OFFSET = 0; => Use the server time "as is" (Default)
129 $BBC_TIME_OFFSET = 0;
130
131 // This options defines, whether IP addresses should be resolved to hostnames or not. While hostnames
132 // tell a lot more about the visitor, resolving them may considerably slow down your site, if the
133 // DNS servers used are slow, limited in their capacity or otherwise unreliable.
134 // Setting this variable may solve the problem.
135 // Syntax:
136 // $BBC_NO_DNS = ""; => Resolve addresses to hostnames (Default)
137 // $BBC_NO_DNS = 1; => Turn off name resolving
138 $BBC_NO_DNS = "";
139
140 // This options defines, whether IP addresses are looked up to determine location (country).
141 // Please read the terms of use and privacy policy of the provider before using this!
142 // These plug-ins are NO part of BBClone, please keep this in mind.
143 // Syntax:
144 // $BBC_EXT_LOOKUP = ""; => No external Look-Up used for IP address (Default)
145 // $BBC_EXT_LOOKUP = "IP2EXT"; => Use the old IP2EXT to Look-Up IP addresses
146 // $BBC_EXT_LOOKUP = "GEOIP"; => Use GeoIP API plug-in
147 // $BBC_EXT_LOOKUP = "GEOIP-mod"; => Use GeoIP PHP/Perl Module (geoip.so)
148 // $BBC_EXT_LOOKUP = "MAXMIND-mod"; => Use MaxMind PHP/Perl Module (maxminddb.so)
149 // $BBC_GEOIP_PATH = "geoip/"; => Path to GeoIP/GeoIP2 database(s)
150 // $BBC_GEOIP2_DB = "GeoLite2-Country.mmdb"; => GeoIP2/GeoLite2 database to use
151 // (See http://www.maxmind.com for more details)
152 $BBC_EXT_LOOKUP = "";
153 $BBC_GEOIP_PATH = "";
154 $BBC_GEOIP2_DB = "";
155
156 // BBClone's default is to show hits in the time stats, because it gives a quite useful impression
157 // from the actual server load. If, however, you prefer to use unique visits as base for your
158 // time stats, you can change the way of counting by setting this variable.
159 // Syntax:
160 // $BBC_NO_HITS = ""; => Show hits in time stats (Default)
161 // $BBC_NO_HITS = 1; => Show unique visits in time stats
162 $BBC_NO_HITS = "";
163
164 // This option can be used to exclude particular IP addresses or address ranges from counting.
165 // In case you want to add several expressions, use a comma as separator. This option does not
166 // accept any hostnames, you first have to convert them to IP addresses. You can, however,
167 // leave off octetts from right to left in order to block IP ranges (as illustrated in the example below).
168 // Syntax:
169 // $BBC_IGNORE_IP = "127., 192.168."; => Ignore specified ranges
170 // $BBC_IGNORE_IP = ""; => Don't ignore anything (Default)
171 $BBC_IGNORE_IP = "";
172
173 // In case you don't want to have particular referrers from your visitors listed
174 // in your ranking or detailed stats, you can define a comma separated list of
175 // keywords, each referrer will be checked against with. BBClone uses two
176 // detection modes:
177 // - If the expression starts with a slash, it will be considered as part of the
178 // referrer uri. This is useful for blocking unwanted sites on freehosts
179 // - If the expression doesn't start with a slash, it will be compared with the
180 // referrer host only. This is useful for specifying unwanted hosts without
181 // accidentally blocking legitimate referrers from visitors
182 // Syntax:
183 // $BBC_IGNORE_REFER = "spambot.org, .escort."; => Ignore specified matches
184 // $BBC_IGNORE_REFER = ""; => Don't ignore anything
185 // (default)
186 $BBC_IGNORE_REFER = "";
187
188 // Include BBClone hits within the Stats
189 // Syntax:
190 // $BBC_HITS = 1; => Include BBClone hits (Default)
191 // $BBC_HITS = ""; => Ignore BBClone hits
192 $BBC_HITS = 1;
193
194 // BBClone doesn't display any messages in its counting mode. Time and again,
195 // however you may wish to see what BBClone is doing or why it no longer is
196 // working. That's what the debug mode is for: If you activate it, you'll get
197 // a lot of lengthy messages, which should help you with your problem in most
198 // cases. Remember to turn this mode off again, as it isn't meant to run
199 // permanently.
200 // Syntax:
201 // $BBC_DEBUG = ""; => Run BBClone in its counting mode
202 // $BBC_DEBUG = 1; => Turn on debugging for troubleshooting
203 $BBC_DEBUG = "";
204
205 // Part III Miscellaneous
206
207 // In case there's no translation for your language or you want to use a
208 // particular character set, you can overwrite the language used for converting
209 // keywords by setting your desired encoding here.
210 // Syntax:
211 // $BBC_CUSTOM_CHARSET = "UTF-8"; => Use UTF-8 as encoding
212 // $BBC_CUSTOM_CHARSET = ""; => Use the default charset of the translation
213 $BBC_CUSTOM_CHARSET = "";
214
215 // BBClone CSS File Name
216 // Please note; Within this css file you can change the way BBClone looks
217 // (for example change colors or what text size/fonts are used)
218 $BBC_CSS_FILE = "bbclone.css";
219
220 // Generate the page load-time in seconds at bottom of the page
221 // Syntax:
222 // $BBC_LOADTIME = ""; => No load-time generated (Default)
223 // $BBC_LOADTIME = 1; => Generate load-time at bottom of the page
224 $BBC_LOADTIME = "";
225
226 // With this option you can enable whois search in Detailed Stats
227 //
228 // Please read the terms of use and privacy policy of the provider before using this!
229 //
230 // By default comment out and disabled, remove // to enable
231 // Syntax:
232 // $BBC_WHOIS ="http://whois.domaintools.com/"; => Example
233 // $BBC_WHOIS ="http://www.ripe.net/perl/whois?"; => Example
234 $BBC_WHOIS ="";
235
236 // You can use this option to determine the treatment of robots. The default is
237 // to ignore them in the top hosts ranking but leave them in the remaining
238 // stats. If you don't want to see any robots at all you can set this option to
239 // "2", then only human visits will be taken into account.
240 // Syntax:
241 // $BBC_IGNORE_BOTS = 2; => Completely ignore robots
242 // $BBC_IGNORE_BOTS = 1; => Don't list hostnames of robots (default)
243 // $BBC_IGNORE_BOTS = ""; => Treat robots as normal visitors
244 $BBC_IGNORE_BOTS = 1;
245
246 // This option defines how BBClone tells one visitor from another. Default is to
247 // use the IP address only, which provides realistic figures in most cases. If,
248 // however, your visitors often are hidden behind proxy servers, deactivation of
249 // this option could provide more realistic figures, since a new visitor will be
250 // assumed by the time the user agent has changed.
251 // Syntax:
252 // $BBC_IGNORE_AGENT = 1; => Ignore different user agents of one visitor
253 // $BBC_IGNORE_AGENT = ""; => Treat each user agent change of one visitor as
254 // separate visit (default)
255 $BBC_IGNORE_AGENT = "";
256
257 // Enable this option when the "Top Visited Pages" URI's are not working due
258 // filtering of the URI. This can happen if you use BBClone with some Content
259 // Management Systems (CMS) which are using very long (complex) URI naming.
260 // IMPORTED NOTE: This option changes how URI's are recorded,
261 // so you may need to reset the stats.
262 // Syntax:
263 // $BBC_USE_ORIGINAL_URI = 1; => No filtering, use original URI
264 // $BBC_USE_ORIGINAL_URI = ""; => Filter URI (default)
265 $BBC_USE_ORIGINAL_URI = "";
266
267 // The max. number of characters for the page name.
268 // Longer page names will be stripped-down at the front, leading with "..."
269 // IMPORTED NOTE: This option changes how page names are recorded,
270 // so you may need to reset the stats.
271 // Syntax:
272 // $BBC_MAX_PAGENAME = 60; => 60 characters (default)
273 $BBC_MAX_PAGENAME = 60;
274
275 //
276 ?>

Properties

Name Value
svn:keywords Id