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 = '
\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 .= "\n"; } $content .= '