Return to Snippet

Revision: 6457
at May 22, 2008 08:20 by Meestercor

Initial Code
function logPage($page) {
	if ($_SERVER['HTTP_REFERER'] == "") {


	mysql_query("INSERT INTO log_leiding (id, http_host, phpsessid, request_uri, page, http_referer, http_user_agent, remote_addr, date, time, source) VALUES ('', '{$_SERVER['HTTP_HOST']}', '{$_REQUEST['PHPSESSID']}', '{$_SERVER['REQUEST_URI']}', '{$page}', '{$_SERVER['HTTP_REFERER']}', '{$_SERVER['HTTP_USER_AGENT']}', '{$_SERVER['REMOTE_ADDR']}', NOW(), NOW(), '{$_SESSION[source]}')");

Initial URL

Initial Description

Initial Title
Log page to databse

Initial Tags
textmate, log

Initial Language