Location: PHPKode > projects > Ptk-forensics > ptk/lib/check_session_image.php
<?
/*
PTK  - DFLabs
Copyright (C) 2008 - DFLabs srl - All rights reserved
hide@address.com
*/
	session_start();
	if(!isset($_SESSION['image_id'])){
		$timestamp = date('d/m/Y , H:i:s');

		$user = $_SESSION['user'];
                if (!isset($_SESSION['user'])){
                        $user = "Http request may be crafted";
                }

                $ip = $HTTP_SERVER_VARS["REMOTE_ADDR"];
                if (empty($ip)){
                        $ip = "Http request may be crafted";
                }

                $timestamp = date('d/m/Y , H:i:s');
                $fp = fopen('../log/audit.log', 'a');
		$string = "Unauthorized access: image not selected.\n";
                fwrite($fp, $timestamp." , ".$user." , ".$ip." , ".$string);
		echo "<div id='msg' class='warning'>Select an image before</div>";
	        exit;
	}
?>
Return current item: Ptk-forensics