/[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.9 by ravilov, Fri Sep 7 12:55:13 2001 UTC revision 1.10 by ravilov, Fri Sep 7 15:07:17 2001 UTC
# Line 7  Line 7 
7          include_once("inc/Smarty.local.php");          include_once("inc/Smarty.local.php");
8          $onload = "";          $onload = "";
9          $tpl = new Smarty();          $tpl = new Smarty();
10            $ns4 = strstr($HTTP_USER_AGENT, 'Mozilla/4.7') ? true : false;
11            $tpl->assign("ns4", $ns4);
12          if (!$section) $section = "home";          if (!$section) $section = "home";
13            $main_template = "index.tpl";
14          $fname = "$section.tpl";          $fname = "$section.tpl";
15          $section_name = "";          $section_name = "";
16          $inc = $mnu = "";          $inc = $mnu = "";
# Line 54  Line 57 
57          $main = $fname ? $tpl->fetch($fname) : "";          $main = $fname ? $tpl->fetch($fname) : "";
58          $tpl->assign("MAIN", $main);          $tpl->assign("MAIN", $main);
59          $tpl->assign("onload", $onload);          $tpl->assign("onload", $onload);
60          $tpl->display("index.tpl");          $tpl->display($main_template);
61  ?>  ?>

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.26