|
From: FlorinCB <ory...@us...> - 2008-09-02 21:13:39
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3638 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.101 retrieving revision 1.102 diff -C2 -d -r1.101 -r1.102 *** mx_functions_core.php 1 Sep 2008 03:27:20 -0000 1.101 --- mx_functions_core.php 2 Sep 2008 21:13:32 -0000 1.102 *************** *** 3984,3987 **** --- 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 ) { *************** *** 4133,4136 **** --- 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; *************** *** 4148,4151 **** --- 4150,4154 ---- function is_get($var) { + global $_GET; return isset($_GET[$var]) ? 1 : 0 ; } *************** *** 4176,4179 **** --- 4179,4183 ---- function is_empty_post($var) { + global $_POST; return (empty($_POST[$var]) && ( empty($_POST[$var.'_x']) || empty($_POST[$var.'_y']))) ? 1 : 0 ; } *************** *** 4190,4193 **** --- 4194,4198 ---- function is_empty_get($var) { + global $_GET; return empty($_GET[$var]) ? 1 : 0 ; } |