一、详细介绍
测试环境:Nginx+PHP7.0+MySQL5.6
功能详情
1.部分代码
代码如下(示例):
ini_set(“magic_quotes_runtime”, 0);
error_reporting(0);
ob_start();
define(‘IA_ROOT’, str_replace(“\\”, DIRECTORY_SEPARATOR, dirname(__FILE__)));
if ($_GET[‘res’]) {
$res = $_GET[‘res’];
$reses = Tpl_resources();
if (array_key_exists($res, $reses)) {
if ($res == ‘css’) {
header(‘content-type:text/css’);
} else {
header(‘content-type:image/png’);
}
echo base64_decode($reses[$res]);
exit();
}
}
$actions = array(‘license’, ‘env’, ‘db’, ‘finish’);
$action = $_COOKIE[‘action’];
$action = in_array($action, $actions) ? $action : ‘license’;
$ispost = strtolower($_SERVER[‘REQUEST_METHOD’]) == ‘post’;
if (file_exists(IA_ROOT . ‘/data/install.lock’) && $action != ‘finish’) {
header(‘location: ./index.php’);
exit;
}
2.效果图展示










评论(0)