Vergleich forumdisplay.php - 1.02 - 1.18

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 84Zeile 84
	eval("\$subforums =\"".$templates->get("forumdisplay_subforums")."\";");
}


	eval("\$subforums =\"".$templates->get("forumdisplay_subforums")."\";");
}


// Expand (or Collapse) forums
if($mybb->input['action'] == "expand")
{
mysetcookie("fcollapse[$fid]", "");
$fcollapse[$fid] = "";
}
elseif($mybb->input['action'] == "collapse")
{
mysetcookie("fcollapse[$fid]", "y");
$fcollapse[$fid] = "y";
}

 
$excols = "forumdisplay";

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

$excols = "forumdisplay";

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

}

}

if($foruminfo['linkto'])
{
header("Location: $foruminfo[linkto]");

if($foruminfo['linkto'])
{
header("Location: $foruminfo[linkto]");

Zeile 117Zeile 106
	eval("\$newthread = \"".$templates->get("forumdisplay_newthread")."\";");
}
if($fpermissions['cansearch'] != "no" && $foruminfo['type'] == "f")

	eval("\$newthread = \"".$templates->get("forumdisplay_newthread")."\";");
}
if($fpermissions['cansearch'] != "no" && $foruminfo['type'] == "f")

{

{

	eval("\$searchforum = \"".$templates->get("forumdisplay_searchforum")."\";");

	eval("\$searchforum = \"".$templates->get("forumdisplay_searchforum")."\";");

}

}


$modcomma = "";
$parentlistexploded = explode(",", $parentlist);


$modcomma = "";
$parentlistexploded = explode(",", $parentlist);

Zeile 140Zeile 129
if($modlist)
{
eval("\$moderatedby = \"".$templates->get("forumdisplay_moderatedby")."\";");

if($modlist)
{
eval("\$moderatedby = \"".$templates->get("forumdisplay_moderatedby")."\";");

}

}


// Users browsing this forum..
if($mybb->settings['browsingthisforum'] != "off")


// Users browsing this forum..
if($mybb->settings['browsingthisforum'] != "off")

Zeile 275Zeile 264
{
$datecutsql = "";
}

{
$datecutsql = "";
}

switch($mybb->input['order'])
{
case "asc":
$sortordernow = "ASC";
$ordersel['asc'] = "selected=\"selected\"";
$oppsort = $lang->desc;
$oppsortnext = "DESC";
break;
default:
$sortordernow = "DESC";
$ordersel['desc'] = "selected=\"selected\"";
$oppsort = $lang->asc;
$oppsortnext = "ASC";

if(strtolower($mybb->input['order']) == "asc") {
$sortordernow = "ASC";
$ordersel['asc'] = "selected=\"selected\"";
$oppsort = $lang->desc;
$oppsortnext = "DESC";
} else {
$sortordernow = "DESC";
$ordersel['desc'] = "selected=\"selected\"";
$oppsort = $lang->asc;
$oppsortnext = "ASC";




}

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

}

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

Zeile 713Zeile 699

function getforums($pid="0", $depth=1, $permissions="")
{


function getforums($pid="0", $depth=1, $permissions="")
{

	global $fcache, $moderatorcache, $forumpermissions, $settings, $theme, $mybb, $mybbforumread, $mybbuser, $excols, $fcollapse, $templates, $bgcolor, $collapsed, $mybbgroup, $lang, $showdepth;

	global $fcache, $moderatorcache, $forumpermissions, $settings, $theme, $mybb, $mybbforumread, $mybbuser, $excols, $templates, $bgcolor, $mybbgroup, $lang, $showdepth, $collapsed;

	if(is_array($fcache[$pid]))
{
while(list($key, $main) = each($fcache[$pid]))

	if(is_array($fcache[$pid]))
{
while(list($key, $main) = each($fcache[$pid]))