1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241
|
<?php
# This file is part of BBClone (The PHP web counter on steroids)
# $Header: /cvs/bbclone/conf/config.php,v 1.55 2005/02/14 03:12:51 olliver Exp $
# Copyright (C) 2001-2005, the BBClone Team (see file doc/authors.txt
# distributed with this library)
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# See doc/copying.txt for details
#########################
# BBClone Configuration #
#########################
# Part I: Options affecting the visual presentation
# If this variable has been set, a link to the specified location will be
# generated. The default value is pointing to the parent directory. In case
# your main site is located elsewhere, you probably want to adjust the value
# to suit your needs.
# Syntax:
# $BBC_MAINSITE = "http://www.myserver.com/"; => Link to the specified URL
# $BBC_MAINSITE = ".." => Link to parent directory
# (default)
# $BBC_MAINSITE = ""; => Show no link
$BBC_MAINSITE = "..";
# BBClone defaults to revealing the stats' settings. In case this behavior
# isn't desired you can deny access to it by deactivating the option.
# Syntax:
# $BBC_SHOW_CONFIG = 1; => Display show_config.php (default)
# $BBC_SHOW_CONFIG = ""; => Don't display show_config.php
$BBC_SHOW_CONFIG = 1;
# The title being displayed in the navigation bar of all bbclone pages.
# The following macros are recognised:
# %SERVER => server name
# %DATE => the current date
$BBC_TITLEBAR = "Statistics for %SERVER generated the %DATE";
# BBClone's default language, in case it hasn't been specified by the browser.
# It's strongly recommended you set your language (if listed) because will
# encode search engine keywords according to $BBC_LANGUAGE. You can, however,
# overwrite the default. See explanation of $BBC_CUSTOM_CHARSET for details.
# The following languages are supported:
# bg, ca, cs, da, de, el, en, es, fi, fr, hu, it, ja, lt, nb, nl, pl, pt-br,
# ro, ru, se, sk, sl, tr, zh-cn and zh-tw.
$BBC_LANGUAGE = "en";
# This variable defines the length of an unique visit in seconds. Each hit from
# the same visitor within this period will be considered as one visit, as long
# as two successive hits don't exceed the specified limit. Default is the de
# facto web standard of 30 minutes (1800 seconds), but depending on your needs
# you may wish to assign a different value.
# Syntax:
# $BBC_MAXTIME = 0; => Treat each single hit as unique
# $BBC_MAXTIME = 1800; => Treat every hit within 30 minutes by the same
# visitor as unique visit
$BBC_MAXTIME = 1800;
# How many entries you want to have listed in the detailed stats? The default
# value is 100. It's recommended not to set it higher than 500 to avoid too
# heavy load. A value of "0" will reset the detailed stats.
$BBC_MAXVISIBLE = 100;
# The following entries affect how much items will be displayed in each
# ranking of show_global.php. The second group can be reset by setting "0" as
# value. Note, that the detailed stats need to be reset as well to avoid some
# oddities...
$BBC_MAXBROWSER = 10; // Browsers
$BBC_MAXEXTENSION = 10; // Extensions
$BBC_MAXOS = 10; // Operating Systems
$BBC_MAXROBOT = 10; // Robots
$BBC_MAXHOST = 10; // Hosts (reset possible)
$BBC_MAXKEY = 10; // Keywords (reset possible)
$BBC_MAXORIGIN = 10; // Referrers (reset possible)
$BBC_MAXPAGE = 10; // Pages (reset possible)
# The variable $BBC_DETAILED_STAT_FIELDS Contains a comma separated list of
# all columns to be displayed in the detailed stats. You can choose from:
# id => The x-th visitor since you've started counting
# time => The time at which the last hit was registerred
# visits => The hits of one unique visitor
# dns => visitor's hostname
# ip => visitor's ip address
# os => The operating system (if available and/or no robot)
# browser => The software used for establishing the connection
# ext => visitor's country or extension
# referer => The link from which a visitor came (if available)
# page => the last visited page
# search => The search query a visitor used (if available)
# The order of the list is also representative for the column's arrangement
# in the detailed stats
# Syntax:
# $BBC_DETAILED_STAT_FIELDS = "id, time, visits, ip, ext, os, browser";
# $BBC_DETAILED_STAT_FIELDS = "date, ext, browser, os, ip";
$BBC_DETAILED_STAT_FIELDS = "id, time, ext, dns, visits, os, browser, referer";
# The font sizes in pt. Values smaller than 7 may become unreadable
$BBC_TITLE_SIZE = 14; // BBClone's top title bar
$BBC_SUBTITLE_SIZE = 9; // BBClone's subtitles
$BBC_TEXT_SIZE = 8; // normal text and column names in time stats
$BBC_NUM_SIZE = 7; // Numeric data within the time stat graphics
# Part II: Options affecting BBClone's functionality
# In case the server time doesn't match your local timezone, you can adjust the
# time in minutes by using this switch. Negative values will set back the time,
# positive ones will set it forth.
# Syntax:
# $BBC_TIME_OFFSET = 300; => Set time forth by 5 hours (5 x 60 min)
# $BBC_TIME_OFFSET = -300; => Set time back by 5 hours (5 x 60 min)
# $BBC_TIME_OFFSET = 0; => Use the server time "as is" (default)
$BBC_TIME_OFFSET = 0;
# This options defines, whether IP addresses should be resolved to hostnames or
# not. While hostnames tell a lot more about the visitor, resolving them may
# considerably slow down your site, if the DNS servers used are slow, limited
# in their capacity or otherwise unreliable. Setting this variable may solve
# the problem
# Syntax:
# $BBC_NO_DNS = ""; => resolve addresses to hostnames (default)
# $BBC_NO_DNS = 1; => turn off name resolving
$BBC_NO_DNS = "";
# BBClone's default is to show hits in the time stats, because it gives a quite
# useful Impression from the actual server load. If, however, you prefer to use
# unique visits as base for your time stats, you can change the way of counting
# by setting this variable.
# Syntax:
# $BBC_NO_HITS = ""; => Show hits in time stats (default)
# $BBC_NO_HITS = 1; => Show unique visits in time stats
$BBC_NO_HITS = "";
# This option can be used to exclude particular IP addresses or address ranges
# from counting. In case you want to add several expressions, use a comma as
# separator. This option does not accept any hostnames, you first have to
# convert them to ip addresses. You can, however, leave off octetts from right
# to left in order to block ip ranges (as illustrated in the example below).
# Syntax:
# $BBC_IGNORE_IP = "127., 192.168."; => Ignore specified ranges
# $BBC_IGNORE_IP = ""; => Don't ignore anything (default)
$BBC_IGNORE_IP = "";
# In case you don't want to have particular referrers from your visitors listed
# in your ranking or detailed stats, you can define a comma separated list of
# keywords, each referrer will be checked against with. BBClone uses two
# detection modes:
# - If the expression starts with a slash, it will be considered as part of the
# referrer uri. This is useful for blocking unwanted sites on freehosts
# - If the expression doesn't start with a slash, it will be compared with the
# referrer host only. This is useful for specifying unwanted hosts without
# accidentally blocking legitimate referrers from visitors
# Syntax:
# $BBC_IGNORE_REFER = "spambot.org, .escort."; => Ignore specified matches
# $BBC_IGNORE_REFER = ""; => Don't ignore anything
# (default)
$BBC_IGNORE_REFER = "";
# You can use this option to determine the treatment of robots. The default is
# to ignore them in the top hosts ranking but leave them in the remaining
# stats. If you don't want to see any robots at all you can set this option to
# "2", then only human visits will be taken into account.
# Syntax:
# $BBC_IGNORE_BOTS = 2; => Completely ignore robots
# $BBC_IGNORE_BOTS = 1; => Don't list hostnames of robots (default)
# $BBC_IGNORE_BOTS = ""; => Treat robots as normal visitors
$BBC_IGNORE_BOTS = 1;
# This option defines how BBClone tells one visitor from another. Default is to
# use the IP address only, which provides realistic figures in most cases. If,
# however, your visitors often are hidden behind proxy servers, deactivation of
# this option could provide more realistic figures, since a new visitor will be
# assumed by the time the user agent has changed.
# Syntax:
# $BBC_IGNORE_AGENT = 1; => Ignore different user agents of one visitor
# $BBC_IGNORE_AGENT = ""; => Treat each user agent change of one visitor as
# separate visit (default)
$BBC_IGNORE_AGENT = "";
# Part III Miscellaneous
# BBClone doesn't display any messages in its counting mode. Time and again,
# however you may wish to see what BBClone is doing or why it no longer is
# working. That's what the debug mode is for: If you activate it, you'll get
# a lot of lengthy messages, which should help you with your problem in most
# cases. Remember to turn this mode off again, as it isn't meant to run
# permanently.
# Syntax:
# $BBC_DEBUG = ""; => Run BBClone in its counting mode
# $BBC_DEBUG = 1; => Turn on debugging for troubleshooting
$BBC_DEBUG = "";
# Whenever you wish to reset your stats you can activate this switch and have
# them deleted by the next visit. Don't forget to deactivate it afterwards,
# else you'll probably experience unusually low traffic ;).
# Syntax:
# $BBC_KILL_STATS = 1; => Erase all collected data
# $BBC_KILL_STATS = ""; => Keep all collected data (default)
$BBC_KILL_STATS = "";
# Before BBClone writes to a file it attempts to lock the file to prevent it
# from being corrupted. Should BBClone complain that it would not be able to
# lock files you can set an alternative method by using this switch. As a rule
# of thumb you should use the method BBClone is suggesting unless you have a
# very good reason not to use it. Possible options are "dio", "flk" and "sem"
# Syntax:
# $BBC_USE_LOCK = "flk"; => Use flock() (default)
# $BBC_USE_LOCK = "sem"; => Use SysV Semaphores (Unix only)
# $BBC_USE_LOCK = "dio"; => Use Direct I/O (PHP >= 4.2.0 and Unix only)
$BBC_USE_LOCK = "flk";
# Host, referrer and keyword stats can generate a huge amount of data, however
# mostly caused by one time visitors. By enabling this switch you can purge
# these entries and considerably shrink access.php in its size without
# affecting your actual visible host and referrer ranking
# Syntax:
# $BBC_PURGE_SINGLE = 1; => Purge single hosts and referrer entries
# $BBC_PURGE_SINGLE = ""; => keep all entries (default)
$BBC_PURGE_SINGLE = "";
# In case there's no translation for your language or you want to use a
# particular character set, you can overwrite the language used for converting
# keywords by setting your desired encoding here.
# Example:
# $BBC_CUSTOM_CHARSET = "UTF-8"; => Use UTF-8 as encoding
# $BBC_CUSTOM_CHARSET = ""; => Use the default charset of the translation
$BBC_CUSTOM_CHARSET = "";
?>
|