--- index.php 2001/06/29 12:55:11 1.4 +++ index.php 2001/07/09 14:25:36 1.7 @@ -4,6 +4,7 @@ $smarty = new Smarty; + $smarty->assign( array ( Title=>"PLIVA Ljubljana" ) ); $section=str_replace(".php","",basename($PHP_SELF)); @@ -13,12 +14,6 @@ require("inc/section.php"); - -$smarty->assign("r1link", "#"); -$smarty->assign("r1pic", "bisolex.jpg"); -$smarty->assign("r2link", "#"); -$smarty->assign("r2pic", "andol1.jpg"); - include("common.inc"); include("find_html_file.inc"); @@ -28,6 +23,8 @@ if ($menu_item) { $title.=" : $menu_item"; } +} elseif (isset($p) && file_exists("sections/$p.inc")) { + include("sections/$p.inc"); } elseif (file_exists("template/$main_file.tpl")) { $main=$smarty->fetch("$main_file.tpl"); } elseif (find_html_file("h",$section)) {