$path="../"; include($path."includes/header.inc.php"); if(!isset($_REQUEST['id']) || !is_numeric($_REQUEST['id'])) { header("Location: /browse/"); } else { $item = new item(); $item->Get_Item($_REQUEST['id']); if($item->id == ""): header("HTTP/1.0 404 Not Found"); echo(file_get_contents(SITE_URL."/404.php")); exit(); endif; // Set if item price isn't right. if($item->price == 0) { $item->stock = 0; } } $page_title= $item->name; $page='product'; $description=clean_page($item->description); $keywords=''; if(!empty($item->tags)) { $keywords = implode(", ", $item->tags); } include($path.'templates/header.html.php'); ?>