Vergleich forumdisplay.php - 1.8.25 - 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 152Zeile 152

$subforums = '';
$child_forums = build_forumbits($fid, 2);


$subforums = '';
$child_forums = build_forumbits($fid, 2);

$forums = $child_forums['forum_list'];

 




if($forums)

if(!empty($child_forums) && !empty($child_forums['forum_list']))

{

{

 
	$forums = $child_forums['forum_list'];

	$lang->sub_forums_in = $lang->sprintf($lang->sub_forums_in, $foruminfo['name']);
eval("\$subforums = \"".$templates->get("forumdisplay_subforums")."\";");
}

	$lang->sub_forums_in = $lang->sprintf($lang->sub_forums_in, $foruminfo['name']);
eval("\$subforums = \"".$templates->get("forumdisplay_subforums")."\";");
}

Zeile 177Zeile 177
	$forumjump = build_forum_jump("", $fid, 1);
}


	$forumjump = build_forum_jump("", $fid, 1);
}


 
$newthread = '';

if($foruminfo['type'] == "f" && $foruminfo['open'] != 0 && $fpermissions['canpostthreads'] != 0 && $mybb->user['suspendposting'] == 0)
{
eval("\$newthread = \"".$templates->get("forumdisplay_newthread")."\";");
}


if($foruminfo['type'] == "f" && $foruminfo['open'] != 0 && $fpermissions['canpostthreads'] != 0 && $mybb->user['suspendposting'] == 0)
{
eval("\$newthread = \"".$templates->get("forumdisplay_newthread")."\";");
}


 
$searchforum = '';

if($fpermissions['cansearch'] != 0 && $foruminfo['type'] == "f")
{
eval("\$searchforum = \"".$templates->get("forumdisplay_searchforum")."\";");

if($fpermissions['cansearch'] != 0 && $foruminfo['type'] == "f")
{
eval("\$searchforum = \"".$templates->get("forumdisplay_searchforum")."\";");

Zeile 213Zeile 215

$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 302Zeile 305
		{
$doneusers[$user['uid']] = $user['time'];
++$membercount;

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

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

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

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

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

Zeile 530Zeile 533
if(!isset($mybb->input['sortby']) && !empty($foruminfo['defaultsortby']))
{
$mybb->input['sortby'] = $foruminfo['defaultsortby'];

if(!isset($mybb->input['sortby']) && !empty($foruminfo['defaultsortby']))
{
$mybb->input['sortby'] = $foruminfo['defaultsortby'];

}

}

else
{
$mybb->input['sortby'] = $mybb->get_input('sortby');
}

else
{
$mybb->input['sortby'] = $mybb->get_input('sortby');
}





$t = 't.';
$sortfield2 = '';

$sortby = htmlspecialchars_uni($mybb->input['sortby']);

$t = 't.';
$sortfield2 = '';

$sortby = htmlspecialchars_uni($mybb->input['sortby']);





switch($mybb->input['sortby'])
{
case "subject":

switch($mybb->input['sortby'])
{
case "subject":

Zeile 559Zeile 562
		$t = "";
$sortfield = "averagerating";
$sortfield2 = ", t.totalratings DESC";

		$t = "";
$sortfield = "averagerating";
$sortfield2 = ", t.totalratings DESC";

		break;

		break;

	case "started":
$sortfield = "dateline";

	case "started":
$sortfield = "dateline";

		break;

		break;

	default:
$sortby = "lastpost";
$sortfield = "lastpost";
$mybb->input['sortby'] = "lastpost";
break;

	default:
$sortby = "lastpost";
$sortfield = "lastpost";
$mybb->input['sortby'] = "lastpost";
break;

}


}


$sortsel['rating'] = ''; // Needs to be initialized in order to speed-up things. Fixes #2031
$sortsel[$mybb->input['sortby']] = ' selected="selected"';


$sortsel['rating'] = ''; // Needs to be initialized in order to speed-up things. Fixes #2031
$sortsel[$mybb->input['sortby']] = ' selected="selected"';


Zeile 577Zeile 580
if($mybb->seo_support == true)
{
$string = "?";

if($mybb->seo_support == true)
{
$string = "?";

}
else

}
else

{
$string = "&";
}

{
$string = "&";
}

Zeile 607Zeile 610
if($fpermissions['canviewthreads'] != 0)
{
// How many threads are there?

if($fpermissions['canviewthreads'] != 0)
{
// How many threads are there?

	$query = $db->simple_select("threads t", "COUNT(tid) AS threads", "fid = '$fid' $tuseronly $tvisibleonly $datecutsql2 $prefixsql2");
$threadcount = $db->fetch_field($query, "threads");
































	if ($useronly === "" && $datecutsql === "" && $prefixsql === "")
{
$threadcount = 0;

$query = $db->simple_select("forums", "threads, unapprovedthreads, deletedthreads", "fid=".(int)$fid);
$forum_threads = $db->fetch_array($query);

if(in_array(1, $visible_states))
{
$threadcount += $forum_threads['threads'];
}

if(in_array(-1, $visible_states))
{
$threadcount += $forum_threads['deletedthreads'];
}

if(in_array(0, $visible_states))
{
$threadcount += $forum_threads['unapprovedthreads'];
}
elseif($mybb->user['uid'] && $mybb->settings['showownunapproved'])
{
$query = $db->simple_select("threads t", "COUNT(tid) AS threads", "fid = '$fid' AND t.visible=0 AND t.uid=".(int)$mybb->user['uid']);
$threadcount += $db->fetch_field($query, "threads");
}
}
else
{
$query = $db->simple_select("threads t", "COUNT(tid) AS threads", "fid = '$fid' $tuseronly $tvisibleonly $datecutsql2 $prefixsql2");

$threadcount = $db->fetch_field($query, "threads");
}

}

// How many pages are there?

}

// How many pages are there?

Zeile 694Zeile 728
}
$multipage = multipage($threadcount, $perpage, $page, $page_url);


}
$multipage = multipage($threadcount, $perpage, $page, $page_url);


 
$ratingcol = $ratingsort = '';

if($mybb->settings['allowthreadratings'] != 0 && $foruminfo['allowtratings'] != 0 && $fpermissions['canviewthreads'] != 0)
{
$lang->load("ratethread");

if($mybb->settings['allowthreadratings'] != 0 && $foruminfo['allowtratings'] != 0 && $fpermissions['canviewthreads'] != 0)
{
$lang->load("ratethread");

Zeile 754Zeile 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 849Zeile 884
		ORDER BY t.sticky DESC, {$t}{$sortfield} $sortordernow $sortfield2
LIMIT $start, $perpage
");

		ORDER BY t.sticky DESC, {$t}{$sortfield} $sortordernow $sortfield2
LIMIT $start, $perpage
");





	$ratings = false;
$moved_threads = array();
while($thread = $db->fetch_array($query))
{
$threadcache[$thread['tid']] = $thread;

	$ratings = false;
$moved_threads = array();
while($thread = $db->fetch_array($query))
{
$threadcache[$thread['tid']] = $thread;





		if($thread['numratings'] > 0 && $ratings == false)
{
$ratings = true; // Looks for ratings in the forum

		if($thread['numratings'] > 0 && $ratings == false)
{
$ratings = true; // Looks for ratings in the forum

Zeile 863Zeile 898

// If this is a moved thread - set the tid for participation marking and thread read marking to that of the moved thread
if(substr($thread['closed'], 0, 5) == "moved")


// If this is a moved thread - set the tid for participation marking and thread read marking to that of the moved thread
if(substr($thread['closed'], 0, 5) == "moved")

		{

		{

			$tid = substr($thread['closed'], 6);
if(!isset($tids[$tid]))
{

			$tid = substr($thread['closed'], 6);
if(!isset($tids[$tid]))
{

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

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

		}
}
}


		}
}
}


// If user has moderation tools available, prepare the Select All feature
$selectall = '';
if(is_moderator($fid) && $threadcount > $perpage)

// If user has moderation tools available, prepare the Select All feature
$selectall = '';
if(is_moderator($fid) && $threadcount > $perpage)

Zeile 954Zeile 989

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


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

 
	$forum_read = 0;

	$query = $db->simple_select("forumsread", "dateline", "fid='{$fid}' AND uid='{$mybb->user['uid']}'");

	$query = $db->simple_select("forumsread", "dateline", "fid='{$fid}' AND uid='{$mybb->user['uid']}'");

	$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 1090Zeile 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 1102Zeile 1150

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


$thread['pages'] = 0;
$thread['multipage'] = '';

Zeile 1122Zeile 1170
			}
}
elseif($fpermissions['canviewdeletionnotice'] != 0)

			}
}
elseif($fpermissions['canviewdeletionnotice'] != 0)

		{

		{

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


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


Zeile 1140Zeile 1188
			else
{
$pagesstop = $thread['pages'];

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

			}

			}


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


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

Zeile 1167Zeile 1215
			else
{
$inlinecheck = '';

			else
{
$inlinecheck = '';

			}


			}


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

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

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

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

			}
else

			}
else

			{
$last_read = $read_cutoff;
}

			{
$last_read = $read_cutoff;
}

Zeile 1265Zeile 1313
		if(($thread['uid'] == $mybb->user['uid'] && $thread['closed'] != 1 && $mybb->user['uid'] != 0 && $can_edit_titles == 1) || $ismod == true)
{
$inline_edit_class = "subject_editable";

		if(($thread['uid'] == $mybb->user['uid'] && $thread['closed'] != 1 && $mybb->user['uid'] != 0 && $can_edit_titles == 1) || $ismod == true)
{
$inline_edit_class = "subject_editable";

		}



		}



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

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

		{

		{

			$lastposter = htmlspecialchars_uni($lang->guest);

			$lastposter = htmlspecialchars_uni($lang->guest);

		}

		}

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

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

Zeile 1287Zeile 1335
		else
{
$lastposterlink = build_profile_link($lastposter, $lastposteruid);

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

		}

		}


$thread['replies'] = my_number_format($thread['replies']);
$thread['views'] = my_number_format($thread['views']);


$thread['replies'] = my_number_format($thread['replies']);
$thread['views'] = my_number_format($thread['views']);

Zeile 1325Zeile 1373
			}

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

			}

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

		}
else

		}
else

		{
$attachment_count = '';

		{
$attachment_count = '';

		}

$plugins->run_hooks("forumdisplay_thread_end");

		}

$plugins->run_hooks("forumdisplay_thread_end");


if($fpermissions['canviewdeletionnotice'] != 0 && $thread['visible'] == -1 && !is_moderator($fid, "canviewdeleted"))


if($fpermissions['canviewdeletionnotice'] != 0 && $thread['visible'] == -1 && !is_moderator($fid, "canviewdeleted"))

		{

		{

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

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

		}

		}

		else
{
$thread['start_datetime'] = my_date('relative', $thread['dateline']);

		else
{
$thread['start_datetime'] = my_date('relative', $thread['dateline']);

Zeile 1346Zeile 1394

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


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

	{

	{

		if(is_moderator($fid, "canusecustomtools") && $has_modtools == true)
{
$gids = explode(',', $mybb->user['additionalgroups']);

		if(is_moderator($fid, "canusecustomtools") && $has_modtools == true)
{
$gids = explode(',', $mybb->user['additionalgroups']);

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

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

		}


		}


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

if(is_moderator($fid, "canopenclosethreads"))

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

if(is_moderator($fid, "canopenclosethreads"))

Zeile 1397Zeile 1445
		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, "canrestorethreads"))

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

if(is_moderator($fid, "canrestorethreads"))

		{

		{

			eval("\$inlinemodrestore = \"".$templates->get("forumdisplay_inlinemoderation_restore")."\";");

			eval("\$inlinemodrestore = \"".$templates->get("forumdisplay_inlinemoderation_restore")."\";");

		}


		}


		if(is_moderator($fid, "candeletethreads"))

		if(is_moderator($fid, "candeletethreads"))

		{

		{

			eval("\$inlinemoddelete = \"".$templates->get("forumdisplay_inlinemoderation_delete")."\";");

			eval("\$inlinemoddelete = \"".$templates->get("forumdisplay_inlinemoderation_delete")."\";");

		}


		}


		if(is_moderator($fid, "canmanagethreads"))

		if(is_moderator($fid, "canmanagethreads"))

		{

		{

			eval("\$inlinemodmanage = \"".$templates->get("forumdisplay_inlinemoderation_manage")."\";");

			eval("\$inlinemodmanage = \"".$templates->get("forumdisplay_inlinemoderation_manage")."\";");

		}


		}


		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))

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

			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 1435Zeile 1483
			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";





$unread_threads = fetch_unread_count($fid);
if($unread_threads !== false && $unread_threads == 0 && empty($unread_forums))
{
mark_forum_read($fid);

$unread_threads = fetch_unread_count($fid);
if($unread_threads !== false && $unread_threads == 0 && empty($unread_forums))
{
mark_forum_read($fid);

}


}


// Subscription status
$add_remove_subscription = 'add';
$add_remove_subscription_text = $lang->subscribe_forum;

// Subscription status
$add_remove_subscription = 'add';
$add_remove_subscription_text = $lang->subscribe_forum;

Zeile 1455Zeile 1503
{
$query = $db->simple_select("forumsubscriptions", "fid", "fid='".$fid."' AND uid='{$mybb->user['uid']}'", array('limit' => 1));


{
$query = $db->simple_select("forumsubscriptions", "fid", "fid='".$fid."' AND uid='{$mybb->user['uid']}'", array('limit' => 1));


	if($db->fetch_field($query, 'fid'))

	if($db->num_rows($query) > 0)

	{
$add_remove_subscription = 'remove';
$add_remove_subscription_text = $lang->unsubscribe_forum;

	{
$add_remove_subscription = 'remove';
$add_remove_subscription_text = $lang->unsubscribe_forum;

Zeile 1486Zeile 1534
	}

$prefixselect = build_forum_prefix_select($fid, $tprefix);

	}

$prefixselect = build_forum_prefix_select($fid, $tprefix);

 

// Populate Forumsort
$forumsort = '';
eval("\$forumsort = \"".$templates->get("forumdisplay_forumsort")."\";");


$plugins->run_hooks("forumdisplay_threadlist");



$plugins->run_hooks("forumdisplay_threadlist");