// ** url_parser.php function curPageURL() { $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";} $pageURL .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; } else { $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; } return $pageURL; } $stranaWPP = curPageURL(); $razvuci_WPP = explode("/", $stranaWPP); if ($razvuci_WPP[3]) { /* if ($razvuci_WPP[4]) { $Postovano_Ime = $razvuci_WPP[4]; } else { */ $Postovano_Ime = $razvuci_WPP[3]; //}; } else { $Postovano_Ime = "english"; }; $Parse_Lang = explode("_",$Postovano_Ime); if ($Parse_Lang[0] == 'offshore') { $Page_Lang = $Parse_Lang[1]; } else { //$Page_Lang = urldecode($Parse_Lang[0]); $Page_Lang = $Parse_Lang[0]; }; /* $Parse_Lang = explode("_",$Postovano_Ime); $Page_Lang = urldecode($Parse_Lang[1]); */ //$Page_Lang = $Postovano_Ime; $Page_Ime = $razvuci_WPP[4]; ?>