Vergleich editpost.php - 1.8.5 - 1.8.9

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 11Zeile 11
define("IN_MYBB", 1);
define('THIS_SCRIPT', 'editpost.php');


define("IN_MYBB", 1);
define('THIS_SCRIPT', 'editpost.php');


$templatelist = "editpost,previewpost,changeuserbox,codebuttons,smilieinsert,smilieinsert_getmore,smilieinsert_smilie,smilieinsert_smilie_empty,post_attachments_attachment_postinsert,post_attachments_attachment_mod_unapprove,postbit_attachments_thumbnails";
$templatelist .= ",editpost_delete,error_attacherror,forumdisplay_password_wrongpass,forumdisplay_password,editpost_reason,post_attachments_attachment_remove,post_attachments_update,post_subscription_method,postbit_online,postbit_away";
$templatelist .= ",postbit_avatar,postbit_find,postbit_pm,postbit_rep_button,postbit_www,postbit_email,postbit_reputation,postbit_warn,postbit_warninglevel,postbit_author_user,postbit_icon,postbit_userstar,postbit_offline,postbit_attachments_images";
$templatelist .= ",postbit_signature,postbit_classic,postbit,postbit_attachments_thumbnails_thumbnail,postbit_attachments_images_image,postbit_attachments_attachment,postbit_attachments_attachment_unapproved,post_attachments_update,postbit_attachments";
$templatelist .= ",posticons_icon,post_prefixselect_prefix,post_prefixselect_single,newthread_postpoll,editpost_disablesmilies,post_attachments_attachment_mod_approve,post_attachments_attachment_unapproved,post_attachments_new,postbit_gotopost";
$templatelist .= ",postbit_warninglevel_formatted,postbit_reputation_formatted_link,editpost_disablesmilies_hidden,attachment_icon,post_attachments_attachment,post_attachments_add,post_attachments,posticons,global_moderation_notice";


$templatelist = "editpost,previewpost,changeuserbox,codebuttons,post_attachments_attachment_postinsert,post_attachments_attachment_mod_unapprove,postbit_attachments_thumbnails,posticons";
$templatelist .= ",editpost_delete,forumdisplay_password_wrongpass,forumdisplay_password,editpost_reason,post_attachments_attachment_remove,post_attachments_update,post_subscription_method";
$templatelist .= ",postbit_avatar,postbit_find,postbit_pm,postbit_rep_button,postbit_www,postbit_email,postbit_reputation,postbit_warn,postbit_warninglevel,postbit_author_user,error_attacherror";
$templatelist .= ",postbit_signature,postbit_classic,postbit,postbit_attachments_thumbnails_thumbnail,postbit_attachments_images_image,postbit_attachments_attachment,postbit_attachments_attachment_unapproved";
$templatelist .= ",posticons_icon,post_prefixselect_prefix,post_prefixselect_single,newthread_postpoll,editpost_disablesmilies,post_attachments_attachment_mod_approve,post_attachments_attachment_unapproved";
$templatelist .= ",postbit_warninglevel_formatted,postbit_reputation_formatted_link,editpost_signature,attachment_icon,post_attachments_attachment,post_attachments_add,post_attachments,editpost_postoptions";
$templatelist .= ",postbit_attachments_images,global_moderation_notice,post_attachments_new,postbit_attachments,postbit_online,postbit_away,postbit_offline,postbit_gotopost,postbit_userstar,postbit_icon";


require_once "./global.php";
require_once MYBB_ROOT."inc/functions_post.php";
require_once MYBB_ROOT."inc/functions_upload.php";


require_once "./global.php";
require_once MYBB_ROOT."inc/functions_post.php";
require_once MYBB_ROOT."inc/functions_upload.php";

 
require_once MYBB_ROOT."inc/class_parser.php";
$parser = new postParser;


// Load global language phrases
$lang->load("editpost");


// Load global language phrases
$lang->load("editpost");

Zeile 60Zeile 63
	error($lang->error_invalidthread);
}


	error($lang->error_invalidthread);
}


$thread['subject'] = htmlspecialchars_uni($thread['subject']);

$thread['subject'] = htmlspecialchars_uni($parser->parse_badwords($thread['subject']));


// Get forum info
$fid = $post['fid'];


// Get forum info
$fid = $post['fid'];

Zeile 557Zeile 560
		$posticons = get_post_icons();
}


		$posticons = get_post_icons();
}


 
	$mybb->user['username'] = htmlspecialchars_uni($mybb->user['username']);

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

$deletebox = '';

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

$deletebox = '';

Zeile 666Zeile 670
	$postoptions_subscriptionmethod_dont = $postoptions_subscriptionmethod_none = $postoptions_subscriptionmethod_email = $postoptions_subscriptionmethod_pm = '';
$postoptionschecked = array('signature' => '', 'disablesmilies' => '');


	$postoptions_subscriptionmethod_dont = $postoptions_subscriptionmethod_none = $postoptions_subscriptionmethod_email = $postoptions_subscriptionmethod_pm = '';
$postoptionschecked = array('signature' => '', 'disablesmilies' => '');


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

	if(!empty($mybb->input['previewpost']) || $post_errors)

	{
// Set up posthandler.
require_once MYBB_ROOT."inc/datahandlers/post.php";

	{
// Set up posthandler.
require_once MYBB_ROOT."inc/datahandlers/post.php";

Zeile 680Zeile 684
			"subject" => $mybb->get_input('subject'),
"icon" => $mybb->get_input('icon', MyBB::INPUT_INT),
"uid" => $post['uid'],

			"subject" => $mybb->get_input('subject'),
"icon" => $mybb->get_input('icon', MyBB::INPUT_INT),
"uid" => $post['uid'],

 
			"username" => $post['username'],

			"edit_uid" => $mybb->user['uid'],
"message" => $mybb->get_input('message'),
);

			"edit_uid" => $mybb->user['uid'],
"message" => $mybb->get_input('message'),
);

Zeile 753Zeile 758
		}
}


		}
}


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

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

	{
if(!$post['uid'])
{

	{
if(!$post['uid'])
{

Zeile 844Zeile 849
			$mybb->input['threadprefix'] = $thread['prefix'];
}


			$mybb->input['threadprefix'] = $thread['prefix'];
}


		$prefixselect = build_prefix_select($forum['fid'], $mybb->get_input('threadprefix', MyBB::INPUT_INT));

		$prefixselect = build_prefix_select($forum['fid'], $mybb->get_input('threadprefix', MyBB::INPUT_INT), 0, $thread['prefix']);

	}
else
{

	}
else
{

Zeile 874Zeile 879
	if($firstcheck['pid'] == $pid && $forumpermissions['canpostpolls'] != 0 && $thread['poll'] < 1 && (is_moderator($fid, "canmanagepolls") || $thread['dateline'] > ($time-($mybb->settings['polltimelimit']*60*60)) || $mybb->settings['polltimelimit'] == 0))
{
$lang->max_options = $lang->sprintf($lang->max_options, $mybb->settings['maxpolloptions']);

	if($firstcheck['pid'] == $pid && $forumpermissions['canpostpolls'] != 0 && $thread['poll'] < 1 && (is_moderator($fid, "canmanagepolls") || $thread['dateline'] > ($time-($mybb->settings['polltimelimit']*60*60)) || $mybb->settings['polltimelimit'] == 0))
{
$lang->max_options = $lang->sprintf($lang->max_options, $mybb->settings['maxpolloptions']);

		$numpolloptions = "2";

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

		$postpollchecked = '';

		$postpollchecked = '';

 
		
if($numpolloptions < 1)
{
$numpolloptions = 2;
}

if($mybb->get_input('postpoll', MyBB::INPUT_INT) == 1)
{
$postpollchecked = 'checked="checked"';
}


		eval("\$pollbox = \"".$templates->get("newthread_postpoll")."\";");

		eval("\$pollbox = \"".$templates->get("newthread_postpoll")."\";");

	}

	}

	else

	else

	{

	{

		$pollbox = '';

		$pollbox = '';

	}









	}

// Hide signature option if no permission
$signature = '';
if($mybb->usergroup['canusesig'] == 1 && !$mybb->user['suspendsignature'])
{
eval("\$signature = \"".$templates->get('editpost_signature')."\";");
}


	// Can we disable smilies or are they disabled already?
$disablesmilies = '';
if($forum['allowsmilies'] != 0)
{
eval("\$disablesmilies = \"".$templates->get("editpost_disablesmilies")."\";");
}

	// Can we disable smilies or are they disabled already?
$disablesmilies = '';
if($forum['allowsmilies'] != 0)
{
eval("\$disablesmilies = \"".$templates->get("editpost_disablesmilies")."\";");
}

	else




$postoptions = '';
if(!empty($signature) || !empty($disablesmilies))

	{

	{

		eval("\$disablesmilies = \"".$templates->get("editpost_disablesmilies_hidden")."\";");

		eval("\$postoptions = \"".$templates->get("editpost_postoptions")."\";");

	}

$moderation_notice = '';

	}

$moderation_notice = '';