Esempio n. 1
0
echo $boardname;
?>
</title>
</head>
<body>
<center>
<table>
<tr>
<td>
<a style="margin-bottom: 18px;" href="board.php?b=<?php 
echo $boardid;
?>
">Return</a>
<br/>
<br/>
<?php 
$rs = mysql_query("select threads.id, subject, count(threads.id) from threads, posts where threads.boardid = " . $boardid . " and threads.id = posts.threadid group by threads.id order by max(posts.dat) desc");
while ($row = mysql_fetch_row($rs)) {
    echo "<a href=\"thread.php?t=" . $row[0] . "&b=" . $boardid . "\">" . sub_clean($row[1]) . " (" . $row[2] . ")</a>&nbsp;&nbsp;&nbsp;";
}
if (mysql_num_rows($rs) == 0) {
    echo "<center>No threads found.</center>";
}
mysql_close($con);
?>
</td>
</tr>
</table>
</center>
</body>
</html>
Esempio n. 2
0
?>
<tr>
<td>
<?php 
if (isset($error)) {
    echo $error . "</td></tr><tr><td>";
}
$rs = mysql_query("select threads.id, subject, count(threads.id) from threads, posts where threads.boardid = " . $boardid . " and threads.id = posts.threadid group by threads.id order by max(posts.dat) desc limit " . $showthreads);
$num = 0;
$body = "";
while ($row = mysql_fetch_row($rs)) {
    $num++;
    echo "<a class=\"menua\" href='#" . $num . "'>" . $num . ": " . sub_clean($row[1]) . " (" . $row[2] . ")</a>&nbsp;&nbsp;&nbsp;";
    $rs2 = mysql_query("select author, msg, dat from posts where threadid=" . $row[0] . " and boardid=" . $boardid . " order by id");
    $postcount = mysql_num_rows($rs2);
    $body .= "<table><tr><td colspan=\"2\" style=\"text-align: left;\"><a name=\"" . $num . "\"></a><b>[" . $num . ":" . $postcount . "]</b>&nbsp;&nbsp;&nbsp;<a href=\"thread.php?b=" . $boardid . "&t=" . $row[0] . "\" style=\"color: red; font-size: 20px; font-weight: bold;\">" . sub_clean($row[1]) . "</a></td><td align=\"right\"><a href=\"#menu\">&#9632;</a> <a href=\"#";
    if ($num == 1) {
        $body .= $showthreads . "\">&#9650;</a> <a href=\"#2\">&#9660;</a></td></tr><tr><td colspan=\"3\"><dl>";
    } else {
        if ($num == $showthreads) {
            $body .= $showthreads - 1 . "\">&#9650;</a> <a href=\\#1\">&#9660;</a></td></tr><tr><td colspan=\"3\"><dl>";
        } else {
            $body .= $num - 1 . "\">&#9650;</a> <a href=\"#" . ($num + 1) . "\">&#9660;</a></td></tr><tr><td colspan=\"3\"><dl>";
        }
    }
    $num2 = 0;
    $row2 = mysql_fetch_row($rs2);
    $body .= "<dt>" . ++$num2 . " ID: <font color=\"green\">" . substr($row2[0], 0, 10) . "</font>&nbsp;&nbsp;&nbsp;Date: " . $row2[2] . "</dt><dd>" . msg_clean_show($row2[1]) . "</dd>";
    if ($postcount < $msgpreviews + 1) {
        while ($row2 = mysql_fetch_row($rs2)) {
            $body .= "<dt>" . ++$num2 . " ID: <font color=\"green\">" . substr($row2[0], 0, 10) . "</font>&nbsp;&nbsp;&nbsp;Date: " . $row2[2] . "</dt><dd>" . msg_clean_show($row2[1]) . "</dd>";
Esempio n. 3
0
<body>
<center>
<table align="center">
<?php 
if (isset($error)) {
    echo "<tr><td colspan='2'>" . $error . "</td></tr>";
}
?>
<tr><td colspan="2" style="text-align: left;"><a style="display: block; margin-bottom: 18px;" href="board.php?b=<?php 
echo $boardid;
?>
">Return</a><b>[1:<?php 
echo $row[1];
?>
]</b>&nbsp;&nbsp;&nbsp;<a style="color: red; font-size: 20px; font-weight: bold;"><?php 
echo sub_clean($row[0]);
?>
</a></td></tr><tr><td colspan="3"><dl>
<?php 
$rs2 = mysql_query("select author, msg, dat from posts where threadid=" . $threadid . " and boardid=" . $boardid . " order by id");
$rowcount = mysql_num_rows($rs2);
$num2 = 1;
while ($row2 = mysql_fetch_row($rs2)) {
    echo "<dt>" . $num2++ . " ID: <font color=\"green\">" . substr($row2[0], 0, 10) . "</font>&nbsp;&nbsp;&nbsp;Date: " . $row2[2] . "</dt><dd>" . msg_clean_show($row2[1]) . "</dd>";
}
?>
<dd><form method="POST" style="margin-top: 25px;"><tfoot><tr><td align="right"><img src="captcha.php?rand=<?php 
echo rand();
?>
" onclick="refreshCaptcha();" id="captchaimg"><br/><input id="6_letters_code" name="captcha" size="16" type="text" required="true"></td><td><textarea rows="5" cols="50" name="msg" required="true"><?php 
if (isset($msg)) {