Location: PHPKode > projects > Ptk-forensics > ptk/lib/goto_analysis.php
<?
/*
PTK  - DFLabs
Copyright (C) 2008 - DFLabs srl - All rights reserved
hide@address.com
*/
include("check_session.php");
include("sanitize.php");
include ("loggerClass.php");
include("lib_std.php");
if (isset($_SESSION['img_token']) && strcmp($_SESSION['img_token'],$_GET['tk']) == 0){

$id = sanitize($_GET['id'],INT);
$image = image_info($id);
$partition = partition_info($id);

session_start();
$_SESSION['image_id'] = sanitize($id,INT);
$_SESSION['image'] = sanitize($image['name'],PARANOID);
$_SESSION['image_path'] = sanitize($image['image_path'],PARANOID);
$_SESSION['is_partitioned'] = sanitize($partition[0]['is_partition'],PARANOID);
$_SESSION['case_id'] = sanitize($image['id_case'],INT);

for($i=0; $i<sizeof($partition);$i++){
	$_SESSION["partition".$i."_offset"] = sanitize($partition[$i]['offset'],INT);
	$_SESSION["partition".$i."_filesystem"] = sanitize($partition[$i]['filesystem'],PARANOID);
	$_SESSION["partition".$i."_id"] = sanitize($partition[$i]['id'],INT);
	$_SESSION["partition".$i."_tz"] = preg_replace("/[^a-zA-Z0-9\/\_\-\+\|]/", "", $partition[$i]['timezone']);
}
$_SESSION["len_partitions"] = sizeof($partition);

new Log($_SESSION['ip'], $_SESSION['user'], "Analysis started on image ".$image['name']);
if($_SESSION["partition0_filesystem"]=='ram_dump'){
	header("location: analysis_ram.php");
}else{
	header("location: analysis_file.php");
}
}else{
 	new AuditLog('Unauthorized access to goto_analysis ');
        header("location: goto_home.php");
}?>
Return current item: Ptk-forensics