/[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.3 by ravilov, Wed Aug 22 11:43:59 2001 UTC revision 1.6 by ravilov, Mon Sep 3 15:52:15 2001 UTC
# Line 1  Line 1 
1  <?php  <?php
2          include_once("inc/global.php");          include_once("inc/global.php");
3            include_once("inc/util.php");
4          $picdir = dirname($PHP_SELF)."/img/news";          $picdir = dirname($PHP_SELF)."/img/news";
5          $syspicdir = $HTTP_SERVER_VARS["DOCUMENT_ROOT"].$picdir;          $syspicdir = $HTTP_SERVER_VARS["DOCUMENT_ROOT"].$picdir;
6          include_once("inc/Smarty.class.php");          include_once("inc/Smarty.class.php");
7          include_once("inc/Smarty.local.php");          include_once("inc/Smarty.local.php");
8          $onload = "";          $onload = "";
9          $tpl = new Smarty();          $tpl = new Smarty();
10          if (!$section) {          if (!$section) $section = "home";
                 header("Location: $PHP_SELF?section=home");  
                 exit;  
         }  
11          $fname = "$section.tpl";          $fname = "$section.tpl";
12          $section_name = "";          $section_name = "";
13            $inc = "";
14            $PATH = array("PLIVAHEALTH.COM");
15          if ($section == "home") {          if ($section == "home") {
16                  $section_name = "Home";                  $section_name = "Home";
17                  include_once("inc/menuHome.php");                  include_once("inc/menuHome.php");
18                  $f = "inc/pgHome".($section_menu?"-$section_menu":"").".php";                  $inc = "inc/pgHome".($section_menu?"-$section_menu":"").".php";
19                  @include_once($f);          } else if ($section == "bolesti") {
20          } else if ($section == "ds") {                  $section_name = "Bolesti";
21                  $section_name = "Disease &amp; Symptomes";                  include_once("inc/menuBolesti.php");
22                  include_once("inc/menuDS.php");                  $inc = "inc/pgBolesti".($section_menu?"-$section_menu":"").".php";
23                  $f = "inc/pgDS".($section_menu?"-$section_menu":"").".php";          } else if ($section == "simptomi") {
24                  @include_once($f);                  $section_name = "Simptomi";
25          } else if ($section == "conditions") {                  include_once("inc/menuSimptomi.php");
26                  $section_name = "Conditions";                  $inc = "inc/pgSimptomi".($section_menu?"-$section_menu":"").".php";
27                  include_once("inc/menuConditions.php");          } else if ($section == "stanja") {
28                  $f = "inc/pgConditions".($section_menu?"-$section_menu":"").".php";                  $section_name = "Stanja";
29                  @include_once($f);                  include_once("inc/menuStanja.php");
30                    $inc = "inc/pgStanja".($section_menu?"-$section_menu":"").".php";
31          } else if ($section == "lifestyle") {          } else if ($section == "lifestyle") {
32                  $section_name = "Lifestyle";                  $section_name = "Lifestyle";
33                  include_once("inc/menuLifestyle.php");                  include_once("inc/menuLifestyle.php");
34                  $f = "inc/pgLifestyle".($section_menu?"-$section_menu":"").".php";                  $inc = "inc/pgLifestyle".($section_menu?"-$section_menu":"").".php";
35                  @include_once($f);          } else if ($section == "knjiznica") {
36          } else if ($section == "library") {                  $section_name = "Knjižnica";
37                  $section_name = "Library";                  include_once("inc/menuKnjiznica.php");
38                  include_once("inc/menuLibrary.php");                  $inc = "inc/pgKnjiznica".($section_menu?"-$section_menu":"").".php";
                 $f = "inc/pgLibrary".($section_menu?"-$section_menu":"").".php";  
                 @include_once($f);  
39          }          }
40            if ($section_name) array_push($PATH, MyUpper($section_name));
41            if ($section_menu_name) array_push($PATH, MyUpper($section_menu_name));
42            if ($inc && file_exists($inc)) include_once($inc);
43            $tpl->assign("isedit", $isEdit);
44            $tpl->assign("ismed", $isMed);
45            $tpl->assign("PATH", $PATH);
46          $tpl->assign("newspicdir", "$picdir/");          $tpl->assign("newspicdir", "$picdir/");
47          $tpl->assign("section", $section);          $tpl->assign("section", $section);
         $tpl->assign("section_name", strtoupper($section_name));  
48          $tpl->assign("section_menu", $section_menu);          $tpl->assign("section_menu", $section_menu);
         $tpl->assign("section_menu_name", strtoupper($section_menu_name));  
49          if ($fname) $main = $tpl->fetch($fname);          if ($fname) $main = $tpl->fetch($fname);
50          $tpl->assign("MAIN", $main);          $tpl->assign("MAIN", $main);
51          $tpl->assign("onload", $onload);          $tpl->assign("onload", $onload);

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.26