/home/techb158/immovalet.ca/report/Master/local
NameSizeModeActions
.htaccess10050666editdlrm
counter_config.php7530666editdlrm
geoiploc.php25231390666editdlrm
view.php36460666editdlrm
Edit: /home/techb158/immovalet.ca/report/Master/local/view.php (3646B)
Hit viewer Hits' ; $result = mysqli_query($link,"SELECT * FROM " . $dbtablehits . " ORDER BY count DESC"); echo ""; echo ' ' ; // keeps getting the next row until there are no more to get while($row = mysqli_fetch_array( $result )) { // Print out the contents of each row into a table echo ''; } echo "" ; echo "
Page Hits
'; echo $row['page']; echo ''; echo $row['count']; echo '
Total Hits $totalhits

"; // ############################ // ### get total unique IPs ### // ############################ $result=mysqli_query($link,"SELECT MAX(id) FROM info"); while ($row = mysqli_fetch_array($result, MYSQL_NUM)) { $totalips = $row[0] ; } // ######################## // ### Display visitors ### // ######################## echo '

Visitors

' ; $result = mysqli_query($link,"SELECT * FROM $dbtableinfo ORDER BY id DESC") or die(mysqli_error()); echo ""; echo "" ; echo ''; // keeps getting the next row until there are no more to get while($row = mysqli_fetch_array( $result )) { // Print out the contents of each row into a table echo '"; } echo "
Total unique IP´s $totalips
IP User agent Date & TimeCountry
'; echo $row['ip_address']; echo ''; echo $row['user_agent']; echo ''; echo $row['datetime']; echo ''; echo getCountryFromIP($row['ip_address'], " NamE "); echo "

"; ?>