Location: PHPKode > projects > Ptk-forensics > ptk/lib/get_resume_image_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['res_token']) && strcmp($_SESSION['res_token'],$_GET['tk']) == 0){

$id = sanitize($_GET['id'],INT);
$image = image_info($id);
$partition = partition_info($id);
$description = preg_replace("/\\\/", "", $image['description']);
$acquisition_time = $image['acquisition_time'];
if ($acquisition_time== '0000-00-00 00:00:00'){
	$acquisition_time = "-";
}
$location = array(); $location = explode(";", $image['acquisition_location']);
$state = $location[0];
$city = $location[1];
$address = $location[2];
$zip = $location[3];
switch ($image['acquisition_type']){
	case '-1': $type=''; break;
	case '0': $type='DD'; break;
	case '1': $type='100%'; break;
	case '2': $type='AFF'; break;
	case '3': $type='ENCASE'; break;
	case '4': $type='SAFEBACK'; break;
	case '5': $type='IMAGEMASTER DD'; break;
	case '6': $type='OTHER'; break;
}
?>

<img src='../img/info_small.png' style='float:left'>
<b style="float:left">&nbsp;&nbsp;Image info</b>
<br><hr>
<table class='form'>
	<tr><td><b>Name: </b></td><td><?=$image['name'];?></td></tr>
	<tr><td><b>Image size: </b></td><td><?=$image['image_size'];?></td></tr>
	<tr><td><b>Image md5: </b></td><td><?= strtoupper($image['image_md5']);?></td></tr>
	<tr><td><b>Image sha1: </b></td><td><?= strtoupper($image['image_sha1']);?></td></tr>
	<?if($partition[0]['is_partition']==0){?>	
	<tr><td><b>Image filesystem: </b></td><td><?=$partition[0]['filesystem'];?></td></tr>
	<tr><td><b>Timezone: </b></td><td><?=$partition[0]['timezone'];?></td></tr>
	<?}?>
	<tr><td><b>Acquisition type: </b></td><td><?=$type;?></td></tr>
	<tr><td><b>Acquisition time: </b></td><td><?=$acquisition_time;?></td></tr>
	<tr><td><b>Acquisition operator: </b></td><td><?=$image['acquisition_operator'];?></td></tr>
	<tr><td><b>State: </b></td><td><?=$state;?></td></tr>
	<tr><td><b>City: </b></td><td><?=$city;?></td></tr>
	<tr><td><b>Address: </b></td><td><?=$address;?></td></tr>
	<tr><td><b>Zip code: </b></td><td><?=$zip;?></td></tr>
	<tr><td style='vertical-align: top'><b>Description: </b></td><td><?=$description;?></td></tr>	
</table>
<br>
<?if($partition[0]['is_partition']==1){
	for($i=0; $i<sizeof($partition); $i++){
		if($i==0) $display='block'; else $display='none';
		?>
		<div id="partition<?=$i;?>" style="display:<?=$display;?>">
			<table class='indexing' style="width:100%">
				<tr><td colspan="4"><b>Size: </b>&nbsp;<?=$partition[$i]['size'];?></td></tr>
				<tr><td colspan="4"><b>Filesystem: </b>&nbsp;<?=$partition[$i]['filesystem'];?></td></tr>
				<tr><td colspan="4"><b>Offset: </b>&nbsp;<?=$partition[$i]['offset'];?></td></tr>
				<tr><td colspan="4"><b>Timezone: </b>&nbsp;<?=$partition[$i]['timezone'];?></td></tr>
				<tr style="background-color: #DCDCDC">
					<td style="border: 0px; width: 30px; text-align:left"><?if($i!=0){?><img src="../img/left.png" style="cursor: pointer;" onclick="for(var i=0;i<<?=sizeof($partition);?>;i++){document.getElementById('partition'+i).style.display = 'none'} document.getElementById('partition<?=$i-1;?>').style.display = 'block'"><?}?></td>
					<td colspan="2" style="border: 0px; text-align:center"><b>Partition <?=$i+1;?> of <?=sizeof($partition);?></b></td>
					<td style="border: 0px; width: 30px; text-align:right"><?if($i!=(sizeof($partition)-1)){?><img src="../img/arrow.png" style="cursor: pointer" onclick="for(var i=0;i<<?=sizeof($partition);?>;i++){document.getElementById('partition'+i).style.display = 'none'} document.getElementById('partition<?=$i+1;?>').style.display = 'block'"><?}?></td>
				</tr>
			</table>
		</div>
		<?		
	}
}?>
<div id="step_navigator">
	<input style="float:right; cursor: pointer" type="button" value="Finish" onclick="closeMessage()"/>
</div>
<?}else{
	new AuditLog('Unauthorized access to get_resume_image_info ');
        header("location: goto_home.php");
}?>
Return current item: Ptk-forensics