cgi_refdata
info="${_GET[i]}"
-watch="${_GET[w]:-${_COOKIE[watch]}}"
location="$(invalidate "${_GET[l]}" '(.*/)?\.\.(/.*)?|' /)"
+foreign="$(validate "${_GET[url]}" 'https?://.*' '')"
order="${_POST[o]}"
search="${_POST[s]}"
filter="${_POST[f]}"
videourl="$(urlsafe "mp4/${info%.*}.mp4")"
elif [ -z "$info" ]; then
videourl="$(urlsafe "${location#/}")"
+else [ -z "$foreign" ];then
+ _COOKIE[watch]=server
+ videourl="${_GET[url]}"
else
videourl="$(urlsafe "videos/$info")"
fi
-case "$watch" in
+case "$_COOKIE[watch]" in
raspi)
- rpiaddr="http://atoemchen.helmchyn.no-ip.biz/?action=watch&w=server&i="
+ rpiaddr="http://atoemchen.helmchyn.no-ip.biz/?action=watch&url="
redirect "${rpiaddr}$(urlsafe "http://jupiter:8000/${videourl}")"
;;
480p)