Location: PHPKode > projects > Ptk-forensics > ptk/lib/bookmark_browsing.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");

$inv_token = sanitize(RemoveXSS($_SESSION['bk_bro_token']),PARANOID);

if(isset($_GET['parentId'])){

	$image_id = sanitize($_GET['parentId'],INT);
	$partition = partition_info($image_id);
	for($i=0; $i<sizeof($partition);$i++){
		$part_id .= $partition[$i]['id'].",";
	}
	$part_id = preg_replace("/,$/", "", $part_id);
	$tags = get_tag_list($_SESSION['case_id'], $part_id);
	
	foreach($tags as $tags){
		if(preg_match("/(.+)(\(\d+\))/", $tags, $out)){
			$value = sanitize_tag(RemoveXSS($out[1]));
			$total = $out[2];
			$value_query = urlencode(sanitize_tag($out[1]));
			echo "<li class='star.png' onclick=\"ajax_request('get_bookmarks.php?tk=$inv_token&arg1=$value_query&arg2=$part_id', 'container_right')\"><a href='#'>$value $total</a></li>";	
		}	
	}	
}
?>
Return current item: Ptk-forensics