Rip out some old debugging code from when this was new.
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 21 Aug 2004 10:13:36 +0000 (10:13 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 21 Aug 2004 10:13:36 +0000 (10:13 +0000)
includes/WebRequest.php

index 303af7c..6aa9700 100644 (file)
 # self-contained request.
 
 ## Enable this to debug total elimination of register_globals
-#define( "DEBUG_GLOBALS", 1 );
 
 class WebRequest {
        function WebRequest() {
-               if( defined('DEBUG_GLOBALS') ) error_reporting(E_ALL);
-
                $this->checkMagicQuotes();
-               $this->checkRegisterGlobals();
        }
 
        function &fix_magic_quotes( &$arr ) {
@@ -52,25 +48,7 @@ class WebRequest {
                        $this->fix_magic_quotes( $_POST );
                        $this->fix_magic_quotes( $_REQUEST );
                        $this->fix_magic_quotes( $_SERVER );
-               } elseif( defined('DEBUG_GLOBALS') ) {
-                       die("DEBUG_GLOBALS: turn on magic_quotes_gpc" );
-               }
-       }
-
-       function checkRegisterGlobals() {
-               if( ini_get( "register_globals" ) ) {
-                       if( defined( "DEBUG_GLOBALS" ) ) {
-                               die( "DEBUG_GLOBALS: Turn register_globals off!" );
-                       }
-               }
-               /*
-               else {
-                       if( !defined( "DEBUG_GLOBALS" ) ) {
-                               # Insecure, but at least it'll run
-                               import_request_variables( "GPC" );
-                       }
                }
-               */
        }
        
        function getGPCVal( &$arr, $name, $default ) {