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:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user