moved code up one level to eliminate the docs subdirectory
[acontent.git] / install / install.php
1 <?php
2 /************************************************************************/
3 /* AContent                                                             */
4 /************************************************************************/
5 /* Copyright (c) 2010                                                   */
6 /* Inclusive Design Institute                                           */
7 /*                                                                      */
8 /* This program is free software. You can redistribute it and/or        */
9 /* modify it under the terms of the GNU General Public License          */
10 /* as published by the Free Software Foundation.                        */
11 /************************************************************************/
12
13 define('TR_INCLUDE_PATH', 'include/');
14 require(TR_INCLUDE_PATH.'common.inc.php');
15
16 if (!$new_version = $_POST['new_version']) {
17         $new_version = $_POST['step2']['new_version'];
18 }
19
20 $step = intval($_POST['step']);
21
22 if ($step == 0) {
23         $step = 1;
24 }
25
26 if ($_POST['submit'] == 'I Disagree'){
27         Header ("Location: index.php");
28 }
29
30 require(TR_INCLUDE_PATH.'header.inc.php');
31
32 /* agree to terms of use */
33 if ($step == 1) {
34         require(TR_INCLUDE_PATH.'step1.php');
35 }
36
37 /* db */
38 if ($step == 2) {
39         require(TR_INCLUDE_PATH.'step2.php');
40 }
41
42 /* create admin accounts and sytem preference */
43 if ($step == 3) {       
44         require(TR_INCLUDE_PATH.'step3.php');
45 }
46
47 /* accounts & preferences */
48 if ($step == 4) {       
49         require(TR_INCLUDE_PATH.'step4.php');
50 }
51
52 /* directory permissions and generating the config.inc.php file */
53 if ($step == 5) {       
54         require(TR_INCLUDE_PATH.'step5.php');
55 }
56
57 /* anonymous data collection */
58 if ($step == 6) {       
59         require(TR_INCLUDE_PATH.'step6.php');
60 }
61
62 /* done! */
63 if ($step == 7) {       
64         require(TR_INCLUDE_PATH.'step7.php');
65 }
66
67 require(TR_INCLUDE_PATH.'footer.inc.php');
68 ?>