http://www.fsf.org/ or write * to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, * MA 02111-1307, USA. * */ /* This is the installation script. */ // Handle PHP error reporting by ourself! //error_reporting(0); ob_start(); $step = "0"; require_once ("img_include.php"); // Include LANGUAGE PACKS @include ("langpack.php"); if (file_exists("../etc/config.php")) { // Config file already exist include ("begin.php"); include ("navigation.php"); include ("configalreadythere.php"); exit (0); } // All program steps $steps = array("installation", "database", "dbcheck", "ldap", "ldapcheck", "servercache", "cachecheck", "general", "generalcheck", "error", "errorcheck", "end"); // All cmsdAm spported DB $dbms = array("mysql"); //$dbms = array("mysql", "postgres"); $step = $_REQUEST['step']; $stepname = $steps[$step]; if (($step == "") || !isset($step)) { $step = "0"; } Global $step; require_once ("config.default.inc.php"); switch($step) { case "0": // User start here $title = $labels["it"][$stepname]; include ("begin.php"); include ("navigation.php"); include ("start.php"); break; case "1": // step1 $title = $labels["it"][$stepname]; include ("begin.php"); include ("navigation.php"); include ("step1.php"); break; case "2": // step2 $title = $labels["it"][$stepname]; include ("begin.php"); include ("navigation.php"); include ("step2.php"); break; case "3": // step3 $title = $labels["it"][$stepname]; include ("begin.php"); include ("navigation.php"); include ("step3.php"); break; case "4": // step4 $title = $labels["it"][$stepname]; include ("begin.php"); include ("navigation.php"); include ("step4.php"); break; case "5": // step5 $title = $labels["it"][$stepname]; include ("begin.php"); include ("navigation.php"); include ("step5.php"); break; case "6": // step6 $title = $labels["it"][$stepname]; include ("begin.php"); include ("navigation.php"); include ("step6.php"); break; case "7": // step7 $title = $labels["it"][$stepname]; include ("begin.php"); include ("navigation.php"); include ("step7.php"); break; case "8": // step8 $title = $labels["it"][$stepname]; include ("begin.php"); include ("navigation.php"); include ("step8.php"); break; case "9": // step9 $title = $labels["it"][$stepname]; include ("begin.php"); include ("navigation.php"); include ("step9.php"); break; case "10": // step10 $title = $labels["it"][$stepname]; include ("begin.php"); include ("navigation.php"); include ("step10.php"); break; case "11": // end $title = $labels["it"][$stepname]; include ("begin.php"); include ("navigation.php"); include ("end.php"); break; default: // Various probles $title = $labels["it"]["nok"]; include ("begin.php"); include ("nok.php"); break; } include ("close.php"); ?>