1 |
<?php |
2 |
require("Smarty.class.php"); |
3 |
require("conn.inc"); |
4 |
|
5 |
$smarty = new Smarty; |
6 |
|
7 |
$smarty->assign( array ( Title=>"Pliva d.d." ) ); |
8 |
|
9 |
$section="about"; |
10 |
$smarty->assign("section",$section); |
11 |
|
12 |
$main_file="legal"; |
13 |
|
14 |
$title="Important Legal Information"; |
15 |
$lpic="obitelj"; $lext=".jpg"; |
16 |
$tmp = time() % 3; |
17 |
$mpic="welcome_".($tmp+1).".gif"; |
18 |
|
19 |
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
20 |
|
21 |
include("common.inc"); |
22 |
|
23 |
if (file_exists("./html/".$main_file.".htm")) { |
24 |
$main_file="./html/".$main_file.".htm"; |
25 |
$main=join('',file($main_file)); |
26 |
// $main.="<!-- file: $main_file -->"; |
27 |
} else { |
28 |
$main=$smarty->fetch("$main_file.tpl"); |
29 |
} |
30 |
$smarty->assign("MAIN",$main); |
31 |
|
32 |
$smarty->display("index.tpl"); |
33 |
?> |