]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
added a check for register globals
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 19 Oct 2010 01:27:00 +0000 (01:27 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 19 Oct 2010 01:27:00 +0000 (01:27 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7096 36083f99-b078-4883-b0ff-0f9b5a30f544

install/ElggInstaller.php
install/languages/en.php

index b1b9f9dc6d80f76038b9148c3986e8b3e42a3925..66d1038ab7a3c75fd474b96db74c8db1af6c3c8c 100644 (file)
@@ -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")
+                       );
+               }
        }
 
        /**
index ff6b7e4a95b162ca24f783c85b021240a88145ee..ed42aa685adafd64eaf3f158d0f8420ac0e2c049 100644 (file)
@@ -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: