From: Harvie Date: Sun, 28 Nov 2010 23:42:06 +0000 (+0100) Subject: Little fixup of PATH_INFO algorithm... Default page is (k)id 1 now... X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=15de3e32014d3ca834fa9877cf978ec3f612a8cc;p=mirrors%2FKyberia-bloodline.git Little fixup of PATH_INFO algorithm... Default page is (k)id 1 now... --- diff --git a/wwwroot/nodes.php b/wwwroot/nodes.php index eb734ab..723f940 100644 --- a/wwwroot/nodes.php +++ b/wwwroot/nodes.php @@ -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);