Version 2007-11-09
This commit is contained in:
parent
d08fb34825
commit
e0f55450e1
87 changed files with 513 additions and 741 deletions
|
|
@ -127,6 +127,37 @@ if (isset($_POST['vaisseau3']) && $_POST['vaisseau3'] > 0) print '<option value=
|
|||
exit;
|
||||
}
|
||||
|
||||
$Cgalaxie = floor($_POST['galaxie']);
|
||||
$Css = floor($_POST['ss']);
|
||||
$Cposition = floor($_POST['position']);
|
||||
$mission = $_POST['mission'];
|
||||
|
||||
// Vérification de la planète d'arrivé
|
||||
$reqVPlan = mysql_query("SELECT * FROM planete WHERE `galaxie` = '$Cgalaxie' AND `ss` = '$Css' AND `position` = '$Cposition'");
|
||||
if (mysql_num_rows($reqVPlan) == 0) {
|
||||
header('Location: flotte.php?err=9');
|
||||
exit;
|
||||
}
|
||||
else {
|
||||
$resultatVPlan = mysql_fetch_array($reqVPlan);
|
||||
if ($mission == 0 && $resultatVPlan['id_user'] != $id) {
|
||||
header('Location: flotte.php?err=s1');
|
||||
exit;
|
||||
}
|
||||
elseif ($mission == 1 && $resultatVPlan['id_user'] == $id) {
|
||||
header('Location: flotte.php?err=a1');
|
||||
exit;
|
||||
}
|
||||
elseif ($mission == 5 && $resultatVPlan['id_user'] == $id) {
|
||||
header('Location: flotte.php?err=a1');
|
||||
exit;
|
||||
}
|
||||
elseif ($mission == '') {
|
||||
header('Location: flotte.php?err=10');
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
if (!isset($_POST['vaisseau1'])) $_POST['vaisseau1'] = 0;
|
||||
if (!isset($_POST['vaisseau2'])) $_POST['vaisseau2'] = 0;
|
||||
if (!isset($_POST['vaisseau3'])) $_POST['vaisseau3'] = 0;
|
||||
|
|
@ -174,10 +205,6 @@ if (isset($_POST['vaisseau3']) && $_POST['vaisseau3'] > 0) print '<option value=
|
|||
|
||||
$nomFlotte = $_POST['nom'];
|
||||
if (empty($nomFlotte)) { header('Location: flotte.php?err=6'); exit; }
|
||||
$Cgalaxie = $_POST['galaxie'];
|
||||
$Css = $_POST['ss'];
|
||||
$Cposition = $_POST['position'];
|
||||
$mission = $_POST['mission'];
|
||||
|
||||
$Cmetal = $_POST['metal'];
|
||||
$Ccristal = $_POST['cristal'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue