Vergleich forumdisplay.php - 1.8.3 - 1.8.7

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 18Zeile 18
$templatelist .= ",forumdisplay_usersbrowsing_user,forumdisplay_usersbrowsing,forumdisplay_inlinemoderation,forumdisplay_thread_modbit,forumdisplay_inlinemoderation_col,forumdisplay_inlinemoderation_selectall,forumdisplay_threadlist_clearpass,forumdisplay_thread_rating_moved";
$templatelist .= ",forumdisplay_announcements_announcement,forumdisplay_announcements,forumdisplay_threads_sep,forumbit_depth3_statusicon,forumbit_depth3,forumdisplay_sticky_sep,forumdisplay_thread_attachment_count,forumdisplay_rssdiscovery,forumdisplay_announcement_rating,forumbit_moderators_group";
$templatelist .= ",forumdisplay_inlinemoderation_openclose,forumdisplay_inlinemoderation_stickunstick,forumdisplay_inlinemoderation_softdelete,forumdisplay_inlinemoderation_restore,forumdisplay_inlinemoderation_delete,forumdisplay_inlinemoderation_manage,forumdisplay_inlinemoderation_approveunapprove";

$templatelist .= ",forumdisplay_usersbrowsing_user,forumdisplay_usersbrowsing,forumdisplay_inlinemoderation,forumdisplay_thread_modbit,forumdisplay_inlinemoderation_col,forumdisplay_inlinemoderation_selectall,forumdisplay_threadlist_clearpass,forumdisplay_thread_rating_moved";
$templatelist .= ",forumdisplay_announcements_announcement,forumdisplay_announcements,forumdisplay_threads_sep,forumbit_depth3_statusicon,forumbit_depth3,forumdisplay_sticky_sep,forumdisplay_thread_attachment_count,forumdisplay_rssdiscovery,forumdisplay_announcement_rating,forumbit_moderators_group";
$templatelist .= ",forumdisplay_inlinemoderation_openclose,forumdisplay_inlinemoderation_stickunstick,forumdisplay_inlinemoderation_softdelete,forumdisplay_inlinemoderation_restore,forumdisplay_inlinemoderation_delete,forumdisplay_inlinemoderation_manage,forumdisplay_inlinemoderation_approveunapprove";

$templatelist .= ",forumbit_depth2_forum_unapproved_posts,forumbit_depth2_forum_unapproved_threads,forumbit_moderators_user,forumdisplay_inlinemoderation_standard,forumdisplay_threadlist_prefixes_prefix,forumdisplay_threadlist_prefixes";

$templatelist .= ",forumbit_depth2_forum_unapproved_posts,forumbit_depth2_forum_unapproved_threads,forumbit_moderators_user,forumdisplay_inlinemoderation_standard,forumdisplay_threadlist_prefixes_prefix,forumdisplay_threadlist_prefixes,forumdisplay_nopermission";


require_once "./global.php";
require_once MYBB_ROOT."inc/functions_post.php";


require_once "./global.php";
require_once MYBB_ROOT."inc/functions_post.php";

Zeile 36Zeile 36

$plugins->run_hooks("forumdisplay_start");



$plugins->run_hooks("forumdisplay_start");


$fid = $mybb->get_input('fid', 1);

$fid = $mybb->get_input('fid', MyBB::INPUT_INT);

if($fid < 0)
{
switch($fid)

if($fid < 0)
{
switch($fid)

Zeile 456Zeile 456
// If there was a manual date cut override, use it.
else
{

// If there was a manual date cut override, use it.
else
{

	$datecut = $mybb->get_input('datecut', 1);

	$datecut = $mybb->get_input('datecut', MyBB::INPUT_INT);

}

$datecutsel[(int)$datecut] = ' selected="selected"';

}

$datecutsel[(int)$datecut] = ' selected="selected"';

Zeile 473Zeile 473
}

// Sort by thread prefix

}

// Sort by thread prefix

$tprefix = $mybb->get_input('prefix', 1);

$tprefix = $mybb->get_input('prefix', MyBB::INPUT_INT);

if($tprefix > 0)
{
$prefixsql = "AND prefix = {$tprefix}";

if($tprefix > 0)
{
$prefixsql = "AND prefix = {$tprefix}";

Zeile 580Zeile 580
}

// Are we viewing a specific page?

}

// Are we viewing a specific page?

$mybb->input['page'] = $mybb->get_input('page', 1);

$mybb->input['page'] = $mybb->get_input('page', MyBB::INPUT_INT);

if($mybb->input['page'] > 1)
{
$sorturl = get_forum_link($fid, $mybb->input['page']).$string."datecut=$datecut&amp;prefix=$tprefix";

if($mybb->input['page'] > 1)
{
$sorturl = get_forum_link($fid, $mybb->input['page']).$string."datecut=$datecut&amp;prefix=$tprefix";

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

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

	if($datecut > 0 || isset($fpermissions['canonlyviewownthreads']) && $fpermissions['canonlyviewownthreads'] == 1)

	if(($datecut > 0 && $datecut != 9999) || isset($fpermissions['canonlyviewownthreads']) && $fpermissions['canonlyviewownthreads'] == 1)

	{
$query = $db->simple_select("threads", "COUNT(tid) AS threads", "fid = '$fid' $useronly $visibleonly $datecutsql $prefixsql");
$threadcount = $db->fetch_field($query, "threads");

	{
$query = $db->simple_select("threads", "COUNT(tid) AS threads", "fid = '$fid' $useronly $visibleonly $datecutsql $prefixsql");
$threadcount = $db->fetch_field($query, "threads");

Zeile 692Zeile 692
		$and = "&";
}


		$and = "&";
}


	if($datecut > 0)

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

	{
$page_url .= "{$q}{$and}datecut={$datecut}";
$q = '';

	{
$page_url .= "{$q}{$and}datecut={$datecut}";
$q = '';

Zeile 838Zeile 838
	}
else if(!empty($cookie))
{

	}
else if(!empty($cookie))
{

		my_setcookie("mybb[announcements]", addslashes(serialize($cookie)), -1);

		my_setcookie("mybb[announcements]", addslashes(my_serialize($cookie)), -1);

	}
}
else

	}
}
else

Zeile 927Zeile 927
// Check participation by the current user in any of these threads - for 'dot' folder icons
if($mybb->settings['dotfolders'] != 0 && $mybb->user['uid'] && !empty($threadcache))
{

// Check participation by the current user in any of these threads - for 'dot' folder icons
if($mybb->settings['dotfolders'] != 0 && $mybb->user['uid'] && !empty($threadcache))
{

	$query = $db->simple_select("posts", "tid,uid", "uid='{$mybb->user['uid']}' AND tid IN ({$tids}) {$visibleonly}");

	$query = $db->simple_select("posts", "DISTINCT tid,uid", "uid='{$mybb->user['uid']}' AND tid IN ({$tids}) {$visibleonly}");

	while($post = $db->fetch_array($query))
{
if(!empty($moved_threads[$post['tid']]))

	while($post = $db->fetch_array($query))
{
if(!empty($moved_threads[$post['tid']]))

Zeile 1336Zeile 1336
						$gid = (int)$gid;
$gidswhere .= " OR ','||groups||',' LIKE '%,{$gid},%'";
}

						$gid = (int)$gid;
$gidswhere .= " OR ','||groups||',' LIKE '%,{$gid},%'";
}

					$query = $db->simple_select("modtools", 'tid, name', "(','||forums||',' LIKE '%,$fid,%' OR ','||forums||',' LIKE '%,-1,%' OR forums='') AND (groups=''{$gidswhere}) AND type = 't'");

					$query = $db->simple_select("modtools", 'tid, name', "(','||forums||',' LIKE '%,$fid,%' OR ','||forums||',' LIKE '%,-1,%' OR forums='') AND (groups='' OR ','||groups||',' LIKE '%,-1,%'{$gidswhere}) AND type = 't'");

					break;
default:
foreach($gids as $gid)

					break;
default:
foreach($gids as $gid)

Zeile 1344Zeile 1344
						$gid = (int)$gid;
$gidswhere .= " OR CONCAT(',',groups,',') LIKE '%,{$gid},%'";
}

						$gid = (int)$gid;
$gidswhere .= " OR CONCAT(',',groups,',') LIKE '%,{$gid},%'";
}

					$query = $db->simple_select("modtools", 'tid, name', "(CONCAT(',',forums,',') LIKE '%,$fid,%' OR CONCAT(',',forums,',') LIKE '%,-1,%' OR forums='') AND (groups=''{$gidswhere}) AND type = 't'");

					$query = $db->simple_select("modtools", 'tid, name', "(CONCAT(',',forums,',') LIKE '%,$fid,%' OR CONCAT(',',forums,',') LIKE '%,-1,%' OR forums='') AND (groups='' OR CONCAT(',',groups,',') LIKE '%,-1,%'{$gidswhere}) AND type = 't'");

					break;
}


					break;
}


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

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

	if(!$threadcount)






	if($fpermissions['canviewthreads'] != 1)
{
eval("\$threads = \"".$templates->get("forumdisplay_nopermission")."\";");
}

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

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

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