From b8f8a9b058dd47543c7277a8fccb9bdfee4f80fb Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sun, 19 Jan 2020 03:02:33 +0800 Subject: [PATCH] pdf.js --- theme/classic.php | 56 +++++++++++++++++++++++++++++++++++++---------- 1 file changed, 44 insertions(+), 12 deletions(-) diff --git a/theme/classic.php b/theme/classic.php index 4cde6ad..d8fc7bd 100644 --- a/theme/classic.php +++ b/theme/classic.php @@ -129,26 +129,28 @@
document.getElementById(\'url\').offsetWidth) this.style.width=\'100%\';" /> + echo ' ' . substr($path, strrpos($path, '/')) . ' '; } elseif (in_array($ext, $exts['video'])) { //echo ''; $DPvideo=$files['@microsoft.graph.downloadUrl']; - echo '
'; + echo '
+'; } elseif (in_array($ext, $exts['music'])) { - echo ' - + echo ' '; } elseif (in_array($ext, ['pdf'])) { - echo ' + /*echo ' +';*/ + $pdfurl = $files['@microsoft.graph.downloadUrl']; + echo '
'; } elseif (in_array($ext, $exts['office'])) { - echo ' - + echo ' '; } elseif (in_array($ext, $exts['txt'])) { $txtstr = htmlspecialchars(curl_request($files['@microsoft.graph.downloadUrl'])['body']); @@ -163,8 +165,7 @@ '; ?>
+ echo '
'; @@ -469,6 +470,7 @@ +