summaryrefslogtreecommitdiff
path: root/install_welcome.php
diff options
context:
space:
mode:
authorStephan Borg <wolff_borg@users.sourceforge.net>2008-07-06 05:27:10 +0000
committerStephan Borg <wolff_borg@users.sourceforge.net>2008-07-06 05:27:10 +0000
commit7191d8c61cc04cc855da86481dea0e774950578a (patch)
treedb6a24f828b582caae5aafb8eacb398ad811daac /install_welcome.php
parentc026cbf7e5bb6ff0b8dd4beb6c28fb323647faf9 (diff)
downloadinstall-7191d8c61cc04cc855da86481dea0e774950578a.tar.gz
install-7191d8c61cc04cc855da86481dea0e774950578a.tar.bz2
install-7191d8c61cc04cc855da86481dea0e774950578a.zip
Added check for IIS as $_SERVER['HTTPS'] uses 'off' value
Diffstat (limited to 'install_welcome.php')
-rw-r--r--install_welcome.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/install_welcome.php b/install_welcome.php
index 4e36436..1f6c51d 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.6 2007/10/01 18:57:58 nickpalmer Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_install/install_welcome.php,v 1.7 2008/07/06 05:27:10 wolff_borg Exp $
* @package install
* @subpackage functions
*/
@@ -11,7 +11,8 @@
// assign next step in installation process
if( !empty( $_REQUEST['install'] ) ) {
- header( 'Location: http'.(!empty($_SERVER['HTTPS'])?'s':'').'://'.$_SERVER['HTTP_HOST'].INSTALL_PKG_URL.'install.php?step='.( $step + 1 ) );
+ // Added check for IIS $_SERVER['HTTPS'] uses 'off' value - wolff_borg
+ header( 'Location: http'.((!empty($_SERVER['HTTPS'])&&$_SERVER['HTTPS'] != 'off')?'s':'').'://'.$_SERVER['HTTP_HOST'].INSTALL_PKG_URL.'install.php?step='.( $step + 1 ) );
die;
}
$gBitSmarty->assign( 'next_step',$step );