Vergleich forumdisplay.php - 1.8.28 - 1.8.33

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 11Zeile 11
define("IN_MYBB", 1);
define('THIS_SCRIPT', 'forumdisplay.php');


define("IN_MYBB", 1);
define('THIS_SCRIPT', 'forumdisplay.php');


$templatelist = "forumdisplay,forumdisplay_thread,forumbit_depth1_cat,forumbit_depth2_cat,forumbit_depth2_forum,forumdisplay_subforums,forumdisplay_threadlist,forumdisplay_moderatedby,forumdisplay_searchforum,forumdisplay_thread_rating,forumdisplay_threadlist_rating";

$templatelist = "forumdisplay,forumdisplay_thread,forumbit_depth1_cat,forumbit_depth2_cat,forumbit_depth2_forum,forumdisplay_subforums,forumdisplay_threadlist,forumdisplay_moderatedby,forumdisplay_searchforum,forumdisplay_forumsort,forumdisplay_thread_rating,forumdisplay_threadlist_rating";

$templatelist .= ",forumbit_depth1_forum_lastpost,forumdisplay_thread_multipage_page,forumdisplay_thread_multipage,forumdisplay_thread_multipage_more,forumdisplay_thread_gotounread,forumbit_depth2_forum_lastpost,forumdisplay_rules_link,forumdisplay_orderarrow,forumdisplay_newthread";
$templatelist .= ",multipage,multipage_breadcrumb,multipage_end,multipage_jump_page,multipage_nextpage,multipage_page,multipage_page_current,multipage_page_link_current,multipage_prevpage,multipage_start,forumdisplay_thread_unapproved_posts,forumdisplay_nothreads";
$templatelist .= ",forumjump_advanced,forumjump_special,forumjump_bit,forumdisplay_password_wrongpass,forumdisplay_password,forumdisplay_inlinemoderation_custom_tool,forumbit_subforums,forumbit_moderators,forumbit_depth2_forum_lastpost_never,forumbit_depth2_forum_lastpost_hidden";

$templatelist .= ",forumbit_depth1_forum_lastpost,forumdisplay_thread_multipage_page,forumdisplay_thread_multipage,forumdisplay_thread_multipage_more,forumdisplay_thread_gotounread,forumbit_depth2_forum_lastpost,forumdisplay_rules_link,forumdisplay_orderarrow,forumdisplay_newthread";
$templatelist .= ",multipage,multipage_breadcrumb,multipage_end,multipage_jump_page,multipage_nextpage,multipage_page,multipage_page_current,multipage_page_link_current,multipage_prevpage,multipage_start,forumdisplay_thread_unapproved_posts,forumdisplay_nothreads";
$templatelist .= ",forumjump_advanced,forumjump_special,forumjump_bit,forumdisplay_password_wrongpass,forumdisplay_password,forumdisplay_inlinemoderation_custom_tool,forumbit_subforums,forumbit_moderators,forumbit_depth2_forum_lastpost_never,forumbit_depth2_forum_lastpost_hidden";

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 789Zeile 789
	$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 1129Zeile 1129
			}
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 = '';
if(!isset($thread['rated']) || empty($thread['rated']))

Zeile 1164Zeile 1173
		{
$thread['posts'] += $thread['deletedposts'];
}

		{
$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 1182Zeile 1191
			}

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

			}

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

			{

			{

				$page_link = get_thread_link($thread['tid'], $i);
eval("\$threadpages .= \"".$templates->get("forumdisplay_thread_multipage_page")."\";");
}

eval("\$thread['multipage'] = \"".$templates->get("forumdisplay_thread_multipage")."\";");

				$page_link = get_thread_link($thread['tid'], $i);
eval("\$threadpages .= \"".$templates->get("forumdisplay_thread_multipage_page")."\";");
}

eval("\$thread['multipage'] = \"".$templates->get("forumdisplay_thread_multipage")."\";");

		}
else

		}
else

		{
$threadpages = '';
$morelink = '';
$thread['multipage'] = '';

		{
$threadpages = '';
$morelink = '';
$thread['multipage'] = '';

		}


		}


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

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

Zeile 1207Zeile 1216
			{
$inlinecheck = '';
}

			{
$inlinecheck = '';
}





			$multitid = $thread['tid'];
eval("\$modbit = \"".$templates->get("forumdisplay_thread_modbit")."\";");
}
else
{
$modbit = '';

			$multitid = $thread['tid'];
eval("\$modbit = \"".$templates->get("forumdisplay_thread_modbit")."\";");
}
else
{
$modbit = '';

		}

		}


if($moved[0] == "moved")
{


if($moved[0] == "moved")
{

Zeile 1226Zeile 1235

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





		// Determine the folder
$folder = '';
$folder_label = '';

if(isset($thread['doticon']))

		// Determine the folder
$folder = '';
$folder_label = '';

if(isset($thread['doticon']))

		{

		{

			$folder = "dot_";
$folder_label .= $lang->icon_dot;
}

			$folder = "dot_";
$folder_label .= $lang->icon_dot;
}

Zeile 1251Zeile 1260
			{
$last_read = $read_cutoff;
}

			{
$last_read = $read_cutoff;
}

		}

		}

		else
{
$last_read = my_get_array_cookie("threadread", $thread['tid']);

		else
{
$last_read = my_get_array_cookie("threadread", $thread['tid']);

Zeile 1263Zeile 1272
		}

if($thread['lastpost'] > $last_read && $moved[0] != "moved")

		}

if($thread['lastpost'] > $last_read && $moved[0] != "moved")

		{

		{

			$folder .= "new";
$folder_label .= $lang->icon_new;
$new_class = "subject_new";

			$folder .= "new";
$folder_label .= $lang->icon_new;
$new_class = "subject_new";

Zeile 1281Zeile 1290
		{
$folder .= "hot";
$folder_label .= $lang->icon_hot;

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

		}

		}


if($thread['closed'] == 1)
{


if($thread['closed'] == 1)
{

Zeile 1380Zeile 1389
		{
$thread['start_datetime'] = my_date('relative', $thread['dateline']);
eval("\$threads .= \"".$templates->get("forumdisplay_thread")."\";");

		{
$thread['start_datetime'] = my_date('relative', $thread['dateline']);
eval("\$threads .= \"".$templates->get("forumdisplay_thread")."\";");

		}
}

		}
}


$customthreadtools = $standardthreadtools = '';
if($ismod)


$customthreadtools = $standardthreadtools = '';
if($ismod)

Zeile 1528Zeile 1537

// Populate Forumsort
$forumsort = '';


// Populate Forumsort
$forumsort = '';

	
if($threadcount > 0)
{
eval("\$forumsort = \"".$templates->get("forumdisplay_forumsort")."\";");
}


	eval("\$forumsort = \"".$templates->get("forumdisplay_forumsort")."\";");






	$plugins->run_hooks("forumdisplay_threadlist");

$lang->rss_discovery_forum = $lang->sprintf($lang->rss_discovery_forum, htmlspecialchars_uni(strip_tags($foruminfo['name'])));

	$plugins->run_hooks("forumdisplay_threadlist");

$lang->rss_discovery_forum = $lang->sprintf($lang->rss_discovery_forum, htmlspecialchars_uni(strip_tags($foruminfo['name'])));