vr-shopxo-source/app/install/view/index/check.html

590 lines
20 KiB
HTML
Executable File
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{{include file="public/header" /}}
<!-- header nav -->
{{include file="public/header_nav" /}}
<!-- conntent start -->
<div class="am-g inside check">
<h2>环境检查</h2>
<table class="am-table">
<tr>
<th width="25%">环境</th>
<th width="25%">程序所需</th>
<th width="25%">当前服务器</th>
<th width="25%">是否符合</th>
</tr>
<tr class="<?php if(function_exists('php_uname')){ echo 'yes'; } else { echo 'am-danger'; } ?>">
<td>操作系统</td>
<td>无限制</td>
<td><?php echo function_exists('php_uname') ? php_uname('s') : '未知php_uname函数未启用'; ?></td>
<td><?php echo function_exists('php_uname') ? '√' : '×'; ?></td>
</tr>
<?php $php_version = explode('.', PHP_VERSION); ?>
<tr class="<?php if(($php_version[0] >=8) || ($php_version[0] >=7 && $php_version[1] >=3) || ($php_version[0] >=7 && $php_version[1] >=2 && $php_version[2] >=5)){ echo 'yes'; } else { echo 'am-danger'; } ?>">
<td>PHP版本</td>
<td>>=7.2.5</td>
<td><?php echo PHP_VERSION ?></td>
<td>
<?php if(($php_version[0] >=8) || ($php_version[0] >=7 && $php_version[1] >=3) || ($php_version[0] >=7 && $php_version[1] >=2 && $php_version[2] >=5)): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<?php
if(function_exists('gd_info'))
{
$tmp = gd_info();
preg_match("/[\d.]+/", $tmp['GD Version'], $match);
unset($tmp);
}
?>
<tr class="<?php if(isset($match[0]) && $match[0] > 2){ echo 'yes'; } else { echo 'am-danger'; } ?>">
<td>GD库</td>
<td>2.0</td>
<td><?php echo isset($match[0]) ? $match[0] : '未知gd_info函数未启用'; ?></td>
<td>
<?php if(isset($match[0]) && $match[0] > 2): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
</table>
<h2>目录/文件权限检查</h2>
<table class="am-table">
<tr>
<th width="25%">环境</th>
<th width="25%">所需状态</th>
<th width="25%">当前状态</th>
<th width="25%">是否符合</th>
</tr>
<tr class="<?php if(is_writable(ROOT)){ echo 'yes'; } else { echo 'am-danger'; } ?>">
<td>./</td>
<td>可写</td>
<td>
<?php if (is_writable(ROOT)): ?>
可写
<?php else: ?>
不可写
<?php endif ?>
</td>
<td>
<?php if (is_writable(ROOT)): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(is_writable(APP_PATH.'install/config')){ echo 'yes'; } else { echo 'am-danger'; } ?>">
<td>./app/install/config</td>
<td>可写</td>
<td>
<?php if (is_writable(APP_PATH.'install/config')): ?>
可写
<?php else: ?>
不可写
<?php endif ?>
</td>
<td>
<?php if (is_writable(APP_PATH.'install/config')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(is_writable(APP_PATH.'index/route')){ echo 'yes'; } else { echo 'am-danger'; } ?>">
<td>./app/index/route</td>
<td>可写</td>
<td>
<?php if (is_writable(APP_PATH.'index/route')): ?>
可写
<?php else: ?>
不可写
<?php endif ?>
</td>
<td>
<?php if (is_writable(APP_PATH.'index/route')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(is_writable(ROOT.'app/index/view')){ echo 'yes'; } else { echo 'am-danger'; } ?>">
<td>./app/index/view</td>
<td>可写</td>
<td>
<?php if (is_writable(ROOT.'app/index/view')): ?>
可写
<?php else: ?>
不可写
<?php endif ?>
</td>
<td>
<?php if (is_writable(ROOT.'app/index/view')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(is_writable(ROOT.'app/plugins')){ echo 'yes'; } else { echo 'am-danger'; } ?>">
<td>./app/plugins</td>
<td>可写</td>
<td>
<?php if (is_writable(ROOT.'app/plugins')): ?>
可写
<?php else: ?>
不可写
<?php endif ?>
</td>
<td>
<?php if (is_writable(ROOT.'app/plugins')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(is_writable(ROOT.'config')){ echo 'yes'; } else { echo 'am-danger'; } ?>">
<td>./config</td>
<td>可写</td>
<td>
<?php if (is_writable(ROOT.'config')): ?>
可写
<?php else: ?>
不可写
<?php endif ?>
</td>
<td>
<?php if (is_writable(ROOT.'config')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(is_writable(ROOT.'runtime')){ echo 'yes'; } else { echo 'am-danger'; } ?>">
<td>./runtime</td>
<td>可写</td>
<td>
<?php if (is_writable(ROOT.'runtime')): ?>
可写
<?php else: ?>
不可写
<?php endif ?>
</td>
<td>
<?php if (is_writable(ROOT.'runtime')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(is_writable(ROOT.'public')){ echo 'yes'; } else { echo 'am-danger'; } ?>">
<td>./public</td>
<td>可写</td>
<td>
<?php if (is_writable(ROOT.'public')): ?>
可写
<?php else: ?>
不可写
<?php endif ?>
</td>
<td>
<?php if (is_writable(ROOT.'public')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(is_writable(ROOT.'public/static/upload/file')){ echo 'yes'; } else { echo 'am-danger'; } ?>">
<td>./public/static/upload/file</td>
<td>可写</td>
<td>
<?php if (is_writable(ROOT.'public/static/upload/file')): ?>
可写
<?php else: ?>
不可写
<?php endif ?>
</td>
<td>
<?php if (is_writable(ROOT.'public/static/upload/file')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(is_writable(ROOT.'public/static/upload/images')){ echo 'yes'; } else { echo 'am-danger'; } ?>">
<td>./public/static/upload/images</td>
<td>可写</td>
<td>
<?php if (is_writable(ROOT.'public/static/upload/images')): ?>
可写
<?php else: ?>
不可写
<?php endif ?>
</td>
<td>
<?php if (is_writable(ROOT.'public/static/upload/images')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(is_writable(ROOT.'public/static/upload/video')){ echo 'yes'; } else { echo 'am-danger'; } ?>">
<td>./public/static/upload/video</td>
<td>可写</td>
<td>
<?php if (is_writable(ROOT.'public/static/upload/video')): ?>
可写
<?php else: ?>
不可写
<?php endif ?>
</td>
<td>
<?php if (is_writable(ROOT.'public/static/upload/video')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(is_writable(ROOT.'public/download')){ echo 'yes'; } else { echo 'am-danger'; } ?>">
<td>./public/download</td>
<td>可写</td>
<td>
<?php if (is_writable(ROOT.'public/download')): ?>
可写
<?php else: ?>
不可写
<?php endif ?>
</td>
<td>
<?php if (is_writable(ROOT.'public/download')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(is_writable(ROOT.'extend/payment')){ echo 'yes'; } else { echo 'am-danger'; } ?>">
<td>./extend/payment</td>
<td>可写</td>
<td>
<?php if (is_writable(ROOT.'extend/payment')): ?>
可写
<?php else: ?>
不可写
<?php endif ?>
</td>
<td>
<?php if (is_writable(ROOT.'extend/payment')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(is_writable(ROOT.'public/static/plugins/css')){ echo 'yes'; } else { echo 'am-danger'; } ?>">
<td>./public/static/plugins/css</td>
<td>可写</td>
<td>
<?php if (is_writable(ROOT.'public/static/plugins/css')): ?>
可写
<?php else: ?>
不可写
<?php endif ?>
</td>
<td>
<?php if (is_writable(ROOT.'public/static/plugins/css')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(is_writable(ROOT.'public/static/plugins/js')){ echo 'yes'; } else { echo 'am-danger'; } ?>">
<td>./public/static/plugins/js</td>
<td>可写</td>
<td>
<?php if (is_writable(ROOT.'public/static/plugins/js')): ?>
可写
<?php else: ?>
不可写
<?php endif ?>
</td>
<td>
<?php if (is_writable(ROOT.'public/static/plugins/js')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(is_writable(ROOT.'public/static/plugins/images')){ echo 'yes'; } else { echo 'am-danger'; } ?>">
<td>./public/static/plugins/images</td>
<td>可写</td>
<td>
<?php if (is_writable(ROOT.'public/static/plugins/images')): ?>
可写
<?php else: ?>
不可写
<?php endif ?>
</td>
<td>
<?php if (is_writable(ROOT.'public/static/plugins/images')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
</table>
<h2>函数/类</h2>
<table class="am-table">
<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'; } else { echo 'am-danger'; } ?>">
<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'; } else { echo 'am-danger'; } ?>">
<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('file_get_contents')){ echo 'yes'; } else { echo 'am-danger'; } ?>">
<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'; } else { echo 'am-danger'; } ?>">
<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'; } else { echo 'am-danger'; } ?>">
<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'; } else { echo 'am-danger'; } ?>">
<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>
<tr class="<?php if(function_exists('simplexml_load_string')){ echo 'yes'; } else { echo 'am-danger'; } ?>">
<td>simplexml_load_string 函数</td>
<td>支持</td>
<td>
<?php if (function_exists('simplexml_load_string')): ?>
支持
<?php else: ?>
不支持
<?php endif ?>
</td>
<td>
<?php if (function_exists('simplexml_load_string')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(function_exists('mb_substr')){ echo 'yes'; } else { echo 'am-danger'; } ?>">
<td>mb_substr 函数</td>
<td>支持</td>
<td>
<?php if (function_exists('mb_substr')): ?>
支持
<?php else: ?>
不支持
<?php endif ?>
</td>
<td>
<?php if (function_exists('mb_substr')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(function_exists('mb_strlen')){ echo 'yes'; } else { echo 'am-danger'; } ?>">
<td>mb_strlen 函数</td>
<td>支持</td>
<td>
<?php if (function_exists('mb_strlen')): ?>
支持
<?php else: ?>
不支持
<?php endif ?>
</td>
<td>
<?php if (function_exists('mb_strlen')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(class_exists('mysqli')){ echo 'yes'; } else { echo 'am-danger'; } ?>">
<td>mysqli 类</td>
<td>支持</td>
<td>
<?php if (class_exists('mysqli')): ?>
支持
<?php else: ?>
不支持
<?php endif ?>
</td>
<td>
<?php if (class_exists('mysqli')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(class_exists('pdo')){ echo 'yes'; } else { echo 'am-danger'; } ?>">
<td>pdo 类</td>
<td>支持</td>
<td>
<?php if (class_exists('pdo')): ?>
支持
<?php else: ?>
不支持
<?php endif ?>
</td>
<td>
<?php if (class_exists('pdo')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
<tr class="<?php if(class_exists('ZipArchive')){ echo 'yes'; } else { echo 'am-danger'; } ?>">
<td>ZipArchive 类</td>
<td>支持</td>
<td>
<?php if (class_exists('ZipArchive')): ?>
支持
<?php else: ?>
不支持
<?php endif ?>
</td>
<td>
<?php if (class_exists('ZipArchive')): ?>
<?php else: ?>
×
<?php endif ?>
</td>
</tr>
</table>
<div class="agree ongoing-button">
<a href="{{:MyUrl('install/index/index')}}" class="am-btn am-btn-secondary am-radius am-btn-xs">上一步</a>
<button type="button" class="am-btn am-btn-success am-radius am-btn-xs check-submit" data-url="{{:MyUrl('install/index/create')}}">下一步</button>
</div>
</div>
<!-- conntent end -->
{{include file="public/footer" /}}