Vergleich newreply.php - 1.6.10 - 1.6.11

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 40Zeile 40
}

// Get the pid and tid and replyto from the input.

}

// Get the pid and tid and replyto from the input.

$tid = $mybb->input['tid'];

$tid = intval($mybb->input['tid']);


$replyto = 0;
if($mybb->input['replyto'])


$replyto = 0;
if($mybb->input['replyto'])

Zeile 57Zeile 57
// Edit a draft post.
$pid = 0;
$editdraftpid = '';

// Edit a draft post.
$pid = 0;
$editdraftpid = '';

if($mybb->input['action'] == "editdraft" && $mybb->input['pid'])

if(($mybb->input['action'] == "editdraft" || $mybb->input['action'] == "do_newreply") && $mybb->input['pid'])

{
$options = array(
"limit" => 1

{
$options = array(
"limit" => 1

Zeile 106Zeile 106
$forumpermissions = forum_permissions($fid);

// See if everything is valid up to here.

$forumpermissions = forum_permissions($fid);

// See if everything is valid up to here.

if(isset($post) && (($post['visible'] == 0 && !is_moderator($fid)) || $post['visible'] == 0))

if(isset($post) && (($post['visible'] == 0 && !is_moderator($fid)) || ($post['visible'] < 0 && $post['uid'] != $mybb->user['uid'])))

{
error($lang->error_invalidpost);
}

{
error($lang->error_invalidpost);
}

Zeile 220Zeile 220
	// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


	// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


	if($mybb->input['action'] == "editdraft" || ($mybb->input['tid'] && $mybb->input['pid']))

	if($pid)

	{
$attachwhere = "pid='{$pid}'";
}

	{
$attachwhere = "pid='{$pid}'";
}

Zeile 470Zeile 470
		$postinfo = $posthandler->insert_post();
$pid = $postinfo['pid'];
$visible = $postinfo['visible'];

		$postinfo = $posthandler->insert_post();
$pid = $postinfo['pid'];
$visible = $postinfo['visible'];

 

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


// Deciding the fate
if($visible == -2)


// Deciding the fate
if($visible == -2)

Zeile 530Zeile 536
					else
{
my_unsetcookie("multiquote");

					else
{
my_unsetcookie("multiquote");

					}
}
}

					}
}
}

		}

$plugins->run_hooks("newreply_do_newreply_end");

		}

$plugins->run_hooks("newreply_do_newreply_end");

Zeile 709Zeile 715
					if($pid == $quoted_post['pid'])
{
$subject = preg_replace('#RE:\s?#i', '', $quoted_post['subject']);

					if($pid == $quoted_post['pid'])
{
$subject = preg_replace('#RE:\s?#i', '', $quoted_post['subject']);

 
						// Subject too long? Shorten it to avoid error message
if(my_strlen($subject) > 85)
{
$subject = my_substr($subject, 0, 82).'...';
}

						$subject = "RE: ".$subject;
}
$message .= parse_quoted_message($quoted_post);

						$subject = "RE: ".$subject;
}
$message .= parse_quoted_message($quoted_post);

Zeile 769Zeile 780
		$postoptions_subscriptionmethod_dont = $postoptions_subscriptionmethod_none = $postoptions_subscriptionmethod_instant = '';

if($postoptions['signature'] == 1)

		$postoptions_subscriptionmethod_dont = $postoptions_subscriptionmethod_none = $postoptions_subscriptionmethod_instant = '';

if($postoptions['signature'] == 1)

		{
$postoptionschecked['signature'] = " checked=\"checked\"";
}
if($postoptions['subscriptionmethod'] == "none")
{
$postoptions_subscriptionmethod_none = "checked=\"checked\"";
}
else if($postoptions['subscriptionmethod'] == "instant")
{
$postoptions_subscriptionmethod_instant = "checked=\"checked\"";
}
else
{
$postoptions_subscriptionmethod_dont = "checked=\"checked\"";
}
if($postoptions['disablesmilies'] == 1)
{
$postoptionschecked['disablesmilies'] = " checked=\"checked\"";
}

		{
$postoptionschecked['signature'] = " checked=\"checked\"";
}
if($postoptions['subscriptionmethod'] == "none")
{
$postoptions_subscriptionmethod_none = "checked=\"checked\"";
}
else if($postoptions['subscriptionmethod'] == "instant")
{
$postoptions_subscriptionmethod_instant = "checked=\"checked\"";
}
else
{
$postoptions_subscriptionmethod_dont = "checked=\"checked\"";
}
if($postoptions['disablesmilies'] == 1)
{
$postoptionschecked['disablesmilies'] = " checked=\"checked\"";
}

		$subject = $mybb->input['subject'];
}
elseif($mybb->input['action'] == "editdraft" && $mybb->user['uid'])

		$subject = $mybb->input['subject'];
}
elseif($mybb->input['action'] == "editdraft" && $mybb->user['uid'])

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

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

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

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

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

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

		{

		{

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

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

Zeile 839Zeile 850
		else
{
$postoptions_subscriptionmethod_dont = "checked=\"checked\"";

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

		}
}


		}
}


	if($forum['allowpicons'] != 0)
{
$posticons = get_post_icons();

	if($forum['allowpicons'] != 0)
{
$posticons = get_post_icons();

Zeile 965Zeile 976

if(!$pid && !$mybb->input['previewpost'])
{


if(!$pid && !$mybb->input['previewpost'])
{

		$subject = "RE: " . $thread['subject'];







		$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->input['posthash']);

	}

$posthash = htmlspecialchars_uni($mybb->input['posthash']);

Zeile 980Zeile 997
	if($forumpermissions['canpostattachments'] != 0)
{
$attachcount = 0;

	if($forumpermissions['canpostattachments'] != 0)
{
$attachcount = 0;

		if($mybb->input['action'] == "editdraft" && $mybb->input['pid'])

		if($pid)

		{
$attachwhere = "pid='$pid'";
}

		{
$attachwhere = "pid='$pid'";
}