Vergleich editpost.php - 1.8.27 - 1.8.38

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 394Zeile 394
					$redirect = get_thread_link($tid);
}


					$redirect = get_thread_link($tid);
}


				if($mybb->input['ajax'] == 1)

				if($mybb->get_input('ajax', MyBB::INPUT_INT) == 1)

				{
header("Content-type: application/json; charset={$lang->settings['charset']}");
if(is_moderator($fid, "canviewdeleted"))

				{
header("Content-type: application/json; charset={$lang->settings['charset']}");
if(is_moderator($fid, "canviewdeleted"))

Zeile 593Zeile 593
			$url = get_post_link($pid, $tid)."#pid{$pid}";
}
$plugins->run_hooks("editpost_do_editpost_end");

			$url = get_post_link($pid, $tid)."#pid{$pid}";
}
$plugins->run_hooks("editpost_do_editpost_end");





		redirect($url, $lang->redirect_postedited);
}
}

		redirect($url, $lang->redirect_postedited);
}
}

Zeile 602Zeile 602
{
$plugins->run_hooks("editpost_action_start");


{
$plugins->run_hooks("editpost_action_start");


 
	$preview = '';

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

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

	{

	{

		$icon = $post['icon'];
}

if($forum['allowpicons'] != 0)

		$icon = $post['icon'];
}

if($forum['allowpicons'] != 0)

	{

	{

		$posticons = get_post_icons();
}


		$posticons = get_post_icons();
}


Zeile 616Zeile 617
	eval("\$loginbox = \"".$templates->get("changeuserbox")."\";");

$deletebox = '';

	eval("\$loginbox = \"".$templates->get("changeuserbox")."\";");

$deletebox = '';

	if($post['visible'] != -1 && (($thread['firstpost'] == $pid && (is_moderator($fid, "candeletethreads") || $forumpermissions['candeletethreads'] == 1 && $mybb->user['uid'] == $post['uid'])) || ($thread['firstpost'] != $pid && (is_moderator($fid, "candeleteposts") || $forumpermissions['candeleteposts'] == 1 && $mybb->user['uid'] == $post['uid']))))


	
if(isset($post['visible']) && $post['visible'] != -1 && (($thread['firstpost'] == $pid && (is_moderator($fid, "candeletethreads") || $forumpermissions['candeletethreads'] == 1 && $mybb->user['uid'] == $post['uid'])) || ($thread['firstpost'] != $pid && (is_moderator($fid, "candeleteposts") || $forumpermissions['candeleteposts'] == 1 && $mybb->user['uid'] == $post['uid']))))

	{
eval("\$deletebox = \"".$templates->get("editpost_delete")."\";");
}

	{
eval("\$deletebox = \"".$templates->get("editpost_delete")."\";");
}

Zeile 634Zeile 636
			$attachment['filename'] = htmlspecialchars_uni($attachment['filename']);

if($mybb->settings['bbcodeinserter'] != 0 && $forum['allowmycode'] != 0 && $mybb->user['showcodebuttons'] != 0)

			$attachment['filename'] = htmlspecialchars_uni($attachment['filename']);

if($mybb->settings['bbcodeinserter'] != 0 && $forum['allowmycode'] != 0 && $mybb->user['showcodebuttons'] != 0)

			{

			{

				eval("\$postinsert = \"".$templates->get("post_attachments_attachment_postinsert")."\";");
}
// Moderating options

				eval("\$postinsert = \"".$templates->get("post_attachments_attachment_postinsert")."\";");
}
// Moderating options

Zeile 715Zeile 717
			eval("\$newattach = \"".$templates->get("post_attachments_new")."\";");
}
eval("\$attachbox = \"".$templates->get("post_attachments")."\";");

			eval("\$newattach = \"".$templates->get("post_attachments_new")."\";");
}
eval("\$attachbox = \"".$templates->get("post_attachments")."\";");

 
	}
else
{
$attachbox = '';

	}
if(!$mybb->get_input('attachmentaid', MyBB::INPUT_INT) && !$mybb->get_input('newattachment') && !$mybb->get_input('updateattachment') && !isset($mybb->input['previewpost']))
{

	}
if(!$mybb->get_input('attachmentaid', MyBB::INPUT_INT) && !$mybb->get_input('newattachment') && !$mybb->get_input('updateattachment') && !isset($mybb->input['previewpost']))
{