$subfunction = isset($_GET['s']) ? $_GET['s'] : null;
if (($function && $function == 'show' && !$subfunction) ||
($function && $function == 'add' && $subfunction) ||
- ($function && $function == 'del' && $subfunction) {
+ ($function && $function == 'del' && $subfunction)) {
header('Location: index.php');
} else if($function == 'show') {
if ($subfunction == 'all') {
$list = $util->makeRestCall('/show');
if ($list) {
- $out = var_export($list, true);
+ $out = '<pre>'.var_export($list, true).'</pre>';
} else {
$out = '<p>Connection to REST service failed</p>';
}