diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-05-06 22:01:53 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-05-06 22:01:53 +0000 |
| commit | f958361d0512bff945f55ab74410f41fd10ddb6d (patch) | |
| tree | fa68fc638e83652027233ba8dac7f9c0e979758d /upgrade.php | |
| parent | a63d1fae2d0e62fb0c5a31931865046af654c02b (diff) | |
| download | install-f958361d0512bff945f55ab74410f41fd10ddb6d.tar.gz install-f958361d0512bff945f55ab74410f41fd10ddb6d.tar.bz2 install-f958361d0512bff945f55ab74410f41fd10ddb6d.zip | |
start adding bitweaver R1 to R2 specific instructions and making upgrade process a bit more pleasant
Diffstat (limited to 'upgrade.php')
| -rw-r--r-- | upgrade.php | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/upgrade.php b/upgrade.php index 78355a2..8503777 100644 --- a/upgrade.php +++ b/upgrade.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_install/upgrade.php,v 1.4 2005/10/12 15:13:51 spiderr Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_install/upgrade.php,v 1.5 2006/05/06 22:01:53 squareing Exp $ * @package install * @subpackage upgrade */ @@ -26,18 +26,21 @@ $step = $_REQUEST['step']; // updating $install_file name $i = 0; $install_file[$i]['file'] = 'welcome'; -$install_file[$i++]['name'] = 'Welcome'; +$install_file[$i]['name'] = 'Welcome'; +$i++; $install_file[$i]['file'] = 'database'; -$install_file[$i++]['name'] = 'Database Connection'; +$install_file[$i]['name'] = 'Database Connection'; +$i++; $install_file[$i]['file'] = 'packages'; -$install_file[$i++]['name'] = 'Upgrade Selection'; +$install_file[$i]['name'] = 'Upgrade Selection'; +$i++; $install_file[$i]['file'] = 'final'; $install_file[$i]['name'] = 'Upgrade Complete'; // currently i can't think of a better way to secure the upgrade pages // redirect to the installer if we aren't sent here by the installer and the upgrade session variable hasn't been set if( !isset( $_SESSION['upgrade'] ) || $_SESSION['upgrade'] != TRUE || - !isset( $_SERVER['HTTP_REFERER'] ) || + !isset( $_SERVER['HTTP_REFERER'] ) || isset( $_SERVER['HTTP_REFERER'] ) && ( ( !strpos( $_SERVER['HTTP_REFERER'],'install/install.php' ) ) && ( !strpos( $_SERVER['HTTP_REFERER'],'install/upgrade.php' ) ) && ( !strpos( $_SERVER['HTTP_REFERER'],'install/migrate.php' ) ) ) ) { |
