"; check_required_files(); $safemodcheck = ini_get('safe_mod'); if ( $safemodcheck == 'On' || $safemodcheck == 'on' || $safemodcheck == TRUE ) { include('install/header.php'); echo "" ."" ."" .""; include('install/footer.php'); exit; } if($_POST['download_file'] && !empty($_SESSION['configData']) && !$_POST['continue']) { header("Content-Type: text/x-delimtext; name=config.php"); header("Content-disposition: attachment; filename=config.php"); $configData = $_SESSION['configData']; echo $configData; exit; } if ($step >= 5){ if (!mysql_connect($_SESSION['dbhost'], $_SESSION['dbuser'], $_SESSION['dbpass'])) { die ($install_lang['couldnt_connect'] . mysql_error()); } if (!mysql_select_db($_SESSION['dbname'])) { die ($install_lang['couldnt_select_db'] . mysql_error()); } } if ($step == 0) { include('install/header.php'); $lang_select = language_select('english', "language", dirname(__FILE__) . '/install/language'); echo "
" ."" ."" ."" ."" ."
"; include('install/footer.php'); } elseif ($step == 1) { include('install/header.php'); echo "
" ."" ."" ."" ."" ."
"; include('install/footer.php'); } elseif ($step == 2) { include('install/header.php'); echo "
" ."" ."" .""; echo chmod_files(); echo "
"; include('install/footer.php'); } elseif ($step == 3) { include('install/header.php'); $confirm = ($_POST['confirm'] ) ? $_POST['confirm'] : ''; if (!$confirm) { echo "
" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."
"; } else { echo "
" ."" .""; echo validate_data($_POST); echo "
"; } include('install/footer.php'); } elseif ($step == 4) { include('install/header.php'); echo "
" ."" ."" .""; echo server_check(); echo "" ."
"; include('install/footer.php'); } elseif ($step == 5) { include('install/header.php'); echo "
" ."" .""; echo do_sql("install/install.sql"); echo "
"; include('install/footer.php'); } elseif ($step == 6) { include('install/header.php'); echo "
" ."" .""; echo site_form(); echo ""; echo "
"; include('install/footer.php'); } elseif ($step == 7) { $skip = (isset($_POST['skip'])) ? $_POST['skip'] : ''; $submit = (isset($_POST['submit'])) ? $_POST['submit'] : ''; include('install/header.php'); if ($submit) { site_form(0); } message($install_lang['done']."

".$install_lang['delete']); include('install/footer.php'); } ?>