‘;
foreach ($indicesServer as $i) {
if (isset($_SERVER[$i])) {
echo ‘
‘;
} else {
echo ‘
‘;
}
}
echo ‘
‘ ;
// get user details
$user_agent = $_SERVER[‘HTTP_USER_AGENT’]; //user browser
$ip_address = $_SERVER[“REMOTE_ADDR”]; // user ip adderss
$page_name = $_SERVER[“SCRIPT_NAME”]; // page the user looking
$query_string = $_SERVER[“QUERY_STRING”]; // what query he used
$current_page = $page_name.”?”.$query_string;
// echo $ip_address;
// echo $page_name;
// echo $user_agent;
// get location
$url = json_decode(file_get_contents(“http://api.ipinfodb.com/v3/ip-city/?key=/*userapikey*/
// you can get your api key form http://ipinfodb.com/
ip=”.$_SERVER[‘REMOTE_ADDR’].”&format=json”));
$country=$url->countryName; // user country
$city=$url->cityName; // city
$region=$url->regionName; // regoin
$latitude=$url->latitude; //lat and lon
$longitude=$url->longitude;
// get time
date_default_timezone_set(‘UTC’);
$date = date(“Y-m-d”);
$time = date(“H:i:s”);
include ‘footer.php’;
?>