Files
Pichome/dzz/pdf/index.php

36 lines
1.0 KiB
PHP
Raw Permalink Normal View History

2021-12-09 21:00:09 +08:00
<?php
if(!defined('IN_OAOOA')) {
exit('Access Denied');
}
2022-05-02 22:31:35 +08:00
if(!isset($_GET['src']) && !$rid = dzzdecode($_GET['path'],'',0)){
2021-12-09 21:00:09 +08:00
exit('Access Denied');
}
2022-05-02 22:31:35 +08:00
2021-12-09 21:00:09 +08:00
if($_GET['src']){
//$file = str_replace('+', ' ', urlencode($_GET['src']));
$file = urldecode($_GET['src']);
}else{
2022-05-02 22:31:35 +08:00
/* if(!Decode(rawurldecode($_GET['path']),'download')){
2021-12-09 21:00:09 +08:00
$perm_download=0;
$perm_print=0;
}else{
$perm_download=1;
$perm_print=1;
2022-05-02 22:31:35 +08:00
}*/
$resourcesdata = C::t('pichome_resources')->fetch($rid);
$appdata = C::t('pichome_vapp')->fetch($resourcesdata['appid']);
2024-01-31 01:00:33 +08:00
$downloadperm = C::t('pichome_vapp')->getpermbypermdata($appdata['download'],'download');
2022-06-25 14:48:20 +08:00
if($downloadperm){
2022-05-02 22:31:35 +08:00
$perm_download=1;
$perm_print=1;
}else{
$perm_download=0;
$perm_print=0;
2021-12-09 21:00:09 +08:00
}
2022-06-25 14:48:20 +08:00
$file = getglobal('siteurl') . 'index.php?mod=io&op=getStream&path=' . dzzencode($rid.'_3', '', 0, 0);
2022-05-02 22:31:35 +08:00
// $file=IO::getFileUri($path);
2021-12-09 21:00:09 +08:00
}
include template('viewer');
2021-09-17 10:56:51 +08:00
exit();