order="$_GET[\"o\"]"
search="$_GET[\"s\"]"
filter="$_GET[\"f\"]"
-page="$_GET[\"p\"]"
+page="$_GET[\"pn\"]"
file="${_DATA}/meta/$info.meta"
cgi_post
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"
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"
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"
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"
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=''
[ -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 ||\
_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
<input disabled type="submit" name="submit" value="Find">
<a class="panel clearsearch" href="?">Clear All</a>
- <a class="panel advanced hide" href="?page=list">Hide</a>
+ <a class="panel advanced hide" href="?p=list">Hide</a>
<hr>
<p class="help">Up to <strong>10</strong> filter boxes will appear as you start selecting tags. You can select <strong>multiple</strong> tags in each box by holding down the <strong>Ctrl</strong>-key. Click the "<strong>Filter!</strong>" button when you are ready.</p>
<input type="submit" name="submit" value="Find">
<a class="panel clearsearch" href="?">Clear All</a>
- <a class="panel advanced show" href="?page=filter">Advanced</a>
+ <a class="panel advanced show" href="?p=filter">Advanced</a>
<div class="pagination_nav">
<label>Page:</label>
<input type="submit" name="submit" value="Find">
<a class="panel clearsearch" href="?">Clear All</a>
- <a class="panel advanced show" href="?page=filter">Advanced</a>
+ <a class="panel advanced show" href="?p=filter">Advanced</a>
<div class="pagination_nav">
<label>Page:</label>
</form>
<div class="panel" id="videoview">
- <a href="?page=list" class="panel">Dismiss</a>
+ <a href="?p=list" class="panel">Dismiss</a>
<div class="video">
<a href="$video">Full</a>
<video controls>