hlstatsx/heatmaps/generate.php
2013-12-25 18:43:29 -05:00

20 lines
383 B
PHP
Executable File

#!/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);
?>