ru|ua|en|de|pl|ру|укр)(/|$))?(?P[A-Za-zА-Яа-яIіЇїЄє0-9-_]*)/?(?P[A-Za-zА-Яа-яIіЇїЄє0-9-_]*)/?(?P[A-Za-zА-Яа-яIіЇїЄє0-9-_]*)/?(?P[A-Za-zА-Яа-яIіЇїЄє0-9-_]*)/?~u', urldecode($_SERVER['REQUEST_URI']), $url); extract($url); $_GET['lang'] = $lang; $_GET['a'] = !$_GET['a'] ? $a : $a; $_GET['b'] = !$_GET['b'] ? $b : $b; $_GET['c'] = !$_GET['c'] ? $c : $c; include_once('lib/lib.php'); if (!$a) { $a = "main"; } switch ($a) { case "klub-loyalnyh-klientov": case "user": $content = GET_CONTENT("modules/user/user.php"); break; case "gallery": $content = GET_CONTENT("modules/gallery/gallery-page.php"); break; case "gostevaya-kniga": $content = GET_CONTENT("modules/comments/comments.php"); break; case "feedbacks": $content = GET_CONTENT("tpl/testimonials.tpl"); break; case "search": $content = GET_CONTENT("modules/search/search.php"); break; case "video": $content = GET_CONTENT("modules/video/video.php"); break; default: if (!$content = CONTENT($a)) $content = GET_CONTENT("tpl/news.tpl"); break; } if (!$content) { header("HTTP/1.0 404 Not Found"); $content = "

404. Page not found

"; } include_once('tpl/head.tpl'); include_once('tpl/page.tpl'); ?>