mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
update changelog, clean up files
git-svn-id: http://www.observium.org/svn/observer/trunk@1893 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -4,10 +4,18 @@
|
||||
include("config.php");
|
||||
include("includes/functions.php");
|
||||
|
||||
$data = trim(shell_exec("cat ".$argv[1]));
|
||||
$fd = fopen($argv[1],'r');
|
||||
$data = fread($fd,4096);
|
||||
while (!feof($fd))
|
||||
{
|
||||
$data .= fread($fd,4096);
|
||||
}
|
||||
|
||||
foreach( explode("\n", $data) as $line) {
|
||||
foreach (explode("\n", $data) as $line)
|
||||
{
|
||||
$update = mysql_query($line);
|
||||
# FIXME check query success?
|
||||
echo("$line \n");
|
||||
}
|
||||
?>
|
||||
|
||||
?>
|
Reference in New Issue
Block a user