function getmicrotime(){ list($usec, $sec) = explode(" ",microtime()); return ((float)$usec + (float)$sec); } $time_start = getmicrotime(); //$adres=$_SERVER[REQUEST_URI]; //if (strpos($adres,"pl/")) { $lang="pl";} //if (strpos($adres,"en/")) { $lang="en";} //if (!strpos($adres,"en/") && !strpos($adres,"pl/")) {$lang = $_SERVER['HTTP_ACCEPT_LANGUAGE'];} $text="inc/main.php"; $menu="inc/menu.php"; $foot="inc/foot.php"; $go=$_REQUEST["go"]; $lang=$_REQUEST["lang"]; if ($go=="main") { $text="inc/main.php"; } if ($go=="oferta") { $text="inc/oferta.php"; } if ($go=="cennik") { $text="inc/cennik.php"; ; } if ($go=="tlumaczenie") { $text="inc/tlumaczenie.php"; ; } if ($go=="kontakt") { $text="inc/kontakt.php"; } if ($go=="lokalizacja") { $text="inc/lokalizacja.php"; } //$lang = substr($lang, 0, 2); if ($lang=="en") { $language="en"; } else { $language="pl"; } //$lang=$_REQUEST["lang"]; if ($language=="pl") { ?>