MC 110 Z EVO";
$items["de"][0]["link"] = "./mc110z/";
$items["de"][0]["img"] = "img/Menue_mc110z.jpg";
$items["de"][1]["title"] = "Werkzeugwechsel
MCO 9 EVO";
$items["de"][1]["link"] = "./mco9/";
$items["de"][1]["img"] = "img/Menue_mco9.jpg";
$items["de"][2]["title"] = "Werkzeugwechsel
MCO 11 PRO";
$items["de"][2]["link"] = "./mco11pro/";
$items["de"][2]["img"] = "img/Menue_mco11pro.jpg";
$items["de"][3]["title"] = "Siebbelagwechsel
MS EVO";
$items["de"][3]["link"] = "./msEvo/";
$items["de"][3]["img"] = "img/Menue_ms703_evo.jpg";
$items["de"][4]["title"] = "Werkzeugwechsel
MC 120 Z PRO";
$items["de"][4]["link"] = "./mc120pro/";
$items["de"][4]["img"] = "img/Menue_mc120pro.jpg";
$items["de"][5]["title"] = "Werkzeugwechsel
MR EVO 2";
$items["de"][5]["link"] = "./mrEvo2/";
$items["de"][5]["img"] = "img/Menu_mrEvo2.jpg";
// Englisch
$items["en"][0]["title"] = "Liner Change
MC 110 Z EVO";
$items["en"][0]["link"] = "./mc110z/";
$items["en"][0]["img"] = "img/Menue_mc110z.jpg";
$items["en"][1]["title"] = "Liner Change
MCO 9 EVO";
$items["en"][1]["link"] = "./mco9/";
$items["en"][1]["img"] = "img/Menue_mco9.jpg";
$items["en"][2]["title"] = "Liner Change
MCO 11 PRO";
$items["en"][2]["link"] = "./mco11pro/";
$items["en"][2]["img"] = "img/Menue_mco11pro.jpg";
$items["en"][3]["title"] = "Change the screen
mesh MS EVO";
$items["en"][3]["link"] = "./msEvo/";
$items["en"][3]["img"] = "img/Menue_ms703_evo.jpg";
$items["en"][4]["title"] = "Liner Change
MC 120 Z PRO";
$items["en"][4]["link"] = "./mc120pro/";
$items["en"][4]["img"] = "img/Menue_mc120pro.jpg";
$items["en"][5]["title"] = "Liner Change
MR EVO 2";
$items["en"][5]["link"] = "./mrEvo2/";
$items["en"][5]["img"] = "img/Menu_mrEvo2.jpg";
// ##########################################################################
// ##########################################################################
// ##########################################################################
$lang = getLanguage();
function getLanguage() {
$langs = " ".$_SERVER['HTTP_ACCEPT_LANGUAGE'];
//verfuegbare Sprachen in Array
$languages = array('en', 'de');
foreach($languages as $code) {
$pos = strpos($langs, $code);
if(intval($pos) != 0) {
$position[$code] = intval($pos);
}
}
$bestLanguage = 'en';
if(!empty($position)) {
foreach($languages as $code) {
if(isset($position[$code]) &&
$position[$code] == min($position)) {
$bestLanguage = $code;
}
}
}
return $bestLanguage;
}
?>