playlist.php
author Dan
Sun, 23 Mar 2008 20:58:51 -0400
changeset 3 e7447a6044ec
parent 2 860ba7141641
child 4 cde92f6ec29f
permissions -rw-r--r--
$allowcontrol = false working and turned on now; switched default port back to 7447 instead of random; added favicon and apple-touch-icon

<?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, $allowcontrol;
  
  $active = dcop_action('playlist', 'getActiveIndex');
  $smarty->assign('theme', $theme);
  $smarty->assign('playlist', $playlist);
  $smarty->assign('active', $active);
  $smarty->assign('scripts', array(
      'ajax.js',
      'domutils.js',
      'volume.js'
    ));
  $smarty->assign('allow_control', $allowcontrol);
  $smarty->display('playlist.tpl');
}