X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=debugger%2Fcontroller.php;h=444028d5cc051474e9fe17d6f61a03b349363b02;hb=cdd150f57cf3e077fb89d53be81c197f9727dae7;hp=3beefb68bb8169f199862f26d12d6f169c59051b;hpb=12d67711933b569eb7332bea0d874ae394aedbfd;p=plcapi.git diff --git a/debugger/controller.php b/debugger/controller.php index 3beefb6..444028d 100644 --- a/debugger/controller.php +++ b/debugger/controller.php @@ -1,321 +1,359 @@ 100%... * @todo add support for more options, such as ntlm auth to proxy, or request charset encoding - * * @todo parse content of payload textarea to be fed to visual editor * @todo add http no-cache headers + * @todo if jsonrpc php classes are not available, do not display the JSONRPC option + * @todo if js libs are not available, do not try to load them **/ - include(getcwd().'/common.php'); - if ($action == '') +// make sure we set the correct charset type for output, so that we can display all characters +header('Content-Type: text/html; charset=utf-8'); + +include __DIR__ . '/common.php'; +if ($action == '') { $action = 'list'; +} - // relative path to the visual xmlrpc editing dialog - $editorpath = '../../javascript/debugger/'; - $editorlibs = '../../javascript/lib/'; +// relative path to the visual xmlrpc editing dialog +$editorpath = '../../phpjsrpc/debugger/'; +$editorlibs = '../../phpjsrpc/lib/'; ?> - +
-