VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.
The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.
$done = array();
$zero = array();
if ($depth > 7) { $depth = 7; }
$zero["$depth"] = $depth;
if ($list["$hix"]['level'] > $zero["$depth"]) { if ($list["$hix"]['level'] < $depth2) { $depth2 = $depth; } else if ($hix == $offset) { $zero["$depth"] = $list["$hix"]['level']; $depth2 = $depth; } else if ($list["$hix"]['level'] == $zero["$depth"]) { $depth2 = $depth; } else { $depth2 = $depth + 1; } } else if ($list["$hix"]['level'] < $zero["$depth"]) { $depth2 = $depth - 1; if ($depth2 < $zero[1]) { $depth2 = $zero[1]; } }
if ($list["$hix"]['level'] > $last) { if ($hix == $offset) { $zero[] = $list["$hix"]['level']; $last = $list["$hix"]['level']; $depth2 = $depth; } else { $depth2 = $depth + 1; } } else if ($list["$hix"]['level'] < $last) { $depth2 = $depth - 1; }
if ($depth2 > 7) { $depth2 = 7; }
$tocbits .= construct_tocbits($list, $hix, $depth2, $depthmark . intval($number - 1) . '.');
array_pop($zero);