summaryrefslogtreecommitdiff
path: root/install_welcome.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-05-06 22:01:53 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-05-06 22:01:53 +0000
commitf958361d0512bff945f55ab74410f41fd10ddb6d (patch)
treefa68fc638e83652027233ba8dac7f9c0e979758d /install_welcome.php
parenta63d1fae2d0e62fb0c5a31931865046af654c02b (diff)
downloadinstall-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 'install_welcome.php')
-rw-r--r--install_welcome.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/install_welcome.php b/install_welcome.php
index 8314216..d3e45a8 100644
--- a/install_welcome.php
+++ b/install_welcome.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_install/install_welcome.php,v 1.3 2005/08/01 18:40:30 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_install/install_welcome.php,v 1.4 2006/05/06 22:01:53 squareing Exp $
* @package install
* @subpackage functions
*/
@@ -10,5 +10,15 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// assign next step in installation process
-$gBitSmarty->assign( 'next_step',$step + 1 );
-?> \ No newline at end of file
+if( !empty( $_REQUEST['install'] ) ) {
+ header( 'Location: http://'.$_SERVER['HTTP_HOST'].INSTALL_PKG_URL.'install.php?step='.( $step + 1 ) );
+ die;
+} elseif( !empty( $_REQUEST['upgrade'] ) ) {
+ $_SESSION['upgrade'] = TRUE;
+ $_SESSION['upgrade_r1'] = TRUE;
+ $_SESSION['first_install'] = TRUE;
+ header( 'Location: http://'.$_SERVER['HTTP_HOST'].INSTALL_PKG_URL.'upgrade.php' );
+ die;
+}
+$gBitSmarty->assign( 'next_step',$step );
+?>