summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorspiderr <spider@viovio.com>2012-05-25 10:33:38 -0400
committerspiderr <spider@viovio.com>2012-05-25 10:33:38 -0400
commite0801c18d9f70d6d11d59dd7bf8bee61ed3ee282 (patch)
treec53eb9cb451c634d08bbc0bc27aee366fb8af9ab /install.php
parentb9449cc90e49fcda9959f1875978647b5c6d51f8 (diff)
downloadinstall-e0801c18d9f70d6d11d59dd7bf8bee61ed3ee282.tar.gz
install-e0801c18d9f70d6d11d59dd7bf8bee61ed3ee282.tar.bz2
install-e0801c18d9f70d6d11d59dd7bf8bee61ed3ee282.zip
replace PHP_SELF with SCRIPT_NAME
Diffstat (limited to 'install.php')
-rw-r--r--install.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/install.php b/install.php
index 59d53f9..d8cca5b 100644
--- a/install.php
+++ b/install.php
@@ -22,7 +22,7 @@ if( !empty( $_REQUEST['step'] ) && $_REQUEST['step'] == 0 ) {
// Early check of memory limit just to be sure we can run.
// Set the number '15' to a lower value if you know that the install process can handle it.
if( get_cfg_var( 'memory_limit' ) !== FALSE && preg_replace( '/M/i','',get_cfg_var( 'memory_limit' )) < 15 ) {
- $dir = dirname( $_SERVER['PHP_SELF'] );
+ $dir = dirname( $_SERVER['SCRIPT_NAME'] );
// We don't use smarty to avoid using any memory since we already know there is a problem.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
@@ -151,9 +151,9 @@ if( !empty( $gBitDbType ) && !empty( $gBitInstaller->mPackages['users']['install
}
// if the page has been renamed to anything else than 'install.php' we send it to the last installation stage
-if( !strpos( $_SERVER['PHP_SELF'],'install/install.php' ) ) {
+if( !strpos( $_SERVER['SCRIPT_NAME'],'install/install.php' ) ) {
$step = $i;
- $gBitSmarty->assign( 'renamed',basename( $_SERVER['PHP_SELF'] ) );
+ $gBitSmarty->assign( 'renamed',basename( $_SERVER['SCRIPT_NAME'] ) );
}
// finally we are ready to include the actual php file