From 32f8f2cce66092311fa6ca9ea56e173323717ddf Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Wed, 19 Nov 2008 18:41:26 -0500 Subject: 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. --- includes/hits.php | 2 -- 1 file changed, 2 deletions(-) (limited to 'includes') 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) $page = ''; } $ipdetails = str_pad($client_ip,15,' ') . ' - ' . str_pad($page,61,' ') . ' - ' . str_pad($_SERVER['REQUEST_URI'],27,' ') . ' - ' . time() . chr(13) . chr(10); -// file_put_contents('/var/www/fourisland/ipdetails.txt',$ipdetails,FILE_APPEND); $milestones = array(100,500,1000,1337,4444,5000,10000,15000,50000,75000,100000,150000,250000,500000,750000,1000000); $i=0; for ($i=0; $i<15; $i++) { if (($gethits3['value']+1)==$milestones[$i]) { - file_put_contents('/var/www/fourisland/tophits.txt',$ipdetails,FILE_APPEND); $setmst = 'UPDATE config SET value = "' . time() . '" WHERE name = "milestonetime"'; $setmst2 = mysql_query($setmst); $setms = 'UPDATE config SET value = "' . ($gethits3['value']+1) . '" WHERE name = "milestone"'; -- cgit 1.4.1