"; exit(); } while (list($s_sid, $catid, $aid, $title, $time, $hometext, $bodytext, $comments, $counter, $topic, $informant, $notes) = mysql_fetch_row($result)) { if ($catid > 0) { list($cattitle) = mysql_fetch_row(mysql_query("select title from stories_cat where catid='$catid'")); } $printP = "\"".translate("Printer "; $sendF = "\"".translate("Send"; getTopics($s_sid); formatTimestamp($time); $subject = stripslashes($subject); $hometext = stripslashes($hometext); $notes = stripslashes($notes); $introcount = strlen($hometext); $fullcount = strlen($bodytext); $totalcount = $introcount + $fullcount; $morelink = "( "; if ($fullcount > 1) { $morelink .= "".translate("Read More...")." | "; } $count = $comments; $morelink .= " 0) { $morelink .= "\">".translate("comments?")." | $printP $sendF | $cattitle )"; } else { $morelink .= "\">".translate("comments?")." | $printP $sendF )"; } } else { if (($fullcount<1)) { if(($count==1)) { if ($catid > 0) { $morelink .= "\">".translate("Read More...")." | $morelink2\">$count ".translate("comment")." | $printP $sendF | $cattitle)"; } else { $morelink .= "\">".translate("Read More...")." | $morelink2\">$count ".translate("comment")." | $printP $sendF )"; } } else { if ($catid > 0) { $morelink .= "\">".translate("Read More...")." | $morelink2\">$count ".translate("comments")." | $printP $sendF | $cattitle)"; } else { $morelink .= "\">".translate("Read More...")." | $morelink2\">$count ".translate("comments")." | $printP $sendF )"; } } } else { if(($count==1)) { if ($catid > 0) { $morelink .= "\">$count ".translate("comment")." | $printP $sendF | $cattitle)"; } else { $morelink .= "\">$count ".translate("comment")." | $printP $sendF )"; } } else { if ($catid > 0) { $morelink .= "\">$count ".translate("comments")." | $printP $sendF | $cattitle)"; } else { $morelink .= "\">$count ".translate("comments")." | $printP $sendF )"; } } } } $sid = $s_sid; if ($catid != 0) { $resultm = mysql_query("select title from stories_cat where catid='$catid'"); list($title1) = mysql_fetch_row($resultm); $title = "$title1: $title"; } themeindex($aid, $informant, $datetime, $title, $counter, $topic, $hometext, $notes, $morelink, $topicname, $topicimage, $topictext); } mysql_free_result($result); if ($httpref==1) { $referer = getenv("HTTP_REFERER"); if ($referer=="" OR ereg("unknown", $referer) OR eregi($nuke_url,$referer)) { } else { mysql_query("insert into referer values (NULL, '$referer')"); } $result = mysql_query("select * from referer"); $numrows = mysql_num_rows($result); if($numrows==$httprefmax) { mysql_query("delete from referer"); } } include("footer.php3"); } switch ($op) { default: theindex(); } ?>