/[health_html]/index.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /index.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.14 by ravilov, Fri Sep 28 23:34:37 2001 UTC revision 1.17 by ravilov, Tue Oct 2 16:18:09 2001 UTC
# Line 2  Line 2 
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));
# Line 78  Line 85 
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") {
# Line 132  Line 142 
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");
# Line 150  Line 161 
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) {
# Line 193  Line 204 
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  ?>  ?>

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.26