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["clearnet"] . "">" . $hostname . "</a></td>"; echo $is_tor ? "<td><a href="" . $instance["tor"] . "">u{2705}</a></td>" : "<td>u{274C}</td>"; echo $is_i2p ? "<td><a href="" . $instance["tor"] . "">u{2705}</a></td>" : "<td>u{274C}</td>"; echo $is_i2p ? "<td><a href="" . $data["project_url"] . "" selected", $themes); echo $themes; ?> </select> </div> </div> </div> <?php require_once "misc/header.php"; $opts = load_opts(); ?> <title>LibreY - instances</title> </head> <body> <form class="sub-search-container" method="get" autocomplete="off"> <h1>Libre<span class="Y">Y</span></h1> <input type="text" name="q" <?php if (!$opts->disable_bittorrent_search) { echo "<p>" . TEXTS["api_unavailable"] . "</p>"; die(); } $results = fetch_search_results($opts, false); if (array_key_exists("error", $results)) { http_response_code(500); } header("Content-Type: application/json"); echo json_encode($results); ?> #!/bin/sh while true; do git stash