From 73a22265ab53271122bf1f47bcca6e9604c5d159 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 1 Sep 2015 00:51:03 -0500 Subject: html5 mp3 player --- cgi-bin/details | 115 +++++++++++++++++++++++++++++++++++---------- cgi-bin/localbucky.pm.tmpl | 2 +- cgi-bin/profile | 2 +- 3 files changed, 91 insertions(+), 28 deletions(-) (limited to 'cgi-bin') diff --git a/cgi-bin/details b/cgi-bin/details index 35b34c7..dc245cf 100755 --- a/cgi-bin/details +++ b/cgi-bin/details @@ -147,32 +147,32 @@ sub details_view } if (@$files > $many_jpgs) { - if (find_mp3($files)) - { - my $z_playlist = "/cgi-bin/bucky/playlist/$t->{id}"; - my $z_autoplay = "false"; - if (check_key($USER->{boxes}, "autoplay")) - { $z_autoplay = "true"; } - print <<__PLAYLIST__; -
LOADING MP3 PLAYER ...
- - - -__PLAYLIST__ - } +# if (find_mp3($files)) +# { +# my $z_playlist = "/cgi-bin/bucky/playlist/$t->{id}"; +# my $z_autoplay = "false"; +# if (check_key($USER->{boxes}, "autoplay")) +# { $z_autoplay = "true"; } +# print <<__PLAYLIST__; +#
LOADING MP3 PLAYER ...
+# +# +# +#__PLAYLIST__ +# } if (check_key($t->{display}, "nfl")) # no file list { ; } elsif (check_key($t->{display}, "ffl")) # full file list @@ -193,6 +193,69 @@ __PLAYLIST__ print ""; print qq(); + print <<__PLAYER__; + +__PLAYER__ } sub find_mp3 diff --git a/cgi-bin/localbucky.pm.tmpl b/cgi-bin/localbucky.pm.tmpl index 143c192..69a617a 100644 --- a/cgi-bin/localbucky.pm.tmpl +++ b/cgi-bin/localbucky.pm.tmpl @@ -9,7 +9,7 @@ our $BUCKY_NAME = 'king of sf'; our $BUCKY_SHORT_NAME = 'kingofsf'; our $BUCKY_COOKIE_DOMAIN = 'kingofsf.com'; -our $BUCKY_ADMINISTRATOR = 'marc'; +our $BUCKY_ADMINISTRATOR = 'jules'; our $BUCKY_DEFAULT_BOXES = " welcome bPod radio postform hootbox photostream "; our $BUCKY_DEFAULT_KEYWORD = 'NONE'; # default should be 'NONE' our $BUCKY_TIMEZONE_OFFSET = 8; # correct your server's offset from GMT diff --git a/cgi-bin/profile b/cgi-bin/profile index 93dc089..3342f0c 100755 --- a/cgi-bin/profile +++ b/cgi-bin/profile @@ -44,7 +44,7 @@ sub main } elsif ($input->{username} eq "system") { - $input->{username} = "marc"; + $input->{username} = "jules"; header("profile for $input->{username}"); } elsif (get_uid($input->{username}) == -1) -- cgit v1.2.3-70-g09d2