<?php

include("eff_setup2.php");
$smarty = new EFFSmarty;
$smarty->assign('breadcrumb','true');
$smarty->assign('title','Sony BMG Rootkit Settlement FAQ');
$issue = array("IP" => "/IP/", "DRM" => "/IP/DRM", "Sony BMG" => "/IP/DRM/Sony-BMG", "Settlement FAQ" => "/IP/DRM/Sony-BMG/settlement_faq.php");
$smarty->assign('issue',$issue);

$content  = '

<div id="featuretext">

';

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

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

// get title
preg_match("/(title.*>)(.*?)(<\/title)/i",$content, $title);
if (isset($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;
$request = preg_replace('/(\?|&)f=\//', '\1f=', $REQUEST_URI);
$request = preg_replace('/(\?|&)f=(\.\.\/)*/', '\1f=', $request);
$smarty->assign('content',$content);
$smarty->display('generic.tpl', $request);

?>

