Commit f3511ca4a5aac39a0719382f4d1f35bf424a3df4
1 parent
6e97137c
Start framework for handling platforms that don't (easily) support
PATH_INFO. git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4402 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
11 additions
and
0 deletions
config/dmsDefaults.php
| ... | ... | @@ -214,6 +214,16 @@ class KTInit { |
| 214 | 214 | } |
| 215 | 215 | // }}} |
| 216 | 216 | |
| 217 | + // {{{ setupPathInfo | |
| 218 | + function setupPathInfo() { | |
| 219 | + $kt_path_info = KTUtil::arrayGet($_REQUEST, 'kt_path_info'); | |
| 220 | + if (!empty($kt_path_info)) { | |
| 221 | + $_SERVER["PHP_SELF"] .= "?kt_path_info=" . $kt_path_info; | |
| 222 | + $_SERVER["PATH_INFO"] = $kt_path_info; | |
| 223 | + } | |
| 224 | + } | |
| 225 | + // }}} | |
| 226 | + | |
| 217 | 227 | // {{{ setupRandomSeed() |
| 218 | 228 | function setupRandomSeed () { |
| 219 | 229 | mt_srand(hexdec(substr(md5(microtime()), -8)) & 0x7fffffff); |
| ... | ... | @@ -375,6 +385,7 @@ $default->lastDatebaseVersion = '2.0.2'; |
| 375 | 385 | |
| 376 | 386 | $KTInit->cleanGlobals(); |
| 377 | 387 | $KTInit->cleanMagicQuotes(); |
| 388 | +$KTInit->setupPathInfo(); | |
| 378 | 389 | |
| 379 | 390 | // site map definition |
| 380 | 391 | require_once(KT_DIR . "/config/siteMap.inc"); | ... | ... |