#!/bin/zsh
-# Copyright 2014 - 2016 Paul Hänsch
+# Copyright 2014 - 2017 Paul Hänsch
#
# This file is part of Serve0
#
# You should have received a copy of the GNU Affero General Public License
# along with Serve0 If not, see <http://www.gnu.org/licenses/>.
-filter="${_POST[f]}"
-search="${_POST[s]}"
-order=$(validate "${_POST[o]}" 'Name|Date|Length' Name)
-page=$(validate "${_POST[pn]}" '[0-9]+' 1)
+backlink="${_POST[page]}"
addtag(){
meta="$1"
rm "${_DATA}"/cache/\?* 2>/dev/null
[ -n "${_POST[tags]}" ] && rm "${_DATA}"/cache/taglist_set "${_DATA}"/cache/taglist_filter 2>/dev/null
-#redirect "?o=$order&s=$search&f=$filter&pn=$page"
-redirect "${_POST[page]}"
+redirect "$backlink"
<form action="?action=multitag" method="post" accept-charset="UTF-8">
<input type="hidden" name="page" value="?$(attribsafe "${page_this}")">
- <input type="hidden" name="o" value="${order}">
- <input type="hidden" name="s" value="${search}">
- <input type="hidden" name="f" value="${filter}">
- <input type="hidden" name="pn" value="${page}">
<ul id="thumblist">
EOF
-# Copyright 2014 - 2016 Paul Hänsch
+# Copyright 2014 - 2017 Paul Hänsch
#
# This file is part of Serve0
#
<form action="?action=multitag" method="post" accept-charset="UTF-8">
<input type="hidden" name="page" value="?$(attribsafe "${page_this}")">
- <input type="hidden" name="o" value="${order}">
- <input type="hidden" name="s" value="${search}">
- <input type="hidden" name="f" value="${filter}">
- <input type="hidden" name="pn" value="${page}">
<ul id="thumblist">
EOF