Fix coding style part 2

This commit is contained in:
Job Snijders
2015-07-13 20:10:26 +02:00
parent ad9590df9b
commit d8693f05ae
733 changed files with 37359 additions and 33947 deletions

View File

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