X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=pages%2Fview.sh;h=639bf0af734bf4ecef48d9635322c906bd0aba37;hb=093397475107223bd25698f6f3eeaed6334619c7;hp=15202705e4433d432c6d8565eab735e49a9e7b70;hpb=1b6c746fcc68d953ef6b9f7b12567f99219f9374;p=serve0 diff --git a/pages/view.sh b/pages/view.sh index 1520270..639bf0a 100755 --- a/pages/view.sh +++ b/pages/view.sh @@ -17,7 +17,7 @@ # You should have received a copy of the GNU Affero General Public License # along with Serve0. If not, see . -info="$_GET[\"i\"]" +info="${_GET[i]}" . $_EXEC/pages/common.sh meta="${_DATA}/meta/$info.meta" @@ -28,15 +28,3 @@ length=0; width=0; height=0; eval $(mplayer -noconsolecontrols -input file=/dev/null -slave -really-quiet -identify -frames 0 -ao null -vo null "$video" 2>/dev/null\ | sed -rn 's:ID_VIDEO_WIDTH=(.*):width=\1:p;s:ID_VIDEO_HEIGHT=(.*):height=\1:p;s:ID_LENGTH=(.*)(\..*)$:length=\1:p;') video="videos/$info" - -case "$1" in - title) - echo "Videos" - ;; - css) - . ${_EXEC}/templates/common.css.sh - ;; - body) - . ${_EXEC}/templates/view.html.sh - ;; -esac