summary refs log tree commit diff stats
path: root/includes
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2008-11-19 18:41:26 -0500
committerStarla Insigna <hatkirby@fourisland.com>2008-11-19 18:41:26 -0500
commit32f8f2cce66092311fa6ca9ea56e173323717ddf (patch)
tree6ccd05e9e8766d32499b783482e973d146fc47f0 /includes
parent156abfe8b612310e5f2ef6abe92263e9f222ca3b (diff)
downloadfourisland-32f8f2cce66092311fa6ca9ea56e173323717ddf.tar.gz
fourisland-32f8f2cce66092311fa6ca9ea56e173323717ddf.tar.bz2
fourisland-32f8f2cce66092311fa6ca9ea56e173323717ddf.zip
Removed IP logging code
The hit counter previously saved all IP addresses to a folder in the root directory called "ipdetails.txt". This is seriously unnecessary as Apache
keeps it's own logs and Four Island already stores tracking data (for popularity) in it's database.
Diffstat (limited to 'includes')
-rwxr-xr-xincludes/hits.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/includes/hits.php b/includes/hits.php index 053c6b4..7a04d2f 100755 --- a/includes/hits.php +++ b/includes/hits.php
@@ -79,12 +79,10 @@ if ($getip3['ip'] != $user_ip)
79 $page = ''; 79 $page = '';
80 } 80 }
81 $ipdetails = str_pad($client_ip,15,' ') . ' - ' . str_pad($page,61,' ') . ' - ' . str_pad($_SERVER['REQUEST_URI'],27,' ') . ' - ' . time() . chr(13) . chr(10); 81 $ipdetails = str_pad($client_ip,15,' ') . ' - ' . str_pad($page,61,' ') . ' - ' . str_pad($_SERVER['REQUEST_URI'],27,' ') . ' - ' . time() . chr(13) . chr(10);
82// file_put_contents('/var/www/fourisland/ipdetails.txt',$ipdetails,FILE_APPEND);
83 $milestones = array(100,500,1000,1337,4444,5000,10000,15000,50000,75000,100000,150000,250000,500000,750000,1000000); 82 $milestones = array(100,500,1000,1337,4444,5000,10000,15000,50000,75000,100000,150000,250000,500000,750000,1000000);
84 $i=0; 83 $i=0;
85 for ($i=0; $i<15; $i++) { 84 for ($i=0; $i<15; $i++) {
86 if (($gethits3['value']+1)==$milestones[$i]) { 85 if (($gethits3['value']+1)==$milestones[$i]) {
87 file_put_contents('/var/www/fourisland/tophits.txt',$ipdetails,FILE_APPEND);
88 $setmst = 'UPDATE config SET value = "' . time() . '" WHERE name = "milestonetime"'; 86 $setmst = 'UPDATE config SET value = "' . time() . '" WHERE name = "milestonetime"';
89 $setmst2 = mysql_query($setmst); 87 $setmst2 = mysql_query($setmst);
90 $setms = 'UPDATE config SET value = "' . ($gethits3['value']+1) . '" WHERE name = "milestone"'; 88 $setms = 'UPDATE config SET value = "' . ($gethits3['value']+1) . '" WHERE name = "milestone"';