aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-12-03 09:42:10 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-12-03 09:42:10 +0000
commit16e8b8271b25708bf4d573405bf7c1d609a4f9f5 (patch)
treef83094c45328c5a22368a8777e7d5ac667192eaa /phpBB/includes/functions.php
parent9ef743ba7dc20d92a69988d6cd65fdef6d0dce12 (diff)
downloadforums-16e8b8271b25708bf4d573405bf7c1d609a4f9f5.tar
forums-16e8b8271b25708bf4d573405bf7c1d609a4f9f5.tar.gz
forums-16e8b8271b25708bf4d573405bf7c1d609a4f9f5.tar.bz2
forums-16e8b8271b25708bf4d573405bf7c1d609a4f9f5.tar.xz
forums-16e8b8271b25708bf4d573405bf7c1d609a4f9f5.zip
ok... now i remember. Added more precise comments
git-svn-id: file:///svn/phpbb/trunk@9159 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index b88bac0610..2c6e24deeb 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -147,7 +147,7 @@ class request
{
self::$input[$const] = $GLOBALS[$super_global];
}
-
+
self::$initialised = true;
}
}
@@ -213,7 +213,7 @@ class request
{
$GLOBALS[$super_global] = self::$input[$const];
}
-
+
self::$super_globals_disabled = false;
}
}
@@ -347,7 +347,7 @@ class request
$_var = $var;
$var = array();
-
+
foreach ($_var as $k => $v)
{
set_var($k, $k, $key_type, $multibyte);
@@ -2125,14 +2125,15 @@ function append_sid($url, $params = false, $is_amp = true, $session_id = false)
global $_SID, $_EXTRA_URL, $phpbb_hook;
static $parsed_urls = array();
- // Adjust internal url before calling the hook - we are able to just leave out any path and extension.
- // In this case the root path and extension are added before going through this function.
+ // The following code is used to make sure such calls like append_sid('viewtopic') (ommitting phpbb_root_path and php_ext) work as intended
if (isset($parsed_urls[$url]))
{
+ // Set an url like 'viewtopic' to PHPBB_ROOT_PATH . 'viewtopic.' . PHP_EXT
$url = $parsed_urls[$url];
}
else
{
+ // If we detect an url without root path and extension, and also not a relative or absolute path, we add it and put it to the parsed urls
if (strpos($url, '.' . PHP_EXT) === false && $url[0] != '.' && $url[0] != '/')
{
$parsed_urls[$url] = $url = PHPBB_ROOT_PATH . $url . '.' . PHP_EXT;