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/cms.smpolia.com/runtime/temp/79cc17c67e916c50cbc45402c750433b.php
<?php /*a:3:{s:71:"/www/wwwroot/cms.smpolia.com/application/admin/view/module/install.html";i:1663749615;s:69:"/www/wwwroot/cms.smpolia.com/application/admin/view/index_layout.html";i:1663749615;s:62:"/www/wwwroot/cms.smpolia.com/application/admin/view/layui.html";i:1663749615;}*/ ?>
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>YZNCMS后台管理系统</title>
    <meta name="author" content="YZNCMS">
    <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("attachment/upload/upload", ["dir" => "images"]); ?>',
        'file_upload_url': '<?php echo !empty($file_upload_url) ? htmlentities($file_upload_url) :  url("attachment/upload/upload", ["dir" => "files"]); ?>',
        'ueditor_upload_url': '<?php echo !empty($ueditor_upload_url) ? htmlentities($ueditor_upload_url) :  url("attachment/upload/upload", ["dir" => "images","from"=>"ueditor"]); ?>',
        'attachment_select_url': '<?php echo !empty($attachment_select_url) ? htmlentities($attachment_select_url) :  url("attachment/attachments/select"); ?>',
    };
    </script>
</head>

<body class="childrenBody <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
    
<form class="layui-form" method="post">
    <input type="hidden" name="module" value="<?php echo htmlentities($config['module']); ?>">
    <div class="layui-form-item">
        <table class="layui-table" lay-even style="max-width: 280px;">
            <colgroup>
                <col width="180">
                <col width="100">
                <col>
            </colgroup>
            <thead>
                <tr>
                    <td>是否适配系统版本</td>
                    <td class="text-center"><?php echo $version_check; ?></td>
                </tr>
            </thead>
        </table>
    </div>
    <?php if(!(empty($need_module) || (($need_module instanceof \think\Collection || $need_module instanceof \think\Paginator ) && $need_module->isEmpty()))): ?>
    <div class="layui-form-item">
        <h4><b>模块依赖检查</b></h4>
        <table class="layui-table" lay-even style="max-width: 500px;">
            <colgroup>
                <col width="180">
                <col width="100">
                <col>
            </colgroup>
            <thead>
                <tr>
                    <th>模块</th>
                    <th>当前版本</th>
                    <th>所需版本</th>
                    <th class="text-center">检查结果</th>
                </tr>
            </thead>
            <tbody>
                <?php if(is_array($need_module) || $need_module instanceof \think\Collection || $need_module instanceof \think\Paginator): $i = 0; $__LIST__ = $need_module;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <tr>
                    <td><?php echo htmlentities($vo['module']); ?></td>
                    <td width="100"><?php echo htmlentities($vo['version']); ?></td>
                    <td width="100"><?php echo htmlentities($vo['version_need']); ?></td>
                    <td class="text-center" width="100"><?php echo $vo['result']; ?></td>
                </tr>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </tbody>
        </table>
    </div>
    <?php endif; if(!(empty($need_plugin) || (($need_plugin instanceof \think\Collection || $need_plugin instanceof \think\Paginator ) && $need_plugin->isEmpty()))): ?>
    <div class="layui-form-item">
        <h4><b>插件依赖检查</b></h4>
        <table class="layui-table" lay-even style="max-width: 500px;">
            <colgroup>
                <col width="180">
                <col width="100">
                <col>
            </colgroup>
            <thead>
                <tr>
                    <th>插件</th>
                    <th>当前版本</th>
                    <th>所需版本</th>
                    <th class="text-center">检查结果</th>
                </tr>
            </thead>
            <tbody>
                <?php if(is_array($need_plugin) || $need_plugin instanceof \think\Collection || $need_plugin instanceof \think\Paginator): $i = 0; $__LIST__ = $need_plugin;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <tr>
                    <td><?php echo htmlentities($vo['plugin']); ?></td>
                    <td width="100"><?php echo htmlentities($vo['version']); ?></td>
                    <td width="100"><?php echo htmlentities($vo['version_need']); ?></td>
                    <td class="text-center" width="100"><?php echo $vo['result']; ?></td>
                </tr>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </tbody>
        </table>
    </div>
    <?php endif; if(!(empty($table_check) || (($table_check instanceof \think\Collection || $table_check instanceof \think\Paginator ) && $table_check->isEmpty()))): ?>
    <div class="layui-form-item">
        <h4><b>数据表检查</b></h4>
        <table class="layui-table" lay-even style="max-width: 280px;">
            <colgroup>
                <col width="180">
                <col width="100">
                <col>
            </colgroup>
            <thead>
                <tr>
                    <th>数据表</th>
                    <th class="text-center">检查结果</th>
                </tr>
            </thead>
            <tbody>
                <?php if(is_array($table_check) || $table_check instanceof \think\Collection || $table_check instanceof \think\Paginator): $i = 0; $__LIST__ = $table_check;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <tr>
                    <td><?php echo htmlentities($vo['table']); ?></td>
                    <td class="text-center"><?php echo $vo['result']; ?></td>
                </tr>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </tbody>
        </table>
    </div>
    <?php endif; ?>
    <div class="layui-form-item">
        <h4><b>是否清除旧数据</b></h4>
        <div>
            <input type="radio" name="clear" value="0" title="否" checked>
            <input type="radio" name="clear" value="1" title="是">
        </div>
        <div class="layui-form-mid layui-word-aux">选择“是”,将删除数据库中已存在的相同数据表</div>
    </div>
    <div class="layui-form-item">
        <div>
    	<input type="checkbox" name="demo" title="安装演示数据" value="1" lay-skin="primary" checked>
        </div>
        <div class="layui-form-mid layui-word-aux">含有旧数据时,请勿勾选,以免数据冲突</div>
    </div>
    <div class="layui-form-item layer-footer">
        <button class="layui-btn" id="install" lay-submit>确认安装</button>
    </div>
</form>

    
    <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',
}).use('yznForm');
</script>
    
    
<script>
layui.use('yznForm', function() {
    var yznForm = layui.yznForm;

    $('#install').click(function() {
        var table_exists = false;
        var target;
        if ($('.layui-form i.text-danger').length) {
            layer.msg('系统版本过低或缺少依赖模块或插件',{ icon: 2})
            return false;
        }
        if ($('.layui-form span.text-danger').length) {
            table_exists = true;
        }
        if (table_exists && $('.layui-form input[name=clear]:checked').val() == 0) {
            layer.msg('数据库表存在冲突,如果需要覆盖原有数据,请选择“清除旧数据”',{ icon: 2})
            return false;
        }
        yznForm.listen();
    });
});
</script>

</body>

</html>