mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix coding style part 2
This commit is contained in:
30
syslog.php
30
syslog.php
@@ -13,24 +13,22 @@
|
||||
*
|
||||
*/
|
||||
|
||||
include("includes/defaults.inc.php");
|
||||
include("config.php");
|
||||
include("includes/definitions.inc.php");
|
||||
include_once("includes/syslog.php");
|
||||
include_once("includes/dbFacile.php");
|
||||
include_once("includes/common.php");
|
||||
include_once("includes/functions.php");
|
||||
require 'includes/defaults.inc.php';
|
||||
require 'config.php';
|
||||
require 'includes/definitions.inc.php';
|
||||
require_once 'includes/syslog.php';
|
||||
require_once 'includes/dbFacile.php';
|
||||
require_once 'includes/common.php';
|
||||
require_once 'includes/functions.php';
|
||||
|
||||
$i = "1";
|
||||
|
||||
$s = fopen('php://stdin','r');
|
||||
while ($line = fgets($s))
|
||||
{
|
||||
#logfile($line);
|
||||
list($entry['host'],$entry['facility'],$entry['priority'], $entry['level'], $entry['tag'], $entry['timestamp'], $entry['msg'], $entry['program']) = explode("||", trim($line));
|
||||
process_syslog($entry, 1);
|
||||
unset($entry); unset($line);
|
||||
$i++;
|
||||
while ($line = fgets($s)) {
|
||||
#logfile($line);
|
||||
list($entry['host'],$entry['facility'],$entry['priority'], $entry['level'], $entry['tag'], $entry['timestamp'], $entry['msg'], $entry['program']) = explode("||", trim($line));
|
||||
process_syslog($entry, 1);
|
||||
unset($entry);
|
||||
unset($line);
|
||||
$i++;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user