Vergleich newthread.php - 1.8.33 - 1.8.38

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 36Zeile 36
{
$thread = get_thread($mybb->input['tid']);


{
$thread = get_thread($mybb->input['tid']);


	$query = $db->simple_select("posts", "*", "tid='".$mybb->get_input('tid', MyBB::INPUT_INT)."' AND visible='-2'", array('order_by' => 'dateline, pid', 'limit' => 1));

	$query = $db->simple_select("posts", "*", "tid='".$mybb->input['tid']."' AND visible='-2'", array('order_by' => 'dateline, pid', 'limit' => 1));

	$post = $db->fetch_array($query);


	$post = $db->fetch_array($query);


	if(!$thread['tid'] || !$post['pid'] || $thread['visible'] != -2 || $thread['uid'] != $mybb->user['uid'])

	if(!$thread || !$post || $thread['visible'] != -2 || $thread['uid'] != $mybb->user['uid'])

	{
error($lang->invalidthread);
}

	{
error($lang->invalidthread);
}

Zeile 186Zeile 186
				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 376Zeile 377
	if(!isset($postoptions['signature']))
{
$postoptions['signature'] = 0;

	if(!isset($postoptions['signature']))
{
$postoptions['signature'] = 0;

	}

	}

	if(!isset($postoptions['subscriptionmethod']))
{
$postoptions['subscriptionmethod'] = 0;

	if(!isset($postoptions['subscriptionmethod']))
{
$postoptions['subscriptionmethod'] = 0;

Zeile 693Zeile 694
			$posticons = get_post_icons();
}
$subscription_method = get_subscription_method($tid); // Subscription method doesn't get saved in drafts

			$posticons = get_post_icons();
}
$subscription_method = get_subscription_method($tid); // Subscription method doesn't get saved in drafts

 
		$numpolloptions = "2";

	}

// Otherwise, this is our initial visit to this page.

	}

// Otherwise, this is our initial visit to this page.

Zeile 1030Zeile 1032
		$attachbox = '';
}


		$attachbox = '';
}


 
	$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)."\";");

Zeile 1102Zeile 1105
			$forum['rulestitle'] = $lang->sprintf($lang->forum_rules, $forum['name']);
}


			$forum['rulestitle'] = $lang->sprintf($lang->forum_rules, $forum['name']);
}


		if(!$parser)

		if(empty($parser))

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

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