|
From: OryNider <ory...@us...> - 2008-02-12 08:18:50
|
Update of /cvsroot/mxbb/core/install In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv15822 Modified Files: mx_install.php Log Message: // PHP5 with register_long_arrays off? This is requested in class mx_request_vars, do not change! Index: mx_install.php =================================================================== RCS file: /cvsroot/mxbb/core/install/mx_install.php,v retrieving revision 1.92 retrieving revision 1.93 diff -C2 -d -r1.92 -r1.93 *** mx_install.php 12 Feb 2008 07:34:29 -0000 1.92 --- mx_install.php 12 Feb 2008 08:18:45 -0000 1.93 *************** *** 176,184 **** // Thanks to Matt Kavanagh and Stefan Esser for providing feedback as well as patch files ! // PHP5 with register_long_arrays off? if (@phpversion() >= '5.0.0' && (!@ini_get('register_long_arrays') || @ini_get('register_long_arrays') == '0' || strtolower(@ini_get('register_long_arrays')) == 'off')) { ! $_POST = $_POST; ! $_GET = $_GET; $HTTP_SERVER_VARS = $_SERVER; $HTTP_COOKIE_VARS = $_COOKIE; --- 176,184 ---- // Thanks to Matt Kavanagh and Stefan Esser for providing feedback as well as patch files ! // PHP5 with register_long_arrays off? This is requested in class mx_request_vars, do not change! if (@phpversion() >= '5.0.0' && (!@ini_get('register_long_arrays') || @ini_get('register_long_arrays') == '0' || strtolower(@ini_get('register_long_arrays')) == 'off')) { ! $HTTP_POST_VAR = $_POST; ! $HTTP_GET_VAR = $_GET; $HTTP_SERVER_VARS = $_SERVER; $HTTP_COOKIE_VARS = $_COOKIE; *************** *** 527,536 **** // Do install -------------------------------------------------- // ! $confirm = $mx_request_vars->is_request('confirm') && !$mx_request_vars->is_post('debug'); ! ! if( $confirm ) { $install_mode = $mx_request_vars->request('install_mode', MX_TYPE_NO_TAGS); ! $install_mode = ( preg_match('#^[a-z_]+$#', $install_mode) ? strip_tags($install_mode) : '' ); $schemas = array(); --- 527,536 ---- // Do install -------------------------------------------------- // ! $confirm = $mx_request_vars->is_request('confirm'); // && !$mx_request_vars->is_post('debug'); ! //$confirm = (isset($_POST['confirm']) || isset($_GET['confirm'])); ! if($confirm) { $install_mode = $mx_request_vars->request('install_mode', MX_TYPE_NO_TAGS); ! $install_mode = (preg_match('#^[a-z_]+$#', $install_mode) ? strip_tags($install_mode) : ''); $schemas = array(); |