' . $name .'';
if ($action == 'tags')
{
$tags = array();
$hastags = preg_match_all('/tags:(.*)/i', $content, $tags, PREG_SET_ORDER);
if ($hastags)
{
$tagslist = explode(',', $tags[0][1]);
echo '
';
foreach ($tagslist as $tag)
{
$tag = trim($tag);
echo('' . $tag . ' ');
}
echo '';
}
}
else if ($action == 'search')
{
$pos = strpos(strtolower($content), strtolower($param));
echo '
' . $param . '' . substr($content, $pos + strlen($param), 42) . '';
}
echo'
';
}
}
?>