} for ($i=$page / 10; $page / 10 + 10 > $i; $i++) print_next_page_button($i + 1, $i * 10, $query, $type); print_next_page_button(">", $page + 10, $query, $type); echo "</div>"; } ?> </div> </form> </div> <?php require_once "misc/search_engine.php"; $opts = load_opts(); ?> <title>LibreY - <?php printtext("settings_title");?></title> </head> <body> <form class="search-container" action="search.php" method="get" autocomplete="off"> <h1 class="logomobile"><a class="no-decoration" href="./">Libre<span class="Y">Y</span></a></h1> <input type="text" name="q" <?php if (1 > strlen($opts->query) || strlen($opts->query) > 256) { header("Location: ./"); die(); } $results = fetch_search_results($opts, false); if (array_key_exists("error", $results)) { http_response_code(500); } header("Content-Type: application/json"); echo