Vergleich forumdisplay.php - 1.2.7 - 1.2.8

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

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html
*

 * $Id: forumdisplay.php 3055 2007-05-13 15:01:15Z Tikitiki $

 * $Id: forumdisplay.php 3171 2007-06-29 04:57:39Z chris $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 16Zeile 16
$templatelist .= ",multipage_prevpage,multipage_nextpage,multipage_page_current,multipage_page,multipage_start,multipage_end,multipage";
$templatelist .= ",forumjump_advanced,forumjump_special,forumjump_bit";
$templatelist .= ",forumdisplay_usersbrowsing_guests,forumdisplay_usersbrowsing_user,forumdisplay_usersbrowsing,forumdisplay_inlinemoderation,forumdisplay_thread_modbit,forumdisplay_inlinemoderation_col";

$templatelist .= ",multipage_prevpage,multipage_nextpage,multipage_page_current,multipage_page,multipage_start,multipage_end,multipage";
$templatelist .= ",forumjump_advanced,forumjump_special,forumjump_bit";
$templatelist .= ",forumdisplay_usersbrowsing_guests,forumdisplay_usersbrowsing_user,forumdisplay_usersbrowsing,forumdisplay_inlinemoderation,forumdisplay_thread_modbit,forumdisplay_inlinemoderation_col";

$templatelist .= ",forumdisplay_announcements_announcement,forumdisplay_announcements,forumdisplay_threads_sep,forumbit_depth3_statusicon,forumbit_depth3,forumdisplay_sticky_sep,forumdisplay_thread_attachment_count,forumdisplay_threadlist_inlineedit_js,forumdisplay_rssdiscovery";

$templatelist .= ",forumdisplay_announcements_announcement,forumdisplay_announcements,forumdisplay_threads_sep,forumbit_depth3_statusicon,forumbit_depth3,forumdisplay_sticky_sep,forumdisplay_thread_attachment_count,forumdisplay_threadlist_inlineedit_js,forumdisplay_rssdiscovery,forumdisplay_announcements_announcement_modbit";

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

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

Zeile 80Zeile 80
	$fcache[$forum['pid']][$forum['disporder']][$forum['fid']] = $forum;

}

	$fcache[$forum['pid']][$forum['disporder']][$forum['fid']] = $forum;

}

$forumpermissions = forum_permissions();

 

// Get the forum moderators if the setting is enabled.
if($mybb->settings['modlist'] != "off")


// Get the forum moderators if the setting is enabled.
if($mybb->settings['modlist'] != "off")

Zeile 118Zeile 117
$excols = "forumdisplay";

if($fpermissions['canview'] != "yes")

$excols = "forumdisplay";

if($fpermissions['canview'] != "yes")

{

{

	error_no_permission();
}


	error_no_permission();
}


Zeile 132Zeile 131
}

// Make forum jump...

}

// Make forum jump...

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




if($mybb->settings['enableforumjump'] != "no")
{
$forumjump = build_forum_jump("", $fid, 1);
}


if($foruminfo['type'] == "f" && $foruminfo['open'] != "no")
{


if($foruminfo['type'] == "f" && $foruminfo['open'] != "no")
{

Zeile 264Zeile 266

// Check if the active user is a moderator and get the inline moderation tools.
if(is_moderator($fid) == "yes")


// Check if the active user is a moderator and get the inline moderation tools.
if(is_moderator($fid) == "yes")

{

{

	eval("\$inlinemodcol = \"".$templates->get("forumdisplay_inlinemoderation_col")."\";");
$ismod = true;
$inlinecount = "0";

	eval("\$inlinemodcol = \"".$templates->get("forumdisplay_inlinemoderation_col")."\";");
$ismod = true;
$inlinecount = "0";

Zeile 275Zeile 277
{
$inlinemod = '';
$ismod = false;

{
$inlinemod = '';
$ismod = false;

}

}


if(is_moderator($fid, "caneditposts") == "yes" || $fpermissions['caneditposts'] == "yes")
{


if(is_moderator($fid, "caneditposts") == "yes" || $fpermissions['caneditposts'] == "yes")
{

Zeile 332Zeile 334
if(!isset($mybb->input['order']) && !empty($foruminfo['defaultsortorder']))
{
$mybb->input['order'] = $foruminfo['defaultsortorder'];

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

}

}


$mybb->input['order'] = htmlspecialchars($mybb->input['order']);



$mybb->input['order'] = htmlspecialchars($mybb->input['order']);


Zeile 356Zeile 358
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'];

}

}


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



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


Zeile 364Zeile 366
{
case "subject":
$sortfield = "t.subject";

{
case "subject":
$sortfield = "t.subject";

		break;

		break;

	case "replies":
$sortfield = "t.replies";

	case "replies":
$sortfield = "t.replies";

		break;

		break;

	case "views":
$sortfield = "t.views";
break;

	case "views":
$sortfield = "t.views";
break;

Zeile 448Zeile 450
}

if($ismod)

}

if($ismod)

{

{

	++$colspan;
}


	++$colspan;
}


Zeile 472Zeile 474
{
if($announcement['startdate'] > $mybb->user['lastvisit'])
{

{
if($announcement['startdate'] > $mybb->user['lastvisit'])
{

		$folder = "newfolder.gif";

		$folder = "newfolder";

	}
else
{

	}
else
{

		$folder = "folder.gif";

		$folder = "folder";

	}
$announcement['subject'] = $parser->parse_badwords($announcement['subject']);
$announcement['subject'] = htmlspecialchars_uni($announcement['subject']);
$postdate = my_date($mybb->settings['dateformat'], $announcement['startdate']);

	}
$announcement['subject'] = $parser->parse_badwords($announcement['subject']);
$announcement['subject'] = htmlspecialchars_uni($announcement['subject']);
$postdate = my_date($mybb->settings['dateformat'], $announcement['startdate']);

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

	if($foruminfo['allowtratings'] != "no")
{
$thread['rating'] = "pixel.gif";

	if($foruminfo['allowtratings'] != "no")
{
$thread['rating'] = "pixel.gif";

Zeile 494Zeile 497
	}
if($ismod)
{

	}
if($ismod)
{

		$modann = "<td align=\"center\" class=\"$bgcolor\">-</td>";
}
else
{

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

		$modann = '';
}
eval("\$announcements .= \"".$templates->get("forumdisplay_announcements_announcement")."\";");

		$modann = '';
}
eval("\$announcements .= \"".$templates->get("forumdisplay_announcements_announcement")."\";");

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

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

}


}


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

// Start Getting Threads

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

// Start Getting Threads

Zeile 543Zeile 546

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


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

{

{

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

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

Zeile 820Zeile 823
		$thread['views'] = my_number_format($thread['views']);

// Threads and posts requiring moderation

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

// Threads and posts requiring moderation

		if($thread['visible'] == 0)
{
--$thread['unapprovedposts'];
}

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

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