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:
@@ -3,28 +3,21 @@
|
||||
|
||||
// MYSQL Check - FIXME
|
||||
// 1 UPDATE
|
||||
require 'config.php';
|
||||
require 'includes/functions.php';
|
||||
|
||||
include("config.php");
|
||||
include("includes/functions.php");
|
||||
if ($fd = @fopen($argv[1], 'r')) {
|
||||
$data = fread($fd, 4096);
|
||||
while (!feof($fd)) {
|
||||
$data .= fread($fd, 4096);
|
||||
}
|
||||
|
||||
if ($fd = @fopen($argv[1],'r'))
|
||||
{
|
||||
$data = fread($fd,4096);
|
||||
while (!feof($fd))
|
||||
{
|
||||
$data .= fread($fd,4096);
|
||||
}
|
||||
|
||||
foreach (explode("\n", $data) as $line)
|
||||
{
|
||||
$update = mysql_query($line);
|
||||
// FIXME check query success?
|
||||
echo("$line \n");
|
||||
}
|
||||
foreach (explode("\n", $data) as $line) {
|
||||
$update = mysql_query($line);
|
||||
// FIXME check query success?
|
||||
echo "$line \n";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo("ERROR: Could not open file \"$argv[1]\".\n");
|
||||
else {
|
||||
echo "ERROR: Could not open file \"$argv[1]\".\n";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user