HEX
Server: nginx/1.28.1
System: Linux 10-41-63-61 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
User: www (1001)
PHP: 7.4.33
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//www.sfzvq.com/runtime/temp/a1c6ee76bd9042eb8831f69f1d6325b7.php
<?php /*a:3:{s:73:"/www/wwwroot/www.sfzvq.com/application/admin/view/attachments/select.html";i:1667377771;s:67:"/www/wwwroot/www.sfzvq.com/application/admin/view/index_layout.html";i:1667544756;s:60:"/www/wwwroot/www.sfzvq.com/application/admin/view/layui.html";i:1667377771;}*/ ?>
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>信息流后台管理系统</title>
    <meta name="author" content="信息流">
    <meta name="csrf-token" content="<?php echo think\facade\Request::token('__token__'); ?>">
    <link rel="stylesheet" href="/static/libs/layui/css/layui.css">
    <link rel="stylesheet" href="/static/admin/css/admin.css?v=<?php echo htmlentities(app('config')->get('version.yzncms_release')); ?>">
    <link rel="stylesheet" href="/static/common/font/iconfont.css?v=<?php echo htmlentities(app('config')->get('version.yzncms_release')); ?>">
    <script src="/static/libs/layui/layui.js"></script>
    <script src="/static/libs/jquery/jquery.min.js"></script>
    <script type="text/javascript">
    //全局变量
    var GV = {
        'site':<?php echo json_encode($site); ?>,
        'image_upload_url': '<?php echo !empty($image_upload_url) ? htmlentities($image_upload_url) :  url("admin/ajax/upload", ["dir" => "images"]); ?>',
        'file_upload_url': '<?php echo !empty($file_upload_url) ? htmlentities($file_upload_url) :  url("admin/ajax/upload", ["dir" => "files"]); ?>',
        'ueditor_upload_url': '<?php echo !empty($ueditor_upload_url) ? htmlentities($ueditor_upload_url) :  url("admin/ajax/upload", ["dir" => "images","from"=>"ueditor"]); ?>',
        'attachment_select_url': '<?php echo !empty($attachment_select_url) ? htmlentities($attachment_select_url) :  url("admin/attachments/select"); ?>',
    };
    </script>
</head>

<body class="childrenBody <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
    
<style>.webuploader-pick{height:30px;line-height:30px;padding:0 10px;}</style>
<table class="layui-hide" id="dataTable" lay-filter="dataTable"></table>
<script type="text/html" id="barTool">
    <a href='{{d.path}}' class="layui-btn layui-btn-danger layui-btn-xs btn-chooseone"><i class="iconfont icon-right"></i> 选择</a>
</script>
<script type="text/html" id="picTpl">
    {{#  if(d.mime.indexOf("image") > -1){ }}
    <img style="max-width:80px; max-height:30px;" src="{{d.path}}" data-image="{{d.name}}">
  {{#  } else { }}
    <img style="max-width:80px; max-height:30px;" src="<?php echo url('admin/ajax/icon'); ?>?suffix={{d.ext}}">
  {{#  } }}
</script>

    
    <script type="text/javascript">
layui.config({
	version: '<?php echo htmlentities(app('config')->get('version.yzncms_release')); ?>',
	base: '/static/libs/layui_exts/'
}).extend({
	yzn: 'yzn/yzn',
	yznForm: 'yznForm/yznForm',
	yznTable: 'yznTable/yznTable',
	treeGrid: 'treeGrid/treeGrid',
	clipboard: 'clipboard/clipboard.min',
	notice: 'notice/notice.min',
	iconPicker: 'iconPicker/iconPicker.min',
	ztree: 'ztree/ztree',
	dragsort: 'dragsort/dragsort.min',
	tagsinput: 'tagsinput/tagsinput',
	xmSelect: 'xmSelect/xm-select',
	selectPage: 'selectPage/selectpage.min',
	echarts: 'echarts/echarts',
	echartsTheme: 'echarts/echartsTheme',
	citypicker: 'citypicker/city-picker',
	webuploader: 'webuploader/webuploader',
	ueditor: 'ueditor/ueditor.min',
	addons: 'addons',
}).use('yznForm');
</script>
    
    
<script>
layui.use(['yznTable','yzn','table','yznForm'], function() {
    var yznTable = layui.yznTable,
        yzn = layui.yzn,
        yznForm = layui.yznForm,
        table =layui.table;
    var multiple = <?php echo htmlentities(app('request')->get('multiple')); ?>;
    var urlArr = [];

    var init = {};

    yznTable.render({
        init: init,
        id: 'dataTable',
        toolbar: ['refresh'
        , [{
            html: '<div style="display:inline-block;margin-right:5px;" class="webUpload" id="picker_table_select_image" data-multiple="false" data-type="<?php echo htmlentities($mimetype); ?>"><i class="layui-icon layui-icon-upload"></i> 上传</div>'
        }]
        <?php if(app('request')->get('multiple') == "true"): ?>
        , [{
            html: '<a class="layui-btn layui-btn-danger layui-btn-sm btn-choose-multi"><i class="iconfont icon-right"></i> 选择</a>'
        }]
        <?php endif; ?>
        ],
        elem: '#dataTable',
        url: '<?php echo url("index"); ?>',
        cols: [
            [
                <?php if(app('request')->get('multiple') == "true"): ?>
                { type: 'checkbox', fixed: 'left' },
                <?php endif; ?>
                { field: 'id', width: 60, title: 'ID', sort: true },
                { field: 'name', title: '名称' },
                { field: 'path', width: 100, align: "center", title: '图片', search: false, templet: '#picTpl' },
                { field: 'size', width: 100, title: '大小', sort: true },
                { field: 'mime', width: 120, title: 'Mime类型' },
                { field: 'create_time', width: 160, title: '上传时间', search: 'range' },
                { fixed: 'right', width: 85, title: '操作', toolbar: '#barTool' }
            ]
        ],
        page: {},
        done: function(res, curr, count){
            yznForm.events.upload_image('.webUpload', function () {
                $("[data-table-refresh]").trigger("click");
            });
        }
    });

    table.on('checkbox(dataTable_LayFilter)', function(obj){
        urlArr = [];
        var checkStatus = table.checkStatus('dataTable').data;
        for (var i = 0; i < checkStatus.length; i++) {
            urlArr.push(checkStatus[i]['path']);
        }
    });

    //选择单个
    $(document).on('click', '.btn-chooseone', function() {
        var that = $(this),
        index = that.parents('tr').eq(0).data('index'),
        tr = $('.layui-table-body').find('tr[data-index="' + index + '"]'),
        href = !that.attr('data-href') ? that.attr('href') : that.attr('data-href');
        yzn.close({ url: href, multiple: multiple});
    });

    // 选中多个 todo翻页失效
    $(document).on("click", ".btn-choose-multi", function () {
        yzn.close({ url: urlArr.join(","), multiple: multiple});
    });
});
</script>

</body>

</html>