2 |
if ($redir) { |
if ($redir) { |
3 |
if ($redir == "harrison") include_once("inc/harrison.php"); |
if ($redir == "harrison") include_once("inc/harrison.php"); |
4 |
else { |
else { |
5 |
|
include_once("inc/global.php"); |
6 |
|
include_once("inc/util.php"); |
7 |
include_once("inc/banneri.php"); |
include_once("inc/banneri.php"); |
8 |
// Sad tu neki brojac klikova ili nesto... |
// Sad tu neki brojac klikova ili nesto... |
9 |
Header("Location: ".$banneri[$redir - 1]["url"]); |
$loc = $banneri[$redir - 1]["url"]; |
10 |
|
if (!$loc) $loc = "?section=home"; |
11 |
|
Header("Location: $loc"); |
12 |
} |
} |
13 |
exit; |
exit; |
14 |
} |
} |
15 |
|
Header("Pragma: no-cache"); |
16 |
|
Header("Cache-Control: no-cache"); |
17 |
|
Header("Cache-Policy: no-cache"); |
18 |
include_once("inc/global.php"); |
include_once("inc/global.php"); |
19 |
include_once("inc/util.php"); |
include_once("inc/util.php"); |
20 |
$picdir = str_replace("//", "/", dirname($PHP_SELF)); |
$picdir = str_replace("//", "/", dirname($PHP_SELF)); |
85 |
} else if ($section == "zanimljivo") { |
} else if ($section == "zanimljivo") { |
86 |
$section_name = "Zanimljivosti"; |
$section_name = "Zanimljivosti"; |
87 |
$inc = "pgZanimljivosti"; |
$inc = "pgZanimljivosti"; |
88 |
|
} else if ($section == "lozinka") { |
89 |
|
$section_name = "Promjena lozinke"; |
90 |
|
$inc = "pgLozinka"; |
91 |
|
} else if ($section == "arhiva") { |
92 |
|
$section_name = "Arhiva"; |
93 |
|
$inc = "pgArhiva"; |
94 |
} |
} |
95 |
} else { |
} else { |
96 |
if ($section == "home") { |
if ($section == "home") { |
143 |
} else if ($section == "duk") { |
} else if ($section == "duk") { |
144 |
$section_name = "Doktor u kuæi"; |
$section_name = "Doktor u kuæi"; |
145 |
$mnu = $inc = ""; |
$mnu = $inc = ""; |
146 |
|
} else if ($section == "arhiva") { |
147 |
|
$section_name = "Arhiva"; |
148 |
|
$mnu = ""; |
149 |
|
$inc = "pgArhiva"; |
150 |
} |
} |
151 |
} |
} |
152 |
|
$push_menu = true; |
153 |
if ($mnu && file_exists("inc/$mnu")) { |
if ($mnu && file_exists("inc/$mnu")) { |
154 |
$keep_template = false; |
$keep_template = false; |
155 |
include_once("inc/$mnu"); |
include_once("inc/$mnu"); |
168 |
} |
} |
169 |
$inc .= ".php"; |
$inc .= ".php"; |
170 |
if ($section_name) array_push($PATH, MyUpper($section_name)); |
if ($section_name) array_push($PATH, MyUpper($section_name)); |
171 |
if ($section_menu_name) array_push($PATH, MyUpper($section_menu_name)); |
if ($section_menu_name && $push_menu) array_push($PATH, MyUpper($section_menu_name)); |
172 |
if ($section_menu2_name) array_push($PATH, MyUpper($section_menu2_name)); |
if ($section_menu2_name) array_push($PATH, MyUpper($section_menu2_name)); |
173 |
if ($inc && file_exists("inc/$inc")) include_once("inc/$inc"); |
if ($inc && file_exists("inc/$inc")) include_once("inc/$inc"); |
174 |
if ($isMed) { |
if ($isMed) { |
199 |
$tpl->assign("section_menu", $section_menu); |
$tpl->assign("section_menu", $section_menu); |
200 |
$tpl->assign("section_menu2", $section_menu2); |
$tpl->assign("section_menu2", $section_menu2); |
201 |
$tpl->assign("spec", $spec); |
$tpl->assign("spec", $spec); |
202 |
|
$tpl->assign("offset", $offset); |
203 |
if ($fname && $section_name) $main = $tpl->fetch($fname); |
if ($fname && $section_name) $main = $tpl->fetch($fname); |
204 |
$tpl->assign("MAIN", $main); |
$tpl->assign("MAIN", $main); |
205 |
$tpl->assign("FOOTER", $tpl->fetch("footer.tpl")); |
$tpl->assign("FOOTER", $tpl->fetch("footer.tpl")); |
206 |
$tpl->assign("onload", $onload); |
$tpl->assign("onload", $onload); |
207 |
$tpl->assign("refresh", $refresh); |
$tpl->assign("refresh", $refresh); |
208 |
$tpl->assign("query", $query); |
$tpl->assign("trazi", $trazi); |
209 |
include_once("inc/banneri.php"); |
include_once("inc/banneri.php"); |
210 |
$idx = rand(0, count($banneri) - 1); |
$idx = rand(0, count($banneri) - 1); |
211 |
$tpl->assign("banner", $banneri[$idx]["slika"]); |
$tpl->assign("banner", $banneri[$idx]["slika"]); |
212 |
$tpl->assign("banner_alt", $banneri[$idx]["alt"]); |
$tpl->assign("banner_alt", $banneri[$idx]["alt"]); |
213 |
$tpl->assign("banner_url", "?redir=".($idx + 1)); |
$tpl->assign("banner_url", "?redir=".($idx + 1)); |
214 |
$tpl->assign("show", $show ? true : false); |
$tpl->assign("show", $show ? true : false); |
215 |
|
$tpl->assign("date", strftime("%d.%m.%Y.")); |
216 |
|
$tpl->assign("acat", $acat); |
217 |
|
$tpl->assign("acat2", $acat2); |
218 |
$tpl->display($main_template); |
$tpl->display($main_template); |
219 |
include_once("inc/tracker.php"); |
include_once("inc/tracker.php"); |
220 |
?> |
?> |