Zeile 177 | Zeile 177 |
---|
{ error($lang->redirect_threadclosed); }
|
{ error($lang->redirect_threadclosed); }
|
}
// Is the currently logged in user a moderator of this forum? if(is_moderator($fid)) { $ismod = true; } else { $ismod = false;
| |
}
// No weird actions allowed, show new reply form if no regular action.
| }
// No weird actions allowed, show new reply form if no regular action.
|
Zeile 416 | Zeile 406 |
---|
$postoptions = $mybb->get_input('postoptions', MyBB::INPUT_ARRAY); if(!isset($postoptions['signature']))
|
$postoptions = $mybb->get_input('postoptions', MyBB::INPUT_ARRAY); if(!isset($postoptions['signature']))
|
{
| {
|
$postoptions['signature'] = 0; } if(!isset($postoptions['subscriptionmethod']))
| $postoptions['signature'] = 0; } if(!isset($postoptions['subscriptionmethod']))
|
Zeile 471 | Zeile 461 |
---|
else { $hide_captcha = true;
|
else { $hide_captcha = true;
|
}
| }
|
if($mybb->get_input('ajax', MyBB::INPUT_INT)) { if($post_captcha->type == 1)
| if($mybb->get_input('ajax', MyBB::INPUT_INT)) { if($post_captcha->type == 1)
|
Zeile 487 | Zeile 477 |
---|
);
$db->insert_query("captcha", $imagearray);
|
);
$db->insert_query("captcha", $imagearray);
|
|
|
//header("Content-type: text/html; charset={$lang->settings['charset']}"); $data = ''; $data .= "<captcha>$imagehash";
|
//header("Content-type: text/html; charset={$lang->settings['charset']}"); $data = ''; $data .= "<captcha>$imagehash";
|
|
|
if($hide_captcha) { $data .= "|$randomstr"; }
|
if($hide_captcha) { $data .= "|$randomstr"; }
|
|
|
$data .= "</captcha>";
|
$data .= "</captcha>";
|
//header("Content-type: application/json; charset={$lang->settings['charset']}"); $json_data = array("data" => $data); }
| //header("Content-type: application/json; charset={$lang->settings['charset']}"); $json_data = array("data" => $data); }
|
else if($post_captcha->type == 2) { //header("Content-type: text/html; charset={$lang->settings['charset']}");
| else if($post_captcha->type == 2) { //header("Content-type: text/html; charset={$lang->settings['charset']}");
|
Zeile 515 | Zeile 505 |
---|
// One or more errors returned, fetch error list and throw to newreply page if(count($post_errors) > 0)
|
// One or more errors returned, fetch error list and throw to newreply page if(count($post_errors) > 0)
|
{
| {
|
$reply_errors = inline_error($post_errors, '', $json_data); $mybb->input['action'] = "newreply"; }
| $reply_errors = inline_error($post_errors, '', $json_data); $mybb->input['action'] = "newreply"; }
|
Zeile 530 | Zeile 520 |
---|
if($mybb->settings['captchaimage'] && !$mybb->user['uid']) { $post_captcha->invalidate_captcha();
|
if($mybb->settings['captchaimage'] && !$mybb->user['uid']) { $post_captcha->invalidate_captcha();
|
}
| }
|
$force_redirect = false;
// Deciding the fate
| $force_redirect = false;
// Deciding the fate
|
Zeile 540 | Zeile 530 |
---|
// Draft post $lang->redirect_newreply = $lang->draft_saved; $url = "usercp.php?action=drafts";
|
// Draft post $lang->redirect_newreply = $lang->draft_saved; $url = "usercp.php?action=drafts";
|
}
| }
|
elseif($visible == 1) { // Visible post
| elseif($visible == 1) { // Visible post
|
Zeile 559 | Zeile 549 |
---|
// Mark any quoted posts so they're no longer selected - attempts to maintain those which weren't selected if(isset($mybb->input['quoted_ids']) && isset($mybb->cookies['multiquote']) && $mybb->settings['multiquote'] != 0)
|
// Mark any quoted posts so they're no longer selected - attempts to maintain those which weren't selected if(isset($mybb->input['quoted_ids']) && isset($mybb->cookies['multiquote']) && $mybb->settings['multiquote'] != 0)
|
{
| {
|
// We quoted all posts - remove the entire cookie if($mybb->get_input('quoted_ids') == "all") {
| // We quoted all posts - remove the entire cookie if($mybb->get_input('quoted_ids') == "all") {
|
Zeile 604 | Zeile 594 |
---|
if($visible == 1) { // Set post counter
|
if($visible == 1) { // Set post counter
|
if($ismod == true)
| $postcounter = $thread['replies'] + 1;
if(is_moderator($fid, "canviewunapprove"))
|
{
|
{
|
$postcounter = $thread['replies'] + $thread['unapprovedposts'] + 1;
| $postcounter += $thread['unapprovedposts'];
|
}
|
}
|
else
| if(is_moderator($fid, "canviewdeleted"))
|
{
|
{
|
$postcounter = $thread['replies'] + 1;
| $postcounter += $thread['deletedposts'];
|
}
// Was there a new post since we hit the quick reply button?
| }
// Was there a new post since we hit the quick reply button?
|
Zeile 794 | Zeile 786 |
---|
if($quoted_post['tid'] == $tid || $load_all == 1) { // If this post was the post for which a quote button was clicked, set the subject
|
if($quoted_post['tid'] == $tid || $load_all == 1) { // If this post was the post for which a quote button was clicked, set the subject
|
if($pid == $quoted_post['pid'])
| if($replyto == $quoted_post['pid'])
|
{
|
{
|
$subject = preg_replace('#RE:\s?#i', '', $quoted_post['subject']);
| $subject = preg_replace('#^RE:\s?#i', '', $quoted_post['subject']);
|
// Subject too long? Shorten it to avoid error message if(my_strlen($subject) > 85) {
| // Subject too long? Shorten it to avoid error message if(my_strlen($subject) > 85) {
|
Zeile 864 | Zeile 856 |
---|
$postoptions = $mybb->get_input('postoptions', MyBB::INPUT_ARRAY);
if(isset($postoptions['signature']) && $postoptions['signature'] == 1)
|
$postoptions = $mybb->get_input('postoptions', MyBB::INPUT_ARRAY);
if(isset($postoptions['signature']) && $postoptions['signature'] == 1)
|
{ $postoptionschecked['signature'] = " checked=\"checked\""; } if(isset($postoptions['subscriptionmethod']) && $postoptions['subscriptionmethod'] == "none") { $postoptions_subscriptionmethod_none = "checked=\"checked\""; } else if(isset($postoptions['subscriptionmethod']) && $postoptions['subscriptionmethod'] == "email") { $postoptions_subscriptionmethod_email = "checked=\"checked\""; } else if(isset($postoptions['subscriptionmethod']) && $postoptions['subscriptionmethod'] == "pm") {
| { $postoptionschecked['signature'] = " checked=\"checked\""; } if(isset($postoptions['subscriptionmethod']) && $postoptions['subscriptionmethod'] == "none") { $postoptions_subscriptionmethod_none = "checked=\"checked\""; } else if(isset($postoptions['subscriptionmethod']) && $postoptions['subscriptionmethod'] == "email") { $postoptions_subscriptionmethod_email = "checked=\"checked\""; } else if(isset($postoptions['subscriptionmethod']) && $postoptions['subscriptionmethod'] == "pm") {
|
$postoptions_subscriptionmethod_pm = "checked=\"checked\""; } else
| $postoptions_subscriptionmethod_pm = "checked=\"checked\""; } else
|
Zeile 906 | Zeile 898 |
---|
$postoptions_subscriptionmethod_none = "checked=\"checked\""; } else if(isset($postoptions['subscriptionmethod']) && $postoptions['subscriptionmethod'] == "email")
|
$postoptions_subscriptionmethod_none = "checked=\"checked\""; } else if(isset($postoptions['subscriptionmethod']) && $postoptions['subscriptionmethod'] == "email")
|
{ $postoptions_subscriptionmethod_email = "checked=\"checked\""; } else if(isset($postoptions['subscriptionmethod']) && $postoptions['subscriptionmethod'] == "pm")
| { $postoptions_subscriptionmethod_email = "checked=\"checked\""; } else if(isset($postoptions['subscriptionmethod']) && $postoptions['subscriptionmethod'] == "pm")
|
{ $postoptions_subscriptionmethod_pm = "checked=\"checked\"";
|
{ $postoptions_subscriptionmethod_pm = "checked=\"checked\"";
|
}
| }
|
else { $postoptions_subscriptionmethod_dont = "checked=\"checked\""; } $mybb->input['icon'] = $post['icon'];
|
else { $postoptions_subscriptionmethod_dont = "checked=\"checked\""; } $mybb->input['icon'] = $post['icon'];
|
}
| }
|
else { if($mybb->user['signature'] != '')
|
else { if($mybb->user['signature'] != '')
|
{
| {
|
$postoptionschecked['signature'] = " checked=\"checked\"";
|
$postoptionschecked['signature'] = " checked=\"checked\"";
|
}
| }
|
if($mybb->user['subscriptionmethod'] == 1) { $postoptions_subscriptionmethod_none = "checked=\"checked\"";
|
if($mybb->user['subscriptionmethod'] == 1) { $postoptions_subscriptionmethod_none = "checked=\"checked\"";
|
}
| }
|
else if($mybb->user['subscriptionmethod'] == 2) { $postoptions_subscriptionmethod_email = "checked=\"checked\"";
| else if($mybb->user['subscriptionmethod'] == 2) { $postoptions_subscriptionmethod_email = "checked=\"checked\"";
|
Zeile 958 | Zeile 950 |
---|
else { $subject = $thread['subject'];
|
else { $subject = $thread['subject'];
|
| // Subject too long? Shorten it to avoid error message if(my_strlen($subject) > 85) { $subject = my_substr($subject, 0, 82).'...'; } $subject = "RE: ".$subject;
|
} }
| } }
|
Zeile 990 | Zeile 988 |
---|
// Set up posthandler. require_once MYBB_ROOT."inc/datahandlers/post.php"; $posthandler = new PostDataHandler("insert");
|
// Set up posthandler. require_once MYBB_ROOT."inc/datahandlers/post.php"; $posthandler = new PostDataHandler("insert");
|
| $posthandler->action = "post";
|
// Set the post data that came from the input to the $post array. $post = array(
| // Set the post data that came from the input to the $post array. $post = array(
|
Zeile 1102 | Zeile 1101 |
---|
}
$subject = htmlspecialchars_uni($parser->parse_badwords($subject));
|
}
$subject = htmlspecialchars_uni($parser->parse_badwords($subject));
|
if(!$pid && !isset($mybb->input['previewpost'])) { $subject = $thread['subject']; // Subject too long? Shorten it to avoid error message if(my_strlen($subject) > 85) { $subject = my_substr($subject, 0, 82).'...'; } $subject = "RE: ".$subject; }
| |
$posthash = htmlspecialchars_uni($mybb->get_input('posthash'));
| $posthash = htmlspecialchars_uni($mybb->get_input('posthash'));
|