diff --git a/include/shared-stat.inc b/include/shared-stat.inc deleted file mode 100644 index bec71301e..000000000 --- a/include/shared-stat.inc +++ /dev/null @@ -1,13 +0,0 @@ - - -HTMLPre - -# HTMLHead defines HTML code to insert within the -# block, immediately after the line. Maximum line length -# is 80 characters, so use multiple lines if needed. - -#HTMLHead <META NAME="author" CONTENT="The Webalizer"> - -HTMLHead <?php site_header("Stats"); ?> - -# HTMLBody defined the HTML code to be inserted, starting with the -# <BODY> tag. If not specified, the default is shown below. If -# used, you MUST include your own <BODY> tag as the first line. -# Maximum line length is 80 char, use multiple lines if needed. - -#HTMLBody <BODY BGCOLOR="#E8E8E8" TEXT="#000000" LINK="#0000FF" VLINK="#FF0000"> - -HTMLBody <?php ?> - -# HTMLPost defines the HTML code to insert immediately before the -# first <HR> on the document, which is just after the title and -# "summary period"-"Generated on:" lines. If anything, this should -# be used to clean up in case an image was inserted with HTMLBody. -# As with HTMLHead, you can define as many of these as you want and -# they will be inserted in the output stream in order of apperance. -# Max string size is 80 characters. Use multiple lines if you need to. - -#HTMLPost <BR CLEAR="all"> - -# HTMLTail defines the HTML code to insert at the bottom of each -# HTML document, usually to include a link back to your home -# page or insert a small graphic. It is inserted as a table -# data element (ie: <TD> your code here </TD>) and is right -# alligned with the page. Max string size is 80 characters. - -#HTMLTail <IMG SRC="msfree.png" ALT="100% Micro$oft free!"> - -# HTMLEnd defines the HTML code to add at the very end of the -# generated files. It defaults to what is shown below. If -# used, you MUST specify the </BODY> and </HTML> closing tags -# as the last lines. Max string length is 80 characters. - -#HTMLEnd </BODY></HTML> - -HTMLEnd <?php site_footer(); ?> - -# The Quiet option suppresses output messages... Useful when run -# as a cron job to prevent bogus e-mails. Values can be either -# "yes" or "no". Default is "no". Note: this does not suppress -# warnings and errors (which are printed to stderr). - -#Quiet no - -# ReallyQuiet will supress all messages including errors and -# warnings. Values can be 'yes' or 'no' with 'no' being the -# default. If 'yes' is used here, it cannot be overriden from -# the command line, so use with caution. A value of 'no' has -# no effect. - -#ReallyQuiet no - -# TimeMe allows you to force the display of timing information -# at the end of processing. A value of 'yes' will force the -# timing information to be displayed. A value of 'no' has no -# effect. - -#TimeMe no - -# GMTTime allows reports to show GMT (UTC) time instead of local -# time. Default is to display the time the report was generated -# in the timezone of the local machine, such as EDT or PST. This -# keyword allows you to have times displayed in UTC instead. Use -# only if you really have a good reason, since it will probably -# screw up the reporting periods by however many hours your local -# time zone is off of GMT. - -#GMTTime no - -# Debug prints additional information for error messages. This -# will cause webalizer to dump bad records/fields instead of just -# telling you it found a bad one. As usual, the value can be -# either "yes" or "no". The default is "no". It shouldn't be -# needed unless you start getting a lot of Warning or Error -# messages and want to see why. (Note: warning and error messages -# are printed to stderr, not stdout like normal messages). - -#Debug no - -# FoldSeqErr forces the Webalizer to ignore sequence errors. -# This is useful for Netscape and other web servers that cache -# the writing of log records and do not guarentee that they -# will be in chronological order. The use of the FoldSeqErr -# option will cause out of sequence log records to be treated -# as if they had the same time stamp as the last valid record. -# Default is to ignore out of sequence log records. - -#FoldSeqErr no - -# VisitTimeout allows you to set the default timeout for a visit -# (sometimes called a 'session'). The default is 30 minutes, -# which should be fine for most sites. -# Visits are determined by looking at the time of the current -# request, and the time of the last request from the site. If -# the time difference is greater than the VisitTimeout value, it -# is considered a new visit, and visit totals are incremented. -# Value is the number of seconds to timeout (default=1800=30min) - -#VisitTimeout 1800 - -# IgnoreHist shouldn't be used in a config file, but it is here -# just because it might be usefull in certain situations. If the -# history file is ignored, the main "index.html" file will only -# report on the current log files contents. Usefull only when you -# want to reproduce the reports from scratch. USE WITH CAUTION! -# Valid values are "yes" or "no". Default is "no". - -#IgnoreHist no - -# Country Graph allows the usage by country graph to be disabled. -# Values can be 'yes' or 'no', default is 'yes'. - -#CountryGraph yes - -# DailyGraph and DailyStats allows the daily statistics graph -# and statistics table to be disabled (not displayed). Values -# may be "yes" or "no". Default is "yes". - -#DailyGraph yes -#DailyStats yes - -# HourlyGraph and HourlyStats allows the hourly statistics graph -# and statistics table to be disabled (not displayed). Values -# may be "yes" or "no". Default is "yes". - -#HourlyGraph yes -#HourlyStats yes - -# GraphLegend allows the color coded legends to be turned on or off -# in the graphs. The default is for them to be displayed. This only -# toggles the color coded legends, the other legends are not changed. -# If you think they are hideous and ugly, say 'no' here :) - -#GraphLegend yes - -# GraphLines allows you to have index lines drawn behind the graphs. -# I personally am not crazy about them, but a lot of people requested -# them and they weren't a big deal to add. The number represents the -# number of lines you want displayed. Default is 2, you can disable -# the lines by using a value of zero ('0'). [max is 20] -# Note, due to rounding errors, some values don't work quite right. -# The lower the better, with 1,2,3,4,6 and 10 producing nice results. - -#GraphLines 2 - -# The "Top" options below define the number of entries for each table. -# Defaults are Sites=30, URL's=30, Referrers=30 and Agents=15, and -# Countries=30. TopKSites and TopKURLs (by KByte tables) both default -# to 10, as do the top entry/exit tables (TopEntry/TopExit). The top -# search strings and usernames default to 20. Tables may be disabled -# by using zero (0) for the value. - -#TopSites 30 -#TopKSites 10 -#TopURLs 30 -#TopKURLs 10 -#TopReferrers 30 -#TopAgents 15 -#TopCountries 30 -#TopEntry 10 -#TopExit 10 -#TopSearch 20 -#TopUsers 20 - -# The All* keywords allow the display of all URL's, Sites, Referrers -# User Agents, Search Strings and Usernames. If enabled, a seperate -# HTML page will be created, and a link will be added to the bottom -# of the appropriate "Top" table. There are a couple of conditions -# for this to occur.. First, there must be more items than will fit -# in the "Top" table (otherwise it would just be duplicating what is -# already displayed). Second, the listing will only show those items -# that are normally visable, which means it will not show any hidden -# items. Grouped entries will be listed first, followed by individual -# items. The value for these keywords can be either 'yes' or 'no', -# with the default being 'no'. Please be aware that these pages can -# be quite large in size, particularly the sites page, and seperate -# pages are generated for each month, which can consume quite a lot -# of disk space depending on the traffic to your site. - -#AllSites no -#AllURLs no -#AllReferrers no -#AllAgents no -#AllSearchStr no -#AllUsers no - -# The Webalizer normally strips the string 'index.' off the end of -# URL's in order to consolidate URL totals. For example, the URL -# /somedir/index.html is turned into /somedir/ which is really the -# same URL. This option allows you to specify additional strings -# to treat in the same way. You don't need to specify 'index.' as -# it is always scanned for by The Webalizer, this option is just to -# specify _additional_ strings if needed. If you don't need any, -# don't specify any as each string will be scanned for in EVERY -# log record... A bunch of them will degrade performance. Also, -# the string is scanned for anywhere in the URL, so a string of -# 'home' would turn the URL /somedir/homepages/brad/home.html into -# just /somedir/ which is probably not what was intended. - -#IndexAlias home.htm -#IndexAlias homepage.htm - -# The Hide*, Group* and Ignore* and Include* keywords allow you to -# change the way Sites, URL's, Referrers, User Agents and Usernames -# are manipulated. The Ignore* keywords will cause The Webalizer to -# completely ignore records as if they didn't exist (and thus not -# counted in the main site totals). The Hide* keywords will prevent -# things from being displayed in the 'Top' tables, but will still be -# counted in the main totals. The Group* keywords allow grouping -# similar objects as if they were one. Grouped records are displayed -# in the 'Top' tables and can optionally be displayed in BOLD and/or -# shaded. Groups cannot be hidden, and are not counted in the main -# totals. The Group* options do not, by default, hide all the items -# that it matches. If you want to hide the records that match (so just -# the grouping record is displayed), follow with an identical Hide* -# keyword with the same value. (see example below) In addition, -# Group* keywords may have an optional label which will be displayed -# instead of the keywords value. The label should be seperated from -# the value by at least one 'white-space' character, such as a space -# or tab. -# -# The value can have either a leading or trailing '*' wildcard -# character. If no wildcard is found, a match can occur anywhere -# in the string. Given a string "www.yourmama.com", the values "your", -# "*mama.com" and "www.your*" will all match. - -# Your own site should be hidden -HideSite ca.php.net - -# Your own site gives most referrals -HideReferrer ca.php.net/ - -# This one hides non-referrers ("-" Direct requests) -#HideReferrer Direct Request - -# Usually you want to hide these -HideURL *.gif -HideURL *.GIF -HideURL *.jpg -HideURL *.JPG -HideURL *.png -HideURL *.PNG -HideURL *.ra -HideURL *.css - -# Hiding agents is kind of futile -#HideAgent RealPlayer - -# You can also hide based on authenticated username -#HideUser root -#HideUser admin - -# Grouping options -#GroupURL /cgi-bin/* CGI Scripts -#GroupURL /images/* Images - -#GroupSite *.aol.com -#GroupSite *.compuserve.com - -#GroupReferrer yahoo.com/ Yahoo! -#GroupReferrer excite.com/ Excite -#GroupReferrer infoseek.com/ InfoSeek -#GroupReferrer webcrawler.com/ WebCrawler - -#GroupUser root Admin users -#GroupUser admin Admin users -#GroupUser wheel Admin users - -# The following is a great way to get an overall total -# for browsers, and not display all the detail records. -# (You should use MangleAgent to refine further...) - -#GroupAgent MSIE Micro$oft Internet Exploder -#HideAgent MSIE -#GroupAgent Mozilla Netscape -#HideAgent Mozilla -#GroupAgent Lynx* Lynx -#HideAgent Lynx* - -# HideAllSites allows forcing individual sites to be hidden in the -# report. This is particularly useful when used in conjunction -# with the "GroupDomain" feature, but could be useful in other -# situations as well, such as when you only want to display grouped -# sites (with the GroupSite keywords...). The value for this -# keyword can be either 'yes' or 'no', with 'no' the default, -# allowing individual sites to be displayed. - -#HideAllSites no - -# The GroupDomains keyword allows you to group individual hostnames -# into their respective domains. The value specifies the level of -# grouping to perform, and can be thought of as 'the number of dots' -# that will be displayed. For example, if a visiting host is named -# cust1.tnt.mia.uu.net, a domain grouping of 1 will result in just -# "uu.net" being displayed, while a 2 will result in "mia.uu.net". -# The default value of zero disable this feature. Domains will only -# be grouped if they do not match any existing "GroupSite" records, -# which allows overriding this feature with your own if desired. - -#GroupDomains 0 - -# The GroupShading allows grouped rows to be shaded in the report. -# Useful if you have lots of groups and individual records that -# intermingle in the report, and you want to diferentiate the group -# records a little more. Value can be 'yes' or 'no', with 'yes' -# being the default. - -#GroupShading yes - -# GroupHighlight allows the group record to be displayed in BOLD. -# Can be either 'yes' or 'no' with the default 'yes'. - -#GroupHighlight yes - -# The Ignore* keywords allow you to completely ignore log records based -# on hostname, URL, user agent, referrer or username. I hessitated in -# adding these, since the Webalizer was designed to generate _accurate_ -# statistics about a web servers performance. By choosing to ignore -# records, the accuracy of reports become skewed, negating why I wrote -# this program in the first place. However, due to popular demand, here -# they are. Use the same as the Hide* keywords, where the value can have -# a leading or trailing wildcard '*'. Use at your own risk ;) - -#IgnoreSite bad.site.net -#IgnoreURL /test* -#IgnoreReferrer file:/* -#IgnoreAgent RealPlayer -#IgnoreUser root - -# The Include* keywords allow you to force the inclusion of log records -# based on hostname, URL, user agent, referrer or username. They take -# precidence over the Ignore* keywords. Note: Using Ignore/Include -# combinations to selectivly process parts of a web site is _extremely -# inefficent_!!! Avoid doing so if possible (ie: grep the records to a -# seperate file if you really want that kind of report). - -# Example: Only show stats on Joe User's pages... -#IgnoreURL * -#IncludeURL ~joeuser* - -# Or based on an authenticated username -#IgnoreUser * -#IncludeUser someuser - -# The MangleAgents allows you to specify how much, if any, The Webalizer -# should mangle user agent names. This allows several levels of detail -# to be produced when reporting user agent statistics. There are six -# levels that can be specified, which define different levels of detail -# supression. Level 5 shows only the browser name (MSIE or Mozilla) -# and the major version number. Level 4 adds the minor version number -# (single decimal place). Level 3 displays the minor version to two -# decimal places. Level 2 will add any sub-level designation (such -# as Mozilla/3.01Gold or MSIE 3.0b). Level 1 will attempt to also add -# the system type if it is specified. The default Level 0 displays the -# full user agent field without modification and produces the greatest -# amount of detail. User agent names that can't be mangled will be -# left unmodified. - -MangleAgents 3 - -# The SearchEngine keywords allow specification of search engines and -# their query strings on the URL. These are used to locate and report -# what search strings are used to find your site. The first word is -# a substring to match in the referrer field that identifies the search -# engine, and the second is the URL variable used by that search engine -# to define it's search terms. - -SearchEngine yahoo.com p= -SearchEngine altavista.com q= -SearchEngine google.com q= -SearchEngine eureka.com q= -SearchEngine lycos.com query= -SearchEngine hotbot.com MT= -SearchEngine msn.com MT= -SearchEngine infoseek.com qt= -SearchEngine webcrawler searchText= -SearchEngine excite search= -SearchEngine netscape.com search= -SearchEngine mamma.com query= -SearchEngine alltheweb.com query= -SearchEngine northernlight.com qr= - -# The Dump* keywords allow the dumping of Sites, URL's, Referrers -# User Agents, Usernames and Search strings to seperate tab delimited -# text files, suitable for import into most database or spreadsheet -# programs. - -# DumpPath specifies the path to dump the files. If not specified, -# it will default to the current output directory. Do not use a -# trailing slash ('/'). - -#DumpPath /var/lib/httpd/logs - -# The DumpHeader keyword specifies if a header record should be -# written to the file. A header record is the first record of the -# file, and contains the labels for each field written. Normally, -# files that are intended to be imported into a database system -# will not need a header record, while spreadsheets usually do. -# Value can be either 'yes' or 'no', with 'no' being the default. - -#DumpHeader no - -# DumpExtension allow you to specify the dump filename extension -# to use. The default is "tab", but some programs are pickey about -# the filenames they use, so you may change it here (for example, -# some people may prefer to use "csv"). - -#DumpExtension tab - -# These control the dumping of each individual table. The value -# can be either 'yes' or 'no'.. the default is 'no'. - -#DumpSites no -#DumpURLs no -#DumpReferrers no -#DumpAgents no -#DumpUsers no -#DumpSearchStr no - -# End of configuration file... Have a nice day! diff --git a/mirror.php b/mirror.php index 29a8ebe31..38518cb08 100644 --- a/mirror.php +++ b/mirror.php @@ -86,7 +86,6 @@ site_header("Information About This PHP Mirror Site", array("current" => "commun <ul> <li>Default language is <?php echo $LANGUAGES[default_language()]; ?></li> - <li>Local visitor statistics are <?php echo have_stats() ? "available" : "not available"; ?></li> </ul> <h2>Mirror Status</h2> diff --git a/mirroring-stats.php b/mirroring-stats.php deleted file mode 100644 index c16d3a1c8..000000000 --- a/mirroring-stats.php +++ /dev/null @@ -1,75 +0,0 @@ -<?php -$_SERVER['BASE_PAGE'] = 'mirroring-stats.php'; -include_once __DIR__ . '/include/prepend.inc'; -site_header("Setting Up Local Stats", array("current" => "community")); -?> - -<h1>Setting Up Local Stats</h1> - -<p> - If you are hosting an official or unofficial mirror, and you would like - to have local stats support, follow these steps. This document complements - the instructions found <a href="/mirroring.php">on the mirroring page</a>. -</p> - -<ol> - <li> - <p> - <a href="http://www.mrunix.net/webalizer/">Get The Webalizer</a><br><br> - The Webalizer is a web server log analysis program. It is designed to - scan web server log files in various formats and produce usage statistics - in HTML format for viewing through a browser. Note that Webalizer requires - you to have the GD library installed on your site. - </p> - </li> - <li> - <p> - Install The Webalizer<br><br> - There is a <code>configure</code> file in the distribution now, and other setup options - are also available. Consult the <code>INSTALL</code> file included in the package. - Copy the executable to somewhere accessible, eg. <code>/usr/bin</code>. - </p> - </li> - <li> - <p> - Grab <a href="/mirror-stats.conf">mirror-stats.conf</a> and edit the file.<br><br> - This is the main conf file for The Webalizer. Specifically, you will want to - change the lines which define where your log file sits, where the output - should go, and the name of your host machine. Look for these settings: - LogFile, OutputDir, HostName, HideSite, HideReferrer. The stats - directory is not required to be in the webroot, it may be aliased - to be there (see <a href="/mirroring.php">mirroring.php</a>). - </p> - </li> - <li> - <p> - Give it a test<br><br> - From the command line in the stats directory, type: - <code>webalizer -c mirror-stats.conf</code> You should get an index - file, a usage file for the current month, some images, - and a history file. - </p> - </li> - <li> - <p> - Add it to your cron<br><br> - If all went well, in the previous step, it is ready to be updated - regularly. Something like this will be sufficient (update things - daily at 3 am): - </p> -<pre class="info"> - 0 3 * * * (cd /your/stats/folder;/usr/bin/webalizer -c mirror-stats.conf) >/dev/null 2>&1 -</pre> - <p> - Provide the path of the stats directory in the "cd". - </p> - </li> -</ol> - -<p> - If you have any questions, try to ask them on the PHP Mirrors' mailing list - (<a href="mailto:mirrors@php.net">mirrors@php.net</a>). We cannot guarantee, - that we can solve your problem, of course, but it is worth a try. -</p> - -<?php site_footer(); ?> diff --git a/stats/index.php b/stats/index.php deleted file mode 100644 index de177cbeb..000000000 --- a/stats/index.php +++ /dev/null @@ -1,17 +0,0 @@ -<?php -/* - This page is displayed if there is no alias to - override the stats directory distributed by rsync, - which means there is no local search is set up -*/ -$_SERVER['BASE_PAGE'] = 'stats/index.php'; -include_once __DIR__ . '/../include/prepend.inc'; -site_header("No Stats"); -?> - -<h1>No Stats</h1> -<p> - No visitor statistics information is available on this mirror site. -</p> - -<?php site_footer(); ?>