<?php echo "| <a href=\"?p={$p}&id=forums\">" . $language['version_1.7'][0] . "</a> "; if ($forum_ext != "") { echo "| " . $language['but_index'] . " "; } if ($user_rights > 1 && $forum_ext != "") { echo "| " . $language['but_newtopic']; } if ($user_rights > 2 && !_isrootdef()) { echo " | " . $language['but_private']; if ($count_nrpers_messages) { echo "(<b>" . $count_nrpers_messages . "</b>/" . count($user_messages[$usr_id]['from']) . ")"; } } if ($user_rights > 6) { echo " | " . $language['but_admin']; } echo " | "; if ($user_rights > 0 && $vars['downl_enable'] == "true") { echo "<a href=\"?p={$p}&forum_ext={$forum_ext}&id=downloads\">" . $language['version_1.6'][16] . "</a> | "; } echo "<a href=\"?p={$p}&forum_ext={$forum_ext}&id=find\">" . $language['version_1.6'][15] . "</a> |"; echo " " . $language['but_faq'] . " |"; if ($vars['language'] == "all") { echo "</centeR><div align=right><SMALL>"; for ($i = 0; $i < count($languages); $i++) { if ($HTTP_COOKIE_VARS['language'] != $languages[$i]) { echo "<a href=\"?p={$p}&forum_ext={$forum_ext}&setlng_=" . $languages[$i] . "\">" . $languages[$i] . "</a>"; } else { echo $languages[$i];
function LoadModule($str, $bar = 0) { //this are the trusted globals: global $GV, $MDL, $DIRS, $ERR, $FLTR, $PDIV, $CURRENT_USER, $page, $type, $id, $act, $topic, $art, $act, $a, $p; //this is full enough, but there's more risk of hack. //extract($GLOBALS); $_NOTBAR = false; $_CONFIGURE = false; $_ADMIN = false; $_MENU = false; $_MODULE = false; $_INSTALL = false; $_UNINSTALL = false; $_GETINFO = false; $_MODULE = 1; //root has individual pages: if (_isroot()) { switch ($str) { case "user_menu": include "root/menu.php"; break; case "user_page": include "root/page.php"; break; } } if ($str == "user_menu" && $this->IsModuleExists('users')) { if (_isrootdef()) { return; } $_MENU = true; if (_isroot()) { OUT("<br>"); } include $GV["modules_dir"] . "/users" . $GV["module_ext"]; $_MENU = false; return; } elseif ($str == "user_page") { if (_isrootdef()) { return; } if (_isroot()) { return; } include $GV["modules_dir"] . "/users" . $GV["module_ext"]; return; } if (file_exists($GV["modules_dir"] . "/" . $str . $GV["module_ext"])) { $_NOTBAR = true; if ($bar) { $_NOTBAR = false; } include $GV["modules_dir"] . "/" . $str . $GV["module_ext"]; } else { OUT("<p><b>Warning!</b> module '{$str}' not found!</p>"); } $_MODULE = false; }