install/index.php

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php
header("Content-type:text/html;charset=utf-8");
include_once('./function.php');
$root_path = str_replace('\\', '/', realpath(dirname(dirname(__FILE__))).DIRECTORY_SEPARATOR);
define('ROOT', $root_path);
$verMsg = 'v3.9';
$s_lang = 'utf-8';
$source_catalog = "./source/catalog_config.php";//源配置文件 
$source_admin = "./source/admin_config.php";//源配置文件 
$target_catalog = "../config.php";  //目标配置文件。
$target_admin = "../admin/config.php";
$lock_file = '../config.php';//锁定文件
if (file_exists($lock_file)) {
    header('Location:../index.php');
    exit();
}
$file_name = "./source/mishop.sql";//数据文件
$step = (isset($_REQUEST['step']) && is_numeric($_REQUEST['step'])) ? (int)$_REQUEST['step'] : 1;
$dbport = isset($_REQUEST['dbport']) ? $_REQUEST['dbport'] : '3306';
$dbhost = isset($_REQUEST['dbhost']) ? $_REQUEST['dbhost'] : '';
$dbhost = ($dbport != '3306' ? $dbhost . ':' . $dbport : $dbhost);
$dbuser = isset($_REQUEST['dbuser']) ? $_REQUEST['dbuser'] : '';
$dbpwd = isset($_REQUEST['dbpwd']) ? $_REQUEST['dbpwd'] : '';
$dbname = isset($_REQUEST['dbname']) ? $_REQUEST['dbname'] : '';

if ($step == 1) {
    include('./templates/step-1.html');
    exit();
} /*------------------------
环境测试
function _2_TestEnv()
------------------------*/
else if ($step == 2) {
    $phpv = phpversion();
    $sp_os = PHP_OS;
    $sp_gd = gdversion();
    $sp_server = $_SERVER['SERVER_SOFTWARE'];
    $sp_host = (empty($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_HOST'] : $_SERVER['REMOTE_ADDR']);
    $sp_name = $_SERVER['SERVER_NAME'];
    $sp_max_execution_time = ini_get('max_execution_time');
    $sp_allow_reference = (ini_get('allow_call_time_pass_reference') ? '<font color=green>[√]On</font>' : '<font color=red>[×]Off</font>');
    $sp_allow_url_fopen = (ini_get('allow_url_fopen') ? '<font color=green>[√]On</font>' : '<font color=red>[×]Off</font>');
    $sp_safe_mode = (ini_get('safe_mode') ? '<font color=red>[×]On</font>' : '<font color=green>[√]Off</font>');
    $sp_gd = ($sp_gd > 0 ? '<font color=green>[√]On</font>' : '<font color=red>[×]Off</font>');
    $sp_mysql = (function_exists('mysqli_connect') ? '<font color=green>[√]On</font>' : '<font color=red>[×]Off</font>');

    if ($sp_mysql == '<font color=red>[×]Off</font>')
        $sp_mysql_err = TRUE;
    else
        $sp_mysql_err = FALSE;

    $sp_testdirs = array(
        '/',
        '/admin/',
        '/system/storage/*',
        '/image/*'
    );
    include('./templates/step-2.html');
    exit();
} /*------------------------
后面还有 127 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。