Example #1
0
if (!is_int($maxTot) || $maxTot == 0) {
    $maxTot = 1;
}
if (isset($historyTest)) {
    $res = $maxTot > 1;
    return $res;
}
$sql = "SELECT * FROM state JOIN revisions ON state.revision=revisions.revision WHERE `state`.`language`='{$lang}' && `state`.`group`='{$group}' && `state`.`revision`>={$minRev}";
#$sql="SELECT * FROM state WHERE `language`='$lang' && `group`='$group'";
$res = mysql_query($sql, $db);
if ($res === false) {
    echo "<br><i>{$query}</i> <b>" . mysql_error() . "</b>";
    die("In progress ?");
}
$table = new Table();
$table->importMysqlResult($res);
//$table->Output();
$im = imagecreate($imWidth, $imHeight);
$color_background = imagecolorallocate($im, 250, 200, 230);
$background2_color = imagecolorallocate($im, 55, 100, 33);
$line_color = imagecolorallocate($im, 70, 120, 40);
$text_color = imagecolorallocate($im, 40, 75, 20);
$color_transparent = imagecolorallocatealpha($im, 40, 75, 20, 127);
$color_black = imagecolorallocate($im, 0, 0, 0);
$color_gray = imagecolorallocatealpha($im, 0, 0, 0, 100);
$color_red = imagecolorallocate($im, 250, 0, 0);
$color_blue = imagecolorallocate($im, 0, 0, 250);
$color_green = imagecolorallocate($im, 0, 250, 0);
$color_pink = imagecolorallocate($im, 250, 150, 250);
$color_empty = imagecolorallocate($im, 100, 125, 50);
$color_player = imagecolorallocate($im, 180, 0, 0);