<!DOCTYPE html>
<html lang="zh_cn">
<head>
<meta charset="UTF-8">
<link rel="icon" type="image/x-icon" href="../Public/images/icon.png" />
<title>易运维安装向导</title>
<!-- CSS样式调用 --> 
<link href="../Public/plugins/sweetalert/dist/sweetalert.css" rel="stylesheet" type="text/css">
<link href="../Public/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="../Public/css/icons.css" rel="stylesheet" type="text/css">
<link href="css/install.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../Public/js/jquery.min.js"></script>
<!-- bootstrap JS -->
<script src="../Public/js/bootstrap.min.js"></script>
<!--公共layer弹窗组件-->
<script src="../Public/plugins/layer/layer.js"></script>
<!-- layer时间组件  -->
<script src="../Public/plugins/laydate/laydate.js"></script>
<!--公共表单验证组件-->
<script src="../Public/plugins/jquery-validation/dist/jquery.validate.min.js"></script>
<!--公共表单提交组件-->
<script src="../Public/plugins/jquery.form/jquery.form.js"></script>
<!--公共JS代码-->			
<script src="../Admin/js/public.js"></script>	
	
<!--[if lt IE 9]>
<script type="text/javascript" src="../Public/js/html5shiv.min.js"></script>
<script type="text/javascript" src="../Public/js/respond.min.js"></script>
<![endif]-->
</head>
<body>
<script>
function step(){
if($('.yes').length!=7){
layer.msg('您的配置或目录权限不符合安装要求',{icon:2});
}else{
location.href='./index.php?c=step3';
}
}
</script>
<div id="#wrapper">

<!--顶部banner-->
<div class="banner">
<div class="text-center">
<h1>感谢您使用【易运维】系统 </h1>
<h2 class="font-light">Thank you for using our soft of  EasyYunwei System</h2><br>      
</div>
</div>

<!--安装开始-->
<div class="container">
<div class="row">
<div class="col-md-12">
  


<h2>环境检测</h2>
<div class="m-t-20"></div>
<table class="table table-border">
<tr>
<th width="25%">环境</th>
<th width="25%">最低配置</th>
<th width="25%">当前配置</th>
<th width="25%">是否符合</th>
</tr>

<tr>
<td>操作系统</td>
<td>不限</td>
<td><?php echo php_uname('s'); ?></td>
<td class="yes">√</td>
</tr>
                
<tr>
<td>php版本</td>
<td>&gt;5.3</td>
<td><?php echo PHP_VERSION ?></td>
<?php $php_version=explode('.', PHP_VERSION); ?>
<td class="<?php if(($php_version['0']>=7) || ($php_version['0']>=5 && $php_version['1']>=3))echo 'yes'; ?>">
<?php if (($php_version['0']>=7) || ($php_version['0']>=5 && $php_version['1']>=3)): ?>
<span class="text-success">√</span>
<?php else: ?>
<span class="text-danger">×</span>
<?php endif ?>
</td>
</tr>

</table>
            
<h2>目录权限</h2>
<div class="m-t-20"></div>

<table class="table table-border">

<tr>
<th width="25%">目录位置</th>
<th width="25%">系统要求</th>
<th width="25%">当前状态</th>
<th width="25%">是否符合</th>
</tr>

<tr>
<td>./</td>
<td>可写</td>
<td>
<?php if (is_writable('../../')): ?>
	可写
<?php else: ?>
	不可写
<?php endif ?>
</td>
<td class="<?php if(is_writable('../../'))echo 'yes'; ?>">
<?php if (is_writable('../../')): ?>
<span class="text-success">√</span>
<?php else: ?>
<span class="text-danger">×</span>
<?php endif ?>
</td>
</tr>


<tr>
<td>./Public/Upload</td>
<td>可写</td>
<td>
<?php if (is_writable('../../Public/Upload')): ?>
可写
<?php else: ?>
不可写
<?php endif ?>
</td>
<td class="<?php if(is_writable('../../Public/Upload'))echo 'yes'; ?>">
<?php if (is_writable('../../Public/Upload')): ?>
<span class="text-success">√</span>
<?php else: ?>
<span class="text-danger">×</span>
<?php endif ?>
</td>
</tr>


<tr>
<td>./Runtime</td>
<td>可写</td>
<td>
<?php if (is_writable('../../Runtime')): ?>
可写
<?php else: ?>
不可写
<?php endif ?>
</td>
<td class="<?php if(is_writable('../../Runtime'))echo 'yes'; ?>">
<?php if (is_writable('../../Runtime')): ?>
<span class="text-success">√</span>
<?php else: ?>
<span class="text-danger">×</span>
<?php endif ?>
</td>
</tr>

               
<tr>
<td>./Public/install</td>
<td>可写</td>
<td>
<?php if (is_writable('../../Public/install')): ?>
可写
<?php else: ?>
不可写
<?php endif ?>
</td>
<td class="<?php if(is_writable('../../Public/install'))echo 'yes'; ?>">
<?php if (is_writable('../../Public/install')): ?>
<span class="text-success">√</span>
<?php else: ?>
<span class="text-danger">×</span>
<?php endif ?>
</td>
</tr>
                
				
<tr>
<td>./Web/Common/Conf</td>
<td>可写</td>
<td>
<?php if (is_writable('../../Web/Common/Conf')): ?>
可写
<?php else: ?>
不可写
<?php endif ?>
</td>
<td class="<?php if(is_writable('../../Web/Common/Conf'))echo 'yes'; ?>">
<?php if (is_writable('../../Web/Common/Conf')): ?>
<span class="text-success">√</span>
<?php else: ?>
<span class="text-danger">×</span>
<?php endif ?>
</td>
</tr>
            
</table>

<p >
<a class="btn btn-primary" href="./index.php?c=step1">上一步</a>
<a class="btn btn-success" href="javascript:;" onclick="step()">下一步</a>
</p>




</div>   
</div>
</div>

</div>


</body>
</html>