--- index.php 2001/06/29 12:55:11 1.4 +++ index.php 2001/06/29 14:12:07 1.5 @@ -4,6 +4,7 @@ $smarty = new Smarty; + $smarty->assign( array ( Title=>"PLIVA Ljubljana" ) ); $section=str_replace(".php","",basename($PHP_SELF)); @@ -13,7 +14,6 @@ require("inc/section.php"); - $smarty->assign("r1link", "#"); $smarty->assign("r1pic", "bisolex.jpg"); $smarty->assign("r2link", "#"); @@ -34,6 +34,8 @@ $main=join('',file(find_html_file("h",$section))); } elseif (file_exists("sections/$section.inc")) { include("sections/$section.inc"); +} elseif (isset($p) && file_exists("sections/$p.inc")) { + include("sections/$p.inc"); } else { $main="can't find template or html file for section $section"; }