158 $httpd->add_handler('api', 'function', 'api_request_handler'); |
178 $httpd->add_handler('api', 'function', 'api_request_handler'); |
159 $httpd->add_handler('scripts', 'dir', GREY_ROOT . '/scripts'); |
179 $httpd->add_handler('scripts', 'dir', GREY_ROOT . '/scripts'); |
160 $httpd->add_handler('favicon.ico', 'file', GREY_ROOT . '/amarok_icon.ico'); |
180 $httpd->add_handler('favicon.ico', 'file', GREY_ROOT . '/amarok_icon.ico'); |
161 $httpd->add_handler('apple-touch-icon.png', 'file', GREY_ROOT . '/apple-touch-icon.png'); |
181 $httpd->add_handler('apple-touch-icon.png', 'file', GREY_ROOT . '/apple-touch-icon.png'); |
162 $httpd->add_handler('spacer.gif', 'file', GREY_ROOT . '/spacer.gif'); |
182 $httpd->add_handler('spacer.gif', 'file', GREY_ROOT . '/spacer.gif'); |
|
183 $httpd->add_handler('trans80.png', 'file', GREY_ROOT . '/trans80.png'); |
163 $httpd->threader->ipc_register('reloadconfig', 'grey_reload_config'); |
184 $httpd->threader->ipc_register('reloadconfig', 'grey_reload_config'); |
164 // load all themes if forking is enabled |
185 // load all themes if forking is enabled |
165 // Themes are loaded when the playlist is requested. This is fine for |
186 // Themes are loaded when the playlist is requested. This is fine for |
166 // single-threaded operation, but if the playlist handler is only loaded |
187 // single-threaded operation, but if the playlist handler is only loaded |
167 // in a child process, we need to preload all themes into the parent before |
188 // in a child process, we need to preload all themes into the parent before |