Location: PHPKode > projects > Ptk-forensics > ptk/lib/get_case_info.php
<?php
/*
PTK  - DFLabs
Copyright (C) 2008 - DFLabs srl - All rights reserved
hide@address.com
*/
include("check_session.php");
include("lib_std.php");
include("sanitize.php");
include("loggerClass.php");

if (!isset($_SESSION['case_token']) or strcmp($_SESSION['case_token'],$_GET['tk'])!=0){
	new AuditLog('Unauthorized access to get_case_info '.sanitize($_GET['id'],INT));
	header("location: goto_home.php");
}else{
$id = sanitize($_GET['id'],INT);
$case = case_info($id);
$description = RemoveXSS(preg_replace("/\\\/", "", $case['description']));
$closing_time = sanitize_date($case['closing_time']);
if ($closing_time == '0000-00-00 00:00:00'){
	$closing_time = "-";
}
$result =  "
<img src='../img/info_big.png' style='vertical-align:text-bottom'><b> ".htmlentities(stripslashes($case['name']))."</b>
<div id='right_content'>
	<table class='form'>
		<tr><td><b>Name: </b><td><td>".htmlentities(stripslashes($case['name']))."</td></tr>
		<tr><td style='width: 120px'><b>Creation time: </b><td><td>".sanitize_date($case['creation_time'])."</td></tr>	
		<tr><td><b>Closing time: </b><td><td>".$closing_time."</td></tr>	
		<tr><td style='vertical-align: top'><b>Description: </b><td><td>".$description."</td></tr>	
	</table>
</div>
";

echo $result;
}?>
Return current item: Ptk-forensics