Vergleich newreply.php - 1.8.32 - 1.8.38

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 230Zeile 230
				eval("\$postinsert = \"".$templates->get("post_attachments_attachment_postinsert")."\";");
}
eval("\$attach_rem_options = \"".$templates->get("post_attachments_attachment_remove")."\";");

				eval("\$postinsert = \"".$templates->get("post_attachments_attachment_postinsert")."\";");
}
eval("\$attach_rem_options = \"".$templates->get("post_attachments_attachment_remove")."\";");

 
			$attach_mod_options = '';

			eval("\$attemplate = \"".$templates->get("post_attachments_attachment")."\";");
$ret['template'] = $attemplate;


			eval("\$attemplate = \"".$templates->get("post_attachments_attachment")."\";");
$ret['template'] = $attemplate;


Zeile 572Zeile 573
			{
$quoted_ids = explode("|", $mybb->get_input('quoted_ids'));
$multiquote = explode("|", $mybb->cookies['multiquote']);

			{
$quoted_ids = explode("|", $mybb->get_input('quoted_ids'));
$multiquote = explode("|", $mybb->cookies['multiquote']);

				if(is_array($multiquote) && is_array($quoted_ids))

				if(!empty($multiquote) && !empty($quoted_ids))

				{
foreach($multiquote as $key => $quoteid)
{

				{
foreach($multiquote as $key => $quoteid)
{

Zeile 583Zeile 584
						}
}
// Still have an array - set the new cookie

						}
}
// Still have an array - set the new cookie

					if(is_array($multiquote))

					if(!empty($multiquote))

					{
$new_multiquote = implode(",", $multiquote);
my_setcookie("multiquote", $new_multiquote);

					{
$new_multiquote = implode(",", $multiquote);
my_setcookie("multiquote", $new_multiquote);

Zeile 699Zeile 700
				if($closed == 1)
{
$data .= "$('#quick_reply_form .trow1').removeClass('trow1 trow2').addClass('trow_shaded');\n";

				if($closed == 1)
{
$data .= "$('#quick_reply_form .trow1').removeClass('trow1 trow2').addClass('trow_shaded');\n";

				}
else

				}
else

				{
$data .= "$('#quick_reply_form .trow_shaded').removeClass('trow_shaded').addClass('trow1');\n";
}

$data .= "</script>\n";

				{
$data .= "$('#quick_reply_form .trow_shaded').removeClass('trow_shaded').addClass('trow1');\n";
}

$data .= "</script>\n";





				header("Content-type: application/json; charset={$lang->settings['charset']}");
echo json_encode(array("data" => $data));

				header("Content-type: application/json; charset={$lang->settings['charset']}");
echo json_encode(array("data" => $data));


exit;


exit;

			}
// Post is in the moderation queue
else

			}
// Post is in the moderation queue
else

Zeile 720Zeile 721
			}
}
else

			}
}
else

		{

		{

			$lang->redirect_newreply .= $lang->sprintf($lang->redirect_return_forum, get_forum_link($fid));
redirect($url, $lang->redirect_newreply, "", $force_redirect);
exit;

			$lang->redirect_newreply .= $lang->sprintf($lang->redirect_return_forum, get_forum_link($fid));
redirect($url, $lang->redirect_newreply, "", $force_redirect);
exit;

Zeile 778Zeile 779
			foreach($group_permissions as $gpfid => $forum_permissions)
{
if(isset($forum_permissions['canonlyviewownthreads']) && $forum_permissions['canonlyviewownthreads'] == 1)

			foreach($group_permissions as $gpfid => $forum_permissions)
{
if(isset($forum_permissions['canonlyviewownthreads']) && $forum_permissions['canonlyviewownthreads'] == 1)

				{

				{

					$onlyusfids[] = $gpfid;
}

					$onlyusfids[] = $gpfid;
}

			}

			}

			if(!empty($onlyusfids))
{
$onlyusforums = "AND ((t.fid IN(".implode(',', $onlyusfids).") AND t.uid='{$mybb->user['uid']}') OR t.fid NOT IN(".implode(',', $onlyusfids)."))";
}

if(is_moderator($fid, 'canviewunapprove') && is_moderator($fid, 'canviewdeleted'))

			if(!empty($onlyusfids))
{
$onlyusforums = "AND ((t.fid IN(".implode(',', $onlyusfids).") AND t.uid='{$mybb->user['uid']}') OR t.fid NOT IN(".implode(',', $onlyusfids)."))";
}

if(is_moderator($fid, 'canviewunapprove') && is_moderator($fid, 'canviewdeleted'))

			{

			{

				$visible_where = "AND p.visible IN (-1,0,1)";

				$visible_where = "AND p.visible IN (-1,0,1)";

			}

			}

			elseif(is_moderator($fid, 'canviewunapprove') && !is_moderator($fid, 'canviewdeleted'))

			elseif(is_moderator($fid, 'canviewunapprove') && !is_moderator($fid, 'canviewdeleted'))

			{

			{

				$visible_where = "AND p.visible IN (0,1)";

				$visible_where = "AND p.visible IN (0,1)";

			}

			}

			elseif(!is_moderator($fid, 'canviewunapprove') && is_moderator($fid, 'canviewdeleted'))
{
$visible_where = "AND p.visible IN (-1,1)";

			elseif(!is_moderator($fid, 'canviewunapprove') && is_moderator($fid, 'canviewdeleted'))
{
$visible_where = "AND p.visible IN (-1,1)";

			}

			}

			else
{
$visible_where = "AND p.visible=1";

			else
{
$visible_where = "AND p.visible=1";

Zeile 817Zeile 818
			{
// Only show messages for the current thread
if($quoted_post['tid'] == $tid || $load_all == 1)

			{
// Only show messages for the current thread
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($replyto == $quoted_post['pid'])
{

					// If this post was the post for which a quote button was clicked, set the subject
if($replyto == $quoted_post['pid'])
{

Zeile 836Zeile 837
				else
{
++$external_quotes;

				else
{
++$external_quotes;

				}
}

				}
}

			if($mybb->settings['maxquotedepth'] != '0')
{
$message = remove_message_quotes($message);

			if($mybb->settings['maxquotedepth'] != '0')
{
$message = remove_message_quotes($message);

Zeile 858Zeile 859
				}
eval("\$multiquote_external = \"".$templates->get("newreply_multiquote_external")."\";");
}

				}
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);




		}
}

if(isset($mybb->input['quoted_ids']))
{

		}
}

if(isset($mybb->input['quoted_ids']))
{

		$quoted_ids = htmlspecialchars_uni($mybb->get_input('quoted_ids', MyBB::INPUT_INT));

		$quoted_ids = htmlspecialchars_uni($mybb->get_input('quoted_ids'));

	}

if(isset($mybb->input['previewpost']))

	}

if(isset($mybb->input['previewpost']))

Zeile 1186Zeile 1184
	}

// If the user is logged in, provide a save draft button.

	}

// If the user is logged in, provide a save draft button.

 
	$savedraftbutton = '';

	if($mybb->user['uid'])
{
eval("\$savedraftbutton = \"".$templates->get("post_savedraftbutton", 1, 0)."\";");

	if($mybb->user['uid'])
{
eval("\$savedraftbutton = \"".$templates->get("post_savedraftbutton", 1, 0)."\";");