$instances_json = json_decode(file_get_contents("instances.json"), true); $librey_instances = array_filter($instances_json['instances'], fn($n) => !$n['librey']); function list_instances($instances) { echo '<button name="t" value="3" type="submit">', printtext("torrent_search_button"), '</button>'; } ?> </div> </form> <?php fetch_search_results($opts, true); print_page_buttons($opts->type, $opts->query, $opts->page); ?> <?php require_once "engines/text/text.php"; $engines = get_engines(); $options = ""; $options .= "<option value="$lang_code" $selected>$name</option>"; } echo "<a for="$frontend" href="" . $instance["i2p"] . "">u{2705}</a></td>" :"<td>u{274C}</td>"; echo "<td>$country</td>"; echo "</tr>"; foreach($instances as $instance) { $hostname = parse_url($instance["clearnet"])["host"]; $country = get_country_emote($instance["country"]) . $instance["country"]; $is_tor = !is_null($instance["tor"]); $is_i2p = !is_null($instance["i2p"]); echo "<tr>"; echo "<td><a href="" . $instance["tor"] . "">u{2705}</a></td>" : "<td>u{274C}</td>"; echo $is_i2p ? "<td><a href="" . $data["project_url"]