rebuild(); } // Catch the modes that must not output any html. if($current_user) { switch($mode) { case "imagecache": include_once($UTIL_DIR. "/imagecache.php"); getCachedImage($uri); return; case "file": include_once($UTIL_DIR. "/file.php"); if($preview) getFilePreview($fid); else getFile($fid); return; } } include_once($UTIL_DIR . "/clientinfo.php"); ?>
Logged in as: " . $current_user->name . " - Logout
\n"; switch($mode) { case "profile": include_once($UTIL_DIR. "/profile.php"); $str .= profile(); break; case "tasks": include_once($UTIL_DIR. "/tasks.php"); $str .= tasks(); break; case "calendar": include_once($UTIL_DIR. "/calendar.php"); $str .= calendar(); break; case "addressbook": include_once($UTIL_DIR. "/addressbook.php"); $str .= addressbook(); break; case "editor": include_once($UTIL_DIR. "/editor.php"); $str .= editor(); break; case "edit": include_once($UTIL_DIR. "/edit.php"); $str .= ""; break; case "filehandler": include_once($UTIL_DIR. "/filehandler.php"); $str .= filehandler(); break; case "diagnostics": include_once($UTIL_DIR. "/diagnostics.php"); $str .= ""; break; default: case "view": include_once($UTIL_DIR. "/view.php"); $str .= viewForum(); if(!isset($GLOBALS['fid'])) { include_once($UTIL_DIR. "/calendar.php"); $str .= calendar(); } break; } if($mode != "edit") { include_once($UTIL_DIR . "/forums.php"); $forums = new Forums($FORUMS_DIR . "/forums.xml"); $unreadPosts = false; foreach($forums->forums as $forum) { $unreadPosts |= $forum->newStuff; } echo menu("top", $unreadPosts). $str. menu("bottom", $unreadPosts); } else { echo $str; } } else { ?>