Vergleich newthread.php - 1.6.12 - 1.6.13

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 434Zeile 434

if($mybb->input['action'] == "newthread" || $mybb->input['action'] == "editdraft")
{


if($mybb->input['action'] == "newthread" || $mybb->input['action'] == "editdraft")
{



 
	$plugins->run_hooks("newthread_start");

	$plugins->run_hooks("newthread_start");

 

// Do we have attachment errors?
if(count($errors) > 0)
{
$thread_errors = inline_error($errors);
}


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


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

Zeile 449Zeile 454
			foreach($multiquoted as $post)
{
$quoted_posts[$post] = intval($post);

			foreach($multiquoted as $post)
{
$quoted_posts[$post] = intval($post);

			}

			}

		}

// Quoting more than one post - fetch them

		}

// Quoting more than one post - fetch them

Zeile 461Zeile 466
			if($unviewable_forums)
{
$unviewable_forums = "AND t.fid NOT IN ({$unviewable_forums})";

			if($unviewable_forums)
{
$unviewable_forums = "AND t.fid NOT IN ({$unviewable_forums})";

			}

			}


if(is_moderator($fid))
{
$visible_where = "AND p.visible != 2";


if(is_moderator($fid))
{
$visible_where = "AND p.visible != 2";

			}

			}

			else
{
$visible_where = "AND p.visible > 0";

			else
{
$visible_where = "AND p.visible > 0";

Zeile 541Zeile 546
	{
$postoptions = $mybb->input['postoptions'];
if($postoptions['signature'] == 1)

	{
$postoptions = $mybb->input['postoptions'];
if($postoptions['signature'] == 1)

		{

		{

			$postoptionschecked['signature'] = " checked=\"checked\"";
}
if($postoptions['subscriptionmethod'] == "none")

			$postoptionschecked['signature'] = " checked=\"checked\"";
}
if($postoptions['subscriptionmethod'] == "none")

		{

		{

			$postoptions_subscriptionmethod_none = "checked=\"checked\"";
}
else if($postoptions['subscriptionmethod'] == "instant")

			$postoptions_subscriptionmethod_none = "checked=\"checked\"";
}
else if($postoptions['subscriptionmethod'] == "instant")

Zeile 559Zeile 564
		if($postoptions['disablesmilies'] == 1)
{
$postoptionschecked['disablesmilies'] = " checked=\"checked\"";

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

		}

		}

		if($mybb->input['postpoll'] == 1)
{
$postpollchecked = "checked=\"checked\"";

		if($mybb->input['postpoll'] == 1)
{
$postpollchecked = "checked=\"checked\"";

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

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

		{

		{

			$postoptionschecked['disablesmilies'] = " checked=\"checked\"";
}
$icon = $post['icon'];

			$postoptionschecked['disablesmilies'] = " checked=\"checked\"";
}
$icon = $post['icon'];

Zeile 591Zeile 596
			$postoptions_subscriptionmethod_none = "checked=\"checked\"";
}
else if($postoptions['subscriptionmethod'] == "instant")

			$postoptions_subscriptionmethod_none = "checked=\"checked\"";
}
else if($postoptions['subscriptionmethod'] == "instant")

		{
$postoptions_subscriptionmethod_instant = "checked=\"checked\"";
}
else
{

		{
$postoptions_subscriptionmethod_instant = "checked=\"checked\"";
}
else
{

			$postoptions_subscriptionmethod_dont = "checked=\"checked\"";
}
}

			$postoptions_subscriptionmethod_dont = "checked=\"checked\"";
}
}

Zeile 604Zeile 609
	else
{
if($mybb->user['signature'] != '')

	else
{
if($mybb->user['signature'] != '')

		{

		{

			$postoptionschecked['signature'] = " checked=\"checked\"";
}
if($mybb->user['subscriptionmethod'] == 1)

			$postoptionschecked['signature'] = " checked=\"checked\"";
}
if($mybb->user['subscriptionmethod'] == 1)

Zeile 614Zeile 619
		else if($mybb->user['subscriptionmethod'] == 2)
{
$postoptions_subscriptionmethod_instant = "checked=\"checked\"";

		else if($mybb->user['subscriptionmethod'] == 2)
{
$postoptions_subscriptionmethod_instant = "checked=\"checked\"";

		}
else

		}
else

		{
$postoptions_subscriptionmethod_dont = "checked=\"checked\"";
}

		{
$postoptions_subscriptionmethod_dont = "checked=\"checked\"";
}

Zeile 653Zeile 658
		// Now let the post handler do all the hard work.
$valid_thread = $posthandler->verify_message();
$valid_subject = $posthandler->verify_subject();

		// Now let the post handler do all the hard work.
$valid_thread = $posthandler->verify_message();
$valid_subject = $posthandler->verify_subject();





		$post_errors = array();
// Fetch friendly error messages if this is an invalid post
if(!$valid_thread || !$valid_subject)

		$post_errors = array();
// Fetch friendly error messages if this is an invalid post
if(!$valid_thread || !$valid_subject)

Zeile 728Zeile 733
	{
$message = htmlspecialchars_uni($mybb->input['message']);
$subject = htmlspecialchars_uni($mybb->input['subject']);

	{
$message = htmlspecialchars_uni($mybb->input['message']);
$subject = htmlspecialchars_uni($mybb->input['subject']);

	}

// Do we have attachment errors?
if(count($errors) > 0)
{
$thread_errors = inline_error($errors);

 
	}

// Generate thread prefix selector

	}

// Generate thread prefix selector