Vergleich forumdisplay.php - 1.8.12 - 1.8.15

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 1039Zeile 1039
		$thread['author'] = $thread['uid'];
if(!$thread['username'])
{

		$thread['author'] = $thread['uid'];
if(!$thread['username'])
{

			$thread['username'] = $thread['profilelink'] = htmlspecialchars_uni($thread['threadusername']);








			if(!$thread['threadusername'])
{
$thread['username'] = $thread['profilelink'] = htmlspecialchars_uni($lang->guest);
}
else
{
$thread['username'] = $thread['profilelink'] = htmlspecialchars_uni($thread['threadusername']);
}

		}
else
{

		}
else
{

Zeile 1050Zeile 1057
		// If this thread has a prefix, insert a space between prefix and subject
$thread['threadprefix'] = $threadprefix = '';
if($thread['prefix'] != 0)

		// If this thread has a prefix, insert a space between prefix and subject
$thread['threadprefix'] = $threadprefix = '';
if($thread['prefix'] != 0)

		{

		{

			$threadprefix = build_prefixes($thread['prefix']);
if(!empty($threadprefix))
{

			$threadprefix = build_prefixes($thread['prefix']);
if(!empty($threadprefix))
{

Zeile 1068Zeile 1075
			$icon['path'] = htmlspecialchars_uni($icon['path']);
$icon['name'] = htmlspecialchars_uni($icon['name']);
eval("\$icon = \"".$templates->get("forumdisplay_thread_icon")."\";");

			$icon['path'] = htmlspecialchars_uni($icon['path']);
$icon['name'] = htmlspecialchars_uni($icon['name']);
eval("\$icon = \"".$templates->get("forumdisplay_thread_icon")."\";");

		}

		}

		else
{
$icon = " ";

		else
{
$icon = " ";

		}

		}


$prefix = '';
if($thread['poll'])
{
$prefix = $lang->poll_prefix;


$prefix = '';
if($thread['poll'])
{
$prefix = $lang->poll_prefix;

		}


		}


		if($thread['sticky'] == "1" && !isset($donestickysep))
{
eval("\$threads .= \"".$templates->get("forumdisplay_sticky_sep")."\";");

		if($thread['sticky'] == "1" && !isset($donestickysep))
{
eval("\$threads .= \"".$templates->get("forumdisplay_sticky_sep")."\";");

Zeile 1096Zeile 1103
		if($mybb->settings['allowthreadratings'] != 0 && $foruminfo['allowtratings'] != 0)
{
if($moved[0] == "moved" || ($fpermissions['canviewdeletionnotice'] != 0 && $thread['visible'] == -1))

		if($mybb->settings['allowthreadratings'] != 0 && $foruminfo['allowtratings'] != 0)
{
if($moved[0] == "moved" || ($fpermissions['canviewdeletionnotice'] != 0 && $thread['visible'] == -1))

			{

			{

				eval("\$rating = \"".$templates->get("forumdisplay_thread_rating_moved")."\";");
}
else

				eval("\$rating = \"".$templates->get("forumdisplay_thread_rating_moved")."\";");
}
else

Zeile 1114Zeile 1121
				$ratingvotesav = $lang->sprintf($lang->rating_votes_average, $thread['numratings'], $thread['averagerating']);
eval("\$rating = \"".$templates->get("forumdisplay_thread_rating")."\";");
}

				$ratingvotesav = $lang->sprintf($lang->rating_votes_average, $thread['numratings'], $thread['averagerating']);
eval("\$rating = \"".$templates->get("forumdisplay_thread_rating")."\";");
}

		}

		}


$thread['pages'] = 0;
$thread['multipage'] = '';
$threadpages = '';
$morelink = '';
$thread['posts'] = $thread['replies'] + 1;


$thread['pages'] = 0;
$thread['multipage'] = '';
$threadpages = '';
$morelink = '';
$thread['posts'] = $thread['replies'] + 1;


if($thread['unapprovedposts'] > 0 && $ismod)
{
$thread['posts'] += $thread['unapprovedposts'] + $thread['deletedposts'];
}












		if(is_moderator($fid, "canviewdeleted") == true || is_moderator($fid, "canviewunapprove") == true)
{
if(is_moderator($fid, "canviewdeleted") == true)
{
$thread['posts'] += $thread['deletedposts'];
}
if(is_moderator($fid, "canviewunapprove") == true)
{
$thread['posts'] += $thread['unapprovedposts'];
}
}
elseif($fpermissions['canviewdeletionnotice'] != 0)
{
$thread['posts'] += $thread['deletedposts'];
}


		if($thread['posts'] > $mybb->settings['postsperpage'])
{
$thread['pages'] = $thread['posts'] / $mybb->settings['postsperpage'];

		if($thread['posts'] > $mybb->settings['postsperpage'])
{
$thread['pages'] = $thread['posts'] / $mybb->settings['postsperpage'];

Zeile 1160Zeile 1177

if($ismod)
{


if($ismod)
{

			if(isset($mybb->cookies[$inlinecookie]) && my_strpos($mybb->cookies[$inlinecookie], "|{$thread['tid']}|"))

			if(isset($mybb->cookies[$inlinecookie]) && my_strpos($mybb->cookies[$inlinecookie], "|{$thread['tid']}|") !== false)

			{
$inlinecheck = "checked=\"checked\"";
++$inlinecount;

			{
$inlinecheck = "checked=\"checked\"";
++$inlinecount;

Zeile 1184Zeile 1201
			$thread['tid'] = $moved[1];
$thread['replies'] = "-";
$thread['views'] = "-";

			$thread['tid'] = $moved[1];
$thread['replies'] = "-";
$thread['views'] = "-";

		}

		}


$thread['threadlink'] = get_thread_link($thread['tid']);
$thread['lastpostlink'] = get_thread_link($thread['tid'], 0, "lastpost");


$thread['threadlink'] = get_thread_link($thread['tid']);
$thread['lastpostlink'] = get_thread_link($thread['tid'], 0, "lastpost");

Zeile 1240Zeile 1257
		}

if($thread['replies'] >= $mybb->settings['hottopic'] || $thread['views'] >= $mybb->settings['hottopicviews'])

		}

if($thread['replies'] >= $mybb->settings['hottopic'] || $thread['views'] >= $mybb->settings['hottopicviews'])

		{

		{

			$folder .= "hot";
$folder_label .= $lang->icon_hot;

			$folder .= "hot";
$folder_label .= $lang->icon_hot;

		}


		}


		if($thread['closed'] == 1)
{
$folder .= "lock";

		if($thread['closed'] == 1)
{
$folder .= "lock";

Zeile 1258Zeile 1275
		}

$folder .= "folder";

		}

$folder .= "folder";





		$inline_edit_tid = $thread['tid'];

// If this user is the author of the thread and it is not closed or they are a moderator, they can edit

		$inline_edit_tid = $thread['tid'];

// If this user is the author of the thread and it is not closed or they are a moderator, they can edit

Zeile 1268Zeile 1285
			$inline_edit_class = "subject_editable";
}


			$inline_edit_class = "subject_editable";
}


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



		$lastposteruid = $thread['lastposteruid'];

		$lastposteruid = $thread['lastposteruid'];

 
		if(!$lastposteruid && !$thread['lastposter'])
{
$lastposter = htmlspecialchars_uni($lang->guest);
}
else
{
$lastposter = htmlspecialchars_uni($thread['lastposter']);
}

		$lastpostdate = my_date('relative', $thread['lastpost']);

// Don't link to guest's profiles (they have no profile).

		$lastpostdate = my_date('relative', $thread['lastpost']);

// Don't link to guest's profiles (they have no profile).

Zeile 1369Zeile 1394

while($tool = $db->fetch_array($query))
{


while($tool = $db->fetch_array($query))
{

 
				$tool['name'] = htmlspecialchars_uni($tool['name']);

				eval("\$customthreadtools .= \"".$templates->get("forumdisplay_inlinemoderation_custom_tool")."\";");
}


				eval("\$customthreadtools .= \"".$templates->get("forumdisplay_inlinemoderation_custom_tool")."\";");
}