getString(@$_GET["show"], "news"); $type = $util->getString(@$_GET["type"]); $subType = $util->getString(@$_GET["subtype"]); $id = $util->getNumber(@$_GET["id"]); $searchStr = $util->getString(@$_GET["str"], "", null, Util::AI_MASK_QUOTES); $page = $util->getNumber(@$_GET["page"]); if (!$db->connect($dbConn["host"], $dbConn["user"], $dbConn["pass"], $dbConn["name"])) die(); $tpl->assign("COMMON_DATA", $common_data); if ($showExtraLinks) $tpl->parse("main.header.extra_links"); $tpl->assign(array("SHOW" => $show, "TYPE" => $type, "SUBTYPE" => $subType, "SEARCH_STR" => $searchStr)); $tpl->parse("main.header"); showBreadcrumb(); if (file_exists("{$tplFolder}func.{$show}.tpl") && file_exists("scripts/func.{$show}.php")) { $tpl->assign_file("BODY", "{$tplFolder}func.{$show}.tpl"); require_once "scripts/func.{$show}.php"; $tpl->parse("main.body"); } else showMessage404(); $gTime = microtime(1) - $gTimeS; $rTime = $gTime - $db->get_time(); $tpl->assign(array("VERSION" => $version, "GENERATE_TIME" => round($gTime, 3), "PHP_TIME" => round($rTime, 3), "DB_TIME" => round($db->get_time(), 3))); $tpl->parse("main"); $tpl->out("main"); ?>