|
From: MW <jo...@us...> - 2008-02-10 21:00:18
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31780/includes Modified Files: mx_functions_core.php Log Message: update request class to use $_GET and $_POST instead of the $HTML_*VARS equvalent ones Index: mx_functions_core.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_core.php,v retrieving revision 1.70 retrieving revision 1.71 diff -C2 -d -r1.70 -r1.71 *** mx_functions_core.php 9 Feb 2008 19:44:11 -0000 1.70 --- mx_functions_core.php 10 Feb 2008 21:00:06 -0000 1.71 *************** *** 3597,3602 **** function _read($var, $type = MX_TYPE_ANY, $dflt = '') { - global $HTTP_POST_VARS, $HTTP_GET_VARS; - if( ($type & (MX_TYPE_POST_VARS|MX_TYPE_GET_VARS)) == 0 ) { --- 3597,3600 ---- *************** *** 3604,3611 **** } ! if( ($type & MX_TYPE_POST_VARS) && isset($HTTP_POST_VARS[$var]) || ! ($type & MX_TYPE_GET_VARS) && isset($HTTP_GET_VARS[$var]) ) { ! $val = ( ($type & MX_TYPE_POST_VARS) && isset($HTTP_POST_VARS[$var]) ? $HTTP_POST_VARS[$var] : $HTTP_GET_VARS[$var] ); if( !($type & MX_TYPE_NO_STRIP) ) { --- 3602,3609 ---- } ! if( ($type & MX_TYPE_POST_VARS) && isset($_POST[$var]) || ! ($type & MX_TYPE_GET_VARS) && isset($_GET[$var]) ) { ! $val = ( ($type & MX_TYPE_POST_VARS) && isset($_POST[$var]) ? $_POST[$var] : $_GET[$var] ); if( !($type & MX_TYPE_NO_STRIP) ) { |