summaryrefslogtreecommitdiffstats
path: root/apis/event.inc.php
blob: 443c69359934bdfe7df0bd2bddae24783e16c2fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;
}