1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-07 01:06:48 +02:00

Various changes to location redirection ... please note the format and name changes

git-svn-id: file:///svn/phpbb/trunk@1190 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2001-10-14 18:22:32 +00:00
parent e4b9702ebc
commit 715a51c548
13 changed files with 874 additions and 62 deletions

View File

@@ -416,14 +416,13 @@ function session_end($session_id, $user_id)
// around every single URL and form action. If you replace the session
// code you must include this routine, even if it's empty.
//
function append_sid($url)
function append_sid($url, $non_html_amp = false)
{
global $SID;
if(!empty($SID) && !eregi("sid=", $url))
{
// $url = ereg_replace("[&?]+$", "", $url);
$url .= ( (strpos($url, "?") != false) ? "&" : "?" ) . $SID;
$url .= ( (strpos($url, "?") != false) ? ( ( $non_html_amp ) ? "&" : "&" ) : "?" ) . $SID;
}
return($url);