Exemple #1
0
        } else {
            $array_dir_check[$dir] = $lang_module['dir_noexit'];
            $nextstep = 0;
        }
    }
    if (!nv_save_file_config($db_config, $global_config) and $ftp_check_login == 1) {
        ftp_chmod($conn_id, 0777, $file_config_temp);
    }
    if ($ftp_check_login > 0) {
        ftp_close($conn_id);
    }
    if ($step < 3 and $nextstep == 1) {
        $nv_Request->set_Session('maxstep', 3);
    }
    $title = $lang_module['check_chmod'];
    $contents = nv_step_2($array_dir_check, $array_ftp_data, $nextstep);
} elseif ($step == 3) {
    if ($step < 4) {
        $nv_Request->set_Session('maxstep', 4);
    }
    $title = $lang_module['license'];
    if (file_exists(NV_ROOTDIR . '/install/licenses_' . NV_LANG_DATA . '.html')) {
        $license = file_get_contents(NV_ROOTDIR . '/install/licenses_' . NV_LANG_DATA . '.html');
    } else {
        $license = file_get_contents(NV_ROOTDIR . '/install/licenses.html');
    }
    $contents = nv_step_3($license);
} elseif ($step == 4) {
    $nextstep = 0;
    $title = $lang_module['check_server'];
    $array_resquest = array();
    if ($step < 2) {
        $nv_Request->set_Session('maxstep', 2);
    }
    $title = $lang_module['select_language'];
    $contents = nv_step_1();
} elseif ($step == 2) {
    if ($step < 3) {
        $nv_Request->set_Session('maxstep', 3);
    }
    $title = $lang_module['license'];
    if (file_exists(NV_ROOTDIR . "/install/licenses_" . NV_LANG_DATA . ".html")) {
        $license = file_get_contents(NV_ROOTDIR . "/install/licenses_" . NV_LANG_DATA . ".html");
    } else {
        $license = file_get_contents(NV_ROOTDIR . "/install/licenses.html");
    }
    $contents = nv_step_2($license);
} elseif ($step == 3) {
    $nextstep = 1;
    $title = $lang_module['check_server'];
    $array_resquest = array();
    $array_resquest_key = array('php_support', 'mysql_support', 'opendir_support', 'gd_support', 'session_support', 'fileuploads_support');
    foreach ($array_resquest_key as $key) {
        $array_resquest[$key] = $sys_info[$key] ? $lang_module['compatible'] : $lang_module['not_compatible'];
        if (!$sys_info[$key]) {
            $nextstep = 0;
        }
    }
    if ($step < 4 and $nextstep == 1) {
        $nv_Request->set_Session('maxstep', 4);
    }
    $array_suport = array();