<?php

if (isset($_REQUEST['step'])) { $step=$_REQUEST['step']; }

//check for no steps, start on step1
if ((!isset($step)) || ($step == "")) { $step = 0; }


if ($step == 0) { 
	include('install0.php');
}



$include='header.php'; if (file_exists($include)) { include_once($include); }
$include='functions.php'; if (file_exists($include)) { require_once($include); }

echo '<h3>' . $lang['Step'] . ' '.$step.': </h3>';


// intro
if ($step == 1) { include('install1.php'); }

//error checking and enter database settings
if ($step == 2) { include('install2.php'); }

//check database settings, store to file
if ($step == 3) { include('install3.php'); }

//update config settings file, 
if ($step == 4) { include('install4.php'); }

$include='footer.php'; if (file_exists($include)) { include_once($include); }

?>
