Vergleich editpost.php - 1.8.5 - 1.8.7

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 666Zeile 666
	$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 753Zeile 753
		}
}


		}
}


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

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

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

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

Zeile 844Zeile 844
			$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 874
	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")."\";");
}
else

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