summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Brill <egore911@gmail.com>2014-08-30 09:35:38 +0200
committerChristoph Brill <egore911@gmail.com>2014-08-30 09:35:38 +0200
commit4fdb54809471f5e67fc8ce4598fb513565e96ded (patch)
treeb069eaef05e4a2afd3bbf4904524df979543dab9
parent9f246161f4e7867d6a689478bc619418de9f80b4 (diff)
Add script to list the channels being logged by dri-logger
-rwxr-xr-xchannels.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/channels.php b/channels.php
new file mode 100755
index 0000000..f830cac
--- /dev/null
+++ b/channels.php
@@ -0,0 +1,21 @@
+<?php
+
+/**
+ * channels.php - Part of the dri-devel IRC logging facilities
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * Copyright (C) 2012 Christoph Brill <egore911@egore911.de>
+ */
+
+require_once('common.inc.php');
+
+header("Content-type: application/json;");
+echo json_encode($channels);