Blame view

sources/apps/reader/index.php 565 Bytes
42e4f8d60   Kload   add all apps
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();
  
  ?>