@@ -14,7 +14,9 @@ discard block |
||
| 14 | 14 | * @todo if js libs are not available, do not try to load them |
| 15 | 15 | **/ |
| 16 | 16 | |
| 17 | -if (getenv('TESTMODE') === 'true') require_once __DIR__ . "../demo/server/_prepend.php"; |
|
| 17 | +if (getenv('TESTMODE') === 'true') { |
|
| 18 | + require_once __DIR__ . "../demo/server/_prepend.php"; |
|
| 19 | +} |
|
| 18 | 20 | |
| 19 | 21 | // Make sure we set the correct charset type for output, so that we can display all characters |
| 20 | 22 | header('Content-Type: text/html; charset=utf-8'); |
@@ -34,7 +36,12 @@ discard block |
||
| 34 | 36 | <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> |
| 35 | 37 | <head> |
| 36 | 38 | <link rel="icon" type="image/vnd.microsoft.icon" href="favicon.ico"> |
| 37 | - <title><?php if (defined('DEFAULT_WSTYPE') && DEFAULT_WSTYPE == 1) echo 'JSONRPC'; else echo 'XMLRPC'; ?> Debugger</title> |
|
| 39 | + <title><?php if (defined('DEFAULT_WSTYPE') && DEFAULT_WSTYPE == 1) { |
|
| 40 | + echo 'JSONRPC'; |
|
| 41 | +} else { |
|
| 42 | + echo 'XMLRPC'; |
|
| 43 | +} |
|
| 44 | +?> Debugger</title> |
|
| 38 | 45 | <meta name="robots" content="index,nofollow"/> |
| 39 | 46 | <script type="text/javascript" language="Javascript"> |
| 40 | 47 | if (window.name != 'frmcontroller') |
@@ -361,4 +368,7 @@ discard block |
||
| 361 | 368 | </form> |
| 362 | 369 | </body> |
| 363 | 370 | </html> |
| 364 | -<?php if (getenv('TESTMODE') === 'true') require_once __DIR__ . "../demo/server/_append.php"; ?> |
|
| 371 | +<?php if (getenv('TESTMODE') === 'true') { |
|
| 372 | + require_once __DIR__ . "../demo/server/_append.php"; |
|
| 373 | +} |
|
| 374 | +?> |
|
@@ -9,7 +9,9 @@ discard block |
||
| 9 | 9 | * @todo be smarter in creating client stub for proxy/auth cases: only set appropriate property of client obj |
| 10 | 10 | **/ |
| 11 | 11 | |
| 12 | -if (getenv('TESTMODE') === 'true') require_once __DIR__ . "../demo/server/_prepend.php"; |
|
| 12 | +if (getenv('TESTMODE') === 'true') { |
|
| 13 | + require_once __DIR__ . "../demo/server/_prepend.php"; |
|
| 14 | +} |
|
| 13 | 15 | |
| 14 | 16 | header('Content-Type: text/html; charset=utf-8'); |
| 15 | 17 | |
@@ -19,7 +21,12 @@ discard block |
||
| 19 | 21 | <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> |
| 20 | 22 | <head> |
| 21 | 23 | <link rel="icon" type="image/vnd.microsoft.icon" href="favicon.ico"> |
| 22 | - <title><?php if (defined('DEFAULT_WSTYPE') && DEFAULT_WSTYPE == 1) echo 'JSONRPC'; else echo 'XMLRPC'; ?> Debugger</title> |
|
| 24 | + <title><?php if (defined('DEFAULT_WSTYPE') && DEFAULT_WSTYPE == 1) { |
|
| 25 | + echo 'JSONRPC'; |
|
| 26 | +} else { |
|
| 27 | + echo 'XMLRPC'; |
|
| 28 | +} |
|
| 29 | +?> Debugger</title> |
|
| 23 | 30 | <meta name="robots" content="index,nofollow"/> |
| 24 | 31 | <style type="text/css"> |
| 25 | 32 | <!-- |
@@ -368,7 +375,9 @@ discard block |
||
| 368 | 375 | echo "<code>OUT: " . htmlspecialchars($ret->scalarval(), ENT_COMPAT, \PhpXmlRpc\PhpXmlRpc::$xmlrpc_internalencoding) . "<br />IN: ("; |
| 369 | 376 | if ($x->count() > 1) { |
| 370 | 377 | foreach($x as $k => $y) { |
| 371 | - if ($k == 0) continue; |
|
| 378 | + if ($k == 0) { |
|
| 379 | + continue; |
|
| 380 | + } |
|
| 372 | 381 | echo htmlspecialchars($y->scalarval(), ENT_COMPAT, \PhpXmlRpc\PhpXmlRpc::$xmlrpc_internalencoding); |
| 373 | 382 | if ($wstype != 1) { |
| 374 | 383 | $type = $y->scalarval(); |
@@ -565,4 +574,7 @@ discard block |
||
| 565 | 574 | ?> |
| 566 | 575 | </body> |
| 567 | 576 | </html> |
| 568 | -<?php if (getenv('TESTMODE') === 'true') require_once __DIR__ . "../demo/server/_append.php"; ?> |
|
| 577 | +<?php if (getenv('TESTMODE') === 'true') { |
|
| 578 | + require_once __DIR__ . "../demo/server/_append.php"; |
|
| 579 | +} |
|
| 580 | +?> |
|
@@ -1,6 +1,8 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -if (getenv('TESTMODE') === 'true') require_once __DIR__ . "../demo/server/_prepend.php"; |
|
| 3 | +if (getenv('TESTMODE') === 'true') { |
|
| 4 | + require_once __DIR__ . "../demo/server/_prepend.php"; |
|
| 5 | +} |
|
| 4 | 6 | |
| 5 | 7 | $query = ''; |
| 6 | 8 | if (isset($_GET['run'])) { |
@@ -15,7 +17,12 @@ discard block |
||
| 15 | 17 | <html lang="en"> |
| 16 | 18 | <head> |
| 17 | 19 | <link rel="icon" type="image/vnd.microsoft.icon" href="favicon.ico"> |
| 18 | - <title><?php if (defined('DEFAULT_WSTYPE') && DEFAULT_WSTYPE == 1) echo 'JSONRPC'; else echo 'XMLRPC'; ?> Debugger</title> |
|
| 20 | + <title><?php if (defined('DEFAULT_WSTYPE') && DEFAULT_WSTYPE == 1) { |
|
| 21 | + echo 'JSONRPC'; |
|
| 22 | +} else { |
|
| 23 | + echo 'XMLRPC'; |
|
| 24 | +} |
|
| 25 | +?> Debugger</title> |
|
| 19 | 26 | </head> |
| 20 | 27 | <frameset rows="360,*"> |
| 21 | 28 | <frame name="frmcontroller" src="controller.php<?php echo htmlspecialchars($query); ?>" marginwidth="0" |
@@ -23,4 +30,7 @@ discard block |
||
| 23 | 30 | <frame name="frmaction" src="action.php" marginwidth="0" marginheight="0" frameborder="0"/> |
| 24 | 31 | </frameset> |
| 25 | 32 | </html> |
| 26 | -<?php if (getenv('TESTMODE') === 'true') require_once __DIR__ . "../demo/server/_append.php"; ?> |
|
| 33 | +<?php if (getenv('TESTMODE') === 'true') { |
|
| 34 | + require_once __DIR__ . "../demo/server/_append.php"; |
|
| 35 | +} |
|
| 36 | +?> |
|