From 714fa51adcec29b6373f3cd94bc79c1e8dca0d30 Mon Sep 17 00:00:00 2001 From: paul Date: Sat, 13 Jun 2015 14:46:22 +0000 Subject: [PATCH] rename p attribute to pn, and use p for cgi page name instead svn path=/trunk/; revision=54 --- actions/meta.sh | 4 ++-- actions/multitag.sh | 4 ++-- actions/watch.sh | 4 ++-- pages/common.sh | 10 +++++----- templates/filter.html.sh | 2 +- templates/list.html.sh | 2 +- templates/view.html.sh | 4 ++-- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/actions/meta.sh b/actions/meta.sh index 25799b8..10b188f 100755 --- a/actions/meta.sh +++ b/actions/meta.sh @@ -4,7 +4,7 @@ info="$_GET[\"i\"]" order="$_GET[\"o\"]" search="$_GET[\"s\"]" filter="$_GET[\"f\"]" -page="$_GET[\"p\"]" +page="$_GET[\"pn\"]" file="${_DATA}/meta/$info.meta" cgi_post @@ -40,4 +40,4 @@ else rm ${_DATA}/cache/taglist 2>/dev/null fi -echo -n "Location: ?i=&p=${page}&s=${search}&f=${filter}&o=${order}#$info\n\n" +echo -n "Location: ?i=&pn=${page}&s=${search}&f=${filter}&o=${order}#$info\n\n" diff --git a/actions/multitag.sh b/actions/multitag.sh index 7c5b252..ddd96c3 100755 --- a/actions/multitag.sh +++ b/actions/multitag.sh @@ -3,7 +3,7 @@ filter="$_GET[\"f\"]" search="$_GET[\"s\"]" order=$(echo "$_GET[\"o\"]" |egrep '^(Name|Date|Length)$') -page=$(echo "$_GET[\"p\"]" |egrep '^[0-9]+$') +page=$(echo "$_GET[\"pn\"]" |egrep '^[0-9]+$') addtag(){ meta="$1" @@ -47,4 +47,4 @@ done rm "${_DATA}"/cache/\?* 2>/dev/null [ -n "$_POST[\"tags\"]" ] && rm "${_DATA}"/cache/taglist 2>/dev/null -echo -n "Location: ?o=$order&s=$search&f=$filter&p=$page\n\n" +echo -n "Location: ?o=$order&s=$search&f=$filter&pn=$page\n\n" diff --git a/actions/watch.sh b/actions/watch.sh index 8b0ee46..d64ae67 100755 --- a/actions/watch.sh +++ b/actions/watch.sh @@ -5,13 +5,13 @@ info="$_GET[\"i\"]" order="$_REF[\"o\"]" search="$_REF[\"s\"]" filter="$_REF[\"f\"]" -page="$_REF[\"p\"]" +page="$_REF[\"pn\"]" watch_link='' [ -n "$info" ] && watch_link="i=$(echo -n "${info}" |sed -r 's:%:%25:g;s:\&:%26:g;')&" [ -n "$order" ] && watch_link="${watch_link}o=${order}&" [ -n "$search" ] && watch_link="${watch_link}s=${search}&" [ -n "$filter" ] && watch_link="${watch_link}f=${filter}&" -[ -n "$page" ] && watch_link="${watch_link}p=${page}" +[ -n "$page" ] && watch_link="${watch_link}pn=${page}" echo -n "Location: ?page=view&${watch_link}\n\n" diff --git a/pages/common.sh b/pages/common.sh index 5e23314..6d12ded 100755 --- a/pages/common.sh +++ b/pages/common.sh @@ -20,7 +20,7 @@ filter="$_GET[\"f\"]" search="$_GET[\"s\"]" order=$(echo -E "$_GET[\"o\"]" |egrep '^(Name|Date|Length)$') -page=$(echo -E "$_GET[\"p\"]" |egrep '^[0-9]+$') +page=$(echo -E "$_GET[\"pn\"]" |egrep '^[0-9]+$') [ -z "$page" ] && page=0 page_link='' @@ -28,9 +28,9 @@ page_link='' [ -n "$order" ] && page_link="${page_link}o=${order}&" [ -n "$search" ] && page_link="${page_link}s=${search}&" [ -n "$filter" ] && page_link="${page_link}f=${filter}&" -page_prev="${page_link}p=$([ "$page" = 0 ] && echo 0 || echo $(($page - 1)) )" -page_next="${page_link}p=$(($page + 1))" -page_this="${page_link}p=$page" +page_prev="${page_link}pn=$([ "$page" = 0 ] && echo 0 || echo $(($page - 1)) )" +page_next="${page_link}pn=$(($page + 1))" +page_this="${page_link}pn=$page" taglist=$( [ -r ${_DATA}/cache/taglist ] && cat ${_DATA}/cache/taglist ||\ @@ -102,7 +102,7 @@ _by_date(){ ls -c ${_DATA}/videos/ |egrep -i "$file_pattern" } _by_length(){ find ${_DATA}/by_length/ -mindepth 1 -maxdepth 1 -printf '%f\n' |sort |sed -r 's:[0-9]{5} - ::' } thumblist() { - cache="${_DATA}/cache/?o=${order}&s=${search}&f=${filter}&p=${page}" + cache="${_DATA}/cache/?o=${order}&s=${search}&f=${filter}&pn=${page}" if [ "$cache" -nt ${_DATA}/videos -a "$cache" -nt ${_DATA}/meta ]; then cat "$cache" else diff --git a/templates/filter.html.sh b/templates/filter.html.sh index 70ee4b4..9d7a654 100755 --- a/templates/filter.html.sh +++ b/templates/filter.html.sh @@ -28,7 +28,7 @@ cat < Clear All - Hide + Hide

Up to 10 filter boxes will appear as you start selecting tags. You can select multiple tags in each box by holding down the Ctrl-key. Click the "Filter!" button when you are ready.

diff --git a/templates/list.html.sh b/templates/list.html.sh index 4f860ec..4f8dfa4 100755 --- a/templates/list.html.sh +++ b/templates/list.html.sh @@ -29,7 +29,7 @@ cat < Clear All - Advanced + Advanced
diff --git a/templates/view.html.sh b/templates/view.html.sh index 4943958..7092fa5 100755 --- a/templates/view.html.sh +++ b/templates/view.html.sh @@ -29,7 +29,7 @@ cat < Clear All - Advanced + Advanced
@@ -40,7 +40,7 @@ cat <
- Dismiss + Dismiss
Full