Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.php - github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 275f30f7b43f0ab4c2b8b8352cc26ea05cd1bb43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php

// Check if we are a user
//OCP\User::checkLoggedIn();
\OC::$server->getNavigationManager()->setActiveEntry( 'polls' );

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