class="hide"/> <div class="search-button-wrapper"> <button name="t" value="0" type="submit"><?php printtext("search_button"); ?></button> <?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);