2 /************************************************************************/
4 /************************************************************************/
5 /* Copyright (c) 2010 */
6 /* Inclusive Design Institute */
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 /************************************************************************/
13 define('TR_INCLUDE_PATH', '../include/');
15 if (isset($_POST['new_version'])) {
16 $new_version = $_POST['new_version'];
19 if (isset($_POST['step'])) {
20 $step = intval($_POST['step']);
23 if (!isset($step) || ($step == 0)) {
27 require('include/common.inc.php');
29 if (($step == 2) && isset($_POST['override']) && ($_POST['override'] == 0)) {
30 header('Location: index.php');
34 require('include/upgrade_header.php');
38 echo 'You cannot access this page directly. <a href="index.php">Upgrade from here</a> using the <em>Upgrade</em> button.';
39 require('include/footer.php');
42 // in: select directory
43 // out: confirm verions
44 require('include/ustep1.php');
47 // in: update database
49 require('include/ustep2.php');
52 // in: display version specific notices
53 // out: update database with new options
54 require('include/ustep3.php');
57 // in: determine where the old content dir is and if it has to be copied
58 // out: try to create the directory and set permissions
59 require('include/step4.php');
62 // in: copy the config file
64 require('include/ustep4.php');
66 /* anonymous data collection */
68 require('include/step6.php');
71 require('include/ustep5.php');
73 require('include/footer.inc.php');