4 |
|
|
5 |
$smarty = new Smarty; |
$smarty = new Smarty; |
6 |
|
|
7 |
$smarty->assign( array ( Title=>"Pliva d.d." ) ); |
$smarty->assign( array ( Title=>"PLIVA Ljubljana" ) ); |
8 |
|
|
9 |
$section=str_replace(".php","",basename($PHP_SELF)); |
$section=str_replace(".php","",basename($PHP_SELF)); |
10 |
$smarty->assign("section",$section); |
$smarty->assign("section",$section); |
32 |
$main=$smarty->fetch("$main_file.tpl"); |
$main=$smarty->fetch("$main_file.tpl"); |
33 |
} elseif (find_html_file("h",$section)) { |
} elseif (find_html_file("h",$section)) { |
34 |
$main=join('',file(find_html_file("h",$section))); |
$main=join('',file(find_html_file("h",$section))); |
35 |
|
} elseif (file_exists("sections/$section.inc")) { |
36 |
|
include("sections/$section.inc"); |
37 |
} else { |
} else { |
38 |
$main="<b>can't find template or html file for section $section</b>"; |
$main="<b>can't find template or html file for section $section</b>"; |
39 |
} |
} |