--- index.php 2001/06/29 09:44:25 1.3 +++ index.php 2001/06/29 12:55:11 1.4 @@ -4,7 +4,7 @@ $smarty = new Smarty; -$smarty->assign( array ( Title=>"Pliva d.d." ) ); +$smarty->assign( array ( Title=>"PLIVA Ljubljana" ) ); $section=str_replace(".php","",basename($PHP_SELF)); $smarty->assign("section",$section); @@ -32,6 +32,8 @@ $main=$smarty->fetch("$main_file.tpl"); } elseif (find_html_file("h",$section)) { $main=join('',file(find_html_file("h",$section))); +} elseif (file_exists("sections/$section.inc")) { + include("sections/$section.inc"); } else { $main="can't find template or html file for section $section"; }