git-svn-id: http://www.observium.org/svn/observer/trunk@559 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong 2009-12-28 11:51:01 +00:00
parent e4b7841410
commit 03f45837ac

View File

@ -1,6 +1,12 @@
#!/usr/bin/php
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
ini_set('log_errors', 1);
ini_set('error_reporting', E_ALL);
include("config.php");
if(!$config['enable_syslog']) {
@ -30,8 +36,11 @@ mysql_query("DELETE FROM `syslog` WHERE `datetime` < DATE_SUB(NOW(), INTERVAL ".
$q = mysql_query("SELECT * FROM `syslog` where `processed` = '0'");
while($entry = mysql_fetch_array($q)){
print_r($entry);
process_syslog($entry, 1);
}
?>