if ( !$userdata[session_logged_in] )
{
ob_start();
function replace_for_mod_rewrite(&$s)
{
$urlin =
array(
"(?<!/)viewforum.php?f=([0-9]*)&topicdays=([0-9]*)&start=([0-9]*)",
"(?<!/)viewforum.php?f=([0-9]*)&mark=topics",
"(?<!/)viewtopic.php?t=([0-9]*)&watch=topic*",
"(?<!/)viewtopic.php?t=([0-9]*)&unwatch=topic*",
"(?<!/)viewtopic.php?t=([0-9]*)&highlight=*",
"(?<!/)viewforum.php?f=([0-9]*)",
"(?<!/)viewtopic.php?t=([0-9]*)&view=previous",
"(?<!/)viewtopic.php?t=([0-9]*)&view=next",
"(?<!/)viewtopic.php?t=([0-9]*)&postdays=([0-9]*)&postorder=([a-zA-Z]*)&vote=viewresult",
"(?<!/)viewtopic.php?t=([0-9]*)&postdays=([0-9]*)&postorder=([a-zA-Z]*)&start=([0-9]*)",
"(?<!/)viewtopic.php?t=([0-9]*)&start=([0-9]*)&postdays=([0-9]*)&postorder=([a-zA-Z]*)&highlight=([a-zA-Z0-9]*)",
"(?<!/)viewtopic.php?t=([0-9]*)&start=([0-9]*)",
"(?<!/)viewtopic.php?t=([0-9]*)",
"(?<!/)viewtopic.php&p=([0-9]*)",
"(?<!/)viewtopic.php?p=([0-9]*)",
);
$urlout = array(
"topic-\1-\2-\3.html",
"mark-forum\1.html",
"updates-topic\1.html",
"stop-updates-topic\1.html",
"about\1.html&highlight=\2",
"forum-\1.html",
"ptopic\1.html",
"ntopic\1.html",
"view-poll\1-\2-\3.html",
"about\1-\2-\3-\4.html",
"about\1.html",
"about\1-\2.html",
"about\1.html",
"post-\1.html",
"post-\1.html",
);
$s = preg_replace($urlin, $urlout, $s);
return $s;
}
}