getTarget('part'); $action = $system->getTarget('action'); $allowed = array('en','en_EN','de','de_DE'); $lang = '_default_'; foreach(\Mammut\Locale\Locale::getLocaleList($_SERVER['HTTP_ACCEPT_LANGUAGE']) as $l) { if(in_array($l, $allowed)) { $lang = $l; break; } } include (__DIR__ . __DS__ . 'langu' . __DS__ . '_default_.php'); ($lang != '_default_') and include (__DIR__ . __DS__ . 'langu' . __DS__ . $lang . '.php'); ob_start(); include (__DIR__ . __DS__ . 'page.' . $part . '.' . $action . '.php'); $response->setFragment('CONTENT', ob_get_clean()); } }