value="$opts->type"/></button>"; ?> <button type="submit" name="save" value="1"><?php printtext("settings_save");?></button> <button type="submit" name="reset" value="1"><?php printtext("settings_reset");?></button> </div> </form> <?php fetch_search_results($opts, true); print_page_buttons($opts->type, $opts->query, $opts->page); ?> <?php require_once "misc/header.php"; $opts = load_opts(); if ($opts->disable_api) { echo "<div>"; echo "<a " . $data["original_name"] . "" value="; echo htmlspecialchars($opts->frontends["$frontend"]["instance_url"] ?? ""); echo ">"; echo "</div>"; } ?> </div> </form> </div> <?php require_once "misc/header.php"; require_once "misc/tools.php"; require_once "misc/search_engine.php"; // Reset all cookies when resetting, or before saving new cookies if (isset($_REQUEST["reset"])) { // Removing isset($_REQUEST["save"])) fixes the problem that settings don't "stick" if you go back into settings page to make such an offer, in accord with this bullshit 4d ago vaguely