summary refs log tree commit diff stats
path: root/includes/hits.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/hits.php')
-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"';