Vergleich forumdisplay.php - 1.4.10 - 1.4.16

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: forumdisplay.php 4536 2009-11-25 06:34:47Z RyanGordon $

 * $Id: forumdisplay.php 5379 2011-02-21 11:06:42Z Tomm $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 92Zeile 92
	");

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

	");

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

 

if(!is_array($forumsread))
{
$forumsread = array();
}

}
else
{

}
else
{

Zeile 124Zeile 129

$bgcolor = "trow1";
if($mybb->settings['subforumsindex'] != 0)


$bgcolor = "trow1";
if($mybb->settings['subforumsindex'] != 0)

{

{

	$showdepth = 3;
}
else

	$showdepth = 3;
}
else

{

{

	$showdepth = 2;

	$showdepth = 2;

}

}

$child_forums = build_forumbits($fid, 2);
$forums = $child_forums['forum_list'];
if($forums)
{
$lang->sub_forums_in = $lang->sprintf($lang->sub_forums_in, $foruminfo['name']);
eval("\$subforums = \"".$templates->get("forumdisplay_subforums")."\";");

$child_forums = build_forumbits($fid, 2);
$forums = $child_forums['forum_list'];
if($forums)
{
$lang->sub_forums_in = $lang->sprintf($lang->sub_forums_in, $foruminfo['name']);
eval("\$subforums = \"".$templates->get("forumdisplay_subforums")."\";");

}

$excols = "forumdisplay";


}

$excols = "forumdisplay";


// Password protected forums
check_forum_password($foruminfo['fid']);


// Password protected forums
check_forum_password($foruminfo['fid']);


Zeile 219Zeile 224
		if($user['uid'] == 0)
{
++$guestcount;

		if($user['uid'] == 0)
{
++$guestcount;

		}
else

		}
else

		{
if($doneusers[$user['uid']] < $user['time'] || !$doneusers[$user['uid']])
{

		{
if($doneusers[$user['uid']] < $user['time'] || !$doneusers[$user['uid']])
{

Zeile 477Zeile 482
if(!$mybb->settings['threadsperpage'])
{
$mybb->settings['threadsperpage'] = 20;

if(!$mybb->settings['threadsperpage'])
{
$mybb->settings['threadsperpage'] = 20;

}


}


$perpage = $mybb->settings['threadsperpage'];

if(intval($mybb->input['page']) > 0)

$perpage = $mybb->settings['threadsperpage'];

if(intval($mybb->input['page']) > 0)

Zeile 622Zeile 627
	$posttime = my_date($mybb->settings['timeformat'], $announcement['startdate']);
$announcement['profilelink'] = build_profile_link($announcement['username'], $announcement['uid']);


	$posttime = my_date($mybb->settings['timeformat'], $announcement['startdate']);
$announcement['profilelink'] = build_profile_link($announcement['username'], $announcement['uid']);


	if($foruminfo['allowtratings'] != 0)

	if($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 866Zeile 871
				$pagesstop = 4;
$page_link = get_thread_link($thread['tid'], $thread['pages']);
eval("\$morelink = \"".$templates->get("forumdisplay_thread_multipage_more")."\";");

				$pagesstop = 4;
$page_link = get_thread_link($thread['tid'], $thread['pages']);
eval("\$morelink = \"".$templates->get("forumdisplay_thread_multipage_more")."\";");

			}

			}

			else

			else

			{

			{

				$pagesstop = $thread['pages'];

				$pagesstop = $thread['pages'];

			}


			}


			for($i = 1; $i <= $pagesstop; ++$i)
{
$page_link = get_thread_link($thread['tid'], $i);

			for($i = 1; $i <= $pagesstop; ++$i)
{
$page_link = get_thread_link($thread['tid'], $i);

Zeile 879Zeile 884
			}

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

			}

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

		}
else
{

		}
else
{

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

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

Zeile 897Zeile 902
			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 913Zeile 918
			$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");

Zeile 961Zeile 966
			$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
{
$folder_label .= $lang->icon_no_new;

		else
{
$folder_label .= $lang->icon_no_new;

Zeile 994Zeile 999
		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";

		}
else

		}
else

		{
$inline_edit_class = "";
}

		{
$inline_edit_class = "";
}

Zeile 1010Zeile 1015
		if($lastposteruid == 0)
{
$lastposterlink = $lastposter;

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

		}
else

		}
else

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

		{
$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 1023Zeile 1028
		if($thread['unapprovedposts'] > 0 && $ismod)
{
if($thread['unapprovedposts'] > 1)

		if($thread['unapprovedposts'] > 0 && $ismod)
{
if($thread['unapprovedposts'] > 1)

			{

			{

				$unapproved_posts_count = $lang->sprintf($lang->thread_unapproved_posts_count, $thread['unapprovedposts']);

				$unapproved_posts_count = $lang->sprintf($lang->thread_unapproved_posts_count, $thread['unapprovedposts']);

			}
else
{

			}
else
{

				$unapproved_posts_count = $lang->sprintf($lang->thread_unapproved_post_count, 1);
}


				$unapproved_posts_count = $lang->sprintf($lang->thread_unapproved_post_count, 1);
}


Zeile 1058Zeile 1063
		}

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

		}

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

	}


	}


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

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

Zeile 1091Zeile 1096
if(fetch_unread_count($fid) == 0 && $unread_forums == 0)
{
mark_forum_read($fid);

if(fetch_unread_count($fid) == 0 && $unread_forums == 0)
{
mark_forum_read($fid);

}


}



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


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

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

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

}

}

else
{
$add_remove_subscription = 'add';
$add_remove_subscription_text = $lang->subscribe_forum;
}

else
{
$add_remove_subscription = 'add';
$add_remove_subscription_text = $lang->subscribe_forum;
}







// Is this a real forum with threads?
if($foruminfo['type'] != "c")
{
if(!$threadcount)
{
eval("\$threads = \"".$templates->get("forumdisplay_nothreads")."\";");

// Is this a real forum with threads?
if($foruminfo['type'] != "c")
{
if(!$threadcount)
{
eval("\$threads = \"".$templates->get("forumdisplay_nothreads")."\";");

	}


	}


	if($foruminfo['password'] != '')

	if($foruminfo['password'] != '')

	{

	{

		eval("\$clearstoredpass = \"".$templates->get("forumdisplay_threadlist_clearpass")."\";");
}


		eval("\$clearstoredpass = \"".$templates->get("forumdisplay_threadlist_clearpass")."\";");
}


	if($load_inline_edit_js == 1)







	if($load_inline_edit_js == 1)
{
eval("\$inline_edit_js = \"".$templates->get("forumdisplay_threadlist_inlineedit_js")."\";");
}

$post_code_string = '';
if($mybb->user['uid'])

	{

	{

		eval("\$inline_edit_js = \"".$templates->get("forumdisplay_threadlist_inlineedit_js")."\";");

		$post_code_string = "&my_post_key=".$mybb->post_code;

	}

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

	}

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