Vergleich newreply.php - 1.8.22 - 1.8.24

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 15Zeile 15
$templatelist .= ",codebuttons,post_attachments_new,post_attachments,post_savedraftbutton,newreply_modoptions,newreply_threadreview_more,postbit_online,postbit_pm,newreply_disablesmilies_hidden,post_attachments_update";
$templatelist .= ",postbit_warninglevel,postbit_author_user,postbit_edit,postbit_quickdelete,postbit_inlinecheck,postbit_posturl,postbit_quote,postbit_multiquote,newreply_modoptions_close,newreply_modoptions_stick";
$templatelist .= ",post_attachments_attachment_postinsert,post_attachments_attachment_remove,post_attachments_attachment_unapproved,post_attachments_attachment,post_attachments_viewlink,postbit_attachments_attachment,newreply_signature";

$templatelist .= ",codebuttons,post_attachments_new,post_attachments,post_savedraftbutton,newreply_modoptions,newreply_threadreview_more,postbit_online,postbit_pm,newreply_disablesmilies_hidden,post_attachments_update";
$templatelist .= ",postbit_warninglevel,postbit_author_user,postbit_edit,postbit_quickdelete,postbit_inlinecheck,postbit_posturl,postbit_quote,postbit_multiquote,newreply_modoptions_close,newreply_modoptions_stick";
$templatelist .= ",post_attachments_attachment_postinsert,post_attachments_attachment_remove,post_attachments_attachment_unapproved,post_attachments_attachment,post_attachments_viewlink,postbit_attachments_attachment,newreply_signature";

$templatelist .= ",post_captcha_recaptcha_invisible,post_captcha_hidden,post_captcha,post_captcha_nocaptcha,post_javascript,postbit_groupimage,postbit_attachments,newreply_postoptions";

$templatelist .= ",post_captcha_recaptcha_invisible,post_captcha_hidden,post_captcha,post_captcha_nocaptcha,post_captcha_hcaptcha_invisible,post_captcha_hcaptcha,post_javascript,postbit_groupimage,postbit_attachments,newreply_postoptions";

$templatelist .= ",postbit_rep_button,postbit_author_guest,postbit_signature,postbit_classic,postbit_attachments_thumbnails_thumbnailpostbit_attachments_images_image,postbit_attachments_attachment_unapproved";
$templatelist .= ",postbit_attachments_thumbnails,postbit_attachments_images,postbit_gotopost,forumdisplay_password_wrongpass,forumdisplay_password,posticons_icon,attachment_icon,postbit_reputation_formatted_link";
$templatelist .= ",global_moderation_notice,newreply_disablesmilies,postbit_userstar,newreply_draftinput,postbit_avatar,forumdisplay_rules,postbit_offline,postbit_find,postbit_warninglevel_formatted,postbit_ignored";

$templatelist .= ",postbit_rep_button,postbit_author_guest,postbit_signature,postbit_classic,postbit_attachments_thumbnails_thumbnailpostbit_attachments_images_image,postbit_attachments_attachment_unapproved";
$templatelist .= ",postbit_attachments_thumbnails,postbit_attachments_images,postbit_gotopost,forumdisplay_password_wrongpass,forumdisplay_password,posticons_icon,attachment_icon,postbit_reputation_formatted_link";
$templatelist .= ",global_moderation_notice,newreply_disablesmilies,postbit_userstar,newreply_draftinput,postbit_avatar,forumdisplay_rules,postbit_offline,postbit_find,postbit_warninglevel_formatted,postbit_ignored";

Zeile 203Zeile 203

$errors = array();
$maximageserror = $attacherror = '';


$errors = array();
$maximageserror = $attacherror = '';

if($mybb->settings['enableattachments'] == 1 && !$mybb->get_input('attachmentaid', MyBB::INPUT_INT) && ($mybb->get_input('newattachment') || $mybb->get_input('updateattachment') || ($mybb->input['action'] == "do_newreply" && $mybb->get_input('submit') && $_FILES['attachment'])))

if($mybb->settings['enableattachments'] == 1 && ($mybb->get_input('newattachment') || $mybb->get_input('updateattachment') || ((($mybb->input['action'] == "do_newreply" && $mybb->get_input('submit')) || ($mybb->input['action'] == "newreply" && isset($mybb->input['previewpost'])) || isset($mybb->input['savedraft'])) && $_FILES['attachments'])))

{
// Verify incoming POST request
verify_post_check($mybb->get_input('my_post_key'));

{
// Verify incoming POST request
verify_post_check($mybb->get_input('my_post_key'));

Zeile 226Zeile 226
		$errors = $ret['errors'];
}


		$errors = $ret['errors'];
}


	// If we were dealing with an attachment but didn't click 'Post Reply', force the new reply page again.
if(!$mybb->get_input('submit'))

	// If we were dealing with an attachment but didn't click 'Post Reply' or 'Save as Draft', force the new reply page again.
if(!$mybb->get_input('submit') && !$mybb->get_input('savedraft'))

	{
eval("\$editdraftpid = \"".$templates->get("newreply_draftinput")."\";");
$mybb->input['action'] = "newreply";
}
}

	{
eval("\$editdraftpid = \"".$templates->get("newreply_draftinput")."\";");
$mybb->input['action'] = "newreply";
}
}

 

detect_attachmentact();


// Remove an attachment.
if($mybb->settings['enableattachments'] == 1 && $mybb->get_input('attachmentaid', MyBB::INPUT_INT) && $mybb->get_input('attachmentact') == "remove")


// Remove an attachment.
if($mybb->settings['enableattachments'] == 1 && $mybb->get_input('attachmentaid', MyBB::INPUT_INT) && $mybb->get_input('attachmentact') == "remove")

Zeile 700Zeile 702

$quote_ids = $multiquote_external = '';
// If this isn't a preview and we're not editing a draft, then handle quoted posts


$quote_ids = $multiquote_external = '';
// If this isn't a preview and we're not editing a draft, then handle quoted posts

	if(empty($mybb->input['previewpost']) && !$reply_errors && $mybb->input['action'] != "editdraft" && !$mybb->get_input('attachmentaid', MyBB::INPUT_INT) && !$mybb->get_input('newattachment') && !$mybb->get_input('updateattachment') && !$mybb->get_input('rem'))

	if(empty($mybb->input['previewpost']) && !$reply_errors && $mybb->input['action'] != "editdraft" && !$mybb->get_input('attachmentaid', MyBB::INPUT_INT) && !$mybb->get_input('newattachment') && !$mybb->get_input('updateattachment'))

	{
$message = '';
$quoted_posts = array();

	{
$message = '';
$quoted_posts = array();

Zeile 823Zeile 825
				eval("\$multiquote_external = \"".$templates->get("newreply_multiquote_external")."\";");
}
if(is_array($quoted_ids) && count($quoted_ids) > 0)

				eval("\$multiquote_external = \"".$templates->get("newreply_multiquote_external")."\";");
}
if(is_array($quoted_ids) && count($quoted_ids) > 0)

			{

			{

				$quoted_ids = implode("|", $quoted_ids);
}
}

				$quoted_ids = implode("|", $quoted_ids);
}
}

Zeile 853Zeile 855
		$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\"";

			$postoptionschecked['signature'] = " checked=\"checked\"";

		}

		}

		if(isset($postoptions['disablesmilies']) && $postoptions['disablesmilies'] == 1)
{
$postoptionschecked['disablesmilies'] = " checked=\"checked\"";

		if(isset($postoptions['disablesmilies']) && $postoptions['disablesmilies'] == 1)
{
$postoptionschecked['disablesmilies'] = " checked=\"checked\"";

Zeile 869Zeile 871
		$subject = $post['subject'];
if($post['includesig'] != 0)
{

		$subject = $post['subject'];
if($post['includesig'] != 0)
{

			$postoptionschecked['signature'] = " checked=\"checked\"";
}
if($post['smilieoff'] == 1)
{

			$postoptionschecked['signature'] = " checked=\"checked\"";
}
if($post['smilieoff'] == 1)
{

			$postoptionschecked['disablesmilies'] = " checked=\"checked\"";
}
$subscription_method = get_subscription_method($tid); // Subscription method doesn't get saved in drafts

			$postoptionschecked['disablesmilies'] = " checked=\"checked\"";
}
$subscription_method = get_subscription_method($tid); // Subscription method doesn't get saved in drafts

Zeile 883Zeile 885
		if($mybb->user['signature'] != '')
{
$postoptionschecked['signature'] = " checked=\"checked\"";

		if($mybb->user['signature'] != '')
{
$postoptionschecked['signature'] = " checked=\"checked\"";

		}

		}

		$subscription_method = get_subscription_method($tid);
}
${$subscription_method.'subscribe'} = "checked=\"checked\" ";

		$subscription_method = get_subscription_method($tid);
}
${$subscription_method.'subscribe'} = "checked=\"checked\" ";

Zeile 942Zeile 944
		require_once MYBB_ROOT."inc/datahandlers/post.php";
$posthandler = new PostDataHandler("insert");
$posthandler->action = "post";

		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(
"tid" => $mybb->get_input('tid', MyBB::INPUT_INT),

		// Set the post data that came from the input to the $post array.
$post = array(
"tid" => $mybb->get_input('tid', MyBB::INPUT_INT),

Zeile 1175Zeile 1177
			{
$post_captcha->build_captcha();
}

			{
$post_captcha->build_captcha();
}

			elseif(in_array($post_captcha->type, array(4, 5)))

			elseif(in_array($post_captcha->type, array(4, 5, 8)))

			{
$post_captcha->build_recaptcha();
}

			{
$post_captcha->build_recaptcha();
}

 
			elseif(in_array($post_captcha->type, array(6, 7)))
{
$post_captcha->build_hcaptcha();
}
}
else if($correct && (in_array($post_captcha->type, array(4, 5, 8))))
{
$post_captcha->build_recaptcha();

		}

		}

		else if($correct && (in_array($post_captcha->type, array(4, 5))))

		else if($correct && (in_array($post_captcha->type, array(6, 7))))

		{

		{

			$post_captcha->build_recaptcha();

			$post_captcha->build_hcaptcha();

		}

if($post_captcha->html)

		}

if($post_captcha->html)