8,9c8 < < --- > 19,22c18 < < //$defloc = exec("locale | grep 'LANG'"); //lixlpixel_get_env_var('HTTP_ACCEPT_LANGUAGE'); //Locale::acceptFromHttp($_SERVER['HTTP_ACCEPT_LANGUAGE']); < $defloc = Locale::acceptFromHttp($_SERVER['HTTP_ACCEPT_LANGUAGE']); //exec("locale | grep 'LANG' | cut -f2 -d'\"' | cut -f1 -d'.'"); //lixlpixel_get_env_var('HTTP_ACCEPT_LANGUAGE'); //Locale::acceptFromHttp($_SERVER['HTTP_ACCEPT_LANGUAGE']); < --- > $defloc=Locale::acceptFromHttp($_SERVER['HTTP_ACCEPT_LANGUAGE']); 41a38 > 146a144,145 > $lochelpertwo=file_get_contents('http://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'); > $lochelperthree=file_get_contents('http://en.wikipedia.org/wiki/Wikipedia:WikiProject_Languages/List_of_ISO_639-3_language_codes_(2019)'); 149,185d147 < $countryif=''; < $cisis=''; < $url_get_contents_data=''; < < < < function url_get_contents($url) { // thanks to https://stackoverflow.com/questions/3979802/alternative-to-file-get-contents < global $url_get_contents_data, $cisis; < if (strpos($url,"_(disambiguXation)") !== false) { < $url_get_contents_data = file_get_contents(str_replace("(disambiguation)",urlencode("(disambiguation)"),$url)); < //echo $url . " inUoUt" . strlen($url_get_contents_data) . ' '; < } else if (4 == 4) { < file_put_contents('x.x', 'curl ' . str_replace("(disambiguation)",urlencode("(disambiguation)"),str_replace('http:','https:',$url))); < $url_get_contents_data=shell_exec('curl ' . str_replace("(disambiguation)",urlencode("(disambiguation)"),str_replace('http:','https:',$url))); < //echo str_replace("(disambiguation)",urlencode("(disambiguation)"),str_replace('http:','https:',$url)) . " inUout" . strlen($url_get_contents_data) . ' '; < } else if (function_exists('curl_exec')) { < $conn = curl_init(str_replace("(disambiguation)",urlencode("(disambiguation)"),$url)); < curl_setopt($conn, CURLOPT_SSL_VERIFYPEER, true); < curl_setopt($conn, CURLOPT_FRESH_CONNECT, true); < curl_setopt($conn, CURLOPT_RETURNTRANSFER, 1); < $url_get_contents_data = (curl_exec($conn)); < curl_close($conn); < } else if (function_exists('file_get_contents')) { < $url_get_contents_data = file_get_contents(str_replace("(disambiguation)",urlencode("(disambiguation)"),$url)); < } else if (function_exists('fopen') && function_exists('stream_get_contents')) { < $handle = fopen (str_replace("(disambiguation)",urlencode("(disambiguation)"),$url), "r"); < $url_get_contents_data = stream_get_contents($handle); < } else { < $url_get_contents_data = false; < } < return $url_get_contents_data; < } < < < $lochelpertwo=url_get_contents('http://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'); < $lochelperthree=url_get_contents('http://en.wikipedia.org/wiki/Wikipedia:WikiProject_Languages/List_of_ISO_639-3_language_codes_(2019)'); < 187,190c149,152 < $iPod = false; //strpos($_SERVER['HTTP_USER_AGENT'],"iPod"); < $iPhone = false; //strpos($_SERVER['HTTP_USER_AGENT'],"iPhone"); < $iPad = false; //strpos($_SERVER['HTTP_USER_AGENT'],"iPad"); < $android = false; //strpos($_SERVER['HTTP_USER_AGENT'],"Android"); --- > $iPod = strpos($_SERVER['HTTP_USER_AGENT'],"iPod"); > $iPhone = strpos($_SERVER['HTTP_USER_AGENT'],"iPhone"); > $iPad = strpos($_SERVER['HTTP_USER_AGENT'],"iPad"); > $android = strpos($_SERVER['HTTP_USER_AGENT'],"Android"); 454d415 < 984a946 > 1053c1015 < --- > 1163d1124 < 1473c1434,1435 < ?> \ No newline at end of file --- > ?> >