include('inc/init.inc.php'); include('inc/functions.inc.php'); $langs=array('hu', 'en', 'de'); if (isset($_GET[setlang])) { $_SESSION[lang]=$_GET[setlang]; header("Location: /"); } if (!in_array($_SESSION[lang], $langs)) $_SESSION[lang]='hu'; $uri=explode("/", $_SERVER[REQUEST_URI]); switch($uri[1]) { case 'galeria': case 'elado-lovak': $include="inc/$uri[1].inc.php"; break; case 'kapcsolat': $include="inc/kapcsolat_$_SESSION[lang].inc.php"; break; default: $include="inc/default_$_SESSION[lang].inc.php"; break; } ?>