$_GET['nb']=$eff;//Si l'utilisateur entre par l'URL un nombre de vaisseaux sup<75>rieurs au nombre pr<70>sent, il ne lui sera pas cr<63>dit<69> plus de ressources que le nombre r<>el de vaisseaux supprim<69>s ^^
$fileVeh=split(' ',trim($newArray_veh));
$fileTemps_v=split(' ',trim($newArray_temps_v));
$temps_v=implode(' ',$fileTemps_v);
$veh=implode(' ',$fileVeh);
$pos=$_SESSION['pos'];
if($_GET['vai']=='e'){
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal', hydrogene='$hydrogene', temps_t='$temps_v', unit_t='$veh' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
}
else{
if(ereg('e,',implode(',',$fileVeh).',')){
$veh=' ';
$temps_v=' ';
}
if($_GET['vai']==9){
$metal+=$_GET['nb']*500;
$cristal+=$_GET['nb']*200;
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal', hydrogene='$hydrogene', temps_t='$temps_v', unit_t='$veh' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
}
elseif($_GET['vai']==10){
$metal+=$_GET['nb']*4000;
$cristal+=$_GET['nb']*2000;
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal', hydrogene='$hydrogene', temps_t='$temps_v', unit_t='$veh' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
}
elseif($_GET['vai']==11){
$metal+=$_GET['nb']*4500;
$cristal+=$_GET['nb']*800;
$hydrogene+=$_GET['nb']*600;
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal', hydrogene='$hydrogene', temps_t='$temps_v', unit_t='$veh' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
}
elseif($_GET['vai']==12){
$metal+=$_GET['nb']*12000;
$cristal+=$_GET['nb']*10000;
$hydrogene+=$_GET['nb']*1000;
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal', hydrogene='$hydrogene', temps_t='$temps_v', unit_t='$veh' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
}
elseif($_GET['vai']==13){
$metal+=$_GET['nb']*15000;
$cristal+=$_GET['nb']*9500;
$hydrogene+=$_GET['nb']*1500;
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal', hydrogene='$hydrogene', temps_t='$temps_v', unit_t='$veh' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");