HEX
Server: nginx/1.22.1
System: Linux VM-16-9-centos 3.10.0-1160.99.1.el7.x86_64 #1 SMP Wed Sep 13 14:19:20 UTC 2023 x86_64
User: www (1001)
PHP: 7.3.31
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/oa.sanjiangapp.com/app/doc/doc/view/showfiles.html.php
<?php
/**
 * The showFiles view file of doc module of ZenTaoPMS.
 *
 * @copyright   Copyright 2009-2018 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     ZPL (http://zpl.pub/page/zplv12.html)
 * @author      Yidong Wang <yidong@cnezsoft.com>
 * @package     doc
 * @version     $Id$
 * @link        http://www.zdoo.com
 */
?>
<?php include '../../common/view/header.html.php';?>
<?php js::set('libType', 'project');?>
<div class='panel'>
  <div class='panel-body'>
    <div class='row lib-files cards'>
      <?php foreach($files as $file):?>
      <?php if(empty($file->pathname)) continue;?>
      <div class='col-md-3'>
        <div class='card lib-file'>
          <a class='media-wrapper' title='<?php echo $file->title  . '.' . $file->extension?>' target='_blank' href='<?php echo $this->createLink('file', 'download', "fileID=$file->id&mouse=left") ?>'>
            <?php
            $downloadLink = $this->createLink('file', 'download', "fileID=$file->id&mouse=left");
            if(in_array($file->extension, $config->file->imageExtensions))
            {
                echo "<div class='img-holder' style='background-image: url($file->webPath)'><img src='$file->webPath'/></div>";
            }
            else
            {
                $iconClass = 'icon-file';
                if(strpos('zip,tar,gz,bz2,rar', $file->extension) !== false) $iconClass = 'icon-file-archive';
                else if(strpos('csv,xls,xlsx', $file->extension) !== false) $iconClass = 'icon-file-excel';
                else if(strpos('doc,docx', $file->extension) !== false) $iconClass = 'icon-file-word';
                else if(strpos('ppt,pptx', $file->extension) !== false) $iconClass = 'icon-file-powerpoint';
                else if(strpos('pdf', $file->extension) !== false) $iconClass = 'icon-file-pdf';
                else if(strpos('mp3,ogg,wav', $file->extension) !== false) $iconClass = 'icon-file-audio';
                else if(strpos('avi,mp4,mov', $file->extension) !== false) $iconClass = 'icon-file-movie';
                else if(strpos('txt,md', $file->extension) !== false) $iconClass = 'icon-file-text-o';
                else if(strpos('html,htm', $file->extension) !== false) $iconClass = 'icon-globe';
                echo "<i class='icon-holder icon $iconClass'></i>";
            }
            ?>
            <i class='icon icon-download'></i>
          </a>
          <div class='card-heading'>
            <a href='<?php echo $this->createLink('proj.' . $file->objectType, 'view', "objectID=$file->objectID");?>'><?php echo $file->title . '.' . $file->extension . ' [' . strtoupper($file->objectType) . ' #' . $file->objectID . ']';?></a>
            <a href='<?php echo $this->createLink('file', 'delete', "fileID=$file->id"); ?>' target='hiddenwin' title='<?php echo $lang->delete?>' class='deleter pull-right'><i class='icon icon-remove'></i></a>
          </div>
        </div>
      </div>
      <?php endforeach;?>
    </div>
    <div class='table-footer'><?php $pager->show();?></div>
  </div>
</div>
<?php js::set('type', 'doc');?>
<?php include '../../common/view/footer.html.php';?>