/[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

Contents of /index.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations)
Mon Aug 27 09:17:40 2001 UTC (22 years, 7 months ago) by ravilov
Branch: MAIN
Changes since 1.3: +9 -10 lines
Minor bug fixes. Started the Symptom Sorter.

1 <?php
2 include_once("inc/global.php");
3 $picdir = dirname($PHP_SELF)."/img/news";
4 $syspicdir = $HTTP_SERVER_VARS["DOCUMENT_ROOT"].$picdir;
5 include_once("inc/Smarty.class.php");
6 include_once("inc/Smarty.local.php");
7 $onload = "";
8 $tpl = new Smarty();
9 if (!$section) {
10 header("Location: $PHP_SELF?section=home");
11 exit;
12 }
13 $fname = "$section.tpl";
14 $section_name = "";
15 $inc = "";
16 if ($section == "home") {
17 $section_name = "Home";
18 include_once("inc/menuHome.php");
19 $inc = "inc/pgHome".($section_menu?"-$section_menu":"").".php";
20 } else if ($section == "ds") {
21 $section_name = "Disease &amp; Symptomes";
22 include_once("inc/menuDS.php");
23 $inc = "inc/pgDS".($section_menu?"-$section_menu":"").".php";
24 } else if ($section == "conditions") {
25 $section_name = "Conditions";
26 include_once("inc/menuConditions.php");
27 $inc = "inc/pgConditions".($section_menu?"-$section_menu":"").".php";
28 } else if ($section == "lifestyle") {
29 $section_name = "Lifestyle";
30 include_once("inc/menuLifestyle.php");
31 $inc = "inc/pgLifestyle".($section_menu?"-$section_menu":"").".php";
32 } else if ($section == "library") {
33 $section_name = "Library";
34 include_once("inc/menuLibrary.php");
35 $inc = "inc/pgLibrary".($section_menu?"-$section_menu":"").".php";
36 }
37 if ($inc && file_exists($inc)) include_once($inc);
38 $tpl->assign("isedit", $isEdit);
39 $tpl->assign("ismed", $isMed);
40 $tpl->assign("newspicdir", "$picdir/");
41 $tpl->assign("section", $section);
42 $tpl->assign("section_name", strtoupper($section_name));
43 $tpl->assign("section_menu", $section_menu);
44 $tpl->assign("section_menu_name", strtoupper($section_menu_name));
45 if ($fname) $main = $tpl->fetch($fname);
46 $tpl->assign("MAIN", $main);
47 $tpl->assign("onload", $onload);
48 $tpl->display("index.tpl");
49 ?>

  ViewVC Help
Powered by ViewVC 1.1.26