showPage("PageNotFound", "view"); } else { if ( isset($_GET['pid'] )) { $has = has_page($_GET['pid']); if ( $has) { $tops->showPage($_GET['pid']); //render_menu($_GET['pid']); } else { $tops->showPage("PageNotFound", "view"); } } else if ( isset($_GET['rid'] )) { $mode = "view"; if ( isset($_GET['mode']) ) { $mode = $_GET['mode']; } $resp = $tops->showObject($_GET['rid'], $mode); if ( $resp == 0 ) { //render_menu_rid($_GET['rid']); } else { if ( is_array($resp) ) { // redirect } else { $tops->showPage("PageNotFound", "view"); } } } else { if ( !$tops->isAnon() ) { $tops->showPage("MyFolder", 'view'); } } } ?>