summaryrefslogtreecommitdiff
path: root/html/import/import_renderer-dom.php
blob: d680d49e5ea8a9c1cb53d6899f42793f2556f6c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

<?php	
	include_once('includes/renderer-dom.php');
	include_once('includes/renderer-dm.php');

	// Only run script if at least 5 minutes were played
	if(($time_gameend-$time_gamestart)>300 && count(array_unique($playernames))>=8) {

		$tableTempIdom = generateTempTable($safe_uid);
		$ampTimes = generateAmpTimes($safe_uid);
		
		try {
				
			renderDataTotal($safe_uid,$tableTempIdom);
			renderDataCPs($safe_uid,$tableTempIdom);
			
			renderDataPickups($safe_uid);
			renderAmpBars($safe_uid,$tableTempIdom);
		
			list($datafrags, $derivfrags, $topFraggers,$counter,$datafragsteam,$derivfragsteam,$topTeams) = parseDMdata($safe_uid);
			renderFragBarsTeams($datafragsteam,$derivfragsteam,$topTeams,$counter);
			
		} catch (Exception $e) {
			
			// Do nothing, but simply do not block import
			
		}
		
		// drop table
		mysql_query("DROP TABLE $tableTempIdom") or die(mysql_error());
	}
?>