Version 0.7a

This commit is contained in:
nemunaire 2007-11-21 12:00:00 +01:00
commit d5c122a2c5
52 changed files with 893 additions and 760 deletions

View file

@ -5,9 +5,11 @@ require_once('bdd.php');
require('../connectBDD.php');
if ((time()) >= $temps_tec && !empty($temps_tec)) {
$anc = $tec;
$anc_temps_tec = $temps_tec;
switch ($tec) {
case 1: $informatique++; mysql_query("UPDATE user SET informatique='$informatique' WHERE id='$id'") or die ("erreur sql ".mysql_error()); break;
case 1: $informatique++; mysql_query("UPDATE user SET informatique='$informatique' WHERE id='$id'"); break;
case 2: $detection++; mysql_query("UPDATE user SET detection='$detection' WHERE id='$id'"); break;
case 3: $armement++; mysql_query("UPDATE user SET armement='$armement' WHERE id='$id'"); break;
case 4: $blindage++; mysql_query("UPDATE user SET blindage='$blindage' WHERE id='$id'"); break;
@ -37,6 +39,12 @@ if ((time()) >= $temps_tec && !empty($temps_tec)) {
if (count($fileTemps_t) == 0 || count($fileTemps_t) == 1 || count($fileTec) == 0) mysql_query("UPDATE user SET temps_t='', tec='' WHERE id='$id'") or die ("erreur sql ".mysql_error());
else mysql_query("UPDATE user SET temps_t='$temps_t', tec='$tec' WHERE id='$id'") or die ("erreur sql ".mysql_error());
if ($tec_boucle == true) {
header('Location: construction.php?temps_tec='.$anc_temps_tec.'&act=e&tec='.$anc);
exit;
}
}
}
mysql_close();
?>