2022-08-19 19:48:37 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
<title>SwiftAdmin安装向导</title>
|
|
|
|
|
<meta name="renderer" content="webkit">
|
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
|
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
|
<meta name="format-detection" content="telephone=no">
|
|
|
|
|
<link rel="stylesheet" href="/static/js/layui/css/layui.css">
|
|
|
|
|
<link rel="stylesheet" href="/static/css/install.css?{:config('app.version')}">
|
|
|
|
|
<script src="/static/js/layui/layui.js"></script>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
|
<div class="layui-header">
|
|
|
|
|
<div class="layui-container">
|
2022-08-19 19:59:14 +08:00
|
|
|
<h1 class="logo"><a href="https://www.SwiftAdmin.net"><img class="pic" src="__ADMINIMAGES__logo.png" alt=""><span>SwiftAdmin</span></a></h1>
|
2022-08-19 19:48:37 +08:00
|
|
|
<div class="title">安装向导</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="layui-content" style="padding-top: 0px;">
|
|
|
|
|
<div class="layui-container">
|
|
|
|
|
<div class="layui-row">
|
|
|
|
|
|
|
|
|
|
<div class="layui-step-group">
|
|
|
|
|
<div class="layui-step layui-active">
|
|
|
|
|
<div class="layui-sort">1</div>
|
|
|
|
|
<div class="layui-desc">检查安装环境</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="layui-step layui-line"></div>
|
|
|
|
|
<div class="layui-step">
|
|
|
|
|
<div class="layui-sort">2</div>
|
|
|
|
|
<div class="layui-desc">创建数据库</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="layui-step layui-line"></div>
|
|
|
|
|
<div class="layui-step">
|
|
|
|
|
<div class="layui-sort">3</div>
|
|
|
|
|
<div class="layui-desc">安装成功</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="layui-col-md12">
|
|
|
|
|
<div class="layui-card layui-fixed">
|
|
|
|
|
<div class="layui-card-header">
|
|
|
|
|
<span>1 运行环境检测</span>
|
|
|
|
|
<span class="layui-card-version">{:config('app.version')}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="layui-card-body">
|
|
|
|
|
<table class="layui-table" lay-skin="nob" >
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>检测项</th>
|
|
|
|
|
<th>所需环境</th>
|
|
|
|
|
<th>当前环境</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>php</td>
|
2023-06-19 14:32:30 +08:00
|
|
|
<td> >= 8.0 </td>
|
|
|
|
|
<td <elt name="$checkEnv.php" value="8.0"> style="color:red;" </elt> >{$checkEnv.php}</td>
|
2022-08-19 19:48:37 +08:00
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>mysqli</td>
|
|
|
|
|
<td>模块</td>
|
|
|
|
|
<td>
|
|
|
|
|
<eq name="$checkEnv['mysqli']" value="1">
|
|
|
|
|
<i class="layui-icon layui-icon-ok-circle"></i>
|
|
|
|
|
<else/>
|
|
|
|
|
<i class="layui-icon layui-icon-close-fill"></i>
|
|
|
|
|
</eq>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>redis</td>
|
|
|
|
|
<td>模块/不限</td>
|
|
|
|
|
<td>
|
|
|
|
|
<eq name="$checkEnv['redis']" value="1">
|
|
|
|
|
<i class="layui-icon layui-icon-ok-circle"></i>
|
|
|
|
|
<else/>
|
|
|
|
|
<i class="layui-icon layui-icon-close-fill"></i>
|
|
|
|
|
</eq>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>curl</td>
|
|
|
|
|
<td>扩展</td>
|
|
|
|
|
<td>
|
|
|
|
|
<eq name="$checkEnv.curl" value="1">
|
|
|
|
|
<i class="layui-icon layui-icon-ok-circle"></i>
|
|
|
|
|
<else/>
|
|
|
|
|
<i class="layui-icon layui-icon-close-fill"></i>
|
|
|
|
|
</eq>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>exif</td>
|
|
|
|
|
<td>扩展</td>
|
|
|
|
|
<td>
|
|
|
|
|
<eq name="$checkEnv.exif" value="1">
|
|
|
|
|
<i class="layui-icon layui-icon-ok-circle"></i>
|
|
|
|
|
<else/>
|
|
|
|
|
<i class="layui-icon layui-icon-close-fill"></i>
|
|
|
|
|
</eq>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>fileinfo</td>
|
|
|
|
|
<td>扩展</td>
|
|
|
|
|
<td>
|
|
|
|
|
<eq name="$checkEnv.fileinfo" value="1">
|
|
|
|
|
<i class="layui-icon layui-icon-ok-circle"></i>
|
|
|
|
|
<else/>
|
|
|
|
|
<i class="layui-icon layui-icon-close-fill"></i>
|
|
|
|
|
</eq>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
<table class="layui-table dir" lay-skin="nob">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>目录名</th>
|
|
|
|
|
<th>写入权限</th>
|
|
|
|
|
<th>读取权限</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody> <volist name="$checkDirFile" id="vo">
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{$vo[3]}</td>
|
|
|
|
|
<td><i class="layui-icon {$vo[1]}"></i></td>
|
|
|
|
|
<td><i class="layui-icon {$vo[2]}"></i></td>
|
|
|
|
|
</tr></volist>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
<div class="layui-center">
|
|
|
|
|
<button type="button" onclick="window.history.go(-1);" class="layui-btn layui-btn-normal">上一步</button>
|
|
|
|
|
<button id="step" type="button" class="layui-btn layui-btn-normal">下一步</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<style>.layui-footer{
|
|
|
|
|
position: revert;
|
|
|
|
|
padding: 0px;
|
|
|
|
|
}</style>
|
|
|
|
|
<div class="layui-footer">copyright © 2020 SwiftAdmin all rights reserved.</div>
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
layui.use(['jquery','layer'],function() {
|
|
|
|
|
var layer = layui.layer;
|
|
|
|
|
var jquery = layui.jquery;
|
|
|
|
|
|
|
|
|
|
jquery('#step').click(function(){
|
|
|
|
|
jquery.post('/install/index/step1',[],function(res){
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
location.href = res.url;
|
|
|
|
|
}
|
|
|
|
|
else {
|
2023-08-04 11:06:34 +08:00
|
|
|
layer.msg(res.msg);
|
2022-08-19 19:48:37 +08:00
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
</html>
|