"misc/tools.php"; $instances_json = json_decode(file_get_contents("instances.json"), true); $librey_instances = array_filter($instances_json['instances'], fn($n) => $n['librey']); $librex_instances = array_filter($instances_json['instances'], fn($n) => !$n['librey']); function list_instances($instances) { echo "<div>"; echo "<a " . (!isset($opts->engine) ? "selected" : ""; ?> ><br> </div> <h2><?php printtext("settings_frontends");?></h2> <p><?php printtext("settings_frontends_description");?></p> <div class="settings-textbox-container"> <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->engine) ? "selected" : "") . ">auto</option>"; foreach ($engines as $engine) { $selected = $opts->language == $lang_code ? "selected" : ""; ?> ><br> <label><?php printtext("settings_frontends_disable");?></label> <input type="checkbox" name="disable_special" <?php echo "<button class="hide" name="t" value="$opts->type"/></button>"; ?> <button type="submit"