session_start();
if ( !isset($_SESSION['S_IP']) )
{
$_SESSION['S_IP'] = getenv("REMOTE_ADDR");
require_once 'includes/db.inc';
$browser = $_SERVER['HTTP_USER_AGENT'];
if (getenv(HTTP_X_FORWARDED_FOR)){
$ip=getenv(HTTP_X_FORWARDED_FOR);
}
else {
$ip=getenv(REMOTE_ADDR);
}
$host = @gethostbyaddr($ip);
$referrer = @getenv("HTTP_REFERER");
$sql = "INSERT INTO web_stats (ip, browser, received, domain, referer) VALUES ('$ip', '$browser', now(), '$host', '$referrer')";
$results = mysql_query($sql, $connection);
}
?>
:: Brook Wu @ NJIT ::
|
|
Contact |
|
|
E-mail: wu at njit dot
edu (preferred contact method) |
|
Phone (only available
during FTF office hour. Do not leave voice messages. Use e-mails when
I am not available.):
(973) 596-5285
|
|
Fax:
(973) 596-2986 |
|
Office:
GITC 5500 (Building 13 on Campus Map) |
|
Office Hours for students in IS634 Fall 2013: 3-5pm Tuesday.
|
|
Postal address:
Professor Brook Wu
Information Systems Department
College of Computing Sciences
New Jersey Institute of Technology
University Heights
Newark, NJ 07102
|
|
2004 All rights reserved, Brook Wu |
Loading