playlist.php
changeset 3 e7447a6044ec
parent 2 860ba7141641
child 4 cde92f6ec29f
equal deleted inserted replaced
2:860ba7141641 3:e7447a6044ec
     9  * This script is in the public domain. Use it for good, not evil.
     9  * This script is in the public domain. Use it for good, not evil.
    10  */
    10  */
    11 
    11 
    12 function amarok_playlist($server)
    12 function amarok_playlist($server)
    13 {
    13 {
    14   global $smarty, $theme, $playlist;
    14   global $smarty, $theme, $playlist, $allowcontrol;
    15   
    15   
    16   $active = dcop_action('playlist', 'getActiveIndex');
    16   $active = dcop_action('playlist', 'getActiveIndex');
    17   $smarty->assign('theme', $theme);
    17   $smarty->assign('theme', $theme);
    18   $smarty->assign('playlist', $playlist);
    18   $smarty->assign('playlist', $playlist);
    19   $smarty->assign('active', $active);
    19   $smarty->assign('active', $active);
    20   $smarty->assign('scripts', array(
    20   $smarty->assign('scripts', array(
    21       'ajax.js',
    21       'ajax.js',
    22       'domutils.js',
    22       'domutils.js',
    23       'volume.js'
    23       'volume.js'
    24     ));
    24     ));
       
    25   $smarty->assign('allow_control', $allowcontrol);
    25   $smarty->display('playlist.tpl');
    26   $smarty->display('playlist.tpl');
    26 }
    27 }
    27 
    28