From: <jfi...@us...> - 2002-08-23 03:35:34
|
Update of /cvsroot/mantisbt/mantisbt In directory usw-pr-cvs1:/tmp/cvs-serv8935 Modified Files: core_php_API.php config_inc.php.sample Log Message: remove $g_register_globals and just check the php setting directly Index: core_php_API.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core_php_API.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- core_php_API.php 23 Aug 2002 01:42:04 -0000 1.2 +++ core_php_API.php 23 Aug 2002 03:35:31 -0000 1.3 @@ -46,7 +46,7 @@ # @@@ NOTE we want to get rid of this once we start getting all # our GPC variables with functions. In fact we may want to # turn off register_global_variables if we can - if ( OFF == $g_register_globals ) { + if ( false == ini_get( 'register_globals' ) ) { if ( php_version_at_least( '4.1.0' ) ) { extract( $_REQUEST ); extract( $_SERVER ); Index: config_inc.php.sample =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/config_inc.php.sample,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- config_inc.php.sample 16 Aug 2002 09:44:35 -0000 1.5 +++ config_inc.php.sample 23 Aug 2002 03:35:31 -0000 1.6 @@ -71,9 +71,4 @@ # These should be OFF for Windows installations $g_validate_email = OFF; $g_check_mx_record = OFF; - - # --- register globals ----------- - # @@@ experimental - # if your register_globals is Off then set this to OFF - $g_register_globals = ON; ?> |