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 |
} |
} |
92 |
} else { |
} else { |
93 |
if ($section == "home") { |
if ($section == "home") { |
142 |
$mnu = $inc = ""; |
$mnu = $inc = ""; |
143 |
} |
} |
144 |
} |
} |
145 |
|
$push_menu = true; |
146 |
if ($mnu && file_exists("inc/$mnu")) { |
if ($mnu && file_exists("inc/$mnu")) { |
147 |
$keep_template = false; |
$keep_template = false; |
148 |
include_once("inc/$mnu"); |
include_once("inc/$mnu"); |
161 |
} |
} |
162 |
$inc .= ".php"; |
$inc .= ".php"; |
163 |
if ($section_name) array_push($PATH, MyUpper($section_name)); |
if ($section_name) array_push($PATH, MyUpper($section_name)); |
164 |
if ($section_menu_name) array_push($PATH, MyUpper($section_menu_name)); |
if ($section_menu_name && $push_menu) array_push($PATH, MyUpper($section_menu_name)); |
165 |
if ($section_menu2_name) array_push($PATH, MyUpper($section_menu2_name)); |
if ($section_menu2_name) array_push($PATH, MyUpper($section_menu2_name)); |
166 |
if ($inc && file_exists("inc/$inc")) include_once("inc/$inc"); |
if ($inc && file_exists("inc/$inc")) include_once("inc/$inc"); |
167 |
if ($isMed) { |
if ($isMed) { |
204 |
$tpl->assign("banner_alt", $banneri[$idx]["alt"]); |
$tpl->assign("banner_alt", $banneri[$idx]["alt"]); |
205 |
$tpl->assign("banner_url", "?redir=".($idx + 1)); |
$tpl->assign("banner_url", "?redir=".($idx + 1)); |
206 |
$tpl->assign("show", $show ? true : false); |
$tpl->assign("show", $show ? true : false); |
207 |
|
$tpl->assign("date", strftime("%d.%m.%Y.")); |
208 |
$tpl->display($main_template); |
$tpl->display($main_template); |
209 |
include_once("inc/tracker.php"); |
include_once("inc/tracker.php"); |
210 |
?> |
?> |