Vergleich forumdisplay.php - 1.2.6 - 1.2.7

  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 3055 2007-05-13 15:01:15Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 94Zeile 94
	// 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;

	}
}


	}
}


Zeile 333Zeile 333
{
$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 340Zeile 343
        $ordersel['asc'] = "selected=\"selected\"";
$oppsort = $lang->desc;
$oppsortnext = "desc";

        $ordersel['asc'] = "selected=\"selected\"";
$oppsort = $lang->desc;
$oppsortnext = "desc";

		break;

		break;

	default:
$sortordernow = "DESC";
$ordersel['desc'] = "selected=\"selected\"";
$oppsort = $lang->asc;
$oppsortnext = "asc";
break;

	default:
$sortordernow = "DESC";
$ordersel['desc'] = "selected=\"selected\"";
$oppsort = $lang->asc;
$oppsortnext = "asc";
break;

}


}


// Sort by which field?
if(!isset($mybb->input['sortby']) && !empty($foruminfo['defaultsortby']))
{
$mybb->input['sortby'] = $foruminfo['defaultsortby'];
}

// Sort by which field?
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";

Zeile 381Zeile 387
		break;
}


		break;
}


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

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

// Are we viewing a specific page?

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

// Are we viewing a specific page?

Zeile 411Zeile 416
	{
$start = 0;
$page = 1;

	{
$start = 0;
$page = 1;

	}
}
else
{

	}
}
else
{

	$start = 0;
$page = 1;
}

	$start = 0;
$page = 1;
}

Zeile 424Zeile 429
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 434Zeile 439
	eval("\$ratingcol = \"".$templates->get("forumdisplay_threadlist_rating")."\";");
eval("\$ratingsort = \"".$templates->get("forumdisplay_threadlist_sortrating")."\";");
$colspan = "8";

	eval("\$ratingcol = \"".$templates->get("forumdisplay_threadlist_rating")."\";");
eval("\$ratingsort = \"".$templates->get("forumdisplay_threadlist_sortrating")."\";");
$colspan = "8";

}

}

else
{
$ratingadd = '';

else
{
$ratingadd = '';

Zeile 453Zeile 458
if($mybb->settings['announcementlimit'])
{
$limit = "LIMIT 0, ".$mybb->settings['announcementlimit'];

if($mybb->settings['announcementlimit'])
{
$limit = "LIMIT 0, ".$mybb->settings['announcementlimit'];

}

}

$sql = build_parent_list($fid, "fid", "OR", $parentlist);
$time = time();
$query = $db->query("

$sql = build_parent_list($fid, "fid", "OR", $parentlist);
$time = time();
$query = $db->query("

Zeile 612Zeile 617
		else
{
$icon = " ";

		else
{
$icon = " ";

		}

		}

		$prefix = '';
if($thread['poll'])
{
$prefix = $lang->poll_prefix;

		$prefix = '';
if($thread['poll'])
{
$prefix = $lang->poll_prefix;

		}

		}

		if($thread['sticky'] == "1" && !$donestickysep)
{
eval("\$threads .= \"".$templates->get("forumdisplay_sticky_sep")."\";");

		if($thread['sticky'] == "1" && !$donestickysep)
{
eval("\$threads .= \"".$templates->get("forumdisplay_sticky_sep")."\";");

Zeile 626Zeile 631
		}
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;

		}

		}


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


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

Zeile 653Zeile 658
		$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'];