Blame view

sources/apps/files_pdfviewer/viewer.php 393 Bytes
d1bafeea1   Kload   [fix] Upgrade to ...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  <?php
  
  OCP\User::checkLoggedIn();
  OCP\App::checkAppEnabled('files_pdfviewer');
  
  $dir = isset($_GET['dir']) ? $_GET['dir'] : '';
  $file = isset($_GET['file']) ? $_GET['file'] : '';
  
  // TODO: add mime type detection and load the template
  $mime = "application/pdf";
  
  $page = new OCP\Template( 'files_pdfviewer', 'pdf');
  $page->assign('dir', $dir);
  $page->assign('file', $file);
  $page->printPage();