Improve testsuite to make it easily executable by Travis
[plcapi.git] / debugger / controller.php
index e1627f9..afb34ad 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /**
  * @author Gaetano Giunta
- * @copyright (C) 2005-2013 G. Giunta
+ * @copyright (C) 2005-2014 G. Giunta
  * @license code licensed under the BSD License: http://phpxmlrpc.sourceforge.net/license.txt
  *
  * @todo add links to documentation from every option caption
  * @todo add http no-cache headers
  **/
 
-  include(getcwd().'/common.php');
+  include(dirname(__FILE__).'/common.php');
   if ($action == '')
     $action = 'list';
 
   // relative path to the visual xmlrpc editing dialog
-  $editorpath = '../../javascript/';
+  $editorpath = '../../javascript/debugger/';
+  $editorlibs = '../../javascript/lib/';
 ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@@ -31,8 +32,8 @@
     top.location.replace('index.php?run='+escape(self.location));
 </script>
 <!-- xmlrpc/jsonrpc base library -->
-<script type="text/javascript" src="<?php echo $editorpath; ?>xmlrpc_lib.js"></script>
-<script type="text/javascript" src="<?php echo $editorpath; ?>jsonrpc_lib.js"></script>
+<script type="text/javascript" src="<?php echo $editorlibs; ?>xmlrpc_lib.js"></script>
+<script type="text/javascript" src="<?php echo $editorlibs; ?>jsonrpc_lib.js"></script>
 <style type="text/css">
 <!--
 html {overflow: -moz-scrollbars-vertical;}