From dfbe65e1bf0a4d7cff1e2d31a2ade18de6756196 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Tue, 3 Jan 2006 09:21:29 +0000 Subject: whole new playlists files new coolness supported but not implmented, playback works but playlist edit functions are still untested... --- templates/show_import_playlist.inc.php | 2 +- templates/show_playlists.inc.php | 78 ++++++++++++++++++++++++++++ templates/show_playlists.php.inc | 78 ---------------------------- templates/show_songs.inc | 95 ++++++++++++++++++++-------------- 4 files changed, 134 insertions(+), 119 deletions(-) create mode 100644 templates/show_playlists.inc.php delete mode 100644 templates/show_playlists.php.inc (limited to 'templates') diff --git a/templates/show_import_playlist.inc.php b/templates/show_import_playlist.inc.php index 3ea6c8fb..1b5b979b 100644 --- a/templates/show_import_playlist.inc.php +++ b/templates/show_import_playlist.inc.php @@ -1,7 +1,7 @@ +

+ + + + + + + +user); + $count = $playlist->get_song_count(); +?> + + + + + + + +
+ + name); ?> + + fullname); ?> + | + + + username == $playlist->user || $GLOBALS['user']->has_access(100)) { ?> + | /playlist.php?action=edit&lplaylist_id=id; ?>"> + + + | + + + + 1) { ?> + | + + + | + + + + + | + + + + | +
diff --git a/templates/show_playlists.php.inc b/templates/show_playlists.php.inc deleted file mode 100644 index 9bb54c29..00000000 --- a/templates/show_playlists.php.inc +++ /dev/null @@ -1,78 +0,0 @@ - -

- - - - - - - -user); - $count = $playlist->get_song_count(); -?> - - - - - - - -
- - name); ?> - - name); ?> - | - - - username == $playlist->user || $GLOBALS['user']->has_access(100)) { ?> - | /playlist.php?action=edit&lplaylist_id=id; ?>"> - - - | - - - - 1) { ?> - | - - - | - - - - - | - - - - | -
diff --git a/templates/show_songs.inc b/templates/show_songs.inc index e3d1cae5..21c69525 100644 --- a/templates/show_songs.inc +++ b/templates/show_songs.inc @@ -1,7 +1,7 @@ username; +$username = $GLOBALS['user']->username; + +/* If it's a playlist and they've got rights */ +if (isset($playlist_id) && ($GLOBALS['user']->username == $playlist->user || $GLOBALS['user']->has_access('100'))) { + $tab = 1; + $playlist_owner = true; +} ?> -
- - -
- - - - username == $pluser->username || $user->has_access('100'))) { $tab = 1; ?> - - - - - - - - - - - - - - - +
  Select
+ + + + + + + + + + + + + + + + + + + +title = 'Dynamic Song'; + } + $song_id = $song_id['id']; + } // end if playlist + elseif (!is_object($song_id)) { unset($text_class); $song = new Song($song_id); } @@ -60,16 +75,18 @@ $username=$GLOBALS['user']->username; $song = $song_id; } + $song->format_song(); - // Still needed crap - $totalsize += $song->size; - $totaltime += $song->time; - if ($song->status == "disabled") { $text_class = "class=\"disabled\""; } - ?> - - + // Still needed crap + $totalsize += $song->size; + $totaltime += $song->time; + /* If it's disabled */ + if ($song->status == "disabled") { $text_class = "class=\"disabled\""; } +?> + + username == $pluser->username || $user->has_access('100'))) { $tracknum = get_playlist_track_from_song($playlist_id, $song->id); @@ -158,8 +175,6 @@ $username=$GLOBALS['user']->username;
  Select
- -
+ +
-

-- cgit