forked from halo-battle/game
Version 0.10
This commit is contained in:
parent
73645ccc1f
commit
b9c240c781
246 changed files with 10218 additions and 1598 deletions
|
|
@ -7,10 +7,12 @@ $ss=$_SESSION['ss'];
|
|||
$pos=$_SESSION['pos'];
|
||||
$race=$_SESSION['race'];
|
||||
|
||||
require_once('bdd.php');
|
||||
require_once('noms.php');
|
||||
include_once('common.php');
|
||||
require('../connectBDD.php');
|
||||
|
||||
if (isset($_GET['type'])) $_POST['type'] = $_GET['type'];
|
||||
elseif (!isset($_POST['type'])) $_POST['type'] = '';
|
||||
|
||||
if ($_POST['type'] == 'e' && $labo >= 1 && !ereg('e,', implode(',',$fileVeh).',')) {
|
||||
$temps_v = '';
|
||||
$veh = 'e';
|
||||
|
|
@ -81,12 +83,12 @@ if (isset($veh) && $veh != '' && (!empty($nomterrn[$veh-1]) || $veh == 'e' || (i
|
|||
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'") or die ("erreur sql ".mysql_error());
|
||||
}
|
||||
else {
|
||||
header('Location: chantier_spatial.php?err=3');
|
||||
header('Location: defense.php?err=3');
|
||||
exit;
|
||||
}
|
||||
}
|
||||
mysql_close();
|
||||
$veh = $fileVeh[0];
|
||||
if (isset($_GET['go']) && $_GET['go'] == 1) header('Location: chantier_spatial.php?err=2');
|
||||
if (isset($_GET['go']) && $_GET['go'] == 1) header('Location: defense.php?err=2');
|
||||
else header('Location: defense.php');
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue