--- index.php 2001/07/22 18:03:31 1.9 +++ index.php 2001/10/10 12:00:18 1.11 @@ -4,7 +4,6 @@ $smarty = new Smarty; - $smarty->assign( array ( Title=>"PLIVA Ljubljana" ) ); $section=str_replace(".php","",basename($PHP_SELF)); @@ -29,6 +28,9 @@ $main=$smarty->fetch("$main_file.tpl"); } elseif (find_html_file("h",$section)) { $main=join('',file(find_html_file("h",$section))); + if (file_exists("sections/$section.inc")) { + include("sections/$section.inc"); + } } elseif (isset($static)) { if (strstr($static,",")) { $d=explode(",",$static); // dir,file @@ -48,6 +50,7 @@ } else { $main="can't find template or html file for section $section"; } + $smarty->assign(array(section=>$section, mpic=>$mpic, Section_title=>$title,