Little fixup of PATH_INFO algorithm... Default page is (k)id 1 now...
authorHarvie <tomas@mudrunka.cz>
Sun, 28 Nov 2010 23:42:06 +0000 (00:42 +0100)
committerHarvie <tomas@mudrunka.cz>
Sun, 28 Nov 2010 23:42:06 +0000 (00:42 +0100)
wwwroot/nodes.php

index eb734abe3e04f570d34d166db47e4253c339fe7a..723f940753f7ea3a0a08f0066779c0b23eda7e8a 100644 (file)
@@ -49,6 +49,10 @@ if($PATH_INFO != '') {
                        break;
        }
 }
+if(
+       (!isset($_GET['node_kid']) || trim($_GET['node_kid']) == '') &&
+       (!isset($_GET['node_id']) || trim($_GET['node_id']) == '')
+) $_GET['node_kid'] = 1;
 
 //Base36 http://en.wikipedia.org/wiki/Base_36 (Initial support only :-)
 if(isset($_GET['node_kid'])) $_GET['node_id'] = base_convert($_GET['node_kid'], 36, 10);
This page took 0.124023 seconds and 4 git commands to generate.