/[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.6 - (show annotations)
Mon Sep 3 15:52:15 2001 UTC (22 years, 6 months ago) by ravilov
Branch: MAIN
Changes since 1.5: +13 -10 lines
Made the menu on the left into images. More 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) $section = "home";
11 $fname = "$section.tpl";
12 $section_name = "";
13 $inc = "";
14 $PATH = array("PLIVAHEALTH.COM");
15 if ($section == "home") {
16 $section_name = "Home";
17 include_once("inc/menuHome.php");
18 $inc = "inc/pgHome".($section_menu?"-$section_menu":"").".php";
19 } else if ($section == "bolesti") {
20 $section_name = "Bolesti";
21 include_once("inc/menuBolesti.php");
22 $inc = "inc/pgBolesti".($section_menu?"-$section_menu":"").".php";
23 } else if ($section == "simptomi") {
24 $section_name = "Simptomi";
25 include_once("inc/menuSimptomi.php");
26 $inc = "inc/pgSimptomi".($section_menu?"-$section_menu":"").".php";
27 } else if ($section == "stanja") {
28 $section_name = "Stanja";
29 include_once("inc/menuStanja.php");
30 $inc = "inc/pgStanja".($section_menu?"-$section_menu":"").".php";
31 } else if ($section == "lifestyle") {
32 $section_name = "Lifestyle";
33 include_once("inc/menuLifestyle.php");
34 $inc = "inc/pgLifestyle".($section_menu?"-$section_menu":"").".php";
35 } else if ($section == "knjiznica") {
36 $section_name = "Knji¾nica";
37 include_once("inc/menuKnjiznica.php");
38 $inc = "inc/pgKnjiznica".($section_menu?"-$section_menu":"").".php";
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/");
47 $tpl->assign("section", $section);
48 $tpl->assign("section_menu", $section_menu);
49 if ($fname) $main = $tpl->fetch($fname);
50 $tpl->assign("MAIN", $main);
51 $tpl->assign("onload", $onload);
52 $tpl->display("index.tpl");
53 ?>

  ViewVC Help
Powered by ViewVC 1.1.26