###############################################################################
# PHP-NUKE: IP Tracking Module                                                #
# Copyright (c) 2003 by Scott Rubin (regrettably, Scott has passed away)      #
# http://ierealtor.com                                                        #
# Ported to CPG Dragonfly CMS by Phoenix at NukeBiz.com & the DJMaze         #
# Installation Instructions                                                   #
###############################################################################

1. Copy the language and modules directories to your root directory.

2. New installation:
   Insert the following line in footer.php, about line 35 (after MS_Analysis)
   		require_once('modules/IP_Tracker/iptracking.inc');
   (note: this file will only be operative if the module is activated)
   In admin->modules for IP_Tracker, click on "INSTALL", then activate.

3. Upgrade: de-activate the module, backup the files/database, upload new files
   Then in admin->modules, click edit for IP_Tracker, then click Upgrade.

4. Configuration is done through admin.php?op=IP_Tracker

5. Exclusions are now stored in the database - you can delete the exclusions.php
file BUT NOT BEFORE you have upgraded your module to at least v9.1.4.


BEWARE: changes to viewing permissions will raise your database queries.

UPDATE:
v9.1.6
 * minor adjustment for binary IPs.
 * pruning can now be applied to Hostnames.
v9.1.5
 * fix for binary IPs
v9.1.4
 * exclusions are now stored in the database and cached to optimize queries.
 * pruning can now be applied to Usernames and IP addresses.
 * main display queries have been optimized with 95% reduction in query time.
 * paging method changed and enhanced for viewing the IP page listing.
v9.1.3
 * cached config data to eliminate a database query
 * added searches for IP address and Username.
v9.1.2
 * couple of minor bug fixes
 * XHTML1.1 Strict adjustments
 * some query optimization.
v9.1.1
 * since I skipped a couple of public releases, see notes for 9.0.1 and 9.0.2
 * IP address converted to binary to allow for IPv6, will convert existing db.
   Best done with module deactivated - backup just in case, and be patient.
 * added the ReadMe section to admin
 * lots of other fiddly bits that I've long forgotten :(
v9.0.2.0
 * language file moved to root/language/whatever/ip_tracker.php
 * adjusted to allow for IPv6 and ip_address field changed to binary
 * small adjustments for compatibility with PHP5.x and MySQL5.x
 * convertip.php file for use at root level - see file comments before use
 * cpg_inst has same data upgrade code commented out since it didn't complete
v9.0.1.0
 * added admin interface for config, exclusions and pruning. 
 * added referer info to database and option to display.
 * language file extended to cover all text used (hopefully).
 * modules/IP_Tracker/ipconfig.php can be deleted (adjust settings in Admin).
 * optimized queries for user online / profile link (dropped 200 db queries)
v9.0.0.5
 * timestamp field converted to integer, uses _DATESTRINGIPT in lang file.
 * It will handle up to 100,000 records but if not, you may need to RESTORE 
   your backup and REDUCE the database size to fewer records.
 * De-Activate the module, then upload the files.
 * BEWARE, patience - database is large, so backup and upgrade takes time.
 * BACKUP database before starting the upgrade process, and after de-activation.
 * AFTER clicking "Upgrade to 9.0.0.5" WAIT WAIT until your browser reverts to
   the "IP_Tracker" page which displays "Version: 9.0.0.5" NOT the page before
   that displays "Upgrade Succeeded".
v9.0.0.4
 * fixed exlusion of IP and Host name
v9.0.0.3
 * time offset restored
v9.0.0.2
 * extra config and filter added to prevent viewing of admin links.
