"; exit();
}
while (list($s_sid, $aid, $title, $time, $hometext, $bodytext, $comments, $counter, $topic, $informant, $notes) = mysql_fetch_row($result))
{
// Kiril: Start New Sanitizer
$sanity_ary = compact( 'title', 'hometext', 'bodytext', 'notes', 'informant' );
$_SERVER['SAN'] -> slashIT( $sanity_ary );
extract( $sanity_ary );
// Adjust Formatting
if ( $_SERVER['F_LIB'] -> checkPostDate( $time ) )
{
$slice_ary = array_slice( $sanity_ary, 1, 3 );
$_SERVER['SAN'] -> sanitizeLegacyContent( $slice_ary );
}
else
{
$slice_ary = array_slice( $sanity_ary, 1, 3 );
$_SERVER['SAN'] -> adjustFormat( $slice_ary, 3, 10 );
}
extract( $slice_ary );
unset( $sanity_ary, $slice_ary );
// End New Sanitizer
$printP = "
";
$sendF = "
";
getTopics($s_sid);
formatTimestamp($time);
/*// $subject = $myts->makeTboxData4Show($subject);
$title = $myts->makeTboxData4Show($title);
$hometext = $myts->makeTareaData4Show($hometext);
$notes = $myts->makeTareaData4Show($notes);*/
$introcount = strlen($hometext);
$fullcount = strlen($bodytext);
$totalcount = $introcount + $fullcount;
$morelink = "( ";
if ($fullcount > 1) {
$morelink .= "".translate("Read More...")." | $totalcount ".translate("bytes more")." | "; }
$count = $comments;
$morelink .= " | $printP $sendF )";
} else {
if (($fullcount<1)) {
if(($count==1)) {
$morelink .= "'>".translate("Read More...")." | $morelink2'>$count ".translate("comment")." | $printP $sendF )";
} else {
$morelink .= "'>".translate("Read More...")." | $morelink2'>$count ".translate("comments")." | $printP $sendF )";
}
} else {
if(($count==1)) {
$morelink .= "'>$count ".translate("comment")." | $printP $sendF )";
} else {
$morelink .= "'>$count ".translate("comments")." | $printP $sendF )";
}
}
}
$sid = $s_sid;
$selcat = mysql_query("select title from ".$mpnTables['stories_cat']." where catid='$catid'");
list($title1) = mysql_fetch_row($selcat);
$title = "$title1: $title";
themeindex($aid, $informant, $datetime, $title, $counter, $topic, $hometext, $notes, $morelink, $topicname, $topicimage, $topictext);
}
// let's create the dynamic links now
echo "
| \n"; if ($screen > 0) { $url = "categories.$phpEx?op=newindex&catid=$catid&screen=" . ($screen - 1); echo "< ".translate("Previous Page")."\n"; } echo " | ".translate("Page")." $page | \n"; echo "\n"; if ($screen < ($pages - 1)) { $url = "categories.$phpEx?op=newindex&catid=$catid&screen=" . ($screen + 1); echo "".translate("Next Page").">\n"; } echo " |