aboutsummaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-19 01:27:00 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-19 01:27:00 +0000
commiteb5855d3e3e55f7f200b53226ca0fcd16c7e4c76 (patch)
tree6706fee158ce9f3f5372e1e06f382d307b7b1b65 /install
parent2819e203902392e229564e734194c5c8f8e26db5 (diff)
downloadelgg-eb5855d3e3e55f7f200b53226ca0fcd16c7e4c76.tar.gz
elgg-eb5855d3e3e55f7f200b53226ca0fcd16c7e4c76.tar.bz2
added a check for register globals
git-svn-id: http://code.elgg.org/elgg/trunk@7096 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'install')
-rw-r--r--install/ElggInstaller.php7
-rw-r--r--install/languages/en.php1
2 files changed, 8 insertions, 0 deletions
diff --git a/install/ElggInstaller.php b/install/ElggInstaller.php
index b1b9f9dc6..66d1038ab 100644
--- a/install/ElggInstaller.php
+++ b/install/ElggInstaller.php
@@ -955,6 +955,13 @@ class ElggInstaller {
'message' => $msg,
);
}
+
+ if (ini_get('register_globals')) {
+ $phpReport[] = array(
+ 'severity' => 'failure',
+ 'message' => elgg_echo("install:check:php:register_globals")
+ );
+ }
}
/**
diff --git a/install/languages/en.php b/install/languages/en.php
index ff6b7e4a9..ed42aa685 100644
--- a/install/languages/en.php
+++ b/install/languages/en.php
@@ -41,6 +41,7 @@ If you are ready to proceed, click the Next button.",
'install:check:php:open_basedir' => 'The open_basedir PHP directive may prevent Elgg from saving files to its data directory.',
'install:check:php:safe_mode' => 'Running PHP in safe mode is not recommened and may cause problems with Elgg.',
'install:check:php:arg_separator' => 'arg_separator.output must be & for Elgg to work and your server\'s value is %s',
+ 'install:check:php:register_globals' => 'Register globals must be turned off.',
'install:check:enginedir' => 'Your web server does not have permission to create the settings.php file in the engine directory. You have two choices: