--- index.php 2001/09/07 12:55:13 1.9 +++ index.php 2001/09/07 15:07:17 1.10 @@ -7,7 +7,10 @@ include_once("inc/Smarty.local.php"); $onload = ""; $tpl = new Smarty(); + $ns4 = strstr($HTTP_USER_AGENT, 'Mozilla/4.7') ? true : false; + $tpl->assign("ns4", $ns4); if (!$section) $section = "home"; + $main_template = "index.tpl"; $fname = "$section.tpl"; $section_name = ""; $inc = $mnu = ""; @@ -54,5 +57,5 @@ $main = $fname ? $tpl->fetch($fname) : ""; $tpl->assign("MAIN", $main); $tpl->assign("onload", $onload); - $tpl->display("index.tpl"); + $tpl->display($main_template); ?>