summaryrefslogtreecommitdiff
path: root/html/import/import_renderer-ctf.php
diff options
context:
space:
mode:
authorrandommonk <randommonk@gmail.com>2018-01-04 22:52:54 +0000
committerrandommonk <randommonk@gmail.com>2018-01-04 23:06:03 +0000
commitdfc4e20b8e9ca57340e24143539498fb82527697 (patch)
tree50cdec1c1e650e6ca8f0d055b401b2c893e43124 /html/import/import_renderer-ctf.php
parent66b162b5f01c996fd8a5cd4e570e31f8483cdffa (diff)
Bumped version to 4.3. Added jpgraph stats developed by killerEye
Diffstat (limited to 'html/import/import_renderer-ctf.php')
-rw-r--r--html/import/import_renderer-ctf.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/html/import/import_renderer-ctf.php b/html/import/import_renderer-ctf.php
new file mode 100644
index 0000000..3e49bf5
--- /dev/null
+++ b/html/import/import_renderer-ctf.php
@@ -0,0 +1,30 @@
+
+<?php
+ include_once('includes/renderer-dm.php');
+ include_once('includes/renderer-ctf.php');
+
+ // Only run script if at least 5 minutes were played
+ if(($time_gameend-$time_gamestart)>300 && count(array_unique($playernames))>=2) {
+
+ try {
+ $safe_uid = mysql_real_escape_string($uid);
+
+ prepCTFdata($safe_uid);
+
+ renderScoreGraph($safe_uid);
+
+ // Get relevant data
+ list($datafrags, $derivfrags, $topFraggers,$counter,$datafragsteam,$derivfragsteam,$topTeams) = parseDMdata($safe_uid);
+
+ renderFragBarsTeams($datafragsteam,$derivfragsteam,$topTeams,$counter);
+
+ if($playernumberofteams == 2)
+ renderDataPickups($safe_uid);
+
+ } catch (Exception $e) {
+
+ // Do nothing, but simply do not block import
+
+ }
+ }
+?> \ No newline at end of file