Vergleich newthread.php - 1.4.9 - 1.4.12

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: newthread.php 4352 2009-04-18 22:25:55Z Tikitiki $

 * $Id: newthread.php 4864 2010-04-10 09:13:19Z RyanGordon $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 160Zeile 160
}

// Are we removing an attachment from the thread?

}

// Are we removing an attachment from the thread?

if($mybb->input['attachmentaid'] && $mybb->input['posthash'])

if($mybb->input['attachmentaid'] && $mybb->input['attachmentact'] == "remove" && $mybb->input['posthash'])

{
require_once MYBB_ROOT."inc/functions_upload.php";
remove_attachment(0, $mybb->input['posthash'], $mybb->input['attachmentaid']);

{
require_once MYBB_ROOT."inc/functions_upload.php";
remove_attachment(0, $mybb->input['posthash'], $mybb->input['attachmentaid']);

Zeile 588Zeile 588
			$postoptionschecked['disablesmilies'] = " checked=\"checked\"";
}
$icon = $post['icon'];

			$postoptionschecked['disablesmilies'] = " checked=\"checked\"";
}
$icon = $post['icon'];

		$posticons = get_post_icons();




		if($forum['allowpicons'] != 0)
{
$posticons = get_post_icons();
}

	}

// Otherwise, this is our initial visit to this page.
else
{
if($mybb->user['signature'] != '')

	}

// Otherwise, this is our initial visit to this page.
else
{
if($mybb->user['signature'] != '')

		{

		{

			$postoptionschecked['signature'] = " checked=\"checked\"";

			$postoptionschecked['signature'] = " checked=\"checked\"";

		}

		}

		if($mybb->user['subscriptionmethod'] ==  1)
{
$postoptions_subscriptionmethod_none = "checked=\"checked\"";

		if($mybb->user['subscriptionmethod'] ==  1)
{
$postoptions_subscriptionmethod_none = "checked=\"checked\"";

Zeile 605Zeile 608
		else if($mybb->user['subscriptionmethod'] == 2)
{
$postoptions_subscriptionmethod_instant = "checked=\"checked\"";

		else if($mybb->user['subscriptionmethod'] == 2)
{
$postoptions_subscriptionmethod_instant = "checked=\"checked\"";

		}
else

		}
else

		{
$postoptions_subscriptionmethod_dont = "checked=\"checked\"";
}

		{
$postoptions_subscriptionmethod_dont = "checked=\"checked\"";
}

Zeile 675Zeile 678
			");
$post = $db->fetch_array($query);
if(!$mybb->user['uid'] || !$post['username'])

			");
$post = $db->fetch_array($query);
if(!$mybb->user['uid'] || !$post['username'])

			{

			{

				$post['username'] = htmlspecialchars_uni($mybb->input['username']);
}
else

				$post['username'] = htmlspecialchars_uni($mybb->input['username']);
}
else

Zeile 693Zeile 696
			if($post['includesig'] != 1)
{
$post['includesig'] = 0;

			if($post['includesig'] != 1)
{
$post['includesig'] = 0;

			}

			}

	

// Fetch attachments assigned to this post

	

// Fetch attachments assigned to this post

Zeile 729Zeile 732
	// Setup a unique posthash for attachment management
if(!$mybb->input['posthash'] && $mybb->input['action'] != "editdraft")
{

	// Setup a unique posthash for attachment management
if(!$mybb->input['posthash'] && $mybb->input['action'] != "editdraft")
{

	    mt_srand((double) microtime() * 1000000);
$posthash = md5($mybb->user['uid'].mt_rand());





	    $posthash = md5($mybb->user['uid'].random_str());
}
elseif($mybb->input['action'] == "editdraft")
{
// Drafts have posthashes, too...
$posthash = $post['posthash'];

	}
else
{

	}
else
{