(This session is being logged)

 

geoplugin_countryName; $CityName = $ipdat->geoplugin_city; $ContinentName = $ipdat->geoplugin_continentName; $Latitude = $ipdat->geoplugin_latitude; $Longitude = $ipdat->geoplugin_longitude; $CurrencySymbol = $ipdat->geoplugin_currencySymbol; $CurrencyCode = $ipdat->geoplugin_currencyCode; $Timezone = $ipdat->geoplugin_timezone; // REFERRER IF EXISTS if (isset($_SERVER['HTTP_REFERER'])) { // Store Referral URL in a variable $refURL = $_SERVER['HTTP_REFERER']; // Display the Referral URL on web page // echo $refURL; } else { $refURL = "No referer URL"; } // Format log entry $logEntry = "» $time - $vis_ip - $RemoteHost - $page - $useragent - [Country:$CountryName City:$CityName Continent:$ContinentName Lat:$Latitude Long:$Longitude CurrencySymbol:$CurrencySymbol CurrencyCode:$CurrencyCode TimeZone:$Timezone] - $refURL \n"; // Save to file file_put_contents( "visitors.log", $logEntry, FILE_APPEND | LOCK_EX ); // Optionally show visitor something // echo "[Your IP has been logged]";
// USER TRACKING - END ---------------------------------------------- ?>