|
From: OryNider <ory...@us...> - 2008-03-13 07:14:33
|
Update of /cvsroot/mxbb/mx_mod_core/root/mx_mod/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv22937 Modified Files: functions_required.php Log Message: new typo bug with empty _SID Index: functions_required.php =================================================================== RCS file: /cvsroot/mxbb/mx_mod_core/root/mx_mod/includes/functions_required.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** functions_required.php 10 Mar 2008 06:02:26 -0000 1.1 --- functions_required.php 13 Mar 2008 07:14:28 -0000 1.2 *************** *** 531,534 **** --- 531,535 ---- global $SID, $_SID, $mx_mod_rewrite; + /* // Is mod_rewrite enabled? If so, do some url rewrites... if (is_object($mx_mod_rewrite)) *************** *** 542,548 **** --- 543,555 ---- return $url; } + */ if ( !empty($_SID) && !preg_match('#sid=#', $url) ) { + $url .= ( ( strpos($url, '?') !== false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $_SID; + } + + if ( !empty($SID) && !preg_match('#sid=#', $url) ) + { $url .= ( ( strpos($url, '?') !== false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID; } |