<?php printtext("settings_title");?></title> </head> <body> <form class="search-container" action="search.php" method="get" autocomplete="off"> <h1>Libre<span class="Y">Y</span></h1> <input type="text" name="q" autofocus/> <input type="hidden" name="p" value="0"/> <input type="hidden" name="p" value="0"> <div class="sub-search-button-wrapper"> <?php $categories = array("general", "images", "videos", "torrents", "tor", "maps", "binternet"); foreach ($categories as $category) { $category_index = array_search($category, $categories); if (($opts->disable_bittorrent_search && $category_index == 3) || ($opts->disable_hidden_service_search && $category_index ==4)) { continue; } echo "value="" . htmlspecialchars($opts->query) . """; ?> > <br> <?php echo $opts->disable_frontends ? "checked" : ""; $options .= "<option value="$lang_code" $selected>$name</option>"; } echo $options; ?> </select> </div> <div> <label><?php printtext("settings_special_warning");?></label><br><br> <label><?php printtext("settings_special_disabled");?></label> <input type="checkbox" name="safe_search" <?php echo "<button class="hide" name="t" value="$opts->type"/></button>"; ?> <button type="submit" name="save" value="1"><?php printtext("settings_save");?></button> <button type="submit" name="save" value="1"><?php printtext("settings_save");?></button> <button type="submit" name="save" value="1"><?php printtext("settings_save");?></button> <button type="submit" name="reset"