escape_string($qstr[0]); if ($do == 'olenev') exit; if (preg_match('/index.php/', $do)) $do = ''; // Разбираем ЧПУ на переменные $keyq = array_search('year', $qstr); if ($keyq) { $year = (int)$qstr[$keyq+1]; } $keyq = array_search('page', $qstr); if ($keyq) { $page = (int)$qstr[$keyq+1]; } $searchword = $_GET['searchword']; if ($searchword == '') $searchword = $_POST['searchword']; if ($searchword != '') $do = 'search'; if (in_array($do, $defined_pages)) { include "pages/$do.inc"; } else include 'pages/index.inc'; include 'inc/top.inc'; if (count($bread_links) > 0) echo breadcrumbs($bread_links, $bread_items, $do); if ($H1_title != '') echo "$H1_title"; echo $screen; include 'inc/bot.inc'; $mysqli->close(); ?>