Vergleich forumdisplay.php - 1.8.32 - 1.8.38

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 95Zeile 95
	$forumsread = array();
if(isset($mybb->cookies['mybb']['forumread']))
{

	$forumsread = array();
if(isset($mybb->cookies['mybb']['forumread']))
{

		$forumsread = my_unserialize($mybb->cookies['mybb']['forumread']);

		$forumsread = my_unserialize($mybb->cookies['mybb']['forumread'], false);

	}

if(is_array($forumsread) && empty($forumsread))

	}

if(is_array($forumsread) && empty($forumsread))

Zeile 172Zeile 172
}

// Make forum jump...

}

// Make forum jump...

 
$forumjump = '';

if($mybb->settings['enableforumjump'] != 0)
{
$forumjump = build_forum_jump("", $fid, 1);

if($mybb->settings['enableforumjump'] != 0)
{
$forumjump = build_forum_jump("", $fid, 1);

Zeile 275Zeile 276
}

// Get the users browsing this forum.

}

// Get the users browsing this forum.

 
$usersbrowsing = '';

if($mybb->settings['browsingthisforum'] != 0)
{
$timecut = TIME_NOW - $mybb->settings['wolcutoff'];

if($mybb->settings['browsingthisforum'] != 0)
{
$timecut = TIME_NOW - $mybb->settings['wolcutoff'];

Zeile 305Zeile 307
		{
$doneusers[$user['uid']] = $user['time'];
++$membercount;

		{
$doneusers[$user['uid']] = $user['time'];
++$membercount;

			if($user['invisible'] == 1 && $mybb->usergroup['canbeinvisible'] == 1)

			if($user['invisible'] == 1)

			{
$invisiblemark = "*";
++$inviscount;

			{
$invisiblemark = "*";
++$inviscount;

Zeile 789Zeile 791
	$cookie = array();
if(isset($mybb->cookies['mybb']['announcements']))
{

	$cookie = array();
if(isset($mybb->cookies['mybb']['announcements']))
{

		$cookie = my_unserialize(stripslashes($mybb->cookies['mybb']['announcements']));

		$cookie = my_unserialize(stripslashes($mybb->cookies['mybb']['announcements']), false);

	}

$announcementlist = '';

	}

$announcementlist = '';

Zeile 1089Zeile 1091
		$thread['subject'] = $parser->parse_badwords($thread['subject']);
$thread['subject'] = htmlspecialchars_uni($thread['subject']);


		$thread['subject'] = $parser->parse_badwords($thread['subject']);
$thread['subject'] = htmlspecialchars_uni($thread['subject']);


		if($thread['icon'] > 0 && $icon_cache[$thread['icon']])

		if($thread['icon'] > 0 && isset($icon_cache[$thread['icon']]))

		{
$icon = $icon_cache[$thread['icon']];
$icon['path'] = str_replace("{theme}", $theme['imgdir'], $icon['path']);

		{
$icon = $icon_cache[$thread['icon']];
$icon['path'] = str_replace("{theme}", $theme['imgdir'], $icon['path']);

Zeile 1129Zeile 1131
			}
else
{

			}
else
{

				$thread['averagerating'] = (float)round($thread['averagerating'], 2);
$thread['width'] = (int)round($thread['averagerating'])*20;

 
				$thread['numratings'] = (int)$thread['numratings'];

				$thread['numratings'] = (int)$thread['numratings'];

 

if($thread['numratings'] == 0)
{
$thread['averagerating'] = 0;
$thread['width'] = 0;
}
else
{
$thread['averagerating'] = (float)round($thread['averagerating'], 2);
$thread['width'] = (int)round($thread['averagerating']) * 20;
}


$not_rated = '';
if(!isset($thread['rated']) || empty($thread['rated']))
{
$not_rated = ' star_rating_notrated';
}


$not_rated = '';
if(!isset($thread['rated']) || empty($thread['rated']))
{
$not_rated = ' star_rating_notrated';
}





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

Zeile 1150Zeile 1161
		$morelink = '';
$thread['posts'] = $thread['replies'] + 1;
if(is_moderator($fid, "canviewdeleted") == true || is_moderator($fid, "canviewunapprove") == true)

		$morelink = '';
$thread['posts'] = $thread['replies'] + 1;
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)

			if(is_moderator($fid, "canviewdeleted") == true)
{
$thread['posts'] += $thread['deletedposts'];
}
if(is_moderator($fid, "canviewunapprove") == true)

			{

			{

				$thread['posts'] += $thread['unapprovedposts'];
}
}

				$thread['posts'] += $thread['unapprovedposts'];
}
}

Zeile 1179Zeile 1190
			else
{
$pagesstop = $thread['pages'];

			else
{
$pagesstop = $thread['pages'];

			}

			}


for($i = 1; $i <= $pagesstop; ++$i)
{


for($i = 1; $i <= $pagesstop; ++$i)
{

Zeile 1270Zeile 1281
			$thread['newpostlink'] = get_thread_link($thread['tid'], 0, "newpost");
eval("\$gotounread = \"".$templates->get("forumdisplay_thread_gotounread")."\";");
$unreadpost = 1;

			$thread['newpostlink'] = get_thread_link($thread['tid'], 0, "newpost");
eval("\$gotounread = \"".$templates->get("forumdisplay_thread_gotounread")."\";");
$unreadpost = 1;

		}
else

		}
else

		{
$folder_label .= $lang->icon_no_new;
$new_class = "subject_old";

		{
$folder_label .= $lang->icon_no_new;
$new_class = "subject_old";

Zeile 1293Zeile 1304
		{
$folder = "move";
$gotounread = '';

		{
$folder = "move";
$gotounread = '';

		}


		}


		$folder .= "folder";

$inline_edit_tid = $thread['tid'];

		$folder .= "folder";

$inline_edit_tid = $thread['tid'];

Zeile 1306Zeile 1317
			$inline_edit_class = "subject_editable";
}


			$inline_edit_class = "subject_editable";
}






		$lastposteruid = $thread['lastposteruid'];
if(!$lastposteruid && !$thread['lastposter'])
{

		$lastposteruid = $thread['lastposteruid'];
if(!$lastposteruid && !$thread['lastposter'])
{

Zeile 1317Zeile 1328
			$lastposter = htmlspecialchars_uni($thread['lastposter']);
}
$lastpostdate = my_date('relative', $thread['lastpost']);

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





		// Don't link to guest's profiles (they have no profile).
if($lastposteruid == 0)
{
$lastposterlink = $lastposter;

		// Don't link to guest's profiles (they have no profile).
if($lastposteruid == 0)
{
$lastposterlink = $lastposter;

		}
else

		}
else

		{
$lastposterlink = build_profile_link($lastposter, $lastposteruid);
}

		{
$lastposterlink = build_profile_link($lastposter, $lastposteruid);
}

Zeile 1335Zeile 1346
		if($thread['unapprovedposts'] > 0 && is_moderator($fid, "canviewunapprove"))
{
if($thread['unapprovedposts'] > 1)

		if($thread['unapprovedposts'] > 0 && is_moderator($fid, "canviewunapprove"))
{
if($thread['unapprovedposts'] > 1)

			{

			{

				$unapproved_posts_count = $lang->sprintf($lang->thread_unapproved_posts_count, $thread['unapprovedposts']);
}
else
{
$unapproved_posts_count = $lang->sprintf($lang->thread_unapproved_post_count, 1);

				$unapproved_posts_count = $lang->sprintf($lang->thread_unapproved_posts_count, $thread['unapprovedposts']);
}
else
{
$unapproved_posts_count = $lang->sprintf($lang->thread_unapproved_post_count, 1);

			}

			}


$thread['unapprovedposts'] = my_number_format($thread['unapprovedposts']);
eval("\$unapproved_posts = \"".$templates->get("forumdisplay_thread_unapproved_posts")."\";");
}
else


$thread['unapprovedposts'] = my_number_format($thread['unapprovedposts']);
eval("\$unapproved_posts = \"".$templates->get("forumdisplay_thread_unapproved_posts")."\";");
}
else

		{

		{

			$unapproved_posts = '';
}


			$unapproved_posts = '';
}


Zeile 1364Zeile 1375
			}

eval("\$attachment_count = \"".$templates->get("forumdisplay_thread_attachment_count")."\";");

			}

eval("\$attachment_count = \"".$templates->get("forumdisplay_thread_attachment_count")."\";");

		}

		}

		else
{
$attachment_count = '';

		else
{
$attachment_count = '';

Zeile 1456Zeile 1467
		if(is_moderator($fid, "canmanagethreads"))
{
eval("\$inlinemodmanage = \"".$templates->get("forumdisplay_inlinemoderation_manage")."\";");

		if(is_moderator($fid, "canmanagethreads"))
{
eval("\$inlinemodmanage = \"".$templates->get("forumdisplay_inlinemoderation_manage")."\";");

		}


		}


		if(is_moderator($fid, "canapproveunapprovethreads"))
{
eval("\$inlinemodapproveunapprove = \"".$templates->get("forumdisplay_inlinemoderation_approveunapprove")."\";");

		if(is_moderator($fid, "canapproveunapprovethreads"))
{
eval("\$inlinemodapproveunapprove = \"".$templates->get("forumdisplay_inlinemoderation_approveunapprove")."\";");

		}


		}


		if(!empty($inlinemodopenclose) || !empty($inlinemodstickunstick) || !empty($inlinemodsoftdelete) || !empty($inlinemodrestore) || !empty($inlinemoddelete) || !empty($inlinemodmanage) || !empty($inlinemodapproveunapprove))
{
eval("\$standardthreadtools = \"".$templates->get("forumdisplay_inlinemoderation_standard")."\";");

		if(!empty($inlinemodopenclose) || !empty($inlinemodstickunstick) || !empty($inlinemodsoftdelete) || !empty($inlinemodrestore) || !empty($inlinemoddelete) || !empty($inlinemodmanage) || !empty($inlinemodapproveunapprove))
{
eval("\$standardthreadtools = \"".$templates->get("forumdisplay_inlinemoderation_standard")."\";");

Zeile 1473Zeile 1484
		{
eval("\$inlinemod = \"".$templates->get("forumdisplay_inlinemoderation")."\";");
}

		{
eval("\$inlinemod = \"".$templates->get("forumdisplay_inlinemoderation")."\";");
}

	}
}

	}
}


// If there are no unread threads in this forum and no unread child forums - mark it as read
require_once MYBB_ROOT."inc/functions_indicators.php";


// If there are no unread threads in this forum and no unread child forums - mark it as read
require_once MYBB_ROOT."inc/functions_indicators.php";

Zeile 1502Zeile 1513

eval("\$addremovesubscription = \"".$templates->get("forumdisplay_threadlist_subscription")."\";");
}


eval("\$addremovesubscription = \"".$templates->get("forumdisplay_threadlist_subscription")."\";");
}


$inline_edit_js = $clearstoredpass = '';

 

// Is this a real forum with threads?
if($foruminfo['type'] != "c")


// Is this a real forum with threads?
if($foruminfo['type'] != "c")