Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html *
|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html *
|
* $Id$
| * $Id: forumdisplay.php 903 2005-11-18 13:07:07Z chris $
|
*/
define("KILL_GLOBALS", 1);
| */
define("KILL_GLOBALS", 1);
|
Zeile 84 | Zeile 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 117 | Zeile 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 140 | Zeile 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 275 | Zeile 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 713 | Zeile 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]))
|