= require_once "config.php"; require_once "misc/tools.php"; $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>'; } ?> <title> <?php echo $opts->safe_search ? "checked" : ""; $options .= "<option value="" " . (!isset($opts->language) ? "selected" : ""; ?> ><br> <label><?php printtext("settings_frontends_disable");?></label> <input type="checkbox" name="disable_special" <?php echo $opts->disable_special ? "checked" : ""; ?> ><br> </div> <h2><?php printtext("settings_frontends");?></h2> <p><?php printtext("settings_frontends_description");?></p> <div class="settings-textbox-container"> <?php foreach($opts->frontends as $frontend => $data) { echo "<p>Example API request: <a href="./api.php?q=gentoo&p=2&t=0">./api.php?q=gentoo&p=2&t=0</a></p> <br/> <p>"q" is the search type (0=text, 1=image, 2=video, 3=torrent, 4=tor)</p> <br/> <p>The results are going to be run as an