2 /************************************************************************/
4 /************************************************************************/
5 /* Copyright (c) 2002-2006 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');
38 // in: select directory
39 // out: confirm verions
40 require('include/ustep1.php');
43 // in: update database
45 require('include/ustep2.php');
48 // in: display version specific notices
49 // out: update database with new options
50 require('include/ustep3.php');
53 // in: determine where the old content dir is and if it has to be copied
54 // out: try to create the directory and set permissions
55 require('include/step5.php');
58 // in: copy the content if needed
60 require('include/ustep4.php');
63 // in: copy the config file
65 require('include/ustep5.php');
67 /* anonymous data collection */
69 require('include/step7.php');
73 require('include/ustep6.php');
76 require('include/footer.php');