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

index.php « reader - github.com/nextcloud/apps.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 86533873292020b9d4ba13cde05eb344e82a4b7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php

/**
* ownCloud - eBook reader application
*
* @author Priyanka Menghani
* 
*/

OCP\User::checkLoggedIn();
OCP\App::checkAppEnabled('reader');
OCP\App::setActiveNavigationEntry( 'reader_index' );

OCP\Util::addscript( 'reader', 'integrate' );
OCP\Util::addscript( 'reader', 'pdf' );
OCP\Util::addStyle('reader','reader');
OCP\Util::addStyle('files','files');

// Get the current directory from window url.
$dir = empty($_GET['dir'])?'/':$_GET['dir'];

$tmpl = new OCP\Template( 'reader', 'index', 'user' );
$tmpl->assign('dir', $dir);
$tmpl->printPage();

?>