Version 0.7

This commit is contained in:
nemunaire 2007-11-20 12:00:00 +01:00
commit c117da6d77
148 changed files with 1914 additions and 801 deletions

View file

@ -28,6 +28,7 @@ function aucunvaisseaux (){
}
}
</script>');
require_once '../securite.php';
require('../header.php');
require('../fonctions.php');
@ -35,6 +36,7 @@ $id=$_SESSION['id'];
$galaxy=$_SESSION['galaxy'];
$ss=$_SESSION['ss'];
$pos=$_SESSION['pos'];
$_SESSION['dernPage'] = 'flotte.php';
require_once('flotte_dep.php');
require_once('noms.php');
@ -64,9 +66,11 @@ if (isset($_GET['err'])) {
elseif ($_GET['err'] == 8) print '<table align="center"><tr><td><font color="#FF0000"><b>Les réserves de vos vaisseaux sont trop remplis</b></font></td></tr></table><br>';
elseif ($_GET['err'] == 9) print '<table align="center"><tr><td><font color="#FF0000"><b>Vous ne pouvez pas aller sur cette planète</b></font></td></tr></table><br>';
elseif ($_GET['err'] == 10) print '<table align="center"><tr><td><font color="#FF0000"><b>Aucune mission sélectionnée</b></font></td></tr></table><br>';
elseif (strtolower($_GET['err']) == 's1') print '<table align="center"><tr><td><font color="#FF0000"><b>Vous ne pouvez pas stationner sur une planète ne vous appartenant pas !</b></font></td></tr></table><br>';
elseif (strtolower($_GET['err']) == 'a1') print '<table align="center"><tr><td><font color="#FF0000"><b>Vous ne pouvez pas vous attaquer !</b></font></td></tr></table><br>';
elseif (strtolower($_GET['err']) == 'c1') print '<table align="center"><tr><td><font color="#FF0000"><b>Vous ne pouvez pas coloniser une planète habitée !</b></font></td></tr></table><br>';
elseif (strtolower($_GET['err']) == 'c2') print '<table align="center"><tr><td><font color="#FF0000"><b>Vous ne pouvez pas coloniser plus de planète, vus avez atteint le maximum !</b></font></td></tr></table><br>';
elseif (strtolower($_GET['err']) == 'e1') print '<table align="center"><tr><td><font color="#FF0000"><b>Vous ne pouvez pas vous espionner !</b></font></td></tr></table><br>';
elseif (strtolower($_GET['err']) == 's1') print '<table align="center"><tr><td><font color="#FF0000"><b>Vous ne pouvez pas stationner sur une planète ne vous appartenant pas !</b></font></td></tr></table><br>';
}
$req = mysql_query("SELECT * FROM flottes WHERE `id_user` = '$id'");
if (mysql_num_rows($req) > 0) {
@ -167,7 +171,7 @@ if($vaisseau_12 > 0){ ?>
</tr><?php } ?>
<tr><td colspan="2"><a href="javascript:maxvaisseaux();">Tous les vaisseaux</a></td><td colspan="2">
<a href="javascript:aucunvaisseaux();">Aucun vaisseau</a></TD></TR>
<tr><td colspan="4"><?php if ($nbr < ($trez)) echo '<input type="submit" value="Envoyer" class="bouton">'; else echo 'Nombre de flotte total atteint'; ?></td></tr>
<tr><td colspan="4"><?php if ($nbr < ($trez)) echo '<input type="submit" value="Envoyer" class="bouton">'; else echo '<b><font color="#FF0000">Nombre de flotte total atteint</font></b>'; ?></td></tr>
</table>
</form>
</body>