From f3511ca4a5aac39a0719382f4d1f35bf424a3df4 Mon Sep 17 00:00:00 2001 From: nbm Date: Mon, 12 Dec 2005 15:03:11 +0000 Subject: [PATCH] Start framework for handling platforms that don't (easily) support PATH_INFO. --- config/dmsDefaults.php | 11 +++++++++++ 1 file changed, 11 insertions(+), 0 deletions(-) diff --git a/config/dmsDefaults.php b/config/dmsDefaults.php index 143b15b..5661240 100644 --- a/config/dmsDefaults.php +++ b/config/dmsDefaults.php @@ -214,6 +214,16 @@ class KTInit { } // }}} + // {{{ setupPathInfo + function setupPathInfo() { + $kt_path_info = KTUtil::arrayGet($_REQUEST, 'kt_path_info'); + if (!empty($kt_path_info)) { + $_SERVER["PHP_SELF"] .= "?kt_path_info=" . $kt_path_info; + $_SERVER["PATH_INFO"] = $kt_path_info; + } + } + // }}} + // {{{ setupRandomSeed() function setupRandomSeed () { mt_srand(hexdec(substr(md5(microtime()), -8)) & 0x7fffffff); @@ -375,6 +385,7 @@ $default->lastDatebaseVersion = '2.0.2'; $KTInit->cleanGlobals(); $KTInit->cleanMagicQuotes(); +$KTInit->setupPathInfo(); // site map definition require_once(KT_DIR . "/config/siteMap.inc"); -- libgit2 0.21.4