Location: PHPKode > projects > ACollab > install/install.php
<?php
/****************************************************************************************/
/* ACollab                                                                              */
/****************************************************************************************/
/* Copyright (c) 2002-2004  Adaptive Technology Resource Centre / University of Toronto */
/*                                                                                      */
/* http://atutor.ca/acollab                                                             */
/*                                                                                      */
/* This program is free software. You may redistribute it and/or                        */
/* modify it under the terms of the GNU General Public License                          */
/* as published by the Free Software Foundation; either version 2 of the License,       */
/* or (at your option) any later version.                                               */
/*                                                                                      */
/* This program is distributed in the hope that it will be useful, but                  */
/* WITHOUT ANY WARRANTY; without even the implied warranty of                           */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                                 */
/* See the GNU General Public License for more details.                                 */
/*                                                                                      */
/* You may access the GNU General Public License at:                                    */
/* http://www.opensource.org/licenses/gpl-license.php                                   */
/*                                                                                      */
/* You may contact the Adaptive Technology Resource Centre at                           */
/* Robarts Library, University of Toronto                                               */
/* 130 St. George Street, Toronto, Ontario, Canada M5S 1A5                              */
/* Further contact information is available at http://www.utoronto.ca/atrc/             */
/****************************************************************************************/
/* Programmer:                                                                          */
/* Joel Kronenberg - ATRC                                                               */
/****************************************************************************************/
// $Id: install.php 17 2004-03-05 18:33:23Z joel $

define('AC_INCLUDE_PATH', 'include/');

require(AC_INCLUDE_PATH.'common.inc.php');

if (!$new_version = $_POST['new_version']) {
	$new_version = $_POST['step2']['new_version'];
}

$step = intval($_POST['step']);

if ($step == 0) {
	$step = 1;
}


require(AC_INCLUDE_PATH.'header.php');

/* agree to terms of use */
if ($step == 1) {
	require(AC_INCLUDE_PATH.'step1.php');
}

/* db */
if ($step == 2) {
	require(AC_INCLUDE_PATH.'step2.php');
}

/* preferences */
if ($step == 3) {	
	require(AC_INCLUDE_PATH.'step3.php');
}

/* directory permissions and generating the config.inc.php file */
if ($step == 4) {	
	require(AC_INCLUDE_PATH.'step4.php');
}

/* done! */
if ($step == 5) {	
	require(AC_INCLUDE_PATH.'step5.php');
}

require(AC_INCLUDE_PATH.'footer.php');
?>
Return current item: ACollab