/[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.5 - (show annotations)
Thu Aug 30 16:35:36 2001 UTC (22 years, 7 months ago) by ravilov
Branch: MAIN
Changes since 1.4: +9 -8 lines
Started major site rearrangement. Minor bugfixes.

1 <?php
2 include_once("inc/global.php");
3 include_once("inc/util.php");
4 $picdir = dirname($PHP_SELF)."/img/news";
5 $syspicdir = $HTTP_SERVER_VARS["DOCUMENT_ROOT"].$picdir;
6 include_once("inc/Smarty.class.php");
7 include_once("inc/Smarty.local.php");
8 $onload = "";
9 $tpl = new Smarty();
10 if (!$section) {
11 header("Location: $PHP_SELF?section=home");
12 exit;
13 }
14 $fname = "$section.tpl";
15 $section_name = "";
16 $inc = "";
17 if ($section == "home") {
18 $section_name = "Home";
19 include_once("inc/menuHome.php");
20 $inc = "inc/pgHome".($section_menu?"-$section_menu":"").".php";
21 } else if ($section == "ds") {
22 $section_name = "Disease &amp; Symptomes";
23 include_once("inc/menuDS.php");
24 $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") {
30 $section_name = "Lifestyle";
31 include_once("inc/menuLifestyle.php");
32 $inc = "inc/pgLifestyle".($section_menu?"-$section_menu":"").".php";
33 } 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 if ($inc && file_exists($inc)) include_once($inc);
39 $tpl->assign("isedit", $isEdit);
40 $tpl->assign("ismed", $isMed);
41 $tpl->assign("newspicdir", "$picdir/");
42 $tpl->assign("section", $section);
43 $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);
48 $tpl->assign("onload", $onload);
49 $tpl->display("index.tpl");
50 ?>

  ViewVC Help
Powered by ViewVC 1.1.26