From df10d813dab5e6a440ae81cf71d3355b02057a3d Mon Sep 17 00:00:00 2001 From: Michael Rasmussen Date: Thu, 25 Jun 2015 00:27:06 +0200 Subject: [PATCH] First upload of wblist page --- wblist.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 wblist.php diff --git a/wblist.php b/wblist.php new file mode 100644 index 0000000..7746869 --- /dev/null +++ b/wblist.php @@ -0,0 +1,22 @@ +root . 'lib/utils.inc.php'; + + $util = new Utils; + + if ($util->isLoggedIn()) { + $util->setHeading('WB List and Quarantine Administration'); + echo $util->getHeader(); + echo $util->getHeading(); + $list = $util->makeRestCall('/show'); + if ($list) { + $out = var_export($list, true); + } else { + $out = '

Connection to REST service failed

'; + echo $out; + echo $util->getFooter(); + } else { + header('Location: auth.php'); + } +?> \ No newline at end of file -- 2.39.2