<div> <span><?php printtext("settings_language");?></span> <select name="language"> <?php $languages = json_decode(file_get_contents("static/misc/languages.json"), true); $options = ""; $options .= "<option value="" " . (!isset($opts->language) ? "selected" : "") . ">Any</option>"; foreach ($languages as $lang_code => $language) { $name = trim($parts[0]); $domain = parse_url($_SERVER['SERVER_NAME']);