Пример #1
0
                $ppost['headtext'] = $rhead;
                $ppost['signtext'] = $rsign;
            }
            $ppost['text'] = $message;
            $ppost['options'] = filter_int($nosmilies) . "|" . filter_int($nohtml);
            if ($isadmin) {
                $ip = $userip;
            }
            $chks = array("", "", "");
            if ($nosmilies) {
                $chks[0] = "checked";
            }
            if ($nolayout) {
                $chks[1] = "checked";
            }
            if ($nohtml) {
                $chks[2] = "checked";
            }
            print "{$header}\n\t\t\t\t<body onload=window.document.REPLIER.message.focus()>\n\t\t\t\t{$tccellh}>Post preview\n\t\t\t\t{$tblend}{$tblstart}\n\t\t\t\t" . threadpost($ppost, 1) . "\n\t\t\t\t{$tblend}<br>{$tblstart}\n\t\t\t\t<FORM ACTION=newreply.php NAME=REPLIER METHOD=POST>\n\t\t\t\t{$tccellh} width=150>&nbsp</td>{$tccellh} colspan=2>&nbsp<tr>\n\t\t\t\t{$tccell1}><b>Reply:</td>\n\t\t\t\t{$tccell2l} width=800px valign=top>{$txta}=message ROWS=21 COLS={$numcols} style=\"width: 100%; max-width: 800px; resize:vertical;\">" . htmlspecialchars($message, ENT_QUOTES) . "</TEXTAREA></td>\n\t\t\t\t{$tccell2l} width=*>" . moodlist($moodid) . "</td><tr>\n\t\t\t\t{$tccell1}>&nbsp</td>{$tccell2l} colspan=2>\n\t\t\t\t{$inps}=submit VALUE=\"Submit reply\">\n\t\t\t\t{$inps}=preview VALUE=\"Preview reply\"></td>\n\t\t\t\t{$inph}=username VALUE=\"" . htmlspecialchars($username) . "\">\n\t\t\t\t{$inph}=password VALUE=\"" . htmlspecialchars($password) . "\">\n\t\t\t\t{$inph}=valid value=\"" . md5($_SERVER['REMOTE_ADDR'] . $id . "sillysaltstring") . "\">\n\t\t\t\t{$inph}=action VALUE=postreply>\n\t\t\t\t{$inph}=id VALUE={$id}>\n\t\t\t\t<tr>{$tccell1}><b>Options:</b></td>{$tccell2l} colspan=2>\n\t\t\t\t{$inpc}=\"nosmilies\" id=\"nosmilies\" value=\"1\" {$chks['0']}><label for=\"nosmilies\">Disable Smilies</label> -\n\t\t\t\t{$inpc}=\"nolayout\" id=\"nolayout\" value=\"1\" {$chks['1']}><label for=\"nolayout\">Disable Layout</label> -\n\t\t\t\t{$inpc}=\"nohtml\" id=\"nohtml\" value=\"1\" {$chks['2']}><label for=\"nohtml\">Disable HTML</label></td></tr>\n\t\t\t\t{$modoptions}\n\t\t\t\t{$tblend}\n\t\t\t\t</FORM>\n\t\t\t\t{$tblstart}{$postlist}{$tblend}\n\t\t\t\t</td></FORM>\n\t\t\t\t";
        }
    } else {
        print "{$header}{$tccell1}>Couldn't enter the post. {$error}<br>" . redirect("thread.php?id={$id}", $thread['title'], 0);
    }
}
if ($thread['closed']) {
    print "\n\t\t{$tccell1}>Sorry, but this thread is closed, and no more replies can be posted in it.\n\t\t<br>" . redirect("thread.php?id={$id}", $thread['title'], 0);
} elseif ($banned and $log) {
    print "\n\t\t{$tccell1}>Sorry, but you are banned from the board, and can not post.\n\t\t<br>" . redirect("thread.php?id={$id}", $thread['title'], 0);
}
print $footer;
printtimedif($startingtime);
Пример #2
0
            $ppost['text'] = $message;
            $ppost['options'] = $poptions;
            // Edited notice
            $ppost['edited'] = $edited;
            $ppost['editdate'] = ctime();
            $chks = array();
            if ($nosmilies) {
                $chks[0] = "checked";
            }
            if ($nohtml) {
                $chks[1] = "checked";
            }
            if ($isadmin) {
                $ip = $post['ip'];
            }
            print "\n\t\t\t\t\t<body onload=window.document.REPLIER.message.focus()>\n\t\t\t\t\t{$tccellh}>Post preview\n\t\t\t\t\t{$tblend}{$tblstart}\n\t\t\t\t\t" . threadpost($ppost, 1) . "\n\t\t\t\t\t{$tblend}<br>{$tblstart}\n\t\t\t\t\t{$tccellh} width=150>&nbsp</td>{$tccellh} colspan=2>&nbsp<tr>\n\t\t\t\t\t{$tccell1}><b>Header:</td>\t {$tccell2l} width=800px valign=top>{$txta}=head ROWS=8 COLS={$numcols} style=\"width: 100%; max-width: 800px; resize:vertical;\">" . htmlspecialchars($head) . "</textarea>\n\t\t\t\t\t{$tccell2l} width=* rowspan=3>" . moodlist($moodid) . "</td><tr>\n\t\t\t\t\t{$tccell1}><b>Post:</td>\t\t {$tccell2l} width=800px valign=top>{$txta}=message ROWS=12 COLS={$numcols} style=\"width: 100%; max-width: 800px; resize:vertical;\">" . htmlspecialchars($message) . "</textarea><tr>\n\t\t\t\t\t{$tccell1}><b>Signature:</td>\t {$tccell2l} width=800px valign=top>{$txta}=sign ROWS=8 COLS={$numcols} style=\"width: 100%; max-width: 800px; resize:vertical;\">" . htmlspecialchars($sign) . "</textarea><tr>\n\t\t\t\t\t{$tccell1}>&nbsp</td>{$tccell2l} colspan=2>\n\t\t\t\t\t{$inph}=action VALUE=editpost>\n\t\t\t\t\t{$inph}=id VALUE={$id}>\n\t\t\t\t\t{$inps}=submit VALUE=\"Edit post\">\n\t\t\t\t\t{$inps}=preview VALUE=\"Preview post\"></td>\n\t\t\t\t\t<tr>{$tccell1}><b>Options:</b></td>{$tccell2l} colspan=2>\n\t\t\t\t\t{$inpc}=\"nosmilies\" id=\"nosmilies\" value=\"1\" {$chks['0']}><label for=\"nosmilies\">Disable Smilies</label> -\n\t\t\t\t\t{$inpc}=\"nohtml\" id=\"nohtml\" value=\"1\" {$chks['1']}><label for=\"nohtml\">Disable HTML</label></td></tr>\n\t\t\t\t\t</FORM>\n\t\t\t\t\t{$tblend}{$fonttag}<a href=index.php>{$boardname}</a> - <a href=forum.php?id={$forum['id']}>" . $forum[title] . "</a> - {$thread['title']}\n\t\t\t\t";
        }
    } else {
        print "\n\t\t\t{$tccell1}>You are not allowed to edit this post.<br>\n\t\t\t" . redirect("thread.php?id={$threadid}", "the thread", 0);
    }
    print $tblend;
} elseif ($action == 'noob') {
    die;
    /*if ($loguser['powerlevel'] >= 1) {
    			mysql_query("UPDATE `posts` SET `noob` = '1' - `noob` WHERE `id` = '$id'");
    			print "
    				$tblstart$tccell1>Post n00bed!<br>
    				".redirect("thread.php?pid=$id&r=1#$id",'the post',0).'</table></table>';
    		}*/
} elseif ($action == 'delete') {
    if (!$_POST['reallydelete']) {
Пример #3
0
if (!$iconid or $iconid == -1) {
    $checked = 'checked';
}
$posticonlist .= "\n\t\t<br>{$radio}=iconid value=-1 {$checked}>&nbsp;None&nbsp; &nbsp; &nbsp;\n\t\tCustom: {$inpt}=custposticon SIZE=40 MAXLENGTH=100 VALUE=\"" . stripslashes($custposticon) . "\">\n\t";
$subject = htmlspecialchars($subject);
$question = htmlspecialchars($question);
if ($nosmilies) {
    $nosmilieschk = " checked";
}
if ($nohtml) {
    $nohtmlchk = " checked";
}
if ($nolayout) {
    $nolayoutchk = " checked";
}
$form = !$poll ? "\n\t\t<tr>{$tccell1}><b>Thread icon:</td>\t{$tccell2l} colspan=2>{$posticonlist}</td></tr>\n\t\t<tr>{$tccell1}><b>Thread title:</td>{$tccell2l} colspan=2>{$inpt}=subject SIZE=40 MAXLENGTH=100 VALUE=\"" . stripslashes($subject) . "\"></td></tr>\n\t\t<tr>{$tccell1}><b>Post:</td>{$tccell2l} width=800px valign=top>" . replytoolbar(2) . "\n\t\t{$txta}=message ROWS=21 COLS={$numcols} style=\"width: 100%; max-width: 800px; resize:vertical;\">" . stripslashes(htmlspecialchars($message)) . "</TEXTAREA></td>\n\t\t{$tccell2l} width=*>" . moodlist($moodid) . "</td></tr>\n\t\t<tr>{$tccell1}>&nbsp</td>{$tccell2l} colspan=2>\n\t\t{$inph}=action VALUE=postthread>\n\t\t{$inph}=id VALUE={$id}>\n\t\t{$inps}=submit VALUE=\"Submit thread\">\n\t\t{$inps}=preview VALUE=\"Preview thread\"></td></tr>\n\t\t<tr>\n\t\t  {$tccell1}><b>Options:</b></td>{$tccell2l} colspan=2>\n\t\t\t{$inpc}=\"nosmilies\" id=\"nosmilies\" value=\"1\"{$nosmilieschk}><label for=\"nosmilies\">Disable Smilies</label> -\n\t\t\t{$inpc}=\"nolayout\" id=\"nolayout\" value=\"1\"{$nolayoutchk}><label for=\"nolayout\">Disable Layout</label> -\n\t\t\t{$inpc}=\"nohtml\" id=\"nohtml\" value=\"1\"{$nohtmlchk}><label for=\"nohtml\">Disable HTML</label></td></tr><tr>\n\t\t<!-- </FORM> -->\n\t" : "\n\t\t<tr>{$tccell1}><b>Poll icon:</td>\t{$tccell2l} colspan=2>{$posticonlist}</td></tr>\n\t\t<tr>{$tccell1}><b>Poll title:</td>\t{$tccell2l} colspan=2>{$inpt}=subject SIZE=40 MAXLENGTH=100 VALUE=\"" . stripslashes($subject) . "\"></td></tr>\n\t\t<tr>{$tccell1}><b>Question:</td>\t{$tccell2l} colspan=2>{$inpt}=question SIZE=60 MAXLENGTH=255 VALUE=\"" . stripslashes($question) . "\"></td></tr>\n\t\t<tr>{$tccell1}><b>Briefing:</td>\t{$tccell2l} colspan=2>{$txta}=briefing ROWS=2 COLS={$numcols} style=\"resize:vertical;\">" . stripslashes($briefing) . "</TEXTAREA></td></tr>\n\t\t<tr>{$tccell1}><b>Multi-voting:</td>{$tccell2l} colspan=2>{$radio}=mltvote value=0 {$checked0}> Disabled &nbsp {$radio}=mltvote value=1 {$checked1}> Enabled</td></tr>\n\t\t<tr>{$tccell1}><b>Choices:</td>\t{$tccell2l} colspan=2>{$choices}</td></tr>\n\t\t<tr>{$tccell1}><b>Post:</td>{$tccell2l} width=800px valign=top>" . replytoolbar(2) . "\n\t\t{$txta}=message ROWS=21 COLS={$numcols} style=\"width: 100%; max-width: 800px; resize:vertical;\">" . stripslashes(htmlspecialchars($message)) . "</TEXTAREA></td>\n\t\t{$tccell2l} width=*>" . moodlist($moodid) . "</td></tr>\n\n\t\t<tr>\n\t\t{$tccell1}>&nbsp</td>{$tccell2l} colspan=2>\n\t\t{$inph}=action VALUE=postthread>\n\t\t{$inph}=id VALUE={$id}>\n\t\t{$inph}=poll VALUE=1>\n\t\t{$inps}=submit VALUE=\"Submit poll\">\n\t\t{$inps}=preview VALUE=\"Preview poll\"></td>\n\t\t<tr>\n\t\t  {$tccell1}><b>Options:</b></td>{$tccell2l} colspan=2>\n\t\t\t{$inpc}=\"nosmilies\" id=\"nosmilies\" value=\"1\"{$nosmilieschk}><label for=\"nosmilies\">Disable Smilies</label> -\n\t\t\t{$inpc}=\"nolayout\" id=\"nolayout\" value=\"1\"{$nolayoutchk}><label for=\"nolayout\">Disable Layout</label> -\n\t\t\t{$inpc}=\"nohtml\" id=\"nohtml\" value=\"1\"{$nohtmlchk}><label for=\"nohtml\">Disable HTML</label></td></tr><tr>\n\t\t<!-- </FORM> -->\n\t";
if (!$_POST[action] or $_POST[paction]) {
    print "\n\t\t\t{$fonttag}<a href=index.php>{$boardname}</a> - <a href=forum.php?id={$forumid}>" . $forum[title] . "</a>\n\t\t\t<form action=newthread.php name=replier method=post autocomplete=\"off\">\n\t\t\t{$tblstart}\n\t\t";
    if ($log and $forums[$id][minpowerthread] > $power) {
        print "{$tccell1}>Sorry, but you are not allowed to post";
        if ($banned) {
            print ", because you are banned from this board.<br>" . redirect("forum.php?id={$id}", 'return to the forum', 0);
        } else {
            print ' in this restricted forum.<br>' . redirect('index.php', 'return to the board', 0);
        }
    } else {
        if ($log) {
            $username = $loguser['name'];
            $passhint = 'Alternate Login:'******'altlogin').style.cssText=''; this.style.cssText='display:none'\">Use an alternate login</a>\n\t\t\t\t\t<span id=\"altlogin\" style=\"display:none\">";
        } else {