Vergleich showthread.php - 1.4.5 - 1.4.16

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 1Zeile 1
<?php
/**
* MyBB 1.4

<?php
/**
* MyBB 1.4

 * Copyright � 2008 MyBB Group, All Rights Reserved

 * Copyright © 2008 MyBB Group, All Rights Reserved

 *
* 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: showthread.php 4351 2009-04-17 02:37:21Z Tikitiki $

 * $Id: showthread.php 5379 2011-02-21 11:06:42Z Tomm $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 131Zeile 131
	}
else
{

	}
else
{

		$forum_read = my_get_array_cookie("forumread", $fid);

		$forum_read = intval(my_get_array_cookie("forumread", $fid));

	}

if($mybb->settings['threadreadcut'] > 0 && $mybb->user['uid'] && $thread['lastpost'] > $forum_read)

	}

if($mybb->settings['threadreadcut'] > 0 && $mybb->user['uid'] && $thread['lastpost'] > $forum_read)

Zeile 152Zeile 152
	
if(!$lastread)
{

	
if(!$lastread)
{

		$readcookie = $threadread = my_get_array_cookie("threadread", $thread['tid']);

		$readcookie = $threadread = intval(my_get_array_cookie("threadread", $thread['tid']));

		if($readcookie > $forum_read)
{
$lastread = $readcookie;

		if($readcookie > $forum_read)
{
$lastread = $readcookie;

Zeile 170Zeile 170
		"order_by" => "dateline",
"order_dir" => "asc"
);

		"order_by" => "dateline",
"order_dir" => "asc"
);

 

$lastread = intval($lastread);

	$query = $db->simple_select("posts", "pid", "tid='{$tid}' AND dateline > '{$lastread}'", $options);
$newpost = $db->fetch_array($query);
if($newpost['pid'])

	$query = $db->simple_select("posts", "pid", "tid='{$tid}' AND dateline > '{$lastread}'", $options);
$newpost = $db->fetch_array($query);
if($newpost['pid'])

Zeile 407Zeile 409
		}
else
{

		}
else
{

			$edit_poll = "| <a href=\"polls.php?action=editpoll&amp;pid={$poll['pid']}\">{$lang->edit_poll}</a>";

			$edit_poll = " | <a href=\"polls.php?action=editpoll&amp;pid={$poll['pid']}\">{$lang->edit_poll}</a>";

		}

// Decide what poll status to show depending on the status of the poll and whether or not the user voted already.

		}

// Decide what poll status to show depending on the status of the poll and whether or not the user voted already.

Zeile 936Zeile 938
		{
$postoptionschecked['emailnotify'] = 'checked="checked"';
}

		{
$postoptionschecked['emailnotify'] = 'checked="checked"';
}

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

	    $posthash = md5($mybb->user['uid'].random_str());


		
eval("\$quickreply = \"".$templates->get("showthread_quickreply")."\";");
}

		
eval("\$quickreply = \"".$templates->get("showthread_quickreply")."\";");
}