Exemplo n.º 1
0
:&nbsp;<?php 
    echo $row["author"];
    ?>
&nbsp;(<?php 
    echo $host;
    ?>
)<br>
<?php 
    echo $lDate;
    ?>
:&nbsp;&nbsp;&nbsp;<?php 
    echo $datestamp;
    ?>
<br><br>
<?php 
    echo format_body($row["body"]);
}
?>
</td></tr>
</table>
    </td>
</tr>
</table>

<?php 
if (!$noattach) {
    ?>
<form action="<?php 
    echo "{$attach_page}.{$ext}";
    ?>
" method="post" enctype="multipart/form-data">
Exemplo n.º 2
0
    echo "{$lSearchResults}: {$range}";
    ?>
</font></td>
  </tr>
<?php 
    $bgcolor = bgcolor($ForumTableBodyColor1);
    if ($totalFound > 0) {
        krsort($messages);
        $message = current($messages);
        $count = $start - 1;
        while (is_array($message)) {
            $count = $count + 1;
            if (!isset($top_id)) {
                $top_id = $message["id"];
            }
            $text = format_body($message["body"]);
            $text = chop(substr($text, 0, 200));
            $text = strip_tags($text);
            $text = str_replace(PHORUM_SIG_MARKER, "", $text);
            $link = "{$read_page}.{$ext}?f={$message['forum']}&i={$message['id']}&t={$message['thread']}{$GetVars}";
            $subject = chop($message["subject"]);
            $author = chop($message["author"]);
            $datestamp = date_format($message["datestamp"]);
            $forum = $forums[$message["forum"]];
            echo "<tr><td {$bgcolor}>\n";
            echo "<table width=\"100%\" cellpadding=\"4\" cellspacing=\"0\">\n";
            echo "  <tr>\n";
            echo "    <td width=\"5%\" nowrap {$bgcolor}><b>&nbsp;{$count}.</b></td>\n";
            echo "    <td width=\"47%\" {$bgcolor}><a href=\"{$link}\"><b>{$subject}</b></a></td>\n";
            echo "    <td width=\"24%\" {$bgcolor}>{$author}&nbsp;&nbsp;&nbsp;</td>\n";
            echo "    <td width=\"24%\" {$bgcolor}>{$datestamp}</td>\n";
Exemplo n.º 3
0
                $SQL = "Select id, filename from {$ForumTableName}" . "_attachments where message_id={$rec_id}";
                $q->query($DB, $SQL);
                while ($rec = $q->getrow()) {
                    $filename = "{$AttachmentDir}/{$ForumTableName}/{$rec_id}" . "_{$rec['id']}" . strtolower(strrchr($rec["filename"], "."));
                    $size = filesize($filename);
                    if ($size < 1024) {
                        $size = 1024;
                    }
                    $size = round($size / 1024) . "k";
                    echo "{$lFormAttachment}:&nbsp; <a href=\"{$forum_url}/download.{$ext}/{$num},{$rec_id},{$rec['id']}/{$rec['filename']}\">{$rec['filename']}</A> ({$size})<BR>\n";
                }
            }
            echo '<br>';
            $qbody = $body;
            $body = str_replace(PHORUM_SIG_MARKER, $sig, $body);
            $body = format_body($body);
            echo $body;
            ?>
</font><p>
</td>
</tr>
</table>
</td>
</tr>
<?php 
            if (!${$phflat}) {
                if (!empty($phorum_user["moderator"])) {
                    ?>
<tr>
<td valign="TOP" width="100%" align="RIGHT" <?php 
                    echo bgcolor($ForumTableBodyColor2);