PHP Log System

<?
session_start();
if (empty($username))
{
$agent = $_SERVER[‘HTTP_USER_AGENT’];
$uri = $_SERVER[‘REQUEST_URI’];
$ip = $_SERVER[‘REMOTE_ADDR’];
$ref = $_SERVER[‘HTTP_REFERER’];
$ipasli = $_SERVER[‘HTTP_X_FORWARDED_FOR’];
$via = $_SERVER[‘HTTP_VIA’];
$dtime = date(‘r’);
$message =
//————————— //
Waktu: $dtime
IP asli: $ip
Browser: $agent
URL: $uri
Referrer: $ref
Proxy: $ipasli
Koneksi: $via
//————————— //
“;
mail(“emailkamu@email.com”,”Yang Masuk Halaman Admin”,$message);
session_destroy();
exit(); }
?>

<?phpsession_start();if (empty($username))  {
$agent = $_SERVER[‘HTTP_USER_AGENT’];$uri = $_SERVER[‘REQUEST_URI’];$ip = $_SERVER[‘REMOTE_ADDR’];$ref = $_SERVER[‘HTTP_REFERER’];$ipasli = $_SERVER[‘HTTP_X_FORWARDED_FOR’];$via = $_SERVER[‘HTTP_VIA’];$dtime = date(‘r’);$message =”//————————— //Waktu: $dtimeIP asli: $ipBrowser: $agentURL: $uriReferrer: $refProxy: $ipasliKoneksi: $via//————————— //”;mail(“emailkamu@email.com”,”Yang Masuk Halaman Admin”,$message);session_destroy();exit(); }

?>

Advertisements
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: