GIT.Harvie.CZ
/
mirrors
/
Kyberia-bloodline.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
822594d
)
Improved PATH_INFO support :-)
author
Harvie
<tomas@mudrunka.cz>
Sun, 28 Nov 2010 23:00:36 +0000
(
00:00
+0100)
committer
Harvie
<tomas@mudrunka.cz>
Sun, 28 Nov 2010 23:00:36 +0000
(
00:00
+0100)
wwwroot/nodes.php
patch
|
blob
|
blame
|
history
diff --git
a/wwwroot/nodes.php
b/wwwroot/nodes.php
index 69e867d95aa88a24e2bdd80c027a0b64e340db1c..a6b0620ba4d9bf39c5afa39a9cdd8cd05b3c2634 100644
(file)
--- a/
wwwroot/nodes.php
+++ b/
wwwroot/nodes.php
@@
-33,7
+33,7
@@
if ($_SESSION['debugging']) {
@$PATH_INFO=trim($_SERVER[PATH_INFO]);
if($PATH_INFO != '') {
$PATH_CHUNKS = preg_split("/\//", $PATH_INFO);
@$PATH_INFO=trim($_SERVER[PATH_INFO]);
if($PATH_INFO != '') {
$PATH_CHUNKS = preg_split("/\//", $PATH_INFO);
- switch($PATH_CHUNKS[1]) {
+
if(isset($PATH_CHUNKS[1]))
switch($PATH_CHUNKS[1]) {
case 'k':
if(isset($PATH_CHUNKS[2]) && $PATH_CHUNKS[2] != '') $_GET['node_kid'] = $PATH_CHUNKS[2];
if(isset($PATH_CHUNKS[3]) && $PATH_CHUNKS[3] != '') $_GET['template_kid'] = $PATH_CHUNKS[3];
case 'k':
if(isset($PATH_CHUNKS[2]) && $PATH_CHUNKS[2] != '') $_GET['node_kid'] = $PATH_CHUNKS[2];
if(isset($PATH_CHUNKS[3]) && $PATH_CHUNKS[3] != '') $_GET['template_kid'] = $PATH_CHUNKS[3];
@@
-42,6
+42,10
@@
if($PATH_INFO != '') {
if(isset($PATH_CHUNKS[2]) && $PATH_CHUNKS[2] != '') $_GET['node_id'] = $PATH_CHUNKS[2];
if(isset($PATH_CHUNKS[3]) && $PATH_CHUNKS[3] != '') $_GET['template_id'] = $PATH_CHUNKS[3];
break;
if(isset($PATH_CHUNKS[2]) && $PATH_CHUNKS[2] != '') $_GET['node_id'] = $PATH_CHUNKS[2];
if(isset($PATH_CHUNKS[3]) && $PATH_CHUNKS[3] != '') $_GET['template_id'] = $PATH_CHUNKS[3];
break;
+ default:
+ if($PATH_CHUNKS[1] != '') $_GET['node_name'] = $PATH_CHUNKS[1];
+ if(isset($PATH_CHUNKS[2]) && $PATH_CHUNKS[2] != '') $_GET['template_kid'] = $PATH_CHUNKS[2];
+ break;
}
}
}
}
This page took
0.13998 seconds
and
4
git commands to generate.