0 ) { $url = substr($_SERVER['REQUEST_URI'], 1, strpos($_SERVER['REQUEST_URI'], '?')-1 ); } else { $url = substr($_SERVER['REQUEST_URI'], 1, strlen($_SERVER['REQUEST_URI'])); } $arUrl = explode(',', $url); $arLang = explode('.',$arUrl[count($arUrl)-1]); if ($arUrl[count($arUrl)-2] == 'n') { $tresc['tresc_typ'] = 'N'; $newsKatIdParam = $arLang[0]; } elseif ($arUrl[count($arUrl)-2] == 'g') { $tresc['tresc_typ'] = 'G'; $galId = $arLang[0]; } elseif ($arLang[0] == 'm') { $tresc['tresc_typ'] = 'M'; } else { $adresUrl = $arLang[0]; $urlParam = true; } if ($_SERVER['REQUEST_URI'] == '/credits') { header('Location: http://www.dobrycms.com/'); } if (!empty($_SERVER['REDIRECT_QUERY_STRING'])) { $redirTmp = explode('&', $_SERVER['REDIRECT_QUERY_STRING']); for($i = 0; $i < count($redirTmp); $i++) { $redirTmp2 = explode('=', $redirTmp[$i]); $_GET[$redirTmp2[0]] = $redirTmp2[1]; } } include('index.php'); ?>