/[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.8 - (show annotations)
Tue Sep 4 09:52:42 2001 UTC (22 years, 7 months ago) by ravilov
Branch: MAIN
Changes since 1.7: +7 -6 lines
A minor bugfix.

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) $section = "home";
11 $fname = "$section.tpl";
12 $section_name = "";
13 $inc = $mnu = "";
14 $PATH = array("PLIVAHEALTH.COM");
15 if ($section == "home") {
16 $section_name = "Home";
17 $mnu = "inc/menuHome.php";
18 $inc = "inc/pgHome";
19 } else if ($section == "bolesti") {
20 $section_name = "Bolesti";
21 $mnu = "inc/menuBolesti.php";
22 $inc = "inc/pgBolesti";
23 } else if ($section == "simptomi") {
24 $section_name = "Simptomi";
25 $mnu = "inc/menuSimptomi.php";
26 $inc = "inc/pgSimptomi";
27 } else if ($section == "stanja") {
28 $section_name = "Stanja";
29 $mnu = "inc/menuStanja.php";
30 $inc = "inc/pgStanja";
31 } else if ($section == "lifestyle") {
32 $section_name = "Lifestyle";
33 $mnu = "inc/menuLifestyle.php";
34 $inc = "inc/pgLifestyle";
35 } else if ($section == "knjiznica") {
36 $section_name = "Knji¾nica";
37 $mnu = "inc/menuKnjiznica.php";
38 $inc = "inc/pgKnjiznica";
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 ($mnu && file_exists($mnu)) {
43 include_once($mnu);
44 include_once("inc/menu.php");
45 $inc = $inc.($section_menu?"-$section_menu":"").".php";
46 }
47 if ($inc && file_exists($inc)) include_once($inc);
48 $tpl->assign("isedit", $isEdit);
49 $tpl->assign("ismed", $isMed);
50 $tpl->assign("PATH", $PATH);
51 $tpl->assign("newspicdir", "$picdir/");
52 $tpl->assign("section", $section);
53 $tpl->assign("section_menu", $section_menu);
54 if ($fname) $main = $tpl->fetch($fname);
55 $tpl->assign("MAIN", $main);
56 $tpl->assign("onload", $onload);
57 $tpl->display("index.tpl");
58 ?>

  ViewVC Help
Powered by ViewVC 1.1.26