aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-05-06 16:16:22 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-05-06 16:16:22 +0000
commit6a7495102901ccd970cb0da405cd5444e84d3f46 (patch)
treed7eeb84690dd5c91286c58fda0756a01c9d5bd46 /phpBB/includes/functions.php
parent99edaf843c182b7c79ef4117c6cd357071d0a306 (diff)
downloadforums-6a7495102901ccd970cb0da405cd5444e84d3f46.tar
forums-6a7495102901ccd970cb0da405cd5444e84d3f46.tar.gz
forums-6a7495102901ccd970cb0da405cd5444e84d3f46.tar.bz2
forums-6a7495102901ccd970cb0da405cd5444e84d3f46.tar.xz
forums-6a7495102901ccd970cb0da405cd5444e84d3f46.zip
Now allow for GET based session
git-svn-id: file:///svn/phpbb/trunk@256 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php21
1 files changed, 20 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index ba203c9281..c36b56710e 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -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);
+
+}
+
+?> \ No newline at end of file