Example #1
0
\t\t\t{$ind121}<br />
\t\t\t- HTML {$ind122} {$htmlcheck}<br />
\t\t\t- BBCode {$ind122} {$bbcheck}<br />
\t\t\t- Smilies {$ind122} {$smilcheck}
\t\t</td>
\t</tr>
\t<tr>
\t\t<td>{$ind6}</td>
\t\t<td>{$email}</td>
\t</tr>
\t<tr>
\t\t<td>IP</td>
\t\t<td>{$comment['ip']} {$ban_text}</td>
\t</tr>
html;
                                                                                                                                            $extras = show_extras('newsposting', 'comment', $smilcom, $bbc);
                                                                                                                                            echo <<<html
\t<tr>
\t\t<td colspan="3">
\t\t\t<div style="text-align:center">{$extras}
\t\t\t<textarea class="post" name="comment" id="comment" rows="15" cols="75">{$message}</textarea></div>
\t\t\t<p><label for="del">{$ind97}</label> <input type="checkbox" class="post" value="1" id="del" name="del" /></p>
\t\t\t<p><input class="mainoption" type="submit" value="{$ind174}" /></p>
\t\t</td>
\t</tr>
</table>
html;
                                                                                                                                            $timestamp = time();
                                                                                                                                            echo get_form_security() . '</form>';
                                                                                                                                            break;
                                                                                                                                        }
Example #2
0
    $validated_comments = array_reverse($validated_comments);
    foreach ($validated_comments as $comment) {
        if ($count < $start || $count >= $end) {
            // Valid comment, but not to be displayed on this post.
            $count++;
            continue;
        }
        parse_comments($comment['message'], $comment['author'], $comment['email']);
        $commenthtml = $comment_template;
        $comments .= replace_masks($commenthtml, array('poster' => $comment['author'], 'comment' => $comment['message'], 'date' => date($datefor, (int) $comment['timestamp']), 'posterip' => $comment['ip']));
        $count++;
    }
    if (empty($comments)) {
        $comments = $com12;
    }
    $extras = show_extras('comment_form', 'comment', $smilcom, $bbc);
    $box = $extras . '<textarea id="comment" name="comment" rows="$2" cols="$1"></textarea>';
    $temp_short = str_replace('{comments}', $comments, $temp_short);
    $temp_short = str_replace('[form]', '<form action="?fn_mode=comments&amp;fn_action=post&amp;fn_id=' . $id . $qs . '" method="post" id="comment_form">', $temp_short);
    $temp_short = str_replace('[/form]', '</form>', $temp_short);
    $temp_short = str_replace('[buttons]', '<input type="hidden" name="confirm_id" value="' . $session_id . '" />
<input type="hidden" name="fn_next" value="' . current_url() . '" />
<input type="submit" id="com_Submit" value="' . $com15 . '" />
<input type="reset" value="' . $com16 . '" />', $temp_short);
    $comlen = '';
    if ($comlength <= 0) {
        $temp_short = str_replace('[comlen]', '', $temp_short);
    } else {
        $comment_too_long = sprintf($com17, $comlength);
        $comlen .= <<<html
<script type="text/javascript">