--- a/webcontrol.php Sun Mar 23 15:24:06 2008 -0400
+++ b/webcontrol.php Sun Mar 23 20:24:33 2008 -0400
@@ -25,6 +25,7 @@
define('SMARTY_DIR', './smarty/');
require('smarty/Smarty.class.php');
require('playlist.php');
+require('json.php');
require('ajax.php');
status('initializing Smarty');
@@ -63,6 +64,7 @@
// setup handlers
status('initializing handlers');
$httpd->add_handler('index', 'function', 'amarok_playlist');
+ $httpd->add_handler('action.json', 'function', 'ajax_request_handler');
$httpd->add_handler('scripts', 'dir', './scripts');
$httpd->add_handler("themes/$theme", 'dir', "./themes/$theme");
$httpd->allow_dir_list = true;