tagging as ATutor 1.5.4-release
[atutor.git] / install / include / upgrade_header.php
1 <?php\r
2 /************************************************************************/\r
3 /* ATutor                                                                                                                               */\r
4 /************************************************************************/\r
5 /* Copyright (c) 2002-2006 by Greg Gay, Joel Kronenberg, Heidi Hazelton */\r
6 /* http://atutor.ca                                                                                                             */\r
7 /*                                                                                                                                              */\r
8 /* This program is free software. You can redistribute it and/or                */\r
9 /* modify it under the terms of the GNU General Public License                  */\r
10 /* as published by the Free Software Foundation.                                                */\r
11 /************************************************************************/\r
12 if (!defined('AT_INCLUDE_PATH')) { exit; }\r
13 \r
14 error_reporting(E_ALL ^ E_NOTICE);\r
15 \r
16 if ($step < 6) {\r
17         error_reporting(0);\r
18         include('../include/config.inc.php');\r
19         error_reporting(E_ALL ^ E_NOTICE);\r
20         if (defined('AT_INSTALL')) {\r
21                 echo 'ATutor appears to have been installed already.';\r
22                 exit;\r
23         }\r
24 }\r
25 \r
26 $new_version = $new_version ? $new_version : $_POST['step1']['new_version'];\r
27 \r
28 $install_steps[0] = array('name' => 'Introduction');\r
29 $install_steps[1] = array('name' => 'Locate Old Version');\r
30 $install_steps[2] = array('name' => 'Database');\r
31 $install_steps[3] = array('name' => 'New '.$new_version.' Configuration Options');\r
32 $install_steps[4] = array('name' => 'Content Directory');\r
33 $install_steps[5] = array('name' => 'Content Files');\r
34 $install_steps[6] = array('name' => 'Save Configuration');\r
35 $install_steps[7] = array('name' => 'Anonymous Usage Collection');\r
36 $install_steps[8] = array('name' => 'Done!');\r
37 \r
38 \r
39 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
40 <html lang="en">\r
41 <head>\r
42 <title>ATutor Upgrade</title>\r
43 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />\r
44 <link rel="stylesheet" href="stylesheet.css" type="text/css" />\r
45 </head>\r
46 \r
47 <body>\r
48 <div style="height: 70px; vertical-align: bottom; background: #354A81">\r
49         <h1 id="header">ATutor <?php echo $new_version; ?> Upgrade</h1>\r
50         <img src="../images/logo.gif" height="29" width="84" alt="ATutor Logo" id="logo" />\r
51 </div>\r
52 <div style="clear: all"></div>\r
53 <div class="content">