Prepared to experimentaly fire smarty from database...
[mirrors/Kyberia-bloodline.git] / wwwroot / nodes.php
index eb734abe3e04f570d34d166db47e4253c339fe7a..96926f58272f9e9fb68b091e956a880da12f30b4 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);
@@ -90,6 +94,7 @@ if (!empty($_GET['node_name'])) {
 //loading smarty template engine and setting main parameters
 require(SMARTY_DIR.'Smarty.class.php');
 $smarty = new Smarty;
+require(INCLUDE_DIR.'smarty/resource.kyberia.php');
 
 //$smarty->php_handling = SMARTY_PHP_REMOVE; //XXX
 $smarty->template_dir = TEMPLATE_DIR;
This page took 0.19186 seconds and 4 git commands to generate.