getNavigationManager()->setActiveEntry( 'polls' ); //echo '
r_uri: '; print_r($_SERVER); ''; if (OCP\User::isLoggedIn()) { $tmpl = new OCP\Template('polls', 'main', 'user'); } else { $tmpl = new OCP\Template('polls', 'main', 'base'); } $tmpl->printPage();