Vergleich forumdisplay.php - 1.2.4 - 1.2.8

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 3Zeile 3
 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

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

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

 *

 *

 * $Id: forumdisplay.php 2708 2007-02-04 16:14:25Z 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 94Zeile 93
	// Build a moderator cache.
while($moderator = $db->fetch_array($query))
{

	// Build a moderator cache.
while($moderator = $db->fetch_array($query))
{

		$moderatorcache[$moderator['fid']][] = $moderator;

		$moderatorcache[$moderator['fid']][$moderator['uid']] = $moderator;

	}
}

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

	}
}

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

{

{

	$showdepth = 3;
}
else
{
$showdepth = 2;

	$showdepth = 3;
}
else
{
$showdepth = 2;

}

}

$child_forums = build_forumbits($fid, 2);
$forums = $child_forums['forum_list'];
if($forums)

$child_forums = build_forumbits($fid, 2);
$forums = $child_forums['forum_list'];
if($forums)

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 333Zeile 335
{
$mybb->input['order'] = $foruminfo['defaultsortorder'];
}

{
$mybb->input['order'] = $foruminfo['defaultsortorder'];
}

 

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


switch(strtolower($mybb->input['order']))
{
case "asc":

switch(strtolower($mybb->input['order']))
{
case "asc":

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

}
switch($mybb->input['sortby'])
{




}

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

switch($sortby)
{

	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 "starter":
$sortfield = "t.username";

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

		break;

		break;

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

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

Zeile 381Zeile 389
		break;
}


		break;
}


$sortby = $mybb->input['sortby'];

 
$sortsel[$mybb->input['sortby']] = "selected=\"selected\"";

// Are we viewing a specific page?
if(isset($mybb->input['page']) && is_numeric($mybb->input['page']))
{
$sorturl = "forumdisplay.php?fid=$fid&datecut=$datecut&page=".$mybb->input['page'];

$sortsel[$mybb->input['sortby']] = "selected=\"selected\"";

// Are we viewing a specific page?
if(isset($mybb->input['page']) && is_numeric($mybb->input['page']))
{
$sorturl = "forumdisplay.php?fid=$fid&datecut=$datecut&page=".$mybb->input['page'];

}
else
{

}
else
{

	$sorturl = "forumdisplay.php?fid=$fid&datecut=$datecut";
}
eval("\$orderarrow['$sortby'] = \"".$templates->get("forumdisplay_orderarrow")."\";");

	$sorturl = "forumdisplay.php?fid=$fid&datecut=$datecut";
}
eval("\$orderarrow['$sortby'] = \"".$templates->get("forumdisplay_orderarrow")."\";");

Zeile 412Zeile 419
		$start = 0;
$page = 1;
}

		$start = 0;
$page = 1;
}

}
else

}
else

{
$start = 0;
$page = 1;

{
$start = 0;
$page = 1;

Zeile 424Zeile 431
if($upper > $threadcount)
{
$upper = $threadcount;

if($upper > $threadcount)
{
$upper = $threadcount;

}

}

$multipage = multipage($threadcount, $perpage, $page, "forumdisplay.php?fid=$fid&sortby=$sortby&order=$sortordernow&datecut=$datecut");

if($foruminfo['allowtratings'] != "no")

$multipage = multipage($threadcount, $perpage, $page, "forumdisplay.php?fid=$fid&sortby=$sortby&order=$sortordernow&datecut=$datecut");

if($foruminfo['allowtratings'] != "no")

Zeile 445Zeile 452
if($ismod)
{
++$colspan;

if($ismod)
{
++$colspan;

}


}


// Get Announcements
$limit = '';
$announcements = '';

// Get Announcements
$limit = '';
$announcements = '';

Zeile 467Zeile 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 489Zeile 497
	}
if($ismod)
{

	}
if($ismod)
{

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

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

	}
else
{

	}
else
{

Zeile 626Zeile 634
		}
elseif($thread['sticky'] == 0 && $shownormalsep)
{

		}
elseif($thread['sticky'] == 0 && $shownormalsep)
{

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

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

			$shownormalsep = false;
}


			$shownormalsep = false;
}


Zeile 653Zeile 661
		$threadpages = '';
$morelink = '';
$thread['posts'] = $thread['replies'] + 1;

		$threadpages = '';
$morelink = '';
$thread['posts'] = $thread['replies'] + 1;

 
		if($thread['unapprovedposts'] > 0 && $ismod)
{
$thread['posts'] += $thread['unapprovedposts'];
}

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

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

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