1 ? substr(trim($_SERVER["HTTP_ACCEPT_LANGUAGE"]), 0, 2) : ''; if(!empty($nativeLang)) { if($nativeLang == 'pt') { $language = 'pt'; } elseif($nativeLang == 'es') { $language = 'es'; } else { $language = 'en'; } if(!isset($_COOKIE['atualstudio_language'])) { setcookie("atualstudio_language", $language, time()+2592000, '/'); } } else { $language = 'en'; if(!isset($_COOKIE['atualstudio_language'])) { setcookie("atualstudio_language", $language, time()+2592000, '/'); } } } if(file_exists('lang/'.$language.'.php')) { require('lang/'.$language.'.php'); } else { require('../lang/'.$language.'.php'); } L2 fuLL - High Five