Author
Message
/* ------------------ */
function sed_build_forums($sectionid, $title, $category, $link=TRUE, $parentcat=FALSE)
	{
	global $sed_forums_str, $cfg;
	$pathcodes = explode('.', $sed_forums_str[$category]['path']);
	if ($link)
		{
		foreach($pathcodes as $k => $x)
			{ $tmp[]= "<a href=\"forums.php?c=$x#$x\">".sed_cc($sed_forums_str[$x]['title'])."</a>"; }
		if(is_array($parentcat))
		{
			$tmp[] =  "<a href=\"forums.php?m=topics&amp;s=".$parentcat['sectionid']."\">".sed_cc($parentcat['title'])."</a>";
		}
		$tmp[]= "<a href=\"forums.php?m=topics&amp;s=$sectionid\">".sed_cc($title)."</a>";
		}
	else
		{
		foreach($pathcodes as $k => $x)
			{ $tmp[]= sed_cc($sed_forums_str[$x]['title']); }
		if(is_array($parentcat))
		{
			$tmp[] = $parentcat['title'];
		}
		$tmp[]= sed_cc($title);
		}
	$result = implode(' '.$cfg['separator'].' ', $tmp);
	return($result);
	}
/* ------------------ */

Forever unshaven, red-eyed, detached from reality, with his cockroaches in my head. And let it always will be!