Revision 7953
Added by Aaron Marcuse-Kubitza almost 12 years ago
index.php | ||
---|---|---|
16 | 16 |
} |
17 | 17 |
|
18 | 18 |
$h_level = 5; |
19 |
$path = parse_dot_path(rm_prefix("/", $_SERVER["PATH_INFO"])); |
|
19 |
$self_dir = dirname($_SERVER["SCRIPT_NAME"]); |
|
20 |
# instead of PATH_INFO, to support the Apache ErrorDocument directive |
|
21 |
$rel_fs_path = rm_prefix($self_dir, $_SERVER["REQUEST_URI"]); |
|
22 |
$path = parse_dot_path($rel_fs_path); |
|
20 | 23 |
$ns = strtolower($path->head); |
21 | 24 |
|
22 | 25 |
function add_ns($name, $path_pat, $url_func) |
Also available in: Unified diff
web/vegpath/index.php: Use REQUEST_URI (removing the script's own dir) instead of PATH_INFO, to support being used for the Apache ErrorDocument directive