|
From: FlorinCB <ory...@us...> - 2008-09-02 21:24:20
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv16617 Modified Files: mx_functions_core.php Log Message: fixed request class Index: mx_functions_core.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_core.php,v retrieving revision 1.102 retrieving revision 1.103 diff -C2 -d -r1.102 -r1.103 *** mx_functions_core.php 2 Sep 2008 21:13:32 -0000 1.102 --- mx_functions_core.php 2 Sep 2008 21:24:15 -0000 1.103 *************** *** 3984,3988 **** function _read($var, $type = MX_TYPE_ANY, $dflt = '', $not_null = false) { ! global $_POST, $_GET; if( ($type & (MX_TYPE_POST_VARS|MX_TYPE_GET_VARS)) == 0 ) { --- 3984,3988 ---- function _read($var, $type = MX_TYPE_ANY, $dflt = '', $not_null = false) { ! //global $_POST, $_GET; //is not required? if( ($type & (MX_TYPE_POST_VARS|MX_TYPE_GET_VARS)) == 0 ) { *************** *** 4134,4138 **** function is_post($var) { ! global $_POST; // Note: _x and _y are used by (at least IE) to return the mouse position at onclick of INPUT TYPE="img" elements. return (isset($_POST[$var]) || ( isset($_POST[$var.'_x']) && isset($_POST[$var.'_y']))) ? 1 : 0; --- 4134,4138 ---- function is_post($var) { ! //global $_POST; // Note: _x and _y are used by (at least IE) to return the mouse position at onclick of INPUT TYPE="img" elements. return (isset($_POST[$var]) || ( isset($_POST[$var.'_x']) && isset($_POST[$var.'_y']))) ? 1 : 0; *************** *** 4150,4154 **** function is_get($var) { ! global $_GET; return isset($_GET[$var]) ? 1 : 0 ; } --- 4150,4154 ---- function is_get($var) { ! //global $_GET; return isset($_GET[$var]) ? 1 : 0 ; } *************** *** 4179,4183 **** function is_empty_post($var) { ! global $_POST; return (empty($_POST[$var]) && ( empty($_POST[$var.'_x']) || empty($_POST[$var.'_y']))) ? 1 : 0 ; } --- 4179,4183 ---- function is_empty_post($var) { ! //global $_POST; return (empty($_POST[$var]) && ( empty($_POST[$var.'_x']) || empty($_POST[$var.'_y']))) ? 1 : 0 ; } *************** *** 4194,4198 **** function is_empty_get($var) { ! global $_GET; return empty($_GET[$var]) ? 1 : 0 ; } --- 4194,4198 ---- function is_empty_get($var) { ! //global $_GET; return empty($_GET[$var]) ? 1 : 0 ; } |