shopxo/service/Install/test.html
2018-11-14 12:31:22 +08:00

366 lines
14 KiB
HTML
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ShopXO安装程序</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript" src="./static/js/jquery-2.0.0.min.js"></script>
<link rel="stylesheet" type="text/css" href="./static/bootstrap-3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="./static/bootstrap-3.3.5/css/bootstrap-theme.min.css">
<link rel="stylesheet" type="text/css" href="./static/font-awesome-4.4.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="./static/css/bjy.css">
<script type="text/javascript" src="./static/bootstrap-3.3.5/js/bootstrap.min.js"></script>
<!--[if lt IE 9]>
<script type="text/javascript" src="./static/js/html5shiv.min.js"></script>
<script type="text/javascript" src="./static/js/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" href="./static/css/install.css">
<script>
function TestClick(){
var count = $('#out table tr').length-3;
if($('#out .yes').length != count)
{
alert('您的配置或权限不符合要求');
}else{
location.href='./index.php?c=create';
}
}
</script>
</head>
<body>
<div id="nav">
<div class="inside">
<p class="name">ShopXO<span>安装向导</span></p>
<ul class="schedule">
<li class="number">1</li>
<li class="word">使用协议</li>
</ul>
<ul class="schedule active">
<li class="number">2</li>
<li class="word">环境检测</li>
</ul>
<ul class="schedule">
<li class="number">3</li>
<li class="word">创建数据</li>
</ul>
<ul class="schedule">
<li class="number">4</li>
<li class="word">安装完成</li>
</ul>
</div>
</div>
<div id="out">
<div class="inside">
<div class="box test">
<h2>环境检查</h2>
<table class="table table-border">
<tr>
<th width="25%">坏境</th>
<th width="25%">程序所需</th>
<th width="25%">当前服务器</th>
<th width="25%">是否符合</th>
</tr>
<tr class="yes">
<td>操作系统</td>
<td>无限制</td>
<td><?php echo php_uname('s'); ?></td>
<td></td>
</tr>
<?php $php_version = explode('.', PHP_VERSION); ?>
<tr class="<?php if(($php_version['0'] >= 7) || ($php_version['0'] >=5 && $php_version['1'] >=4 ))echo 'yes'; ?>">
<td>PHP版本</td>
<td>>=5.4</td>
<td><?php echo PHP_VERSION ?></td>
<td>
<?php if(($php_version['0']>=7) || ($php_version['0']>=5 && $php_version['1']>=4)): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<?php
$tmp = function_exists('gd_info') ? gd_info() : array();
preg_match("/[\d.]+/", $tmp['GD Version'], $match);
unset($tmp);
?>
<tr class="<?php if($match[0] > 2)echo 'yes'; ?>">
<td>GD库</td>
<td>2.0</td>
<td><?php echo $match[0]; ?></td>
<td>
<?php if($match[0] > 2): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
</table>
<h2>目录/文件权限检查</h2>
<table class="table table-border">
<tr>
<th width="25%">坏境</th>
<th width="25%">所需状态</th>
<th width="25%">当前状态</th>
<th width="25%">是否符合</th>
</tr>
<tr class="<?php if(is_writable('../'))echo 'yes'; ?>">
<td>./</td>
<td>可写</td>
<td>
<?php if (is_writable('../')): ?>
可写
<?php else: ?>
不可写
<?php endif ?>
</td>
<td>
<?php if (is_writable('../')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(is_writable('../Application'))echo 'yes'; ?>">
<td>./Application</td>
<td>可写</td>
<td>
<?php if (is_writable('../Application')): ?>
可写
<?php else: ?>
不可写
<?php endif ?>
</td>
<td>
<?php if (is_writable('../Application')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(is_writable('../Application/Common/Conf'))echo 'yes'; ?>">
<td>./Application/Common/Conf</td>
<td>可写</td>
<td>
<?php if (is_writable('../Application/Common/Conf')): ?>
可写
<?php else: ?>
不可写
<?php endif ?>
</td>
<td>
<?php if (is_writable('../Application/Common/Conf')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(is_writable('../Application/Library/Payment'))echo 'yes'; ?>">
<td>./Application/Library/Payment</td>
<td>可写</td>
<td>
<?php if (is_writable('../Application/Library/Payment')): ?>
可写
<?php else: ?>
不可写
<?php endif ?>
</td>
<td>
<?php if (is_writable('../Application/Library/Payment')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(is_writable('../Public'))echo 'yes'; ?>">
<td>./Public</td>
<td>可写</td>
<td>
<?php if (is_writable('../Public')): ?>
可写
<?php else: ?>
不可写
<?php endif ?>
</td>
<td>
<?php if (is_writable('../Public')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(is_writable('./'))echo 'yes'; ?>">
<td>./Install</td>
<td>可写</td>
<td>
<?php if (is_writable('./')): ?>
可写
<?php else: ?>
不可写
<?php endif ?>
</td>
<td>
<?php if (is_writable('./')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
</table>
<h2>函数</h2>
<table class="table table-border">
<tr>
<th width="25%">坏境</th>
<th width="25%">所需状态</th>
<th width="25%">当前状态</th>
<th width="25%">是否符合</th>
</tr>
<tr class="<?php if(function_exists('curl_init'))echo 'yes'; ?>">
<td>curl_init</td>
<td>支持</td>
<td>
<?php if (function_exists('curl_init')): ?>
支持
<?php else: ?>
不支持
<?php endif ?>
</td>
<td>
<?php if (function_exists('curl_init')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(function_exists('fsockopen'))echo 'yes'; ?>">
<td>fsockopen</td>
<td>支持</td>
<td>
<?php if (function_exists('fsockopen')): ?>
支持
<?php else: ?>
不支持
<?php endif ?>
</td>
<td>
<?php if (function_exists('fsockopen')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(function_exists('mysqli_connect'))echo 'yes'; ?>">
<td>mysqli_connect</td>
<td>支持</td>
<td>
<?php if (function_exists('mysqli_connect')): ?>
支持
<?php else: ?>
不支持
<?php endif ?>
</td>
<td>
<?php if (function_exists('mysqli_connect')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(function_exists('file_get_contents'))echo 'yes'; ?>">
<td>file_get_contents</td>
<td>支持</td>
<td>
<?php if (function_exists('file_get_contents')): ?>
支持
<?php else: ?>
不支持
<?php endif ?>
</td>
<td>
<?php if (function_exists('file_get_contents')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(function_exists('mb_convert_encoding'))echo 'yes'; ?>">
<td>mb_convert_encoding</td>
<td>支持</td>
<td>
<?php if (function_exists('mb_convert_encoding')): ?>
支持
<?php else: ?>
不支持
<?php endif ?>
</td>
<td>
<?php if (function_exists('mb_convert_encoding')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(function_exists('json_encode'))echo 'yes'; ?>">
<td>json_encode</td>
<td>支持</td>
<td>
<?php if (function_exists('json_encode')): ?>
支持
<?php else: ?>
不支持
<?php endif ?>
</td>
<td>
<?php if (function_exists('json_encode')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(function_exists('json_decode'))echo 'yes'; ?>">
<td>json_decode</td>
<td>支持</td>
<td>
<?php if (function_exists('json_decode')): ?>
支持
<?php else: ?>
不支持
<?php endif ?>
</td>
<td>
<?php if (function_exists('json_decode')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
</table>
<p class="agree">
<a class="btn btn-primary" href="./index.php?c=agreement">上一步</a>
<a class="btn btn-success" href="javascript:;" onclick="TestClick()">下一步</a>
</p>
</div>
</div>
</div>
</body>
</html>