summaryrefslogtreecommitdiff
path: root/html/import.php
diff options
context:
space:
mode:
authorMatthijs Kuiper <info@matthijskuiper.nl>2018-01-08 23:47:23 +0100
committerGitHub <noreply@github.com>2018-01-08 23:47:23 +0100
commite861eafbeae0560add7956530d76de6cc285be20 (patch)
treec32e746977fde711cecd716570989014bf2d3592 /html/import.php
parent66b162b5f01c996fd8a5cd4e570e31f8483cdffa (diff)
parent730c20dd04b5753cb372a289923e39516d1f8b87 (diff)
Merge pull request #5 from randommonk/develop4.3.0
Bumped version to 4.3. Added jpgraph stats developed by killerEye
Diffstat (limited to 'html/import.php')
-rwxr-xr-xhtml/import.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/html/import.php b/html/import.php
index f811d92..c2bcfe6 100755
--- a/html/import.php
+++ b/html/import.php
@@ -740,6 +740,7 @@ $t0info, $t1info, $t2info, $t3info, $t0score, $t1score, $t2score, $t3score);";
echo "Done\n";
if ($html) echo'</td></tr>';
+ include('import/import_renderer-preconfig.php');
$updategameinfo = false;
if (count($ignored_players) > 0) {
@@ -757,6 +758,30 @@ $t0info, $t1info, $t2info, $t3info, $t0score, $t1score, $t2score, $t3score);";
mysql_query("UPDATE uts_match SET gameinfo = '$gameinfo' WHERE id = '$matchid'");
$updategameinfo = false;
}
+ if ($gamename == "Domination" || $gamename == "Domination (insta)" ) {
+ if ($html) echo '<tr><td class="smheading" align="left" width="350">';
+ echo "Generating dom graphs: ";
+ if ($html) echo '</td><td class="grey" align="left" width="200">';
+ include("import/import_renderer-dom.php");
+ echo "Done\n";
+ if ($html) echo'</td></tr>';
+ }
+ else if ($gamename == "Tournament DeathMatch" || $gamename == "Tournament DeathMatch (insta)" || $gamename == "Tournament Team Game" || $gamename == "Tournament Team Game (insta)" ) {
+ if ($html) echo '<tr><td class="smheading" align="left" width="350">';
+ echo "Generating dm graphs: ";
+ if ($html) echo '</td><td class="grey" align="left" width="200">';
+ include("import/import_renderer-dm.php");
+ echo "Done\n";
+ if ($html) echo'</td></tr>';
+ }
+ else if ($gamename == "Capture the Flag" || $gamename == "Capture the Flag (insta)" ) {
+ if ($html) echo '<tr><td class="smheading" align="left" width="350">';
+ echo "Generating ctf graphs: ";
+ if ($html) echo '</td><td class="grey" align="left" width="200">';
+ include("import/import_renderer-ctf.php");
+ echo "Done\n";
+ if ($html) echo'</td></tr>';
+ }
}
}