evenness

<h1><?php printtext("settings_title");?></h1> <form method="post" enctype="multipart/form-data" autocomplete="off"> <div> <label for="theme"><?php printtext("settings_theme");?>:</label> <select name="theme"> <?php $default = $opts->default_theme ?? "dark"; $themes = str_replace($theme . """, $theme . "" selected", $themes); echo $themes; ?> </select> </div> </div> <div class="settings-textbox-container"> <div> <span><?php printtext("settings_language");?></span> <select name="language"> <?php $languages = json_decode(file_get_contents("static/misc/languages.json"), true); $options = ""; $options .= "<option value="$lang_code" $selected>$name</option>"; } echo "</table>"; } ?> </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"])) { // if (isset($_REQUEST["reset"]) || isset($_REQUEST["save"])) { // if (isset($_REQUEST["reset"]) || isset($_REQUEST["save"])) { // if (isset($_REQUEST["reset"]) || isset($_REQUEST["save"])) { // Removing isset($_REQUEST["save"])) fixes the problem that settings don't "stick" if you modify the software. A secondary benefit