/[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.21 by ravilov, Fri Oct 12 09:22:02 2001 UTC revision 1.22 by ravilov, Tue Oct 23 16:13:59 2001 UTC
# Line 1  Line 1 
1  <?php  <?php
2          if ($redir) {          if ($redir) {
3                  if ($redir == "harrison") include_once("inc/harrison.php");                  include_once("inc/global.php");
4                  else {                  include_once("inc/util.php");
5                          include_once("inc/global.php");                  include_once("inc/banneri.php");
6                          include_once("inc/util.php");                  Click($redir);
7                          include_once("inc/banneri.php");                  $loc = $banneri[$redir]["url"];
8                          // Sad tu neki brojac klikova ili nesto...                  if (!$loc) $loc = "?section=home";
9                          $loc = $banneri[$redir - 1]["url"];                  Header("Location: $loc");
                         if (!$loc) $loc = "?section=home";  
                         Header("Location: $loc");  
                 }  
10                  exit;                  exit;
11          }          }
12          Header("Pragma: no-cache");          Header("Pragma: no-cache");
# Line 17  Line 14 
14          Header("Cache-Policy: no-cache");          Header("Cache-Policy: no-cache");
15          include_once("inc/global.php");          include_once("inc/global.php");
16          include_once("inc/util.php");          include_once("inc/util.php");
17          $picdir = str_replace("//", "/", dirname($PHP_SELF));          $mydir = str_replace("//", "/", dirname($PHP_SELF));
18          $picdir = ($picdir == "/") ? "" : $picdir;          $mydir = ($mydir == "/") ? "" : $mydir;
19          $aupicdir = $vadpicdir = $picdir;          $sysmydir = $HTTP_SERVER_VARS["DOCUMENT_ROOT"];
20            $aupicdir = $vadpicdir = $picdir = $mydir;
21          $picdir .= "/img/news";          $picdir .= "/img/news";
22          $aupicdir .= "/img/autori";          $aupicdir .= "/img/autori";
23          $vadpicdir .= "/img/vademecum";          $vadpicdir .= "/img/vademecum";
24          $syspicdir = $HTTP_SERVER_VARS["DOCUMENT_ROOT"].$picdir;          $syspicdir = $sysmydir.$picdir;
25          $sysaupicdir = $HTTP_SERVER_VARS["DOCUMENT_ROOT"].$aupicdir;          $sysaupicdir = $sysmydir.$aupicdir;
26          $sysvadpicdir = $HTTP_SERVER_VARS["DOCUMENT_ROOT"].$vadpicdir;          $sysvadpicdir = $sysmydir.$vadpicdir;
27          include_once("inc/Smarty.class.php");          include_once("inc/Smarty.class.php");
28          include_once("inc/Smarty.local.php");          include_once("inc/Smarty.local.php");
29          $onload = $refresh = $main = "";          $onload = $refresh = $main = "";
# Line 228  Line 226 
226          $tpl->assign("onload", $onload);          $tpl->assign("onload", $onload);
227          $tpl->assign("refresh", $refresh);          $tpl->assign("refresh", $refresh);
228          $tpl->assign("trazi", $trazi);          $tpl->assign("trazi", $trazi);
229            $tpl->assign("SEMAFOR", GetSemafor());
230          include_once("inc/banneri.php");          include_once("inc/banneri.php");
231          $idx = rand(0, count($banneri) - 1);          $idx = rand(0, count($banneri) - 1);
232          $tpl->assign("banner", $banneri[$idx]["slika"]);          $idx2 = $i = 0;
233          $tpl->assign("banner_alt", $banneri[$idx]["alt"]);          $bnr = array();
234          $tpl->assign("banner_url", "?redir=".($idx + 1));          reset($banneri);
235            while (list($k, $v) = each($banneri)) {
236                    $idx2 = $k;
237                    $bnr = $v;
238                    if ($i++ >= $idx) break;
239            }
240            $tpl->assign("banner", $bnr["slika"]);
241            $tpl->assign("banner_alt", $bnr["alt"]);
242            $tpl->assign("banner_url", "?redir=$idx2");
243          $tpl->assign("show", $show ? true : false);          $tpl->assign("show", $show ? true : false);
244          $tpl->assign("date", strftime("%d.%m.%Y."));          $tpl->assign("date", strftime("%d.%m.%Y."));
245          $tpl->assign("acat", $acat);          $tpl->assign("acat", $acat);
246          $tpl->assign("acat2", $acat2);          $tpl->assign("acat2", $acat2);
         $tpl->assign("SEMAFOR", GetSemafor());  
247          $tpl->display($main_template);          $tpl->display($main_template);
248          include_once("inc/tracker.php");          include_once("inc/tracker.php");
249  ?>  ?>

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

  ViewVC Help
Powered by ViewVC 1.1.26