20 lines
383 B
PHP
Executable File
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);
|
|
?>
|