goURI('' . $HTTP_SERVER_VARS['REQUEST_URI'], &$pg, &$page_id); // hosts setup if ($pnp->pageInPage($page, $laserTonarMenu)) { $site_host = 'http://laser.tonar.su/'; } elseif ($pnp->pageInPage($page, $agroTonarMenu)) { $site_host = 'http://agro.tonar.su/'; } $tpl->assign('site_host', $site_host); $tpl->assign('site_host_tonar', $site_host_tonar); $tpl->assign('site_host_laser', $site_host_laser); $tpl->assign('site_host_agro', $site_host_agro); // /hosts setup if ((!isset($_GET['show'])) || ($_GET['show'] == 'true')) { $show = 'true'; } else { $show = false; } initSite(&$tpl); if (($view = &$route->go($pg, &$page)) == action) { die(); } if (($view) && ($view->isOldStyle == false)) { // is new style view, 3.0.0 $view->prepare($page); if ($show) { $tpl->display('./general/head.tpl'); } if ($show) { $tpl->display('./general/top.tpl'); } $view->render($page); if ($show) { $tpl->display('./general/bottom.tpl'); } } if (isset($_GET['redirect'])) { $route->redirect($_GET['redirect']); } ?>