WebStats v1.2 - LFSLapper WWW statistics Copyright (C) 2006 Janez Cufer 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. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +=================+ | 1.Prerequisites | +=================+ 1.1 HTTP server HTTP Server must have CGI support enabled. Look at manual of your HTTP server for instructions. 1.2 LFSLapper Database files of LFSLapper must be accessible from CGI binary. +================+ | 2.Installation | +================+ Copy WebStats.cgi to cgi enabled directory (usually cgi-bin on Apache). bin/Linux/WebStats.cgi is precompiled binary for Linux users, bin/win/WebStats.cgi is precompiled binary for Windows users. +=======+ | 3.Use | +=======+ Sample html is provided (WebStats.html), but it should be modified before use (at least URL path to WebStats.cgi). WebStats.cgi uses following parameters: table ----- Possible values are "hotlapping" and "drifting". If parameter is not provided, default value is "hotlapping". track ----- Possible values are names of all configurations of all tracks. See sample html for list. If parameter is not provided, default value is "BL1R". car --- Possible values are names of all cars. See sample html for list. If parameter is not provided, default value is "XR GT TURBO". from ---- Starting position of player to show in table. If parameter is not provided, default value is "1". to -- Ending position of player to show in table. If parameter is not provided, default value is "15". pbfile ------ Filepath to personal best lap times file. If parameter is not provided, default value is "PB.txt". driftfile --------- Filepath to personal best drift scores file. If parameter is not provided, default value is "DriftPB.txt". Example: http://someserver.org/cgi-bin/WebStats.cgi?table=drifting&track=BL1R&car=XR+GT+TURBO&from=1&to=16&pbfile=PB.txt&driftfile=DriftPB.txt will show drifting scores for first 16 players on Blackwood Reversed for XR GT TURBO. +========================================+ | Compiling from source (advanced users) | +========================================+ Linux: ------ makefile is provided for linux users (g++ and make required). Type "make" in console. Windows: -------- sln and vcproj are provided for Windows users (MS Visual Studio required). Open solution and build. Other OSes and/or C++ compilers ------------------------------- Use your favourite C++ compiler (must have STL support) and compile main.cpp to WebStats.cgi