############################### # # X-Stat # www.xqus.com/x-stat # ############################### # # Date: 12.28.2001 (mm.dd.yyyy) # Author: Audun Larsen. # web: www.xqus.com # mail: audun@xqus.com # ################# # # This script is copyright © 2000-2010 by Audun Larsen, All Rights Reserved. # # This script may be downloaded and used for any purpose, including commercial, # provided that the Conditions are met. # # Conditions: # -> Do NOT remove any of the copyright notices in the script. # -> This script can not be distribuated by anyone else than the author, unless special permisson is given. # -> Only x-stat logos provided by the author can be used on the pages that are tracked, unless the author is notifyed by e-mail. # # The author is not responible if this script causes any damage to your server or computers. # ################################# Contents: 1. Installing 2. Extra configuration ############### 1. INSTALLING Upgrading? delete all files from the server (you can leave count.txt), and go trough step 1,2,3,4. 1) Unzip all the files to a folder on your computer. 2) Open the config.php file, and edit it to your needs. $admin_pass - The password you need for administrative access. $use_pass - Set this to 1 if you want to use password protection on your stats page. Else, use 0. $log_last_resett - Set this to todays date. $server_domain - Set this to the domain name to your server. Examples: name.f2s.com domain.com/home/name $max_log_size - This is the max size of the log file in bytes. When this size is reached, the log file is reset. 3) Upload all the files to a folder on you server (x-stat). 4) Chmod count.txt, confing.php and stats.txt to 666. 5) Add this code to tha pages you want to track (edit the path so it point to where x-stat.php is): 6) Go to www.domain.com/path_to/x_stat_admin.php, to view the stats. 7) Send a mail to x-stat@xqus.com, and tell me where you are using the script (url), and what you think. (optional) 8) If you need help visit the x-stat support forums: http://www.xqus.com/cgi-bin/forum/ikonboard.cgi ############### 1. Extra configuration If you want to add more toplevel domains, open x_stat_admin.php and go to line 29. Domains are seperated with commas. If you want to disable/ ignore subnets og ip adresses, open x_stat.php, and go to line 29. If you want to diable one single ip: $bad_ip = array("123.123.123.123"); If you want to disable two ips: $bad_ip = array("123.123.123.123", "456,456,456,456"); If you want to disable a ip where one of the digits are changing: $bad_ip = array("123.123.123.*"); You can use as many masks as you want, just split them with a comma and use quotes around them. Questions? http://www.xqus.com/cgi-bin/forum/ikonboard.cgi