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

Now allow for GET based session

git-svn-id: file:///svn/phpbb/trunk@256 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2001-05-06 16:16:22 +00:00
parent 99edaf843c
commit 6a74951029
21 changed files with 156 additions and 107 deletions

View File

@@ -268,4 +268,23 @@ function create_date($format, $gmepoch, $tz)
{
return (gmdate($format, $gmepoch + (3600 * $tz)));
}
?>
//
// Append $SID to a url
// Borrowed from phplib
//
function append_sid($url)
{
global $SID;
if(!empty($SID) && !eregi("^http:", $url) && !eregi("sid=", $url))
{
$url = ereg_replace("[&?]+$", "", $url);
$url .= ( strpos($url, "?") != false ? "&" : "?" ) . $SID;
}
return($url);
}
?>