greyhound.php
changeset 27 20a36fe254c9
parent 25 5c377ceb0e4c
child 29 8210fdc7c317
child 32 86140ed9087d
--- a/greyhound.php	Tue Aug 05 13:17:37 2008 -0400
+++ b/greyhound.php	Tue Aug 05 13:17:57 2008 -0400
@@ -40,7 +40,7 @@
 // Allow forking when an HTTP request is received. This has advantages
 // and disadvantages. If this experimental option is enabled, it will
 // result in faster responses and load times but more memory usage.
-$allow_fork = false;
+$allow_fork = true;
 // set to true to enable authentication
 // WARNING: THIS HAS SOME SERIOUS SECURITY PROBLEMS RIGHT NOW. I don't
 // know what's causing it to not prompt for authentication from any
@@ -74,6 +74,7 @@
 require(GREY_ROOT . '/playlist.php');
 require(GREY_ROOT . '/json.php');
 require(GREY_ROOT . '/ajax.php');
+require(GREY_ROOT . '/imagetools.php');
 
 status('doing home directory detection');
 
@@ -118,6 +119,7 @@
   status('initializing handlers');
   $httpd->add_handler('index',                'function', 'amarok_playlist');
   $httpd->add_handler('action.json',          'function', 'ajax_request_handler');
+  $httpd->add_handler('artwork',              'function', 'artwork_request_handler');
   $httpd->add_handler('scripts',              'dir',      GREY_ROOT . '/scripts');
   $httpd->add_handler('favicon.ico',          'file',     GREY_ROOT . '/amarok_icon.ico');
   $httpd->add_handler('apple-touch-icon.png', 'file',     GREY_ROOT . '/apple-touch-icon.png');