<?php

include("eff_setup2.php");
$smarty = new EFFSmarty;
//$smarty->assign('title','MPAA DVD Cases');
$smarty->assign('breadcrumb','true');
$issue = array("IP" => "/IP/", "P2P" => "/IP/P2P/", "MGM v. Grokster" => "/IP/P2P/MGM_v_Grokster/");
//$smarty->assign('cc',"false");
$smarty->assign('issue',$issue);
//$smarty->caching = false;

$content  = '

<div id="featuretext">

';

$filename = isset($_GET['f']) ? basename($_GET['f']) : 'key_quotes.html';
if (substr($filename, -4) != "html") { $content .= "<pre>\n"; }

$content .= implode('', file($filename));

// get title
preg_match("/(title.*>)(.*?)(<\/title)/i",$content, $title);
if ($title[2]) { $smarty->assign('title',$title[2]); } 

// remove title
$tag = "title";
$content = preg_replace("/<" . $tag . ">(.|\s)*?<\/" . $tag . ">/","",$content);

if (substr($filename, -4) != "html") { $content .= "</pre>\n"; }

$content .= '

</div>
';

global $REQUEST_URI;
$smarty->assign('content',$content);
$smarty->display('generic.tpl',$REQUEST_URI);

?>
