Vergleich forumdisplay.php - 1.8.27 - 1.8.38

  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 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 215Zeile 216

$moderators = '';
$parentlistexploded = explode(",", $parentlist);


$moderators = '';
$parentlistexploded = explode(",", $parentlist);

 
$comma = '';


foreach($parentlistexploded as $mfid)
{
// This forum has moderators


foreach($parentlistexploded as $mfid)
{
// This forum has moderators

	if(is_array($moderatorcache[$mfid]))

	if(isset($moderatorcache[$mfid]) && is_array($moderatorcache[$mfid]))

	{
// Fetch each moderator from the cache and format it, appending it to the list
foreach($moderatorcache[$mfid] as $modtype)

	{
// Fetch each moderator from the cache and format it, appending it to the list
foreach($moderatorcache[$mfid] as $modtype)

Zeile 274Zeile 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 304Zeile 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 705Zeile 708
	if($sortordernow != "desc")
{
$page_url .= "{$q}{$and}order={$sortordernow}";

	if($sortordernow != "desc")
{
$page_url .= "{$q}{$and}order={$sortordernow}";

		$q = '';
$and = "&";
}

		$q = '';
$and = "&";
}


if($datecut > 0 && $datecut != 9999)
{


if($datecut > 0 && $datecut != 9999)
{

Zeile 787Zeile 790
	// See if this announcement has been read in our announcement array
$cookie = array();
if(isset($mybb->cookies['mybb']['announcements']))

	// See if this announcement has been read in our announcement array
$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 = '';
$bgcolor = alt_trow(true); // Reset the trow colors
while($announcement = $db->fetch_array($query))

	$announcementlist = '';
$bgcolor = alt_trow(true); // Reset the trow colors
while($announcement = $db->fetch_array($query))

Zeile 810Zeile 813
		if(isset($cookie[$announcement['aid']]) && $cookie[$announcement['aid']] < $mybb->user['lastvisit'])
{
unset($cookie[$announcement['aid']]);

		if(isset($cookie[$announcement['aid']]) && $cookie[$announcement['aid']] < $mybb->user['lastvisit'])
{
unset($cookie[$announcement['aid']]);

		}

		}


$announcement['announcementlink'] = get_announcement_link($announcement['aid']);
$announcement['subject'] = $parser->parse_badwords($announcement['subject']);


$announcement['announcementlink'] = get_announcement_link($announcement['aid']);
$announcement['subject'] = $parser->parse_badwords($announcement['subject']);

Zeile 822Zeile 825
		$announcement['profilelink'] = build_profile_link($announcement['username'], $announcement['uid']);

if($mybb->settings['allowthreadratings'] != 0 && $foruminfo['allowtratings'] != 0 && $fpermissions['canviewthreads'] != 0)

		$announcement['profilelink'] = build_profile_link($announcement['username'], $announcement['uid']);

if($mybb->settings['allowthreadratings'] != 0 && $foruminfo['allowtratings'] != 0 && $fpermissions['canviewthreads'] != 0)

		{

		{

			eval("\$rating = \"".$templates->get("forumdisplay_announcement_rating")."\";");
$lpbackground = "trow2";
}

			eval("\$rating = \"".$templates->get("forumdisplay_announcement_rating")."\";");
$lpbackground = "trow2";
}

Zeile 830Zeile 833
		{
$rating = '';
$lpbackground = "trow1";

		{
$rating = '';
$lpbackground = "trow1";

		}


		}


		if($ismod)
{
eval("\$modann = \"".$templates->get("forumdisplay_announcements_announcement_modbit")."\";");

		if($ismod)
{
eval("\$modann = \"".$templates->get("forumdisplay_announcements_announcement_modbit")."\";");

Zeile 850Zeile 853
	{
eval("\$announcementlist = \"".$templates->get("forumdisplay_announcements")."\";");
$shownormalsep = true;

	{
eval("\$announcementlist = \"".$templates->get("forumdisplay_announcements")."\";");
$shownormalsep = true;

	}


	}


	if(empty($cookie))
{
// Clean up cookie crumbs
my_setcookie('mybb[announcements]', 0, (TIME_NOW - (60*60*24*365)));

	if(empty($cookie))
{
// Clean up cookie crumbs
my_setcookie('mybb[announcements]', 0, (TIME_NOW - (60*60*24*365)));

	}

	}

	else if(!empty($cookie))
{
my_setcookie("mybb[announcements]", addslashes(my_serialize($cookie)), -1);
}

	else if(!empty($cookie))
{
my_setcookie("mybb[announcements]", addslashes(my_serialize($cookie)), -1);
}

}

}

else
{
$announcementlist = '';
}

else
{
$announcementlist = '';
}





$tids = $threadcache = array();
$icon_cache = $cache->read("posticons");

if($fpermissions['canviewthreads'] != 0)

$tids = $threadcache = array();
$icon_cache = $cache->read("posticons");

if($fpermissions['canviewthreads'] != 0)

{

{

	$plugins->run_hooks("forumdisplay_get_threads");

// Start Getting Threads

	$plugins->run_hooks("forumdisplay_get_threads");

// Start Getting Threads

Zeile 933Zeile 936
		while($rating = $db->fetch_array($query))
{
$threadcache[$rating['tid']]['rated'] = 1;

		while($rating = $db->fetch_array($query))
{
$threadcache[$rating['tid']]['rated'] = 1;

		}

		}

	}
}


	}
}


Zeile 993Zeile 996
	if($db->num_rows($query) > 0)
{
$forum_read = $db->fetch_field($query, "dateline");

	if($db->num_rows($query) > 0)
{
$forum_read = $db->fetch_field($query, "dateline");

	}


	}


	$read_cutoff = TIME_NOW-$mybb->settings['threadreadcut']*60*60*24;
if($forum_read == 0 || $forum_read < $read_cutoff)
{

	$read_cutoff = TIME_NOW-$mybb->settings['threadreadcut']*60*60*24;
if($forum_read == 0 || $forum_read < $read_cutoff)
{

Zeile 1034Zeile 1037
		if($thread['visible'] == 0)
{
$bgcolor = "trow_shaded";

		if($thread['visible'] == 0)
{
$bgcolor = "trow_shaded";

		}

		}

		elseif($thread['visible'] == -1 && is_moderator($fid, "canviewdeleted"))

		elseif($thread['visible'] == -1 && is_moderator($fid, "canviewdeleted"))

		{

		{

			$bgcolor = "trow_shaded trow_deleted";

			$bgcolor = "trow_shaded trow_deleted";

		}

		}

		else
{
$bgcolor = alt_trow();

		else
{
$bgcolor = alt_trow();

		}


		}


		if($thread['sticky'] == 1)
{
$thread_type_class = " forumdisplay_sticky";

		if($thread['sticky'] == 1)
{
$thread_type_class = " forumdisplay_sticky";

Zeile 1054Zeile 1057
		}

$folder = '';

		}

$folder = '';

		$prefix = '';


		$prefix = '';


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

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

Zeile 1088Zeile 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 1096Zeile 1099
			$icon['name'] = htmlspecialchars_uni($icon['name']);
eval("\$icon = \"".$templates->get("forumdisplay_thread_icon")."\";");
}

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

		else
{
$icon = "&nbsp;";
}


		else
{
$icon = "&nbsp;";
}


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

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

		}

		}


if($thread['sticky'] == "1" && !isset($donestickysep))
{


if($thread['sticky'] == "1" && !isset($donestickysep))
{

Zeile 1117Zeile 1120
		{
eval("\$threads .= \"".$templates->get("forumdisplay_threads_sep")."\";");
$shownormalsep = false;

		{
eval("\$threads .= \"".$templates->get("forumdisplay_threads_sep")."\";");
$shownormalsep = false;

		}

		}


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


$rating = '';
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
{

				$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 1140Zeile 1152

$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['pages'] = 0;

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

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

			}

			}

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

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

		{

		{

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

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





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

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





			if($thread['pages'] > $mybb->settings['maxmultipagelinks'])
{
$pagesstop = $mybb->settings['maxmultipagelinks'] - 1;
$page_link = get_thread_link($thread['tid'], $thread['pages']);
eval("\$morelink = \"".$templates->get("forumdisplay_thread_multipage_more")."\";");

			if($thread['pages'] > $mybb->settings['maxmultipagelinks'])
{
$pagesstop = $mybb->settings['maxmultipagelinks'] - 1;
$page_link = get_thread_link($thread['tid'], $thread['pages']);
eval("\$morelink = \"".$templates->get("forumdisplay_thread_multipage_more")."\";");

			}

			}

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

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

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

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

			{

			{

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

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

Zeile 1189Zeile 1201
			eval("\$thread['multipage'] = \"".$templates->get("forumdisplay_thread_multipage")."\";");
}
else

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

		{

		{

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

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

Zeile 1201Zeile 1213
			{
$inlinecheck = "checked=\"checked\"";
++$inlinecount;

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

			}

			}

			else
{
$inlinecheck = '';
}

			else
{
$inlinecheck = '';
}





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

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

		}

		}

		else

		else

		{

		{

			$modbit = '';

			$modbit = '';

		}

		}


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


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

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





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

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

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

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





		$gotounread = '';
$isnew = 0;
$donenew = 0;

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

		$gotounread = '';
$isnew = 0;
$donenew = 0;

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

		{

		{

			if(!empty($thread['lastread']))
{
$last_read = $thread['lastread'];

			if(!empty($thread['lastread']))
{
$last_read = $thread['lastread'];

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

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

		}


		}


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

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

Zeile 1321Zeile 1333
		if($lastposteruid == 0)
{
$lastposterlink = $lastposter;

		if($lastposteruid == 0)
{
$lastposterlink = $lastposter;

		}
else

		}
else

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

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

Zeile 1363Zeile 1375
			}

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

			}

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

		}
else

		}
else

		{
$attachment_count = '';
}

		{
$attachment_count = '';
}

Zeile 1423Zeile 1435
			{
eval("\$customthreadtools = \"".$templates->get("forumdisplay_inlinemoderation_custom")."\";");
}

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

		}

$inlinemodopenclose = $inlinemodstickunstick = $inlinemodsoftdelete = $inlinemodrestore = $inlinemoddelete = $inlinemodmanage = $inlinemodapproveunapprove = '';


		}

$inlinemodopenclose = $inlinemodstickunstick = $inlinemodsoftdelete = $inlinemodrestore = $inlinemoddelete = $inlinemodmanage = $inlinemodapproveunapprove = '';


		if(is_moderator($fid, "canopenclosethreads"))
{
eval("\$inlinemodopenclose = \"".$templates->get("forumdisplay_inlinemoderation_openclose")."\";");

		if(is_moderator($fid, "canopenclosethreads"))
{
eval("\$inlinemodopenclose = \"".$templates->get("forumdisplay_inlinemoderation_openclose")."\";");

		}


		}


		if(is_moderator($fid, "canstickunstickthreads"))
{
eval("\$inlinemodstickunstick = \"".$templates->get("forumdisplay_inlinemoderation_stickunstick")."\";");

		if(is_moderator($fid, "canstickunstickthreads"))
{
eval("\$inlinemodstickunstick = \"".$templates->get("forumdisplay_inlinemoderation_stickunstick")."\";");

		}


		}


		if(is_moderator($fid, "cansoftdeletethreads"))
{
eval("\$inlinemodsoftdelete = \"".$templates->get("forumdisplay_inlinemoderation_softdelete")."\";");

		if(is_moderator($fid, "cansoftdeletethreads"))
{
eval("\$inlinemodsoftdelete = \"".$templates->get("forumdisplay_inlinemoderation_softdelete")."\";");

Zeile 1445Zeile 1457
		if(is_moderator($fid, "canrestorethreads"))
{
eval("\$inlinemodrestore = \"".$templates->get("forumdisplay_inlinemoderation_restore")."\";");

		if(is_moderator($fid, "canrestorethreads"))
{
eval("\$inlinemodrestore = \"".$templates->get("forumdisplay_inlinemoderation_restore")."\";");

		}


		}


		if(is_moderator($fid, "candeletethreads"))
{
eval("\$inlinemoddelete = \"".$templates->get("forumdisplay_inlinemoderation_delete")."\";");

		if(is_moderator($fid, "candeletethreads"))
{
eval("\$inlinemoddelete = \"".$templates->get("forumdisplay_inlinemoderation_delete")."\";");

		}


		}


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

Zeile 1465Zeile 1477
		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")."\";");

		}


		}


		// Only show inline mod menu if there's options to show
if(!empty($standardthreadtools) || !empty($customthreadtools))
{

		// Only show inline mod menu if there's options to show
if(!empty($standardthreadtools) || !empty($customthreadtools))
{

Zeile 1501Zeile 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")
{
if($fpermissions['canviewthreads'] != 1)


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

	{

	{

		eval("\$threads = \"".$templates->get("forumdisplay_nopermission")."\";");

		eval("\$threads = \"".$templates->get("forumdisplay_nopermission")."\";");

	}


	}


	if(!$threadcount && $fpermissions['canviewthreads'] == 1)

	if(!$threadcount && $fpermissions['canviewthreads'] == 1)

	{

	{

		eval("\$threads = \"".$templates->get("forumdisplay_nothreads")."\";");

		eval("\$threads = \"".$templates->get("forumdisplay_nothreads")."\";");

	}


	}


	$clearstoredpass = '';
if($foruminfo['password'] != '')
{

	$clearstoredpass = '';
if($foruminfo['password'] != '')
{

Zeile 1527Zeile 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'])));