+# Copyright 2015 Paul Hänsch
+#
+# This file is part of Serve0
+#
+# Serve0 is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Serve0 is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with Serve0 If not, see <http://www.gnu.org/licenses/>.
+
+cat <<EOF
+ <form class="panel footer" id="preferences"
+ action="?action=preferences" method="post" accept-charset="UTF-8">
+ <a class="panel hide" href="#foot">Hide</a>
+
+ <input type="checkbox" name="fakemp4" value="yes" $([ "${_COOKIE[fakemp4]}" = yes ] && printf 'checked') id="ck_fakemp4">
+ <label for="ck_fakemp4">Fake .mp4 file ending, even if file is of different type</label>
+
+ <h2>Watch videos:</h2>
+ <input type="radio" name="watch" value="240p" $([ "${_COOKIE[watch]}" = 240p ] && printf 'checked') id="rd_w240p">
+ <label for="rd_w240p">as Download in 240p</label><br>
+ <input type="radio" name="watch" value="480p" $([ "${_COOKIE[watch]}" = 480p ] && printf 'checked') id="rd_w480p">
+ <label for="rd_w480p">as Download in 480p</label><br>
+ <input type="radio" name="watch" value="download" $([ "${_COOKIE[watch]}" = download ] && printf 'checked') id="rd_wdown">
+ <label for="rd_wdown">as Download (original)</label><br>
+ <input type="radio" name="watch" value="raspi" $([ "${_COOKIE[watch]}" = raspi ] && printf 'checked') id="rd_wrasp">
+ <label for="rd_wrasp">on RaspBerry</label><br>
+ <input type="radio" name="watch" value="player" $([ "${_COOKIE[watch]}" = player ] && printf 'checked') id="rd_wplay">
+ <label for="rd_wplay">in embedded player</label><br>
+
+ <input type="submit" value="Set Cookie!">
+ </form>
+EOF
+
+# vi:set filetype=html: