Location: PHPKode > projects > Ptk-forensics > ptk/lib/check_session.php
<?
/*
PTK  - DFLabs
Copyright (C) 2008 - DFLabs srl - All rights reserved
hide@address.com
*/
session_start();
if(!isset($_SESSION['user'])){ 
	$timestamp = date('d/m/Y , H:i:s');
        $fp = fopen('../log/audit.log', 'a');
        fwrite($fp, $timestamp." , NA , ".$HTTP_SERVER_VARS["REMOTE_ADDR"]." , Unauthorized access: user not authenticated.\n");
	header("location: ../index.php");
	exit;
}
?>
Return current item: Ptk-forensics