summaryrefslogtreecommitdiff
path: root/html
diff options
context:
space:
mode:
authorMatthijs Kuiper <info@matthijskuiper.nl>2017-02-04 22:39:23 +0100
committerMatthijs Kuiper <info@matthijskuiper.nl>2017-02-04 22:39:23 +0100
commit913143f161ade7cedc951fd74df75bbeae6a5f4f (patch)
tree87f982e8eb7615e2b0200ef55a3da38c0b5d8dde /html
parent34af01c9c3aaaac3c0a96ae3801c565a4233d6bd (diff)
Replace TYPE with ENGINE keyword (MySQL deprication)
Diffstat (limited to 'html')
-rwxr-xr-xhtml/import.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/html/import.php b/html/import.php
index 250e841..277292a 100755
--- a/html/import.php
+++ b/html/import.php
@@ -266,7 +266,7 @@ while (false !== ($filename = readdir($logdir)))
unlink($filename);
continue;
}
-
+
if(substr($filename, strlen($filename) - strlen($import_log_extension)) != $import_log_extension) continue;
if(substr($oldfilename, 0, strlen($import_log_start)) != $import_log_start) continue;
@@ -288,7 +288,7 @@ while (false !== ($filename = readdir($logdir)))
KEY `part1` (`col1` (20),`col2` (20)),
KEY `part2` (`col0` (20),`col1` (20),`col2` (20)),
KEY `full` (`col0` (20),`col1` (20),`col2` (20),`col3` (20),`col4` (20))
- ) TYPE=". ($import_use_heap_tables ? 'HEAP' : 'MyISAM') .";";
+ ) ENGINE=". ($import_use_heap_tables ? 'HEAP' : 'MyISAM') .";";
$result = mysql_query($sql);
if ($result) break;
@@ -299,7 +299,7 @@ while (false !== ($filename = readdir($logdir)))
$import_use_temporary_tables = false;
continue;
}
- die("<br><strong>Unable to create the temporary table - are you allowed to create tables in this database?<br><br></strong>");
+ die("<br><strong>Unable to create the temporary table:<br>". mysql_error() ."<br><br></strong>");
}
$id = 0;
@@ -431,7 +431,7 @@ while (false !== ($filename = readdir($logdir)))
}
// Check if anything happened, if it didnt stop everything now
- //
+ //
IF (($qm_kills[kills] == 0 && $qm_deaths[deaths] == 0) && ($qm_gamename[col3] != "Bunny Track")) {
echo "No (Empty Match)\n";
if ($html) echo '</td></tr>';