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

if (isset($_SESSION['tml_token']) && strcmp($_SESSION['tml_token'],$_POST['token']) == 0){

$id = mysql_real_escape_string(sanitize($_POST['partition'],PARANOID));
$start = mysql_real_escape_string(sanitize($_POST['start'],PARANOID));
$end = mysql_real_escape_string(sanitize($_POST['end'],PARANOID));
if($start=='') $start= '0';
if($end=='') $end = '9999-99-99';
$timeline = array();

if($id=='all'){
	$id= '';
	for($i=0;$i<$_SESSION['len_partitions'];$i++){
		$id = $_SESSION["partition".$i."_id"];
		$arr = get_timeline($id, $start, $end);
		$timeline = array_merge($timeline, $arr);
	}
	$_SESSION['timeline'] = $timeline;
	$_SESSION['timeline_id'] = 'all';
}else{
	$timeline = get_timeline($id, $start, $end);	
	$_SESSION['timeline'] = $timeline;
	$_SESSION['timeline_id'] = $id;
}

if(sizeof($_SESSION['timeline'])==0){
	if(($start==0)and($end=='9999-99-99')){
		$_SESSION['warning'] = "You need to perform indexing operations first";
	}else{
		$_SESSION['warning'] = "No entries for this date range";
	}
}
header("location: analysis_timeline.php");
}else{
	new AuditLog('Unauthorized access to get_timeline ');
        header("location: goto_home.php");
}?>
Return current item: Ptk-forensics