/[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.1.1.1 by ravilov, Fri Aug 3 09:12:42 2001 UTC revision 1.5 by ravilov, Thu Aug 30 16:35:36 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");
         $fname = "";  
8          $onload = "";          $onload = "";
9          $tpl = new Smarty();          $tpl = new Smarty();
10          if (!$section) {          if (!$section) {
11                  header("Location: $PHP_SELF?section=home");                  header("Location: $PHP_SELF?section=home");
12                  exit;                  exit;
13          }          }
14            $fname = "$section.tpl";
15          $section_name = "";          $section_name = "";
16            $inc = "";
17          if ($section == "home") {          if ($section == "home") {
18                  $section_name = "HOME";                  $section_name = "Home";
19                  include_once("inc/pgHome.php");                  include_once("inc/menuHome.php");
20          } else if ($section == "d_s") {                  $inc = "inc/pgHome".($section_menu?"-$section_menu":"").".php";
21                  $section_name = "DISEASE &amp; SYMPTOMES";          } else if ($section == "ds") {
22          } else if ($section == "conditions") {                  $section_name = "Disease &amp; Symptomes";
23                  $section_name = "CONDITIONS";                  include_once("inc/menuDS.php");
24                  include_once("inc/pgConditions.php");                  $inc = "inc/pgDS".($section_menu?"-$section_menu":"").".php";
25            } else if ($section == "stanja") {
26                    $section_name = "Stanja";
27                    include_once("inc/menuStanja.php");
28                    $inc = "inc/pgStanja".($section_menu?"-$section_menu":"").".php";
29          } else if ($section == "lifestyle") {          } else if ($section == "lifestyle") {
30                  $section_name = "LIFESTYLE";                  $section_name = "Lifestyle";
31                  include_once("inc/pgLifestyle.php");                  include_once("inc/menuLifestyle.php");
32          } else if ($section == "library") {                  $inc = "inc/pgLifestyle".($section_menu?"-$section_menu":"").".php";
33                  $section_name = "LIBRARY";          } else if ($section == "knjiznica") {
34                    $section_name = "Knjižnica";
35                    include_once("inc/menuKnjiznica.php");
36                    $inc = "inc/pgKnjiznica".($section_menu?"-$section_menu":"").".php";
37          }          }
38          $tpl->assign("section", $section);          if ($inc && file_exists($inc)) include_once($inc);
39          $tpl->assign("section_name", $section_name);          $tpl->assign("isedit", $isEdit);
40            $tpl->assign("ismed", $isMed);
41          $tpl->assign("newspicdir", "$picdir/");          $tpl->assign("newspicdir", "$picdir/");
42          if (!$fname) $fname = "$section.tpl";          $tpl->assign("section", $section);
43          if ($section_name) $main = $tpl->fetch($fname);          $tpl->assign("section_name", strtoupper($section_name));
44            $tpl->assign("section_menu", $section_menu);
45            $tpl->assign("section_menu_name", strtoupper($section_menu_name));
46            if ($fname) $main = $tpl->fetch($fname);
47          $tpl->assign("MAIN", $main);          $tpl->assign("MAIN", $main);
48          $tpl->assign("onload", $onload);          $tpl->assign("onload", $onload);
49          $tpl->display("index.tpl");          $tpl->display("index.tpl");

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.26