X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=debugger%2Fcontroller.php;h=1501ac031bb3f565cb3475c3ac6b31ccd6a65c52;hb=e01e1ef7d893dde2dd3aa1f314fdab67770d8908;hp=afb34ad5682e97d5c06a50538f2bc5d11380545f;hpb=09aa00da2d0521e3c244f0ea124a5d400abdf086;p=plcapi.git diff --git a/debugger/controller.php b/debugger/controller.php index afb34ad..1501ac0 100644 --- a/debugger/controller.php +++ b/debugger/controller.php @@ -1,321 +1,361 @@ 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, gray out or hide altogether the JSONRPC option & title + * @todo if js libs are not available, do not try to load them **/ - include(dirname(__FILE__).'/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 +// We allow to easily configure this path via defines +$editorpath = (defined('JSXMLRPC_PATH') ? JSXMLRPC_PATH : '../..') . '/jsxmlrpc/debugger/'; +$editorlibs = (defined('JSXMLRPC_PATH') ? JSXMLRPC_PATH : '../..') . '/jsxmlrpc/lib/'; ?> - +
-