playlist.php
changeset 0 c63de9eb7045
child 1 cddc2ba706d6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/playlist.php	Sun Mar 23 14:59:33 2008 -0400
@@ -0,0 +1,22 @@
+<?php
+
+/**
+ * Playlist displayer
+ *
+ * Web control interface script for Amarok
+ * Written by Dan Fuhry - 2008
+ *
+ * This script is in the public domain. Use it for good, not evil.
+ */
+
+function amarok_playlist($server)
+{
+  global $smarty, $theme, $playlist;
+  
+  $active = dcop_action('playlist', 'getActiveIndex');
+  $smarty->assign('theme', $theme);
+  $smarty->assign('playlist', $playlist);
+  $smarty->assign('active', $active);
+  $smarty->display('playlist.tpl');
+}
+