Vergleich newthread.php - 1.8.21 - 1.8.25

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 14Zeile 14
$templatelist = "newthread,previewpost,loginbox,changeuserbox,newthread_postpoll,posticons,codebuttons,postbit,post_attachments_attachment_unapproved,newreply_modoptions_close,newreply_modoptions_stick";
$templatelist .= ",newthread_disablesmilies,post_attachments_new,post_attachments,post_savedraftbutton,post_subscription_method,post_attachments_attachment_remove,postbit_warninglevel_formatted,postbit_icon";
$templatelist .= ",forumdisplay_rules,forumdisplay_rules_link,post_attachments_attachment_postinsert,post_attachments_attachment,newthread_signature,post_prefixselect_prefix,post_prefixselect_single,posticons_icon";

$templatelist = "newthread,previewpost,loginbox,changeuserbox,newthread_postpoll,posticons,codebuttons,postbit,post_attachments_attachment_unapproved,newreply_modoptions_close,newreply_modoptions_stick";
$templatelist .= ",newthread_disablesmilies,post_attachments_new,post_attachments,post_savedraftbutton,post_subscription_method,post_attachments_attachment_remove,postbit_warninglevel_formatted,postbit_icon";
$templatelist .= ",forumdisplay_rules,forumdisplay_rules_link,post_attachments_attachment_postinsert,post_attachments_attachment,newthread_signature,post_prefixselect_prefix,post_prefixselect_single,posticons_icon";

$templatelist .= ",post_captcha_hidden,post_captcha_recaptcha_invisible,post_captcha_nocaptcha,post_javascript,postbit_gotopost,newthread_postoptions,post_attachments_add,post_attachments_viewlink";

$templatelist .= ",post_captcha_hidden,post_captcha_recaptcha_invisible,post_captcha_nocaptcha,post_captcha_hcaptcha_invisible,post_captcha_hcaptcha,post_javascript,postbit_gotopost,newthread_postoptions,post_attachments_add,post_attachments_viewlink";

$templatelist .= ",postbit_avatar,postbit_find,postbit_pm,postbit_rep_button,postbit_www,postbit_email,postbit_reputation,postbit_warn,postbit_warninglevel,postbit_author_user,postbit_author_guest,post_captcha";
$templatelist .= ",postbit_signature,postbit_classic,postbit_attachments_thumbnails_thumbnail,postbit_attachments_images_image,postbit_attachments_attachment,postbit_attachments_attachment_unapproved";
$templatelist .= ",postbit_attachments_thumbnails,postbit_attachments_images,postbit_attachments,postbit_reputation_formatted_link,post_attachments_update,postbit_offline,newreply_modoptions,newthread_multiquote_external";

$templatelist .= ",postbit_avatar,postbit_find,postbit_pm,postbit_rep_button,postbit_www,postbit_email,postbit_reputation,postbit_warn,postbit_warninglevel,postbit_author_user,postbit_author_guest,post_captcha";
$templatelist .= ",postbit_signature,postbit_classic,postbit_attachments_thumbnails_thumbnail,postbit_attachments_images_image,postbit_attachments_attachment,postbit_attachments_attachment_unapproved";
$templatelist .= ",postbit_attachments_thumbnails,postbit_attachments_images,postbit_attachments,postbit_reputation_formatted_link,post_attachments_update,postbit_offline,newreply_modoptions,newthread_multiquote_external";

Zeile 157Zeile 157
$maximageserror = $attacherror = '';

// Handle attachments if we've got any.

$maximageserror = $attacherror = '';

// Handle attachments if we've got any.

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

if($mybb->settings['enableattachments'] == 1 && ($mybb->get_input('newattachment') || $mybb->get_input('updateattachment') || ((($mybb->input['action'] == "do_newthread" && $mybb->get_input('submit')) || ($mybb->input['action'] == "newthread" && 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 180Zeile 180
		$errors = $ret['errors'];
}


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


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

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

	{
$mybb->input['action'] = "newthread";
}
}

	{
$mybb->input['action'] = "newthread";
}
}

 

detect_attachmentact();


// Are we removing an attachment from the thread?
if($mybb->settings['enableattachments'] == 1 && $mybb->get_input('attachmentaid', MyBB::INPUT_INT) && $mybb->get_input('attachmentact') == "remove")


// Are we removing an attachment from the thread?
if($mybb->settings['enableattachments'] == 1 && $mybb->get_input('attachmentaid', MyBB::INPUT_INT) && $mybb->get_input('attachmentact') == "remove")

Zeile 392Zeile 394
			foreach($post_captcha->get_errors() as $error)
{
$post_errors[] = $error;

			foreach($post_captcha->get_errors() as $error)
{
$post_errors[] = $error;

			}
}
else

			}
}
else

		{
$hide_captcha = true;
}

		{
$hide_captcha = true;
}

	}

	}


// One or more errors returned, fetch error list and throw to newthread page
if(count($post_errors) > 0)
{
$thread_errors = inline_error($post_errors);
$mybb->input['action'] = "newthread";


// One or more errors returned, fetch error list and throw to newthread page
if(count($post_errors) > 0)
{
$thread_errors = inline_error($post_errors);
$mybb->input['action'] = "newthread";

	}

	}

	// No errors were found, it is safe to insert the thread.
else
{
$thread_info = $posthandler->insert_thread();
$tid = $thread_info['tid'];
$visible = $thread_info['visible'];

	// No errors were found, it is safe to insert the thread.
else
{
$thread_info = $posthandler->insert_thread();
$tid = $thread_info['tid'];
$visible = $thread_info['visible'];





		// Invalidate solved captcha
if($mybb->settings['captchaimage'] && !$mybb->user['uid'])
{
$post_captcha->invalidate_captcha();

		// Invalidate solved captcha
if($mybb->settings['captchaimage'] && !$mybb->user['uid'])
{
$post_captcha->invalidate_captcha();

		}

$force_redirect = false;


		}

$force_redirect = false;


		// Mark thread as read
require_once MYBB_ROOT."inc/functions_indicators.php";
mark_thread_read($tid, $fid);

		// Mark thread as read
require_once MYBB_ROOT."inc/functions_indicators.php";
mark_thread_read($tid, $fid);

Zeile 430Zeile 432
		{
$lang->redirect_newthread = $lang->draft_saved;
$url = "usercp.php?action=drafts";

		{
$lang->redirect_newthread = $lang->draft_saved;
$url = "usercp.php?action=drafts";

		}


		}


		// A poll was being posted with this thread, throw them to poll posting page.
else if($mybb->get_input('postpoll', MyBB::INPUT_INT) && $forumpermissions['canpostpolls'])
{

		// A poll was being posted with this thread, throw them to poll posting page.
else if($mybb->get_input('postpoll', MyBB::INPUT_INT) && $forumpermissions['canpostpolls'])
{

Zeile 444Zeile 446
		{
// Moderated thread
$lang->redirect_newthread .= $lang->redirect_newthread_moderation;

		{
// Moderated thread
$lang->redirect_newthread .= $lang->redirect_newthread_moderation;

			$url = get_forum_link($fid);

			$url = get_forum_link($fid);


// User must see moderation notice, regardless of redirect settings
$force_redirect = true;


// User must see moderation notice, regardless of redirect settings
$force_redirect = true;

Zeile 470Zeile 472

// 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 497Zeile 499
	if(count($errors) > 0)
{
$thread_errors = inline_error($errors);

	if(count($errors) > 0)
{
$thread_errors = inline_error($errors);

	}

$multiquote_external = $quoted_ids = '';


	}

$multiquote_external = $quoted_ids = '';


	$subject = $message = '';
// If this isn't a preview and we're not editing a draft, then handle quoted posts
if(empty($mybb->input['previewpost']) && !$thread_errors && $mybb->input['action'] != "editdraft")

	$subject = $message = '';
// If this isn't a preview and we're not editing a draft, then handle quoted posts
if(empty($mybb->input['previewpost']) && !$thread_errors && $mybb->input['action'] != "editdraft")

Zeile 594Zeile 596
				if($external_quotes > 0)
{
if($external_quotes == 1)

				if($external_quotes > 0)
{
if($external_quotes == 1)

					{

					{

						$multiquote_text = $lang->multiquote_external_one;
$multiquote_deselect = $lang->multiquote_external_one_deselect;
$multiquote_quote = $lang->multiquote_external_one_quote;

						$multiquote_text = $lang->multiquote_external_one;
$multiquote_deselect = $lang->multiquote_external_one_deselect;
$multiquote_quote = $lang->multiquote_external_one_quote;

					}

					}

					else
{
$multiquote_text = $lang->sprintf($lang->multiquote_external, $external_quotes);

					else
{
$multiquote_text = $lang->sprintf($lang->multiquote_external, $external_quotes);

Zeile 607Zeile 609
					}
eval("\$multiquote_external = \"".$templates->get("newthread_multiquote_external")."\";");
}

					}
eval("\$multiquote_external = \"".$templates->get("newthread_multiquote_external")."\";");
}

			}

			}

		}
}


		}
}


Zeile 1028Zeile 1030
			{
$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)