summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rwxr-xr-xhtml/import.php8
2 files changed, 5 insertions, 5 deletions
diff --git a/README.md b/README.md
index da3674e..5fcaa9f 100644
--- a/README.md
+++ b/README.md
@@ -159,7 +159,7 @@ logs manually to the logs folder and then run the importer via the Import link.
If you have ftp access and can do ftp via php, edit the config.php file and input your UT servers ftp
information into there. Now run the importer via the Import link.
Additionally you can use [UTStats Trigger](http://ut.fuzzeh.com/serverfiles/UTSTATS_Trigger.zip)
-Server Mutator, which triggers UTStats import after every map switch.
+Mutator, which triggers UTStats import after every map switch.
**Option 3:**
Automate the process using a cron job or scheduled task.
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>';