<?
/*
La 4e anomalie : real-time and web based galaxy conquest game. Have fun !
Copyright (C) 2003
Sylvain Moreau F-78220
email 1 : hide@address.com
email 2 : hide@address.com
This program is free software; you can redistribute it and/or modify it under the terms
of the GNU General Public License as published by the Free Software Foundation;
either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program;
if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
MA 02111-1307 USA
*/
include ("lib_gen.php3");
include ("lib_p4.php3");
//
// DESSINE L'ENSEMBLE DE LA GALAXIE
//
function dessine() {
header("Content-Type: image/gif");
$image = imagecreate($maxX,$maxY);
$noir = imagecolorallocate($image,0,0,0);
$blanc = imagecolorallocate($image,255,255,255);
imagefill($image,0, 0, $noir);
connecte();
$query="SELECT x, y, nom, pseudo, vaisseaux, dev, dev_max FROM systemes";
$result = requete($query);
while($row = mysql_fetch_row($result)){
$x=$row[0];
$y=$row[1];
imagesetpixel($image,$x,$y ,$blanc);
}
mysql_close();
imagegif($image);
}
dessine();
?>