2 /************************************************************************/
4 /************************************************************************/
5 /* Copyright (c) 2002-2008 by Greg Gay, Joel Kronenberg, Heidi Hazelton */
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 /************************************************************************/
14 define('AT_INCLUDE_PATH', '../include/');
16 if (isset($_POST['new_version'])) {
17 $new_version = $_POST['new_version'];
20 if (isset($_POST['step'])) {
21 $step = intval($_POST['step']);
24 if (!isset($step) || ($step == 0)) {
28 require('include/common.inc.php');
30 if (($step == 2) && isset($_POST['override']) && ($_POST['override'] == 0)) {
31 header('Location: index.php');
35 require('include/upgrade_header.php');
39 echo 'You cannot access this page directly. <a href="index.php">Upgrade from here</a> using the <em>Upgrade</em> button.';
40 require('include/footer.php');
43 // in: select directory
44 // out: confirm verions
45 require('include/ustep1.php');
48 // in: update database
50 require('include/ustep2.php');
54 // out: convert database from <encoding> to UTF-8
55 require('include/ustep7.php');
58 // in: display version specific notices
59 // out: update database with new options
60 require('include/ustep3.php');
63 // in: determine where the old content dir is and if it has to be copied
64 // out: try to create the directory and set permissions
65 require('include/step5.php');
68 // in: copy the content if needed
70 require('include/ustep4.php');
73 // in: copy the config file
75 require('include/ustep5.php');
77 /* anonymous data collection */
79 require('include/step7.php');
83 require('include/ustep6.php');
85 require('include/footer.php');