hlstatsx/heatmaps/generate.php

20 lines
383 B
PHP
Raw Normal View History

2013-12-26 00:43:29 +01:00
#!/usr/bin/php
<?php
error_reporting(E_ALL);
ini_set("memory_limit", "32M");
require_once 'config.inc.php';
require_once 'heatmap.class.php';
$heat = new Heatmap;
$heat->init();
foreach (Env::get('mapinfo') as $game => $gameconf) {
foreach ($gameconf as $map => $data) {
$heat->generate($game, $map, "kill");
}
}
show::Event("CREATE", "Heatmap creation done.", 1);
?>