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:
Tom Laermans
2011-03-16 22:04:29 +00:00
parent 2d5eee1c95
commit 39dc6e9053
7 changed files with 127 additions and 115 deletions

View File

@@ -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");
}
?>
?>