summaryrefslogtreecommitdiffstats
path: root/apis
diff options
context:
space:
mode:
Diffstat (limited to 'apis')
-rw-r--r--apis/event.inc.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/apis/event.inc.php b/apis/event.inc.php
new file mode 100644
index 00000000..443c6935
--- /dev/null
+++ b/apis/event.inc.php
@@ -0,0 +1,20 @@
+<?php
+
+if (!isLocalExecution())
+ die('Nope');
+
+if ($argc < 3)
+ die("Not enough parameters");
+
+switch ($argc[1]) {
+case 'info':
+ EventLog::info($argc[2]);
+ break;
+case 'warning':
+ EventLog::warning($argc[2]);
+ break;
+case 'failure':
+ EventLog::failure($argc[2]);
+ break;
+}
+