]> git.datanom.net - qtadmin.git/commitdiff
First upload of wblist page
authorMichael Rasmussen <mir@datanom.net>
Wed, 24 Jun 2015 22:27:06 +0000 (00:27 +0200)
committerMichael Rasmussen <mir@datanom.net>
Wed, 24 Jun 2015 22:27:06 +0000 (00:27 +0200)
wblist.php [new file with mode: 0644]

diff --git a/wblist.php b/wblist.php
new file mode 100644 (file)
index 0000000..7746869
--- /dev/null
@@ -0,0 +1,22 @@
+<?php
+/* vim: set ts=4 tw=0 sw=4 noet: */
+    require_once 'config.php';
+    require_once $CFG->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 = '<p>Connection to REST service failed</p>';
+               echo $out;
+        echo $util->getFooter();
+    } else {
+        header('Location: auth.php');
+    }
+?>
\ No newline at end of file
This page took 0.053567 seconds and 5 git commands to generate.