1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
|
else {
$show_hide = 0;
if ($boards['childlist'] != '0') {
if ((isset($hidecats[$boards['boardid']]) && $hidecats[$boards['boardid']] == 0) || ($depth < $index_depth && (!isset($hidecats[$boards['boardid']]) || $hidecats[$boards['boardid']] != 1))) {
$show_hide = 1;
if ($filename == 'index.php') $current_url = "index.php?hidecat=".$boards['boardid']. $SID_ARG_2ND;
else $current_url = "board.php?boardid=$temp_boardid&hidecat=".$boards['boardid']. $SID_ARG_2ND;
$LANG_START_DEACTIVATE_CAT = $lang->get("LANG_START_DEACTIVATE_CAT", array('$title' => $boards['title']));
}
else {
$show_hide = 2;
if ($filename == 'index.php') $current_url = "index.php?showcat=".$boards['boardid']. $SID_ARG_2ND;
else $current_url = "board.php?boardid=$temp_boardid&showcat=".$boards['boardid']. $SID_ARG_2ND;
$LANG_START_SHOWCAT = $lang->get("LANG_START_SHOWCAT", array('$title' => $boards['title']));
}
}
eval("\$boardbit .= \"".$tpl->get("index_catbit")."\";");
}
if ((isset($hidecats[$boards['boardid']]) && $hidecats[$boards['boardid']] == 0) || ($depth < $index_depth && (!isset($hidecats[$boards['boardid']]) || $hidecats[$boards['boardid']] != 1))) $boardbit .= makeboardbit($boards['boardid'], $depth + 1);
}
}
unset($boardcache[$boardid]);
return $boardbit;
} |