4034226d9d2c580b981dd6b7b0f78e1b816f6f99
[atutor.git] / docs / install / include / upgrade_header.php
1 <?php\r
2 /************************************************************************/\r
3 /* ATutor                                                                                                                               */\r
4 /************************************************************************/\r
5 /* Copyright (c) 2002-2010                                              */\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                 include_once(AT_INCLUDE_PATH.'common.inc.php');\r
22                 echo print_meta_redirect();\r
23                 exit;\r
24         }\r
25 }\r
26 \r
27 $new_version = $new_version ? $new_version : $_POST['step1']['new_version'];\r
28 \r
29 $install_steps[0] = array('name' => 'Introduction');\r
30 $install_steps[1] = array('name' => 'Locate Old Version');\r
31 $install_steps[2] = array('name' => 'Database');\r
32 $install_steps[3] = array('name' => 'Conversion');\r
33 $install_steps[4] = array('name' => 'New '.$new_version.' Configuration Options');\r
34 $install_steps[5] = array('name' => 'Content Directory');\r
35 $install_steps[6] = array('name' => 'Content Files');\r
36 $install_steps[7] = array('name' => 'Save Configuration');\r
37 $install_steps[8] = array('name' => 'Anonymous Usage Collection');\r
38 $install_steps[9] = array('name' => 'Done!');\r
39 \r
40 \r
41 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
42 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="utf-8"> \r
43 <head>\r
44 <title>ATutor Upgrade</title>\r
45 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\r
46 <link rel="stylesheet" href="stylesheet.css" type="text/css" />\r
47 </head>\r
48 \r
49 <body>\r
50 <div style="height: 70px; vertical-align: bottom; background: #354A81">\r
51         <h1 id="header">ATutor <?php echo $new_version; ?> Upgrade</h1>\r
52         <img src="../images/AT_Logo_1_sm.png" height="35" width="97" alt="ATutor Logo" id="logo" />\r
53 </div>\r
54 <div style="clear: all"></div>\r
55 <div class="content">