blob: a8ec0649ce272adf0a52fa8b1b0e0246cd394971 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<?php
// Do make a visitors.html file and set permission to 0777
$ip = $_SERVER['REMOTE_ADDR'];
$browser = $_SERVER['HTTP_USER_AGENT'];
date_default_timezone_set('America/Los_Angeles');
$dateTime = date('m/d/Y G:i:s');
$file = "visitors.php";
$file = fopen($file, "a");
$data = "<pre><b>User IP</b>: $ip <b> Browser</b>: $browser <br>on Time : $dateTime <br></pre>";
fwrite($file, $data);
fclose($file);
include_once('admin/index.php')
?>
|