/[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.13 by ravilov, Wed Sep 26 13:04:28 2001 UTC revision 1.18 by ravilov, Thu Oct 4 14:59:34 2001 UTC
# Line 1  Line 1 
1  <?php  <?php
2            if ($redir) {
3                    if ($redir == "harrison") include_once("inc/harrison.php");
4                    else {
5                            include_once("inc/global.php");
6                            include_once("inc/util.php");
7                            include_once("inc/banneri.php");
8                            // Sad tu neki brojac klikova ili nesto...
9                            $loc = $banneri[$redir - 1]["url"];
10                            if (!$loc) $loc = "?section=home";
11                            Header("Location: $loc");
12                    }
13                    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 59  Line 75 
75                          $section_name = "Lista lijekova";                          $section_name = "Lista lijekova";
76                          $inc = "pgKnjiznica-lijekovi";                          $inc = "pgKnjiznica-lijekovi";
77                          $fname = "lijekovi.tpl";                          $fname = "lijekovi.tpl";
78                    } else if ($section == "harrison") {
79                            $section_name = "Harrison's Online";
80                            $inc = "";
81                            $fname = "harrisons.tpl";
82                    } else if ($section == "qa") {
83                            $section_name = "Pitanja i odgovori";
84                            $inc = "pgQA";
85                    } else if ($section == "zanimljivo") {
86                            $section_name = "Zanimljivosti";
87                            $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") {
# Line 105  Line 137 
137                          $section_name = "Nova ustanova";                          $section_name = "Nova ustanova";
138                          $mnu = "";                          $mnu = "";
139                          $inc = "pgNovaUstanova";                          $inc = "pgNovaUstanova";
140                    } else if ($section == "qa") {
141                            $section_name = "Pitanja i odgovori";
142                            $inc = "pgQA";
143                    } else if ($section == "duk") {
144                            $section_name = "Doktor u kući";
145                            $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");
# Line 125  Line 168 
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) {
# Line 133  Line 176 
176                          array("sec" => "home", "alt" => "home", "w" => 56, "h" => 23),                          array("sec" => "home", "alt" => "home", "w" => 56, "h" => 23),
177                          array("sec" => "linkovi", "alt" => "linkovi", "w" => 60, "h" => 23),                          array("sec" => "linkovi", "alt" => "linkovi", "w" => 60, "h" => 23),
178                          array("sec" => "knjiznica", "alt" => "knjižnica", "w" => 74, "h" => 23),                          array("sec" => "knjiznica", "alt" => "knjižnica", "w" => 74, "h" => 23),
179                          array("sec" => "pretrazivanje", "alt" => "pretraživanje", "w" => 101, "h" => 23)                          array("sec" => "lijekovi", "alt" => "Lista HZZO lijekova", "w" => 134, "h" => 23)
180                  ));                  ));
181          } else {          } else {
182                  $tpl->assign("mainmenu", array(                  $tpl->assign("mainmenu", array(
# Line 156  Line 199 
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          $banner = $banner_url = "";          include_once("inc/banneri.php");
210          if ($isMed && $isReg) {          $idx = rand(0, count($banneri) - 1);
211                  $banneri = array(          $tpl->assign("banner", $banneri[$idx]["slika"]);
212                          array("slika" => "gastal.gif", "alt" => "Gastal", "url" => "http://www.gastal.com/"),          $tpl->assign("banner_alt", $banneri[$idx]["alt"]);
213                          array("slika" => "plivitc.gif", "alt" => "Plivit C", "url" => "http://www.plivitc.com/"),          $tpl->assign("banner_url", "?redir=".($idx + 1));
214                          array("slika" => "bisolex.gif", "alt" => "Bisolex", "url" => "http://www.bisolex.com/"),          $tpl->assign("show", $show ? true : false);
215                          array("slika" => "andolc.gif", "alt" => "Andol C", "url" => "http://www.andolc.com/"),          $tpl->assign("date", strftime("%d.%m.%Y."));
216                  );          $tpl->assign("acat", $acat);
217          } else {          $tpl->assign("acat2", $acat2);
                 $banneri = array(  
                         array("slika" => "gastal.gif", "alt" => "Gastal", "url" => "http://www.gastal.com/"),  
                         array("slika" => "plivitc.gif", "alt" => "Plivit C", "url" => "http://www.plivitc.com/"),  
                         array("slika" => "bisolex.gif", "alt" => "Bisolex", "url" => "http://www.bisolex.com/"),  
                         array("slika" => "andolc.gif", "alt" => "Andol C", "url" => "http://www.andolc.com/")  
                         // array("slika" => "viponline.gif", "alt" => "VIPonline", "url" => "http://www.vip.hr/"),  
                         // array("slika" => "globalnet.gif", "alt" => "GlobalNET", "url" => "http://www.globalnet.hr/")  
                 );  
         }  
         $bnr = $banneri[rand(0, count($banneri) - 1)];  
         $tpl->assign("banner", $bnr["slika"]);  
         $tpl->assign("banner_alt", $bnr["alt"]);  
         $tpl->assign("banner_url", $bnr["url"]);  
218          $tpl->display($main_template);          $tpl->display($main_template);
219          include_once("inc/tracker.php");          include_once("inc/tracker.php");
220  ?>  ?>

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.26