playlist.php
changeset 0 c63de9eb7045
child 1 cddc2ba706d6
equal deleted inserted replaced
-1:000000000000 0:c63de9eb7045
       
     1 <?php
       
     2 
       
     3 /**
       
     4  * Playlist displayer
       
     5  *
       
     6  * Web control interface script for Amarok
       
     7  * Written by Dan Fuhry - 2008
       
     8  *
       
     9  * This script is in the public domain. Use it for good, not evil.
       
    10  */
       
    11 
       
    12 function amarok_playlist($server)
       
    13 {
       
    14   global $smarty, $theme, $playlist;
       
    15   
       
    16   $active = dcop_action('playlist', 'getActiveIndex');
       
    17   $smarty->assign('theme', $theme);
       
    18   $smarty->assign('playlist', $playlist);
       
    19   $smarty->assign('active', $active);
       
    20   $smarty->display('playlist.tpl');
       
    21 }
       
    22