showPage('PageNotFound'); } else { if ( isset($_GET['pid'] )) { $has = has_page($_GET['pid']); if ( $has) { $krihvel->showPage($_GET['pid']); render_menu($_GET['pid']); } else { $krihvel->showPage("pagenotfound"); } } else if ( isset($_GET['rid'] )) { $mode = "view"; if ( isset($_GET['mode']) ) { $mode = $_GET['mode']; } $resp = $krihvel->showObject($_GET['rid'], $mode); if ( $resp == 0 ) { render_menu_rid($_GET['rid']); } else { if ( is_array($resp) ) { // redirect } else { $krihvel->showPage("PageNotFound", "view"); } } } } $krihvel->out("debug", "uname:".$user->getUserName()); ob_start(); var_dump($user->getRoles()); $xx = ob_get_contents(); $krihvel->out("debug", "roles:".$xx); ob_end_clean(); ?>