|
From: OryNider <ory...@us...> - 2007-12-15 14:08:10
|
Update of /cvsroot/mxbb/core In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv5221 Modified Files: common.php Log Message: A little trick with PORTAL_URL for some servers :) Index: common.php =================================================================== RCS file: /cvsroot/mxbb/core/common.php,v retrieving revision 1.69 retrieving revision 1.70 diff -C2 -d -r1.69 -r1.70 *** common.php 14 Dec 2007 02:13:25 -0000 1.69 --- common.php 15 Dec 2007 14:08:06 -0000 1.70 *************** *** 41,44 **** --- 41,45 ---- 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_VARS = $_POST; $HTTP_GET_VARS = $_GET; *************** *** 47,51 **** $HTTP_ENV_VARS = $_ENV; $HTTP_POST_FILES = $_FILES; ! // _SESSION is the only superglobal which is conditionally set if (isset($_SESSION)) --- 48,52 ---- $HTTP_ENV_VARS = $_ENV; $HTTP_POST_FILES = $_FILES; ! // _SESSION is the only superglobal which is conditionally set if (isset($_SESSION)) *************** *** 324,328 **** $server_port = ( $portal_config['server_port'] <> 80 ) ? ':' . trim($portal_config['server_port']) . '/' : '/'; ! $server_url = $server_protocol . $server_name . $server_port . $script_name . '/'; define('PORTAL_URL', $server_url); --- 325,329 ---- $server_port = ( $portal_config['server_port'] <> 80 ) ? ':' . trim($portal_config['server_port']) . '/' : '/'; ! $server_url = $server_protocol . str_replace("//", "/", $server_name . $server_port . $script_name . '/'); //On some server the slash is not added and this trick will fix it define('PORTAL_URL', $server_url); |