root . 'lib/utils.inc.php'; function createHeader($data) { $out = '
{$raw[0]}
"; } $headers = createHeader($raw[0]); $r = "$i | "; foreach ($obj as $value) { $r .= "$value | "; } $r .= '
Connection to REST service failed
'; } } else if ($subfunction == 'blacklist') { if ($util->isAdmin()) { $method = '/show/blacklist'; } else { $method = '/show/blacklist' . $util->getUser(); } $list = $util->makeRestCall($method); if ($list) { $out = parseResponse($list); } else { $out = 'Connection to REST service failed
'; } } else if ($subfunction == 'whitelist') { if ($util->isAdmin()) { $method = '/show/whitelist'; } else { $method = '/show/whitelist' . $util->getUser(); } $list = $util->makeRestCall($method); if ($list) { $out = parseResponse($list); } else { $out = 'Connection to REST service failed
'; } } else { header('Location: index.php'); } } else if($function == 'add') { } else if($function == 'del') { } else { header('Location: index.php'); } $util->setHeading('WB List and Quarantine Administration'); echo $util->getHeader(); echo $util->getHeading(); echo $out; echo $util->getFooter(); } else { header('Location: auth.php'); } ?>