Version 0.7
|
|
@ -1,94 +0,0 @@
|
|||
<?php
|
||||
session_start();
|
||||
|
||||
$id=$_SESSION['id'];
|
||||
$galaxy=$_SESSION['galaxy'];
|
||||
$ss=$_SESSION['ss'];
|
||||
$pos=$_SESSION['pos'];
|
||||
|
||||
require_once('bdd.php');
|
||||
require_once('noms.php');
|
||||
require('../connectBDD.php');
|
||||
|
||||
$req = mysql_query("SELECT * FROM flottes WHERE `id_user` = '$id'");
|
||||
while ($resultat = mysql_fetch_array($req)) {
|
||||
if (time() >= $resultat['start_time'] + $resultat['end_time'] && !empty($resultat['end_time'])) {
|
||||
$mission = $resultat['mission'];
|
||||
$end_galaxie = $resultat['end_galaxie'];
|
||||
$end_ss = $resultat['end_ss'];
|
||||
$end_position = $resultat['end_position'];
|
||||
if ($mission == 1) {
|
||||
$reqd = mysql_query("SELECT * FROM planete WHERE `galaxie` = '$end_galaxie' AND `ss` = '$end_ss' AND `position` = '$end_position'") or die ("erreur sql ".mysql_error());
|
||||
$resultatd = mysql_fetch_array($reqd);
|
||||
$ATvaisseau_1 = $resultat['vaisseau_1']; $ATvaisseau_2 = $resultat['vaisseau_2']; $ATvaisseau_3 = $resultat['vaisseau_3']; $ATvaisseau_4 = $resultat['vaisseau_4']; $ATvaisseau_5 = $resultat['vaisseau_5']; $ATvaisseau_6 = $resultat['vaisseau_6']; $ATvaisseau_7 = $resultat['vaisseau_7']; $ATvaisseau_8 = $resultat['vaisseau_8']; $ATvaisseau_9 = $resultat['vaisseau_9']; $ATvaisseau_10 = $resultat['vaisseau_10']; $ATvaisseau_11 = $resultat['vaisseau_11']; $ATvaisseau_12 = $resultat['vaisseau_12'];
|
||||
$ATnbvais = $ATvaisseau_1 + $ATvaisseau_2 + $ATvaisseau_3 + $ATvaisseau_4 + $ATvaisseau_5 + $ATvaisseau_6 + $ATvaisseau_7 + $ATvaisseau_8 + $ATvaisseau_9 + $ATvaisseau_10 + $ATvaisseau_11 + $ATvaisseau_12;
|
||||
$ENvaisseau_1 = $resultatd['vaisseau_1']; $ENvaisseau_2 = $resultatd['vaisseau_2']; $ENvaisseau_3 = $resultatd['vaisseau_3']; $ENvaisseau_4 = $resultatd['vaisseau_4']; $ENvaisseau_5 = $resultatd['vaisseau_5']; $ENvaisseau_6 = $resultatd['vaisseau_6']; $ENvaisseau_7 = $resultatd['vaisseau_7']; $ENvaisseau_8 = $resultatd['vaisseau_8']; $ENvaisseau_9 = $resultatd['vaisseau_9']; $ENvaisseau_10 = $resultatd['vaisseau_10']; $ENvaisseau_11 = $resultatd['vaisseau_11']; $ENvaisseau_12 = $resultatd['vaisseau_12'];
|
||||
$ENnbvais = $ENvaisseau_1 + $ENvaisseau_2 + $ENvaisseau_3 + $ENvaisseau_4 + $ENvaisseau_5 + $ENvaisseau_6 + $ENvaisseau_7 + $ENvaisseau_8 + $ENvaisseau_9 + $ENvaisseau_10 + $ENvaisseau_11 + $ENvaisseau_12;
|
||||
|
||||
$ATvais = ''; $ENvais = ''; $ATvais_pv = ''; $ENvais_pv = '';
|
||||
for ($i = 1; $i <= 12; $i++) {
|
||||
for ($j = 1; $j <= $resultat['vaisseau_'.$i]; $j++) { $ATvais .= $i.' '; $ATvais_pv .= $nomvais_pv[$i].' '; }
|
||||
for ($j = 1; $j <= $resultatd['vaisseau_'.$i]; $j++) { $ENvais .= $i.' '; $ENvais_pv .= $nomvais_pv[$i].' '; }
|
||||
}
|
||||
|
||||
//Calcul de la puissance d'attaque
|
||||
$ATpuissance = 0; $ENpuissance = 0;
|
||||
for ($i = 1; $i <= 12; $i++) {
|
||||
$ATpuissance += $resultat['vaisseau_'.$i] * $nomvais_at[$i-1];
|
||||
$ENpuissance += $resultatd['vaisseau_'.$i] * $nomvais_at[$i-1];
|
||||
}
|
||||
//Calcul de la puissance de défense
|
||||
$ATdefense = 0; $ENdefense = 0;
|
||||
for ($i = 1; $i <= 12; $i++) {
|
||||
$ATdefense += $resultat['vaisseau_'.$i] * $nomvais_bc[$i-1];
|
||||
$ENdefense += $resultatd['vaisseau_'.$i] * $nomvais_bc[$i-1];
|
||||
}
|
||||
//Calcul des pv
|
||||
$ATresistance = 0; $ENresistance = 0;
|
||||
for ($i = 1; $i <= 12; $i++) {
|
||||
$ATresistance += $resultat['vaisseau_'.$i] * $nomvais_pv[$i-1];
|
||||
$ENresistance += $resultatd['vaisseau_'.$i] * $nomvais_pv[$i-1];
|
||||
}
|
||||
print '<br>puissance d\'attaque attaquant : '.$ATpuissance;
|
||||
print '<br>puissance d\'attaque défenseur : '.$ENpuissance;
|
||||
print '<br>puissance de défense attaquant : '.$ATdefense;
|
||||
print '<br>puissance de défense défenseur : '.$ENdefense;
|
||||
print '<br>PV de l\'attaquant : '.$ATresistance;
|
||||
print '<br>PV du défenseur : '.$ENresistance;
|
||||
$gagne = false;
|
||||
while($gagne == false) {
|
||||
if ($ATpuissance >= $ENdefense + $ENresistance) {
|
||||
$gagne = true;
|
||||
}
|
||||
else {
|
||||
while($ATpuissance > 0){
|
||||
$vaisAT_type = rand(1,12);
|
||||
$vaisAT_bc = $nomvais_bc[$vaisAT_type];
|
||||
$vaisAT_pv = $nomvais_pv[$vaisAT_type];
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
elseif ($mission == 2) {
|
||||
$Cmetal = $resultat['contenu_metal'];
|
||||
$Ccristal = $resultat['contenu_cristal'];
|
||||
$Chydrogene = $resultat['contenu_hydrogene'];
|
||||
mysql_query("UPDATE `planete` SET `metal` = '$Cmetal', `cristal` = '$Ccristal', `hydrogene` = '$Chydrogene', WHERE `galaxie` = '$start_galaxie' AND `ss` = '$start_ss' AND `position` = '$start_position'");
|
||||
}
|
||||
}
|
||||
if (time() >= $resultat['start_time'] + $resultat['end_time'] * 2 && !empty($resultat['end_time']) && $mission != 0) {
|
||||
$start_galaxie = $resultat['start_galaxie'];
|
||||
$start_ss = $resultat['start_ss'];
|
||||
$start_position = $resultat['start_position'];
|
||||
$id_flotte = $resultat['id'];
|
||||
$reqP = mysql_query("SELECT * FROM planete WHERE `id_user` = '$id' AND `galaxie` = '$start_galaxie' AND `ss` = '$start_ss' AND `position` = '$start_position'");
|
||||
$resultatP = mysql_fetch_array($reqP);
|
||||
for($i = 1; $i <= 11; $i++) {
|
||||
${'Pvaisseaux_'.$i} = $resultatP['vaisseau_'.$i] + $resultat['vaisseau_'.$i];
|
||||
mysql_query("UPDATE `planete` SET `vaisseau_$i` = '${'Pvaisseaux_'.$i}' WHERE `id_user` = '$id' AND `galaxie` = '$start_galaxie' AND `ss` = '$start_ss' AND `position` = '$start_position'");
|
||||
}
|
||||
mysql_query("DELETE FROM `flottes` WHERE `id_user` = '$id' AND `id` = '$id_flotte'");
|
||||
}
|
||||
}
|
||||
?>
|
||||
126
pages/annul_tec.php
Normal file
|
|
@ -0,0 +1,126 @@
|
|||
<?php
|
||||
session_start();
|
||||
|
||||
$id=$_SESSION['id'];
|
||||
$galaxy=$_SESSION['galaxy'];
|
||||
$ss=$_SESSION['ss'];
|
||||
$pos=$_SESSION['pos'];
|
||||
$race=$_SESSION['race'];
|
||||
|
||||
require_once('bdd.php');
|
||||
require('../connectBDD.php');
|
||||
|
||||
if (isset($_GET['tec']) && intval($_GET['tec']) == $_GET['tec']) {
|
||||
$pos = strpos(implode(',', $fileTec).',', $_GET['tec'].',');
|
||||
if (!($pos === false)) {
|
||||
$newArray_tec = ''; $newArray_temps_t = $fileTemps_t[0].' ';
|
||||
for ($i=0 ; $i<count($fileTec) ; $i++) {
|
||||
if ($fileTec[$i] != $_GET['tec']) {
|
||||
$newArray_tec .= $fileTec[$i].' ';
|
||||
$newArray_temps_t .= $fileTemps_t[$i+1].' ';
|
||||
}
|
||||
elseif ($i == 0) $newArray_temps_t = time().' ';
|
||||
}
|
||||
$fileTec = split(' ', trim($newArray_tec));
|
||||
$fileTemps_t = split(' ', trim($newArray_temps_t));
|
||||
$temps_t = implode(' ', $fileTemps_t);
|
||||
$tec = implode(' ', $fileTec);
|
||||
|
||||
$pos=$_SESSION['pos'];
|
||||
if ($_GET['tec'] == 1) {
|
||||
$n=($informatique-1);
|
||||
$cristal += ceil(pow(2,$n)*500);
|
||||
$hydrogene += ceil(pow(2,$n)*150);
|
||||
mysql_query("UPDATE planete SET cristal='$cristal', hydrogene='$hydrogene' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'") or die ("erreur sql ".mysql_error());
|
||||
mysql_query("UPDATE user SET temps_t='$temps_t', tec='$tec' WHERE id='$id'") or die ("erreur sql ".mysql_error());
|
||||
}
|
||||
else if ($_GET['tec'] == 2) {
|
||||
$n=($detection-1);
|
||||
$metal += ceil(pow(2,$n)*500);
|
||||
$cristal += ceil(pow(2,$n)*750);
|
||||
$hydrogene += ceil(pow(2,$n)*100);
|
||||
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal', hydrogene='$hydrogene' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'") or die ("erreur sql ".mysql_error());
|
||||
mysql_query("UPDATE user SET temps_t='$temps_t', tec='$tec' WHERE id='$id'") or die ("erreur sql ".mysql_error());
|
||||
}
|
||||
else if ($_GET['tec'] == 3) {
|
||||
$n=($armement-1);
|
||||
$metal += ceil(pow(2,$n)*2500);
|
||||
$cristal += ceil(pow(2,$n)*500);
|
||||
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
mysql_query("UPDATE user SET temps_t='$temps_t', tec='$tec' WHERE id='$id'");
|
||||
}
|
||||
else if ($_GET['tec'] == 4) {
|
||||
$n=($blindage-1);
|
||||
$metal += ceil(pow(2,$n)*4000);
|
||||
$cristal += ceil(pow(2,$n)*1500);
|
||||
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
mysql_query("UPDATE user SET temps_t='$temps_t', tec='$tec' WHERE id='$id'");
|
||||
}
|
||||
else if ($_GET['tec'] == 5) {
|
||||
$n=($energie_t-1);
|
||||
$metal += ceil(pow(2,$n)*2000);
|
||||
$cristal += ceil(pow(2,$n)*1500);
|
||||
$hydrogene += ceil(pow(2,$n)*300);
|
||||
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal', hydrogene='$hydrogene' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
mysql_query("UPDATE user SET temps_t='$temps_t', tec='$tec' WHERE id='$id'");
|
||||
}
|
||||
else if ($_GET['tec'] == 6) {
|
||||
$n=($reacteur-1);
|
||||
$metal += ceil(pow(2,$n)*1400);
|
||||
$cristal += ceil(pow(2,$n)*400);
|
||||
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
mysql_query("UPDATE user SET temps_t='$temps_t', tec='$tec' WHERE id='$id'");
|
||||
}
|
||||
else if ($_GET['tec'] == 7) {
|
||||
$n=($reacteur_f-1);
|
||||
$metal += ceil(pow(2,$n)*3000);
|
||||
$cristal += ceil(pow(2,$n)*2100);
|
||||
$hydrogene += ceil(pow(2,$n)*750);
|
||||
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal', hydrogene='$hydrogene' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
mysql_query("UPDATE user SET temps_t='$temps_t', tec='$tec' WHERE id='$id'");
|
||||
}
|
||||
else if ($_GET['tec'] == 8) {
|
||||
$n=($reacteur_ff-1);
|
||||
$metal += ceil(pow(2,$n)*5000);
|
||||
$cristal += ceil(pow(2,$n)*4000);
|
||||
$hydrogene += ceil(pow(2,$n)*1500);
|
||||
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal', hydrogene='$hydrogene' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
mysql_query("UPDATE user SET temps_t='$temps_t', tec='$tec' WHERE id='$id'");
|
||||
}
|
||||
else if ($_GET['tec'] == 9) {
|
||||
$n=($medecine-1);
|
||||
$metal += ceil(pow(2,$n)*800);
|
||||
$cristal += ceil(pow(2,$n)*1000);
|
||||
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
mysql_query("UPDATE user SET temps_t='$temps_t', tec='$tec' WHERE id='$id'");
|
||||
}
|
||||
else if ($_GET['tec'] == 10) {
|
||||
$n=($tactique-1);
|
||||
$metal += ceil(pow(2,$n)*2600);
|
||||
$cristal += ceil(pow(2,$n)*2600);
|
||||
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
mysql_query("UPDATE user SET temps_t='$temps_t', tec='$tec' WHERE id='$id'");
|
||||
}
|
||||
else if ($_GET['tec'] == 11) {
|
||||
$n=($developpement-1);
|
||||
$metal += ceil(pow(2,$n)*10000);
|
||||
$cristal += ceil(pow(2,$n)*10000);
|
||||
$hydrogene += ceil(pow(2,$n)*5000);
|
||||
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal', hydrogene='$hydrogene' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
mysql_query("UPDATE user SET temps_t='$temps_t', tec='$tec' WHERE id='$id'");
|
||||
}
|
||||
else if ($_GET['tec'] == 12) {
|
||||
$n=($spartan-1);
|
||||
$metal += ceil(pow(3,$n)*5200);
|
||||
$cristal += ceil(pow(3,$n)*4250);
|
||||
$hydrogene += ceil(pow(3,$n)*850);
|
||||
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal', hydrogene='$hydrogene' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
mysql_query("UPDATE user SET temps_t='$temps_t', tec='$tec' WHERE id='$id'");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
mysql_close();
|
||||
@header("Location: laboratoire.php");
|
||||
?>
|
||||
|
|
@ -1,130 +0,0 @@
|
|||
<?php
|
||||
session_start();
|
||||
|
||||
$id=$_SESSION['id'];
|
||||
$galaxy=$_SESSION['galaxy'];
|
||||
$ss=$_SESSION['ss'];
|
||||
$pos=$_SESSION['pos'];
|
||||
$race=$_SESSION['race'];
|
||||
|
||||
require('bdd.php');
|
||||
require('../connectBDD.php');
|
||||
|
||||
if ($_GET['tec'] == 1) {
|
||||
$n=($informatique-1);
|
||||
$cristal += ceil(pow(2,$n)*500);
|
||||
$hydrogene += ceil(pow(2,$n)*150);
|
||||
$temps_t = 0;
|
||||
$tec = 0;
|
||||
mysql_query("UPDATE planete SET cristal='$cristal', hydrogene='$hydrogene' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
mysql_query("UPDATE user SET temps_t='$temps_t', tec='$tec' WHERE id='$id'");
|
||||
}
|
||||
else if ($_GET['tec'] == 2) {
|
||||
$n=($detection-1);
|
||||
$metal += ceil(pow(2,$n)*500);
|
||||
$cristal += ceil(pow(2,$n)*750);
|
||||
$hydrogene += ceil(pow(2,$n)*100);
|
||||
$temps_t = 0;
|
||||
$tec = 0;
|
||||
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal', hydrogene='$hydrogene' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
mysql_query("UPDATE user SET temps_t='$temps_t', tec='$tec' WHERE id='$id'");
|
||||
}
|
||||
else if ($_GET['tec'] == 3) {
|
||||
$n=($armement-1);
|
||||
$metal += ceil(pow(2,$n)*2500);
|
||||
$cristal += ceil(pow(2,$n)*500);
|
||||
$temps_t = 0;
|
||||
$tec = 0;
|
||||
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
mysql_query("UPDATE user SET temps_t='$temps_t', tec='$tec' WHERE id='$id'");
|
||||
}
|
||||
else if ($_GET['tec'] == 4) {
|
||||
$n=($blindage-1);
|
||||
$metal += ceil(pow(2,$n)*4000);
|
||||
$cristal += ceil(pow(2,$n)*1500);
|
||||
$temps_t = 0;
|
||||
$tec = 0;
|
||||
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
mysql_query("UPDATE user SET temps_t='$temps_t', tec='$tec' WHERE id='$id'");
|
||||
}
|
||||
else if ($_GET['tec'] == 5) {
|
||||
$n=($energie_t-1);
|
||||
$metal += ceil(pow(2,$n)*2000);
|
||||
$cristal += ceil(pow(2,$n)*1500);
|
||||
$hydrogene += ceil(pow(2,$n)*300);
|
||||
$temps_t = 0;
|
||||
$tec = 0;
|
||||
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal', hydrogene='$hydrogene' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
mysql_query("UPDATE user SET temps_t='$temps_t', tec='$tec' WHERE id='$id'");
|
||||
}
|
||||
else if ($_GET['tec'] == 6) {
|
||||
$n=($reacteur-1);
|
||||
$metal += ceil(pow(2,$n)*1400);
|
||||
$cristal += ceil(pow(2,$n)*400);
|
||||
$temps_t = 0;
|
||||
$tec = 0;
|
||||
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
mysql_query("UPDATE user SET temps_t='$temps_t', tec='$tec' WHERE id='$id'");
|
||||
}
|
||||
else if ($_GET['tec'] == 7) {
|
||||
$n=($reacteur_f-1);
|
||||
$metal += ceil(pow(2,$n)*3000);
|
||||
$cristal += ceil(pow(2,$n)*2100);
|
||||
$hydrogene += ceil(pow(2,$n)*750);
|
||||
$temps_t = 0;
|
||||
$tec = 0;
|
||||
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal', hydrogene='$hydrogene' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
mysql_query("UPDATE user SET temps_t='$temps_t', tec='$tec' WHERE id='$id'");
|
||||
}
|
||||
else if ($_GET['tec'] == 8) {
|
||||
$n=($reacteur_ff-1);
|
||||
$metal += ceil(pow(2,$n)*5000);
|
||||
$cristal += ceil(pow(2,$n)*4000);
|
||||
$hydrogene += ceil(pow(2,$n)*1500);
|
||||
$temps_t = 0;
|
||||
$tec = 0;
|
||||
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal', hydrogene='$hydrogene' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
mysql_query("UPDATE user SET temps_t='$temps_t', tec='$tec' WHERE id='$id'");
|
||||
}
|
||||
else if ($_GET['tec'] == 9) {
|
||||
$n=($medecine-1);
|
||||
$metal += ceil(pow(2,$n)*800);
|
||||
$cristal += ceil(pow(2,$n)*1000);
|
||||
$temps_t = 0;
|
||||
$tec = 0;
|
||||
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
mysql_query("UPDATE user SET temps_t='$temps_t', tec='$tec' WHERE id='$id'");
|
||||
}
|
||||
else if ($_GET['tec'] == 10) {
|
||||
$n=($tactique-1);
|
||||
$metal += ceil(pow(2,$n)*2600);
|
||||
$cristal += ceil(pow(2,$n)*2600);
|
||||
$temps_t = 0;
|
||||
$tec = 0;
|
||||
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
mysql_query("UPDATE user SET temps_t='$temps_t', tec='$tec' WHERE id='$id'");
|
||||
}
|
||||
else if ($_GET['tec'] == 11) {
|
||||
$n=($developpement-1);
|
||||
$metal += ceil(pow(2,$n)*10000);
|
||||
$cristal += ceil(pow(2,$n)*10000);
|
||||
$hydrogene += ceil(pow(2,$n)*5000);
|
||||
$temps_t = 0;
|
||||
$tec = 0;
|
||||
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal', hydrogene='$hydrogene' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
mysql_query("UPDATE user SET temps_t='$temps_t', tec='$tec' WHERE id='$id'");
|
||||
}
|
||||
else if ($_GET['tec'] == 12) {
|
||||
$n=($spartan-1);
|
||||
$metal += ceil(pow(3,$n)*5200);
|
||||
$cristal += ceil(pow(3,$n)*4250);
|
||||
$hydrogene += ceil(pow(3,$n)*850);
|
||||
$temps_t = 0;
|
||||
$tec = 0;
|
||||
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal', hydrogene='$hydrogene' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
mysql_query("UPDATE user SET temps_t='$temps_t', tec='$tec' WHERE id='$id'");
|
||||
}
|
||||
|
||||
mysql_close();
|
||||
@header("Location: laboratoire.php");
|
||||
?>
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
$id=$_SESSION['id'];
|
||||
|
|
@ -72,10 +72,10 @@ echo'</head>
|
|||
<body>
|
||||
|
||||
<table align=center id=tablo>
|
||||
<tr><td><a href=arbre_bat_covenant.php>Batiments</a> |
|
||||
<a href=arbre_techno_covenant.php>Technologies</a> |
|
||||
<a href=arbre_unitees_covenant.php>Caserne</a> |
|
||||
<a href=arbre_vehicules_covenant.php>Chantier terrestre</a> |
|
||||
<tr><td><a href=arbre_bat_covenant.php>Batiments</a> |
|
||||
<a href=arbre_techno_covenant.php>Technologies</a> |
|
||||
<a href=arbre_unitees_covenant.php>Caserne</a> |
|
||||
<a href=arbre_vehicules_covenant.php>Chantier terrestre</a> |
|
||||
<a href=arbre_vaisseaux_covenant.php>Chantier spatial</a></td></tr></table>
|
||||
|
||||
<table align=center>
|
||||
|
|
@ -87,73 +87,73 @@ echo'</head>
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Purificateur de métal</a></td>
|
||||
<td class=c><a href="descriptions.php?bat=0">Purificateur de métal</a></td>
|
||||
<td class=d>'.$mine_m.'</td>
|
||||
<td class=e><font color=#00CC99>Débloqué</font></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Purificateur de cristal</a></td>
|
||||
<td class=c><a href="descriptions.php?bat=1">Purificateur de cristal</a></td>
|
||||
<td class=d>'.$mine_c.'</td>
|
||||
<td class=e><font color=#00CC99>Débloqué</font></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Ionisateur</a></td>
|
||||
<td class=c><a href="descriptions.php?bat=2">Ionisateur</a></td>
|
||||
<td class=d>'.$mine_h.'</td>
|
||||
<td class=e><font color=#00CC99>Débloqué</font></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Centrale solaire</a></td>
|
||||
<td class=c><a href="descriptions.php?bat=3">Centrale solaire</a></td>
|
||||
<td class=d>'.$centrale_s.'</td>
|
||||
<td class=e><font color=#00CC99>Débloqué</font></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Centrale de fusion</a></td>
|
||||
<td class=c><a href="descriptions.php?bat=4">Centrale de fusion</a></td>
|
||||
<td class=d>'.$centrale_f.'</td>
|
||||
<td class=e>'; @techno(Energie,$energie_t, 5); echo'<br>'; @techno('Centrale solaire',$centrale_s, 12); echo'</td>
|
||||
<td class=e>'; @techno("Maitrise de l'énergie",$energie_t, 5); echo'<br>'; @techno('Centrale solaire',$centrale_s, 12); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Oeil des prophètes</a></td>
|
||||
<td class=c><a href="descriptions.php?bat=5">Oeil des prophètes</a></td>
|
||||
<td class=d>'.$radar.'</td>
|
||||
<td class=e>'; @techno(Détection,$detection, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Centre de recherches</a></td>
|
||||
<td class=c><a href="descriptions.php?bat=6">Centre de recherches</a></td>
|
||||
<td class=d>'.$labo.'</td>
|
||||
<td class=e><font color=#00CC99 >Débloqué</font></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Chantier terrestre</a></td>
|
||||
<td class=c><a href="descriptions.php?bat=7">Chantier terrestre</a></td>
|
||||
<td class=d>'.$chantier_terrestre.'</td>
|
||||
<td class=e><font color=#00CC99 >Débloqué</font></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Chantier spatial</a></td>
|
||||
<td class=c><a href="descriptions.php?bat=8">Chantier spatial</a></td>
|
||||
<td class=d>'.$chantier_spatial.'</td>
|
||||
<td class=e>'; @techno('Chantier terrestre',$chantier_terrestre, 2); echo'</font></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Caserne</a></td>
|
||||
<td class=c><a href="descriptions.php?bat=9">Caserne</a></td>
|
||||
<td class=d>'.$caserne.'</td>
|
||||
<td class=e><font color=#00CC99 >Débloqué</font></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Entrepôt</a></td>
|
||||
<td class=c><a href="descriptions.php?bat=10">Entrepôt</a></td>
|
||||
<td class=d>'.$silo.'</td>
|
||||
<td class=e><font color=#00CC99 >Débloqué</font></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Centrale informatique</a></td>
|
||||
<td class=c><a href="descriptions.php?bat=11">Centrale informatque</a></td>
|
||||
<td class=d>'.$centre_info.'</td>
|
||||
<td class=e>'; @techno('Informatique',$informatique, 2); echo'</td>
|
||||
</tr>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
$id=$_SESSION['id'];
|
||||
|
|
@ -72,10 +72,10 @@ echo'</head>
|
|||
<body>
|
||||
|
||||
<table align=center id=tablo>
|
||||
<tr><td><a href=arbre_bat_humain.php>Batiments</a> |
|
||||
<a href=arbre_techno_humain.php>Technologies</a> |
|
||||
<a href=arbre_unitees_humain.php>Ecole militaire</a> |
|
||||
<a href=arbre_vehicules_humain.php>Chantier terrestre</a> |
|
||||
<tr><td><a href=arbre_bat_humain.php>Batiments</a> |
|
||||
<a href=arbre_techno_humain.php>Technologies</a> |
|
||||
<a href=arbre_unitees_humain.php>Ecole militaire</a> |
|
||||
<a href=arbre_vehicules_humain.php>Chantier terrestre</a> |
|
||||
<a href=arbre_vaisseaux_humain.php>Chantier spatial</a></td></tr></table>
|
||||
|
||||
<table align=center>
|
||||
|
|
@ -87,73 +87,73 @@ echo'</head>
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Usine de méttalurgie</a></td>
|
||||
<td class=c><a href="descriptions.php?bat=0">Usine de méttalurgie</a></td>
|
||||
<td class=d>'.$mine_m.'</td>
|
||||
<td class=e><font color=#00CC99>Débloqué</font></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Usine de cristal</a></td>
|
||||
<td class=c><a href="descriptions.php?bat=1">Usine de cristal</a></td>
|
||||
<td class=d>'.$mine_c.'</td>
|
||||
<td class=e><font color=#00CC99>Débloqué</font></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Synchronisateur d\'hydrogène</a></td>
|
||||
<td class=c><a href="descriptions.php?bat=2">Synchronisateur d\'hydrogène</a></td>
|
||||
<td class=d>'.$mine_h.'</td>
|
||||
<td class=e><font color=#00CC99>Débloqué</font></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Centrale solaire</a></td>
|
||||
<td class=c><a href="descriptions.php?bat=3">Centrale solaire</a></td>
|
||||
<td class=d>'.$centrale_s.'</td>
|
||||
<td class=e><font color=#00CC99>Débloqué</font></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Centrale énergetique</a></td>
|
||||
<td class=c><a href="descriptions.php?bat=4">Centrale énergetique</a></td>
|
||||
<td class=d>'.$centrale_f.'</td>
|
||||
<td class=e>'; @techno('Maitrise de l\'energie',$energie_t, 5); echo'<br>'; @techno('Centrale solaire',$centrale_s, 12); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Base radar</a></td>
|
||||
<td class=c><a href="descriptions.php?bat=5">Base radar</a></td>
|
||||
<td class=d>'.$radar.'</td>
|
||||
<td class=e>'; @techno(Radar,$detection, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Laboratoire</a></td>
|
||||
<td class=c><a href="descriptions.php?bat=6">Laboratoire</a></td>
|
||||
<td class=d>'.$labo.'</td>
|
||||
<td class=e><font color=#00CC99 >Débloqué</font></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Chantier terrestre</a></td>
|
||||
<td class=c><a href="descriptions.php?bat=7">Chantier terrestre</a></td>
|
||||
<td class=d>'.$chantier_terrestre.'</td>
|
||||
<td class=e><font color=#00CC99 >Débloqué</font></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Chantier spatial</a></td>
|
||||
<td class=c><a href="descriptions.php?bat=8">Chantier spatial</a></td>
|
||||
<td class=d>'.$chantier_spatial.'</td>
|
||||
<td class=e>'; @techno('Chantier terrestre',$chantier_terrestre, 2); echo'</font></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Ecole militaire</a></td>
|
||||
<td class=c><a href="descriptions.php?bat=9">Ecole militaire</a></td>
|
||||
<td class=d>'.$caserne.'</td>
|
||||
<td class=e><font color=#00CC99 >Débloqué</font></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Silo de stockage</a></td>
|
||||
<td class=c><a href="descriptions.php?bat=10">Silo de stockage</a></td>
|
||||
<td class=d>'.$silo.'</td>
|
||||
<td class=e><font color=#00CC99 >Débloqué</font></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Centrale informatique</a></td>
|
||||
<td class=c><a href="descriptions.php?bat=11">Centrale informatque</a></td>
|
||||
<td class=d>'.$centre_info.'</td>
|
||||
<td class=e>'; @techno('IA',$informatique, 2); echo'</td>
|
||||
</tr>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
$id=$_SESSION['id'];
|
||||
|
|
@ -72,10 +72,10 @@ echo'</head>
|
|||
<body>
|
||||
|
||||
<table align=center id=tablo>
|
||||
<tr><td><a href=arbre_bat_covenant.php>Batiments</a> |
|
||||
<a href=arbre_techno_covenant.php>Technologies</a> |
|
||||
<a href=arbre_unitees_covenant.php>Caserne</a> |
|
||||
<a href=arbre_vehicules_covenant.php>Chantier terrestre</a> |
|
||||
<tr><td><a href=arbre_bat_covenant.php>Batiments</a> |
|
||||
<a href=arbre_techno_covenant.php>Technologies</a> |
|
||||
<a href=arbre_unitees_covenant.php>Caserne</a> |
|
||||
<a href=arbre_vehicules_covenant.php>Chantier terrestre</a> |
|
||||
<a href=arbre_vaisseaux_covenant.php>Chantier spatial</a></td></tr></table>
|
||||
|
||||
<table align=center>
|
||||
|
|
@ -87,43 +87,43 @@ echo'</head>
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Informatique</a></td>
|
||||
<td class=c><a href=descriptions.php>Informatique</a></td>
|
||||
<td class=d>'.$informatique.'</td>
|
||||
<td class=e>'; @techno('Centre de recherches',$labo, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Détection</a></td>
|
||||
<td class=c><a href=descriptions.php>Détection</a></td>
|
||||
<td class=d>'.$detection.'</td>
|
||||
<td class=e>'; @techno('Centre de recherches',$labo, 2); echo'<br>'; @techno(Informatique ,$informatique, 2); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Armement</a></td>
|
||||
<td class=c><a href=descriptions.php>Armement</a></td>
|
||||
<td class=d>'.$armement.'</td>
|
||||
<td class=e>'; @techno('Centre de recherches',$labo, 5); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Bouclier</a></td>
|
||||
<td class=c><a href=descriptions.php>Bouclier</a></td>
|
||||
<td class=d>'.$blindage.'</td>
|
||||
<td class=e>'; @techno('Centre de recherches',$labo, 4); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Maitrise de l\'énergie</a></td>
|
||||
<td class=c><a href=descriptions.php>Maitrise de l\'énergie</a></td>
|
||||
<td class=d>'.$energie_t.'</td>
|
||||
<td class=e>'; @techno('Centre de recherches',$labo, 2); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Réacteur à antigravité</a></td>
|
||||
<td class=c><a href=descriptions.php>Réacteur à antigravité</a></td>
|
||||
<td class=d>'.$reacteur.'</td>
|
||||
<td class=e>'; @techno('Centre de recherches',$labo, 2); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Réacteur à fusion</a></td>
|
||||
<td class=c><a href=descriptions.php>Réacteur à fusion</a></td>
|
||||
<td class=d>'.$reacteur_f.'</td>
|
||||
<td class=e>'; @techno('Centre de recherches',$labo, 4); echo'<br>';
|
||||
@techno("Maitrise de l'énergie",$energie_t, 2); echo'<br>';
|
||||
|
|
@ -131,7 +131,7 @@ echo'</head>
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Réacteur à fusion Forruneur</a></td>
|
||||
<td class=c><a href=descriptions.php>Réacteur à fusion Forruneur</a></td>
|
||||
<td class=d>'.$reacteur_ff.'</td>
|
||||
<td class=e>'; @techno('Centre de recherches',$labo, 6); echo'<br>';
|
||||
@techno("Maitrise de l'énergie",$energie_t, 5); echo'<br>';
|
||||
|
|
@ -139,13 +139,13 @@ echo'</head>
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Médecine</a></td>
|
||||
<td class=c><a href=descriptions.php>Médecine</a></td>
|
||||
<td class=d>'.$medecine.'</td>
|
||||
<td class=e>'; @techno('Centre de recherches',$labo, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Commandemant militaire</a></td>
|
||||
<td class=c><a href=descriptions.php>Commandemant militaire</a></td>
|
||||
<td class=d>'.$tactique.'</td>
|
||||
<td class=e>'; @techno('Centre de recherches',$labo, 3); echo'</td>
|
||||
</tr>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
$id=$_SESSION['id'];
|
||||
|
|
@ -72,10 +72,10 @@ echo'</head>
|
|||
<body>
|
||||
|
||||
<table align=center id=tablo>
|
||||
<tr><td><a href=arbre_bat_humain.php>Batiments</a> |
|
||||
<a href=arbre_techno_humain.php>Technologies</a> |
|
||||
<a href=arbre_unitees_humain.php>Ecole militaire</a> |
|
||||
<a href=arbre_vehicules_humain.php>Chantier terrestre</a> |
|
||||
<tr><td><a href=arbre_bat_humain.php>Batiments</a> |
|
||||
<a href=arbre_techno_humain.php>Technologies</a> |
|
||||
<a href=arbre_unitees_humain.php>Ecole militaire</a> |
|
||||
<a href=arbre_vehicules_humain.php>Chantier terrestre</a> |
|
||||
<a href=arbre_vaisseaux_humain.php>Chantier spatial</a></td></tr></table>
|
||||
|
||||
<table align=center>
|
||||
|
|
@ -87,43 +87,43 @@ echo'</head>
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>IA</a></td>
|
||||
<td class=c><a href=descriptions.php>IA</a></td>
|
||||
<td class=d>'.$informatique.'</td>
|
||||
<td class=e>'; @techno('Laboratoire',$labo, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Radar</a></td>
|
||||
<td class=c><a href=descriptions.php>Radar</a></td>
|
||||
<td class=d>'.$detection.'</td>
|
||||
<td class=e>'; @techno('Laboratoire',$labo, 2); echo'<br>'; @techno(IA ,$informatique, 2); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Armement</a></td>
|
||||
<td class=c><a href=descriptions.php>Armement</a></td>
|
||||
<td class=d>'.$armement.'</td>
|
||||
<td class=e>'; @techno('Laboratoire',$labo, 5); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Blindage</a></td>
|
||||
<td class=c><a href=descriptions.php>Blindage</a></td>
|
||||
<td class=d>'.$blindage.'</td>
|
||||
<td class=e>'; @techno('Laboratoire',$labo, 4); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Maitrise de l\'énergie</a></td>
|
||||
<td class=c><a href=descriptions.php>Maitrise de l\'énergie</a></td>
|
||||
<td class=d>'.$energie_t.'</td>
|
||||
<td class=e>'; @techno('Laboratoire',$labo, 2); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Réacteur à combustion</a></td>
|
||||
<td class=c><a href=descriptions.php>Réacteur à combustion</a></td>
|
||||
<td class=d>'.$reacteur.'</td>
|
||||
<td class=e>'; @techno('Laboratoire',$labo, 2); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Réacteur à fusion</a></td>
|
||||
<td class=c><a href=descriptions.php>Réacteur à fusion</a></td>
|
||||
<td class=d>'.$reacteur_f.'</td>
|
||||
<td class=e>'; @techno('Laboratoire',$labo, 4); echo'<br>';
|
||||
@techno("Maitrise de l'énergie",$energie_t, 2); echo'<br>';
|
||||
|
|
@ -131,7 +131,7 @@ echo'</head>
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Réacteur à fusion de type II</a></td>
|
||||
<td class=c><a href=descriptions.php>Réacteur à fusion de type II</a></td>
|
||||
<td class=d>'.$reacteur_ff.'</td>
|
||||
<td class=e>'; @techno('Laboratoire',$labo, 6); echo'<br>';
|
||||
@techno("Maitrise de l'énergie",$energie_t, 5); echo'<br>';
|
||||
|
|
@ -139,13 +139,13 @@ echo'</head>
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Médecine</a></td>
|
||||
<td class=c><a href=descriptions.php>Médecine</a></td>
|
||||
<td class=d>'.$medecine.'</td>
|
||||
<td class=e>'; @techno('Laboratoire',$labo, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Spartan</a></td>
|
||||
<td class=c><a href=descriptions.php>Spartan</a></td>
|
||||
<td class=d>'.$spartan.'</td>
|
||||
<td class=e>'; @techno('Laboratoire',$labo, 8); echo'<br>';
|
||||
@techno("Médecine",$medecine, 5); echo'<br>';
|
||||
|
|
@ -153,7 +153,7 @@ echo'</head>
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Commandemant militaire</a></td>
|
||||
<td class=c><a href=descriptions.php>Commandemant militaire</a></td>
|
||||
<td class=d>'.$tactique.'</td>
|
||||
<td class=e>'; @techno('Laboratoire',$labo, 3); echo'</td>
|
||||
</tr>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
$id=$_SESSION['id'];
|
||||
|
|
@ -72,10 +72,10 @@ echo'</head>
|
|||
<body>
|
||||
|
||||
<table align=center id=tablo>
|
||||
<tr><td><a href=arbre_bat_covenant.php>Batiments</a> |
|
||||
<a href=arbre_techno_covenant.php>Technologies</a> |
|
||||
<a href=arbre_unitees_covenant.php>Caserne</a> |
|
||||
<a href=arbre_vehicules_covenant.php>Chantier terrestre</a> |
|
||||
<tr><td><a href=arbre_bat_covenant.php>Batiments</a> |
|
||||
<a href=arbre_techno_covenant.php>Technologies</a> |
|
||||
<a href=arbre_unitees_covenant.php>Caserne</a> |
|
||||
<a href=arbre_vehicules_covenant.php>Chantier terrestre</a> |
|
||||
<a href=arbre_vaisseaux_covenant.php>Chantier spatial</a></td></tr></table>
|
||||
|
||||
<table align=center>
|
||||
|
|
@ -86,49 +86,49 @@ echo'</head>
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Grunt</a></td>
|
||||
<td class=c><a href=descriptions.php>Grunt</a></td>
|
||||
<td class=e>'; @techno(Caserne,$caserne, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Jackal</a></td>
|
||||
<td class=c><a href=descriptions.php>Jackal</a></td>
|
||||
<td class=e>'; @techno(Caserne,$caserne, 2); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Drone</a></td>
|
||||
<td class=c><a href=descriptions.php>Drone</a></td>
|
||||
<td class=e>'; @techno(Caserne,$caserne, 2); echo'<br>'; @techno(Armement,$armement, 2); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Elite</a></td>
|
||||
<td class=c><a href=descriptions.php>Elite</a></td>
|
||||
<td class=e>'; @techno(Caserne,$caserne, 5); echo'<br>'; @techno(Armement,$armement, 3);
|
||||
echo'<br>'; @techno("Commandement militaire",$tactique,2); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Sniper</a></td>
|
||||
<td class=c><a href=descriptions.php>Sniper</a></td>
|
||||
<td class=e>'; @techno(Caserne,$caserne, 3); echo'<br>'; @techno(Armement,$armement, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Hunter</a></td>
|
||||
<td class=c><a href=descriptions.php>Hunter</a></td>
|
||||
<td class=e>'; @techno(Caserne,$caserne, 10); echo'<br>'; @techno(Armement,$armement, 5);
|
||||
echo'<br>'; @techno(Bouclier,$blindage, 5); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Médecin</a></td>
|
||||
<td class=c><a href=descriptions.php>Médecin</a></td>
|
||||
<td class=e>'; @techno(Caserne,$caserne, 2); echo'<br>'; @techno(Médecine,$medecine, 2); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Ingénieur</a></td>
|
||||
<td class=c><a href=descriptions.php>Ingénieur</a></td>
|
||||
<td class=e>'; @techno(Caserne,$caserne, 2); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Brute</a></td>
|
||||
<td class=c><a href=descriptions.php>Brute</a></td>
|
||||
<td class=e>'; @techno(Caserne,$caserne, 5); echo'<br>'; @techno(Armement,$armement, 4);
|
||||
echo'<br>'; @techno(Bouclier,$blindage, 2); echo'</td>
|
||||
</tr>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
$id=$_SESSION['id'];
|
||||
|
|
@ -72,10 +72,10 @@ echo'</head>
|
|||
<body>
|
||||
|
||||
<table align=center id=tablo>
|
||||
<tr><td><a href=arbre_bat_humain.php>Batiments</a> |
|
||||
<a href=arbre_techno_humain.php>Technologies</a> |
|
||||
<a href=arbre_unitees_humain.php>Ecole militaire</a> |
|
||||
<a href=arbre_vehicules_humain.php>Chantier terrestre</a> |
|
||||
<tr><td><a href=arbre_bat_humain.php>Batiments</a> |
|
||||
<a href=arbre_techno_humain.php>Technologies</a> |
|
||||
<a href=arbre_unitees_humain.php>Ecole militaire</a> |
|
||||
<a href=arbre_vehicules_humain.php>Chantier terrestre</a> |
|
||||
<a href=arbre_vaisseaux_humain.php>Chantier spatial</a></td></tr></table>
|
||||
|
||||
<table align=center>
|
||||
|
|
@ -86,49 +86,49 @@ echo'</head>
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Marine</a></td>
|
||||
<td class=c><a href=descriptions.php>Marine</a></td>
|
||||
<td class=e>'; @techno('Ecole militaire',$caserne, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Fusiller</a></td>
|
||||
<td class=c><a href=descriptions.php>Fusiller</a></td>
|
||||
<td class=e>'; @techno('Ecole militaire',$caserne, 2); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Grenadier</a></td>
|
||||
<td class=c><a href=descriptions.php>Grenadier</a></td>
|
||||
<td class=e>'; @techno('Ecole militaire',$caserne, 2); echo'<br>'; @techno(Armement,$armement, 2); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>TCAO</a></td>
|
||||
<td class=c><a href=descriptions.php>TCAO</a></td>
|
||||
<td class=e>'; @techno('Ecole militaire',$caserne, 5); echo'<br>'; @techno(Armement,$armement, 3);
|
||||
echo'<br>'; @techno("Tactiques de combats",$tactique,2); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Sniper</a></td>
|
||||
<td class=c><a href=descriptions.php>Sniper</a></td>
|
||||
<td class=e>'; @techno('Ecole militaire',$caserne, 3); echo'<br>'; @techno(Armement,$armement, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Spartan</a></td>
|
||||
<td class=c><a href=descriptions.php>Spartan</a></td>
|
||||
<td class=e>'; @techno('Ecole militaire',$caserne, 10); echo'<br>'; @techno(Armement,$armement, 7);
|
||||
echo'<br>'; @techno(Blindage,$blindage, 7); echo'<br>'; @techno("Tactiques de combats",$tactique,2); echo'<br>'; echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Médecin</a></td>
|
||||
<td class=c><a href=descriptions.php>Médecin</a></td>
|
||||
<td class=e>'; @techno('Ecole militaire',$caserne, 2); echo'<br>'; @techno(Médecine,$medecine, 2); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Ingénieur</a></td>
|
||||
<td class=c><a href=descriptions.php>Ingénieur</a></td>
|
||||
<td class=e>'; @techno('Ecole militaire',$caserne, 2); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Marine exosquelette</a></td>
|
||||
<td class=c><a href=descriptions.php>Marine exosquelette</a></td>
|
||||
<td class=e>'; @techno('Ecole militaire',$caserne, 5); echo'<br>'; @techno(Armement,$armement, 4);
|
||||
echo'<br>'; @techno(Blindage,$blindage, 2); echo'</td>
|
||||
</tr>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
$id=$_SESSION['id'];
|
||||
|
|
@ -72,10 +72,10 @@ echo'</head>
|
|||
<body>
|
||||
|
||||
<table align=center id=tablo>
|
||||
<tr><td><a href=arbre_bat_covenant.php>Batiments</a> |
|
||||
<a href=arbre_techno_covenant.php>Technologies</a> |
|
||||
<a href=arbre_unitees_covenant.php>Caserne</a> |
|
||||
<a href=arbre_vehicules_covenant.php>Chantier terrestre</a> |
|
||||
<tr><td><a href=arbre_bat_covenant.php>Batiments</a> |
|
||||
<a href=arbre_techno_covenant.php>Technologies</a> |
|
||||
<a href=arbre_unitees_covenant.php>Caserne</a> |
|
||||
<a href=arbre_vehicules_covenant.php>Chantier terrestre</a> |
|
||||
<a href=arbre_vaisseaux_covenant.php>Chantier spatial</a></td></tr></table>
|
||||
|
||||
<table align=center>
|
||||
|
|
@ -86,63 +86,63 @@ echo'</head>
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Transporteur</a></td>
|
||||
<td class=c><a href=descriptions.php>Cargos de classe Inquisitor</a></td>
|
||||
<td class=e>'; @techno("Chantier spatial",$chantier_spatial, 1); echo'<br>'; @techno("Réacteur à antigravité",$reacteur, 4); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Grand transporteur</a></td>
|
||||
<td class=c><a href=descriptions.php>Cargos de classe Interdictorr</a></td>
|
||||
<td class=e>'; @techno("Chantier spatial",$chantier_spatial, 5); echo'<br>'; @techno("Réacteur de fusion",$reacteur_f, 2); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Vaisseau de colonisation</a></td>
|
||||
<td class=c><a href=descriptions.php>Vaisseau de colonisation de classe Returning</a></td>
|
||||
<td class=e>'; @techno("Chantier spatial",$chantier_spatial, 5); echo'<br>'; @techno("Réacteur de fusion Forruneur",$reacteur_ff, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Sonde</a></td>
|
||||
<td class=c><a href=descriptions.php>Sonde de reconnaissance de classe Perception</a></td>
|
||||
<td class=e>'; @techno("Chantier spatial",$chantier_spatial, 3); echo'<br>'; @techno("Réacteur à antigravité",$reacteur, 5);
|
||||
echo'<br>'; @techno(Détection,$detection, 2); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Recycleur</a></td>
|
||||
<td class=e>'; @techno("Chantier spatial",$chantier_spatial, 5); echo'<br>'; @techno("Réacteur de fusion",$reacteur_f, 4);
|
||||
<td class=c><a href=descriptions.php>Charognard</a></td>
|
||||
<td class=e>'; @techno("Chantier spatial",$chantier_spatial, 5); echo'<br>'; @techno("Réacteur de fusion",$reacteur_f, 4);
|
||||
echo'<br>'; @techno(Bouclier,$blindage, 5); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Seraph</a></td>
|
||||
<td class=c><a href=descriptions.php>Seraph</a></td>
|
||||
<td class=e>'; @techno("Chantier spatial",$chantier_spatial, 1); echo'<br>'; @techno("Réacteur à antigravité",$reacteur, 4); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Frégate</a></td>
|
||||
<td class=c><a href=descriptions.php>Frégate</a></td>
|
||||
<td class=e>'; @techno("Chantier spatial",$chantier_spatial, 3); echo'<br>'; @techno("Réacteur de fusion",$reacteur_f, 3);
|
||||
echo'<br>'; @techno(Armement,$armement, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Croiseur de classe CSS</a></td>
|
||||
<td class=c><a href=descriptions.php>Croiseur de classe CSS</a></td>
|
||||
<td class=e>'; @techno("Chantier spatial",$chantier_spatial, 6); echo'<br>'; @techno("Réacteur de fusion Forruneur",$reacteur_ff, 2);
|
||||
echo'<br>'; @techno(Armement,$armement, 3); echo'<br>'; @techno(Bouclier,$blindage, 4); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Croiseur de classe Reverence</a></td>
|
||||
<td class=c><a href=descriptions.php>Croiseur de classe Reverence</a></td>
|
||||
<td class=e>'; @techno("Chantier spatial",$chantier_spatial, 6); echo'<br>'; @techno("Réacteur de fusion Forruneur",$reacteur_ff, 3);
|
||||
echo'<br>'; @techno(Armement,$armement, 4); echo'<br>'; @techno(Bouclier,$blindage, 4); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Porte vaisseaux</a></td>
|
||||
<td class=c><a href=descriptions.php>Porte vaisseaux</a></td>
|
||||
<td class=e>'; @techno("Chantier spatial",$chantier_spatial, 8); echo'<br>'; @techno("Réacteur de fusion Forruneur",$reacteur_ff, 5);
|
||||
echo'<br>'; @techno(Armement,$armement, 6); echo'<br>'; @techno(Bouclier,$blindage, 6); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Station orbitale covenant</a></td>
|
||||
<td class=c><a href=descriptions.php>Station orbitale covenant</a></td>
|
||||
<td class=e>'; @techno("Chantier spatial",$chantier_spatial, 12); echo'<br>'; @techno("Réacteur de fusion Forruneur",$reacteur_ff, 10);
|
||||
echo'<br>'; @techno(Armement,$armement, 12); echo'<br>'; @techno(Bouclier,$blindage, 12); echo'</td>
|
||||
</tr>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
$id=$_SESSION['id'];
|
||||
|
|
@ -72,10 +72,10 @@ echo'</head>
|
|||
<body>
|
||||
|
||||
<table align=center id=tablo>
|
||||
<tr><td><a href=arbre_bat_humain.php>Batiments</a> |
|
||||
<a href=arbre_techno_humain.php>Technologies</a> |
|
||||
<a href=arbre_unitees_humain.php>Ecole militaire</a> |
|
||||
<a href=arbre_vehicules_humain.php>Chantier terrestre</a> |
|
||||
<tr><td><a href=arbre_bat_humain.php>Batiments</a> |
|
||||
<a href=arbre_techno_humain.php>Technologies</a> |
|
||||
<a href=arbre_unitees_humain.php>Ecole militaire</a> |
|
||||
<a href=arbre_vehicules_humain.php>Chantier terrestre</a> |
|
||||
<a href=arbre_vaisseaux_humain.php>Chantier spatial</a></td></tr></table>
|
||||
|
||||
<table align=center>
|
||||
|
|
@ -86,63 +86,63 @@ echo'</head>
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Cargos de classe Parabola</a></td>
|
||||
<td class=c><a href=descriptions.php>Cargos de classe Parabola</a></td>
|
||||
<td class=e>'; @techno("Chantier spatial",$chantier_spatial, 1); echo'<br>'; @techno("Réacteur à combustion",$reacteur, 4); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Cargos de classe Laden</a></td>
|
||||
<td class=c><a href=descriptions.php>Cargos de classe Laden</a></td>
|
||||
<td class=e>'; @techno("Chantier spatial",$chantier_spatial, 5); echo'<br>'; @techno("Réacteur de fusion",$reacteur_f, 2); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Vaisseau de colonisation de classe Odyssey</a></td>
|
||||
<td class=c><a href=descriptions.php>Vaisseau de colonisation de classe Odyssey</a></td>
|
||||
<td class=e>'; @techno("Chantier spatial",$chantier_spatial, 5); echo'<br>'; @techno("Réacteur de fusion de type II",$reacteur_ff, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Drones d’espionnage de classe Clarion</a></td>
|
||||
<td class=c><a href=descriptions.php>Drones d’espionnage de classe Clarion</a></td>
|
||||
<td class=e>'; @techno("Chantier spatial",$chantier_spatial, 3); echo'<br>'; @techno("Réacteur à cmbustion",$reacteur, 5);
|
||||
echo'<br>'; @techno(Radar,$detection, 2); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Recycleur de classe Minotaure</a></td>
|
||||
<td class=e>'; @techno("Chantier spatial",$chantier_spatial, 5); echo'<br>'; @techno("Réacteur de fusion",$reacteur_f, 4);
|
||||
<td class=c><a href=descriptions.php>Recycleur de classe Minotaure</a></td>
|
||||
<td class=e>'; @techno("Chantier spatial",$chantier_spatial, 5); echo'<br>'; @techno("Réacteur de fusion",$reacteur_f, 4);
|
||||
echo'<br>'; @techno(Blindage,$blindage, 5); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>C079 Longsword Interceptor</a></td>
|
||||
<td class=c><a href=descriptions.php>C079 Longsword Interceptor</a></td>
|
||||
<td class=e>'; @techno("Chantier spatial",$chantier_spatial, 1); echo'<br>'; @techno("Réacteur à combustion",$reacteur, 4); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Frégate</a></td>
|
||||
<td class=c><a href=descriptions.php>Frégate</a></td>
|
||||
<td class=e>'; @techno("Chantier spatial",$chantier_spatial, 3); echo'<br>'; @techno("Réacteur de fusion",$reacteur_f, 3);
|
||||
echo'<br>'; @techno(Armement,$armement, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Croiseur de classe Halcyon</a></td>
|
||||
<td class=c><a href=descriptions.php>Croiseur de classe Halcyon</a></td>
|
||||
<td class=e>'; @techno("Chantier spatial",$chantier_spatial, 6); echo'<br>'; @techno("Réacteur de fusion de type II",$reacteur_ff, 2);
|
||||
echo'<br>'; @techno(Armement,$armement, 3); echo'<br>'; @techno(Blindage,$blindage, 4); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Croiseur de classe Marathon</a></td>
|
||||
<td class=c><a href=descriptions.php>Croiseur de classe Marathon</a></td>
|
||||
<td class=e>'; @techno("Chantier spatial",$chantier_spatial, 6); echo'<br>'; @techno("Réacteur de fusion de type II",$reacteur_ff, 3);
|
||||
echo'<br>'; @techno(Armement,$armement, 4); echo'<br>'; @techno(Blindage,$blindage, 4); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Porte vaisseaux</a></td>
|
||||
<td class=c><a href=descriptions.php>Porte vaisseaux</a></td>
|
||||
<td class=e>'; @techno("Chantier spatial",$chantier_spatial, 8); echo'<br>'; @techno("Réacteur de fusion de type II",$reacteur_ff, 5);
|
||||
echo'<br>'; @techno(Armement,$armement, 6); echo'<br>'; @techno(Blindage,$blindage, 6); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Station orbitale humaine</a></td>
|
||||
<td class=c><a href=descriptions.php>Station orbitale humaine</a></td>
|
||||
<td class=e>'; @techno("Chantier spatial",$chantier_spatial, 12); echo'<br>'; @techno("Réacteur de fusion de type II",$reacteur_ff, 10);
|
||||
echo'<br>'; @techno(Armement,$armement, 12); echo'<br>'; @techno(Blindage,$blindage, 12); echo'</td>
|
||||
</tr>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
$id=$_SESSION['id'];
|
||||
|
|
@ -86,69 +86,69 @@ echo'</head>
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Banshee</a></td>
|
||||
<td class=c><a href=descriptions.php>Banshee</a></td>
|
||||
<td class=e>'; @techno("Chantier terrestre",$chantier_terrestre, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Spirit</a></td>
|
||||
<td class=c><a href=descriptions.php>Spirit</a></td>
|
||||
<td class=e>'; @techno("Chantier terrestre",$chantier_terrestre, 3); echo'<br>'; @techno(Armement,$armement, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Phantom</a></td>
|
||||
<td class=c><a href=descriptions.php>Phantom</a></td>
|
||||
<td class=e>'; @techno("Chantier terrestre",$chantier_terrestre, 4); echo'<br>'; @techno("Réacteur à antigravité",$reacteur, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Boarding craft</a></td>
|
||||
<td class=c><a href=descriptions.php>Boarding craft</a></td>
|
||||
<td class=e>'; @techno("Chantier terrestre",$chantier_terrestre, 6); echo'<br>'; @techno("Réacteur à antigravité",$reacteur, 3); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Ghost</a></td>
|
||||
<td class=c><a href=descriptions.php>Ghost</a></td>
|
||||
<td class=e>'; @techno("Chantier terrestre",$chantier_terrestre, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Shadow</a></td>
|
||||
<td class=c><a href=descriptions.php>Shadow</a></td>
|
||||
<td class=e>'; @techno("Chantier terrestre",$chantier_terrestre, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Spectre</a></td>
|
||||
<td class=c><a href=descriptions.php>Spectre</a></td>
|
||||
<td class=e>'; @techno("Chantier terrestre",$chantier_terrestre, 3); echo'<br>'; @techno(Armement,$armement, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Appariton</a></td>
|
||||
<td class=c><a href=descriptions.php>Appariton</a></td>
|
||||
<td class=e>'; @techno("Chantier terrestre",$chantier_terrestre, 5); echo'<br>'; @techno(Armement,$armement, 2);
|
||||
echo'<br>'; @techno(Bouclier,$blindage, 2); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Shade</a></td>
|
||||
<td class=c><a href=descriptions.php>Shade</a></td>
|
||||
<td class=e>'; @techno("Chantier terrestre",$chantier_terrestre, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Stong shade</a></td>
|
||||
<td class=c><a href=descriptions.php>Stong shade</a></td>
|
||||
<td class=e>'; @techno("Chantier terrestre",$chantier_terrestre, 3); echo'<br>'; @techno("Maitrise de l'énergie",$energie_t, 2); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Tourelle à barreau de combustible</a></td>
|
||||
<td class=c><a href=descriptions.php>Tourelle à barreau de combustible</a></td>
|
||||
<td class=e>'; @techno("Chantier terrestre",$chantier_terrestre, 4); echo'<br>'; @techno(Armement,$armement, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Tourelle à plasma</a></td>
|
||||
<td class=c><a href=descriptions.php>Tourelle à plasma</a></td>
|
||||
<td class=e>'; @techno("Chantier terrestre",$chantier_terrestre, 4); echo'<br>'; @techno(Armement,$armement, 3);
|
||||
echo'<br>'; @techno("Maitrise de l'énergie",$energie_t, 3); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Lanceur de torpilles plasma</a></td>
|
||||
<td class=c><a href=descriptions.php>Lanceur de torpilles plasma</a></td>
|
||||
<td class=e>'; @techno("Chantier terrestre",$chantier_terrestre, 8); echo'<br>'; @techno(Armement,$armement, 5);
|
||||
echo'<br>'; @techno(Informatique,$informatique, 4); echo'</td>
|
||||
</tr>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
$id=$_SESSION['id'];
|
||||
|
|
@ -72,10 +72,10 @@ echo'</head>
|
|||
<body>
|
||||
|
||||
<table align=center id=tablo>
|
||||
<tr><td><a href=arbre_bat_humain.php>Batiments</a> |
|
||||
<a href=arbre_techno_humain.php>Technologies</a> |
|
||||
<a href=arbre_unitees_humain.php>Ecole militaire</a> |
|
||||
<a href=arbre_vehicules_humain.php>Chantier terrestre</a> |
|
||||
<tr><td><a href=arbre_bat_humain.php>Batiments</a> |
|
||||
<a href=arbre_techno_humain.php>Technologies</a> |
|
||||
<a href=arbre_unitees_humain.php>Ecole militaire</a> |
|
||||
<a href=arbre_vehicules_humain.php>Chantier terrestre</a> |
|
||||
<a href=arbre_vaisseaux_humain.php>Chantier spatial</a></td></tr></table>
|
||||
|
||||
<table align=center>
|
||||
|
|
@ -86,70 +86,70 @@ echo'</head>
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Sparrowhawk</a></td>
|
||||
<td class=c><a href=descriptions.php>Sparrowhawk</a></td>
|
||||
<td class=e>'; @techno("Chantier terrestre",$chantier_terrestre, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>077-TC Pelican</a></td>
|
||||
<td class=c><a href=descriptions.php>077-TC Pelican</a></td>
|
||||
<td class=e>'; @techno("Chantier terrestre",$chantier_terrestre, 3); echo'<br>'; @techno(Armement,$armement, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>C703 Shortsword Bomber</a></td>
|
||||
<td class=c><a href=descriptions.php>C703 Shortsword Bomber</a></td>
|
||||
<td class=e>'; @techno("Chantier terrestre",$chantier_terrestre, 4); echo'<br>'; @techno("Réacteur à combustion",$reacteur, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>SHD Albatros</a></td>
|
||||
<td class=c><a href=descriptions.php>SHD Albatros</a></td>
|
||||
<td class=e>'; @techno("Chantier terrestre",$chantier_terrestre, 6); echo'<br>'; @techno("Réacteur à combustion",$reacteur, 3); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>M12 LRV Warthogs</a></td>
|
||||
<td class=c><a href=descriptions.php>M12 LRV Warthogs</a></td>
|
||||
<td class=e>'; @techno("Chantier terrestre",$chantier_terrestre, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>M12G1 LAAV Warthogs</a></td>
|
||||
<td class=c><a href=descriptions.php>M12G1 LAAV Warthogs</a></td>
|
||||
<td class=e>'; @techno("Chantier terrestre",$chantier_terrestre, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>M12A1 LAAV Warthogs</a></td>
|
||||
<td class=c><a href=descriptions.php>M12A1 LAAV Warthogs</a></td>
|
||||
<td class=e>'; @techno("Chantier terrestre",$chantier_terrestre, 3); echo'<br>'; @techno(Armement,$armement, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Scorpion</a></td>
|
||||
<td class=e>'; @techno("Chantier terrestre",$chantier_terrestre, 5); echo'<br>'; @techno(Armement,$armement, 2);
|
||||
<td class=c><a href=descriptions.php>Scorpion</a></td>
|
||||
<td class=e>'; @techno("Chantier terrestre",$chantier_terrestre, 5); echo'<br>'; @techno(Armement,$armement, 2);
|
||||
echo'<br>'; @techno(Blindage,$blindage, 2); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Mitrailleuse automatique M247 GP</a></td>
|
||||
<td class=c><a href=descriptions.php>Mitrailleuse automatique M247 GP</a></td>
|
||||
<td class=e>'; @techno("Chantier terrestre",$chantier_terrestre, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>DCA légère</a></td>
|
||||
<td class=c><a href=descriptions.php>DCA légère</a></td>
|
||||
<td class=e>'; @techno("Chantier terrestre",$chantier_terrestre, 3); echo'<br>'; @techno("Maitrise de l'énergie",$energie_t, 2); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>DCA lourde</a></td>
|
||||
<td class=c><a href=descriptions.php>DCA lourde</a></td>
|
||||
<td class=e>'; @techno("Chantier terrestre",$chantier_terrestre, 4); echo'<br>'; @techno(Armement,$armement, 1); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Canon Gauss</a></td>
|
||||
<td class=e>'; @techno("Chantier terrestre",$chantier_terrestre, 4); echo'<br>'; @techno(Armement,$armement, 3);
|
||||
<td class=c><a href=descriptions.php>Canon Gauss</a></td>
|
||||
<td class=e>'; @techno("Chantier terrestre",$chantier_terrestre, 4); echo'<br>'; @techno(Armement,$armement, 3);
|
||||
echo'<br>'; @techno("Maitrise de l'énergie",$energie_t, 3); echo'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class=c><a href=descriptions/.php>Lanceur de missiles</a></td>
|
||||
<td class=e>'; @techno("Chantier terrestre",$chantier_terrestre, 8); echo'<br>'; @techno(Armement,$armement, 5);
|
||||
<td class=c><a href=descriptions.php>Lanceur de missiles</a></td>
|
||||
<td class=e>'; @techno("Chantier terrestre",$chantier_terrestre, 8); echo'<br>'; @techno(Armement,$armement, 5);
|
||||
echo'<br>'; @techno(IA,$informatique, 4); echo'</td>
|
||||
</tr>
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ $id=$_SESSION['id'];
|
|||
$galaxy=$_SESSION['galaxy'];
|
||||
$ss=$_SESSION['ss'];
|
||||
$pos=$_SESSION['pos'];
|
||||
$_SESSION['dernPage'] = 'batiment.php';
|
||||
require_once '../securite.php';
|
||||
|
||||
echo"<html>
|
||||
<head>
|
||||
|
|
@ -320,7 +322,7 @@ echo '</div>
|
|||
<img src="images/batiments/'.$batimeni[7].'" alt="">
|
||||
</div>
|
||||
<div class="b">
|
||||
<a href="descriptions.php?bat='.$batimend[7].'">'.$batiment[7].'</a> '; if ($chantier_terrestre > 0) echo '(Niveau '.$chantier_terrestre.')';
|
||||
<a href="descriptions.php?bat=7">'.$batiment[7].'</a> '; if ($chantier_terrestre > 0) echo '(Niveau '.$chantier_terrestre.')';
|
||||
echo '<br><span class="description">'.$batimede[7].'</span><br>
|
||||
Besoin de : ';
|
||||
$a=ceil(pow(2,$chantier_terrestre)*520);
|
||||
|
|
@ -354,7 +356,7 @@ if ($chantier_terrestre >= 2) {
|
|||
<img src="images/batiments/'.$batimeni[8].'">
|
||||
</div>
|
||||
<div class="b">
|
||||
<a href="descriptions.php?bat='.$batimend[8].'">'.$batiment[8].'</a> '; if ($chantier_spatial > 0) echo '(Niveau '.$chantier_spatial.')';
|
||||
<a href="descriptions.php?bat=8">'.$batiment[8].'</a> '; if ($chantier_spatial > 0) echo '(Niveau '.$chantier_spatial.')';
|
||||
echo '<br><span class="description">'.$batimede[8].'</span><br>
|
||||
Besoin de : ';
|
||||
$a=ceil(pow(2,$chantier_spatial)*600);
|
||||
|
|
@ -375,7 +377,7 @@ if ($chantier_terrestre >= 2) {
|
|||
else {
|
||||
if ($case <= 0) echo "<font color=red>Planète pleine</font>";
|
||||
else {
|
||||
if($unit_s > 0) echo "<font color=red><br><br>Construction en cours dans le </font><a href=chantier_terrestre.php>chantier terrestre</a>";
|
||||
if($unit_s > 0) echo "<font color=red><br><br>Construction en cours dans le </font><a href=chantier_spatial.php>chantier spatial</a>";
|
||||
else verification_des_ress(9, $metal, $cristal, $hydrogene, $a, $b, 0);
|
||||
}
|
||||
}
|
||||
|
|
@ -387,7 +389,7 @@ echo '<div class="a">
|
|||
<img src="images/batiments/'.$batimeni[9].'" alt="">
|
||||
</div>
|
||||
<div class="b">
|
||||
<a href="descriptions.php?bat='.$batimend[9].'">'.$batiment[9].'</a> '; if ($caserne > 0) echo '(Niveau '.$caserne.')';
|
||||
<a href="descriptions.php?bat=9">'.$batiment[9].'</a> '; if ($caserne > 0) echo '(Niveau '.$caserne.')';
|
||||
echo '<br><span class="description">'.$batimede[9].'</span><br>
|
||||
Besoin de : ';
|
||||
$a=ceil(pow(2,$caserne)*200);
|
||||
|
|
@ -419,7 +421,7 @@ echo '</div>
|
|||
<img src="images/batiments/'.$batimeni[10].'" alt="">
|
||||
</div>
|
||||
<div class="b">
|
||||
<a href="descriptions.php?bat='.$batimend[10].'">'.$batiment[10].'</a> '; if ($silo > 0) echo '(Niveau '.$silo.')';
|
||||
<a href="descriptions.php?bat=10">'.$batiment[10].'</a> '; if ($silo > 0) echo '(Niveau '.$silo.')';
|
||||
echo '<br><span class="description">'.$batimede[10].'</span><br>
|
||||
Besoin de : ';
|
||||
$a=ceil(pow(2,$silo)*400);
|
||||
|
|
@ -449,7 +451,7 @@ echo'<br class="a">
|
|||
<img src="images/batiments/'.$batimeni[11].'" alt="">
|
||||
</div>
|
||||
<div class="b">
|
||||
<a href="descriptions.php?bat='.$batimend[11].'">'.$batiment[11].'</a> '; if ($centre_info > 0) echo '(Niveau '.$centre_info.')';
|
||||
<a href="descriptions.php?bat=11">'.$batiment[11].'</a> '; if ($centre_info > 0) echo '(Niveau '.$centre_info.')';
|
||||
echo '<br><div class="description">'.$batimede[11].'</div><br>
|
||||
Besoin de : ';
|
||||
$a=ceil(pow(1.7,$centre_info)*600);
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
require_once('flotte_dep.php');
|
||||
require_once('../securite.php');
|
||||
require('../connectBDD.php');
|
||||
|
||||
$z = mysql_query("SELECT * FROM user WHERE id='$id' ");
|
||||
|
|
@ -23,8 +24,14 @@ $place_flotte = $donnees['place_flotte'];
|
|||
$terrestre = $donnees['terrestre'];
|
||||
$place_terrestre = $donnees['place_terrestre'];
|
||||
|
||||
$temps_tec = $donnees['temps_t'];
|
||||
$tec = $donnees['tec'];
|
||||
//$fileTemps_t = split(' ', trim('11111111199 2222222222 3333333333 4444444444 5555555555 6666666666 7777777777 8888888888 9999999999 '));
|
||||
$fileTemps_t = split(' ', trim($donnees['temps_t']));
|
||||
if (!is_array($fileTemps_t)) $temps_tec = 0;
|
||||
else $temps_tec = $fileTemps_t[0] + $fileTemps_t[1];
|
||||
//$fileTec = split(' ', trim('1 2 3 4 5 6 7 8 9 '));
|
||||
$fileTec = split(' ', trim($donnees['tec']));
|
||||
if (!is_array($fileTec)) $tec = 0;
|
||||
else $tec = $fileTec[0];
|
||||
$planete_source = $donnees['planete_source'];
|
||||
$informatique = $donnees['informatique'];
|
||||
$detection = $donnees['detection'];
|
||||
|
|
@ -129,4 +136,6 @@ require_once('chantier_terrestre_ajout.php');
|
|||
require_once('laboratoire_ajout.php');
|
||||
require_once('ajout_terrestre.php');
|
||||
mysql_close();
|
||||
|
||||
$templates = '';
|
||||
?>
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
session_start();
|
||||
$auth_level = $_SESSION['auth_level'];
|
||||
define('DESIGN', 'descriptions/diz/base.css');
|
||||
require('../header.php');
|
||||
|
||||
|
|
@ -56,6 +57,7 @@ for ($i=1; $i<=12; $i++) {
|
|||
$y = mysql_query("SELECT race FROM user WHERE id='$id_user' ");
|
||||
$e = mysql_fetch_array($y);
|
||||
if ($e['race'] == 'covenant') $ra='(c)';
|
||||
elseif (md5($e['race'] && $auth_level >= 6) == '34c19b21bd4a3dda389e767d32fe9779') $ra='(f)';
|
||||
else $ra='(h)';
|
||||
|
||||
echo '<tr><td height="20">'.$i.'</td><td>'.$d['nom_planete'].'</td><td>'.$d['debris_met'].'</td><td>'.$d['debris_cri'].'</td><td>'.$ra.' '.trouvNom($d['id_user']).'</td><td><a href="envoyer_message.php?pseudo='.trouvNom($d['id_user']).'"><img src="descriptions/diz/m.gif"></a></td></tr>';
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ $id=$_SESSION['id'];
|
|||
$galaxy=$_SESSION['galaxy'];
|
||||
$ss=$_SESSION['ss'];
|
||||
$pos=$_SESSION['pos'];
|
||||
$_SESSION['dernPage'] = 'caserne.php';
|
||||
require_once '../securite.php';
|
||||
|
||||
echo"<html>
|
||||
<head>
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ $id=$_SESSION['id'];
|
|||
$galaxy=$_SESSION['galaxy'];
|
||||
$ss=$_SESSION['ss'];
|
||||
$pos=$_SESSION['pos'];
|
||||
$_SESSION['dernPage'] = 'chantier_spatial.php';
|
||||
require_once '../securite.php';
|
||||
|
||||
echo"<html>
|
||||
<head>
|
||||
|
|
@ -257,6 +259,5 @@ if ($metal >= 500000 && $cristal >= 400000 && $hydrogene >= 250000) { if ($temps
|
|||
echo '</form></div><br class=a>'; }
|
||||
|
||||
} else echo '<table align=center><tr><td>Vous devez d\'abord construire un chantier spatial !</td></tr></table>'; ?>
|
||||
</td></tr></table></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -5,6 +5,8 @@ $id=$_SESSION['id'];
|
|||
$galaxy=$_SESSION['galaxy'];
|
||||
$ss=$_SESSION['ss'];
|
||||
$pos=$_SESSION['pos'];
|
||||
$_SESSION['dernPage'] = 'chantier_terrestre.php';
|
||||
require_once '../securite.php';
|
||||
|
||||
echo"<html>
|
||||
<head>
|
||||
|
|
|
|||
|
|
@ -10,12 +10,13 @@ $race=$_SESSION['race'];
|
|||
require('bdd.php');
|
||||
require('../connectBDD.php');
|
||||
|
||||
if (ereg($_GET['tec'].',', implode(',',$fileTec).',')) { header('Location: laboratoire.php?err=1'); exit; }
|
||||
|
||||
if ($_GET['tec'] == 1) {
|
||||
$n=($informatique-1);
|
||||
$cristal -= ceil(pow(2,$n)*500);
|
||||
$hydrogene -= ceil(pow(2,$n)*150);
|
||||
$temps_tec = time() + ceil((420*2*($informatique+1))/pow(1.25,($labo-1)));
|
||||
$temps_tec = ceil((420*2*($informatique+1))/pow(1.25,($labo-1)));
|
||||
$tec = 1;
|
||||
}
|
||||
else if ($_GET['tec'] == 2) {
|
||||
|
|
@ -23,21 +24,21 @@ else if ($_GET['tec'] == 2) {
|
|||
$metal -= ceil(pow(2,$n)*500);
|
||||
$cristal -= ceil(pow(2,$n)*750);
|
||||
$hydrogene -= ceil(pow(2,$n)*100);
|
||||
$temps_tec = time() + ceil((600*2*($detection+1))/pow(1.25,($labo-2)));
|
||||
$temps_tec = ceil((600*2*($detection+1))/pow(1.25,($labo-2)));
|
||||
$tec = 2;
|
||||
}
|
||||
else if ($_GET['tec'] == 3) {
|
||||
$n=($armement-1);
|
||||
$metal -= ceil(pow(2,$n)*2500);
|
||||
$cristal -= ceil(pow(2,$n)*500);
|
||||
$temps_tec = time() + ceil((1500*2*($armement+1))/pow(1.25,($labo-5)));
|
||||
$temps_tec = ceil((1500*2*($armement+1))/pow(1.25,($labo-5)));
|
||||
$tec = 3;
|
||||
}
|
||||
else if ($_GET['tec'] == 4) {
|
||||
$n=($blindage-1);
|
||||
$metal -= ceil(pow(2,$n)*4000);
|
||||
$cristal -= ceil(pow(2,$n)*1500);
|
||||
$temps_tec = time() + ceil((1710*2*($blindage+1))/pow(1.25,($labo-4)));
|
||||
$temps_tec = ceil((1710*2*($blindage+1))/pow(1.25,($labo-4)));
|
||||
$tec = 4;
|
||||
}
|
||||
else if ($_GET['tec'] == 5) {
|
||||
|
|
@ -45,14 +46,14 @@ else if ($_GET['tec'] == 5) {
|
|||
$metal -= ceil(pow(2,$n)*2000);
|
||||
$cristal -= ceil(pow(2,$n)*1500);
|
||||
$hydrogene -= ceil(pow(2,$n)*300);
|
||||
$temps_tec = time() + ceil((900*2*($energie_t+1))/pow(1.25,($labo-2)));
|
||||
$temps_tec = ceil((900*2*($energie_t+1))/pow(1.25,($labo-2)));
|
||||
$tec = 5;
|
||||
}
|
||||
else if ($_GET['tec'] == 6) {
|
||||
$n=($reacteur-1);
|
||||
$metal -= ceil(pow(2,$n)*1400);
|
||||
$cristal -= ceil(pow(2,$n)*400);
|
||||
$temps_tec = time() + ceil((510*2*($reacteur+1))/pow(1.25,($labo-2)));
|
||||
$temps_tec = ceil((510*2*($reacteur+1))/pow(1.25,($labo-2)));
|
||||
$tec = 6;
|
||||
}
|
||||
else if ($_GET['tec'] == 7) {
|
||||
|
|
@ -60,7 +61,7 @@ else if ($_GET['tec'] == 7) {
|
|||
$metal -= ceil(pow(2,$n)*3000);
|
||||
$cristal -= ceil(pow(2,$n)*2100);
|
||||
$hydrogene -= ceil(pow(2,$n)*750);
|
||||
$temps_tec = time() + ceil((1650*2*($reacteur_f+1))/pow(1.25,($labo-4)));
|
||||
$temps_tec = ceil((1650*2*($reacteur_f+1))/pow(1.25,($labo-4)));
|
||||
$tec = 7;
|
||||
}
|
||||
else if ($_GET['tec'] == 8) {
|
||||
|
|
@ -68,21 +69,21 @@ else if ($_GET['tec'] == 8) {
|
|||
$metal -= ceil(pow(2,$n)*5000);
|
||||
$cristal -= ceil(pow(2,$n)*4000);
|
||||
$hydrogene -= ceil(pow(2,$n)*1500);
|
||||
$temps_tec = time() + ceil((2400*2*($reacteur_ff+1))/pow(1.25,($labo-6)));
|
||||
$temps_tec = ceil((2400*2*($reacteur_ff+1))/pow(1.25,($labo-6)));
|
||||
$tec = 8;
|
||||
}
|
||||
else if ($_GET['tec'] == 9) {
|
||||
$n=($medecine-1);
|
||||
$metal -= ceil(pow(2,$n)*800);
|
||||
$cristal -= ceil(pow(2,$n)*1000);
|
||||
$temps_tec = time() + ceil((360*2*($medecine+1))/pow(1.25,($labo-1)));
|
||||
$temps_tec = ceil((360*2*($medecine+1))/pow(1.25,($labo-1)));
|
||||
$tec = 9;
|
||||
}
|
||||
else if ($_GET['tec'] == 10) {
|
||||
$n=($tactique-1);
|
||||
$metal -= ceil(pow(2,$n)*2600);
|
||||
$cristal -= ceil(pow(2,$n)*2600);
|
||||
$temps_tec = time() + ceil((4410*2*($tactique+1))/pow(1.25,($labo-3)));
|
||||
$temps_tec = ceil((4410*2*($tactique+1))/pow(1.25,($labo-3)));
|
||||
$tec = 10;
|
||||
}
|
||||
else if ($_GET['tec'] == 11) {
|
||||
|
|
@ -90,12 +91,15 @@ else if ($_GET['tec'] == 11) {
|
|||
$metal -= ceil(pow(3,$n)*5200);
|
||||
$cristal -= ceil(pow(3,$n)*4250);
|
||||
$hydrogene -= ceil(pow(3,$n)*850);
|
||||
$temps_tec = time() + ceil((5000*2*($spartan+1))/pow(1.25,($labo-8)));
|
||||
$temps_tec = ceil((5000*2*($spartan+1))/pow(1.25,($labo-8)));
|
||||
$tec = 11;
|
||||
}
|
||||
|
||||
if (isset($tec) && $tec != '') {
|
||||
if ($metal >= 0 || $cristal >= 0 || $hydrogene >= 0) {
|
||||
$tec = implode(' ',$fileTec).' '.$tec.' ';
|
||||
if (count($fileTemps_t) == 0 || count($fileTemps_t) == 1) $temps_tec = time().' '.$temps_tec.' ';
|
||||
else $temps_tec = implode(' ',$fileTemps_t).' '.$temps_tec.'';
|
||||
mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal', hydrogene='$hydrogene' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
mysql_query("UPDATE user SET temps_t='$temps_tec', tec='$tec' WHERE id='$id'");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
<?php
|
||||
session_start();
|
||||
|
||||
if (isset($_POST['vaisseau1']) || isset($_POST['vaisseau2']) || isset($_POST['vaisseau3']) || isset($_POST['vaisseau4']) ||
|
||||
isset($_POST['vaisseau5']) || isset($_POST['vaisseau6']) || isset($_POST['vaisseau7']) || isset($_POST['vaisseau8']) ||
|
||||
isset($_POST['vaisseau9']) || isset($_POST['vaisseau10']) || isset($_POST['vaisseau11']) || isset($_POST['vaisseau12'])) {
|
||||
|
||||
define('DESIGN', 'descriptions/diz/base.css');
|
||||
define('HEAD', '<script type="text/javascript">
|
||||
var coefvitesse = 1;
|
||||
|
|
@ -25,7 +30,7 @@ function reste(zetime) {
|
|||
}
|
||||
|
||||
function consomation(zetime,nbvais) {
|
||||
if (zetime > 0) document.getElementById(\'conso\').innerHTML = parseInt(zetime/6*100)*2;
|
||||
if (zetime > 0) document.getElementById(\'conso\').innerHTML = parseInt(zetime*nbvais/20)*2;
|
||||
else document.getElementById(\'conso\').innerHTML = 0;
|
||||
}
|
||||
|
||||
|
|
@ -68,6 +73,7 @@ require_once('ressource.php');
|
|||
<form method="post" action="creerflotte.php">
|
||||
<input type="hidden" name="action" value="apr">
|
||||
<?php
|
||||
|
||||
if (isset($_POST['vaisseau1'])) print '<input type="hidden" name="vaisseau1" value="'.$_POST['vaisseau1'].'">';
|
||||
if (isset($_POST['vaisseau2'])) print '<input type="hidden" name="vaisseau2" value="'.$_POST['vaisseau2'].'">';
|
||||
if (isset($_POST['vaisseau3'])) print '<input type="hidden" name="vaisseau3" value="'.$_POST['vaisseau3'].'">';
|
||||
|
|
@ -94,12 +100,13 @@ for ($i=0 ; $i<=12 ; $i++) {
|
|||
}
|
||||
}
|
||||
$AvaisType = split(' ', trim($AvaisType)); $AvaisVitesseC = split(' ', trim($AvaisVitesseC)); $AvaisVitesseL = split(' ', trim($AvaisVitesseL)); $AvaisContenu = split(' ', trim($AvaisContenu)); $AvaisPrepC = split(' ', trim($AvaisPrepC)); $AvaisPrepL = split(' ', trim($AvaisPrepL)); $AvaisChauffe = split(' ', trim($AvaisChauffe));
|
||||
if(min($AvaisVitesseC) == 0 && min($AvaisVitesseL) == 0) { print '<script type="text/javascript">window.location.href="flotte.php?err=7";</script>'; exit; }
|
||||
//if(min($AvaisVitesseC) == 0 && min($AvaisVitesseL) == 0) { print '<script type="text/javascript">window.location.href="flotte.php?err=7";</script>'; exit; }
|
||||
if(min($AvaisVitesseC) == 0 && min($AvaisVitesseL) == 0) $AvaisVitesseL = $AvaisVitesseC;
|
||||
?>
|
||||
<table align="center" width="500">
|
||||
<tr><td colspan="2">Préparation de la flotte</td></tr>
|
||||
<tr><td width="50%">Nom</td><td width="50%"><input type="text" name="nom" maxlength="255" size="20"></td></tr>
|
||||
<tr><td width="50%">Destination</td><td width="50%"><input type="text" name="galaxie" maxlength="1" size="2" onchange="vaisTempsDeplacement(document.getElementById('end_galaxie').value, document.getElementById('end_ss').value, document.getElementById('end_position').value,<?php print min($AvaisVitesseC)>0?min($AvaisVitesseC):min($AvaisVitesseL) ?>,<?php print min($AvaisPrepC)>0?min($AvaisPrepC):max($AvaisPrepL); ?>,<?php print min($AvaisPrepC)>0?0:max($AvaisChauffe); ?>,<?php print count($AvaisType); ?>)" id="end_galaxie" value="<?php print $_SESSION['galaxy']; ?>">:<input type="text" name="ss" maxlength="3" size="2" onchange="vaisTempsDeplacement(document.getElementById('end_galaxie').value, document.getElementById('end_ss').value, document.getElementById('end_position').value,<?php print min($AvaisVitesseC)>0?min($AvaisVitesseC):min($AvaisVitesseL) ?>,<?php print min($AvaisPrepC)>0?min($AvaisPrepC):max($AvaisPrepL); ?>,<?php print min($AvaisPrepC)>0?0:max($AvaisChauffe); ?>,<?php print count($AvaisType); ?>);" id="end_ss" value="<?php print $_SESSION['ss']; ?>">:<input type="text" name="position" maxlength="2" size="2" onchange="vaisTempsDeplacement(document.getElementById('end_galaxie').value, document.getElementById('end_ss').value, document.getElementById('end_position').value,<?php print min($AvaisVitesseC)>0?min($AvaisVitesseC):min($AvaisVitesseL) ?>,<?php print min($AvaisPrepC)>0?min($AvaisPrepC):max($AvaisPrepL); ?>,<?php print min($AvaisPrepC)>0?0:max($AvaisChauffe); ?>,<?php print count($AvaisType); ?>);" id="end_position" value="<?php print $_SESSION['pos']; ?>"></td></tr>
|
||||
<tr><td width="50%">Nom</td><td width="50%"><input type="text" name="nom" maxlength="255" size="20" class="zone_texte"></td></tr>
|
||||
<tr><td width="50%">Destination</td><td width="50%"><input type="text" name="galaxie" maxlength="1" size="2" class="zone_texte" onchange="vaisTempsDeplacement(document.getElementById('end_galaxie').value, document.getElementById('end_ss').value, document.getElementById('end_position').value,<?php print min($AvaisVitesseC)>0?min($AvaisVitesseC):min($AvaisVitesseL) ?>,<?php print min($AvaisPrepC)>0?min($AvaisPrepC):max($AvaisPrepL); ?>,<?php print min($AvaisPrepC)>0?0:max($AvaisChauffe); ?>,<?php print count($AvaisType); ?>)" id="end_galaxie" value="<?php print $_SESSION['galaxy']; ?>">:<input type="text" name="ss" maxlength="3" size="2" class="zone_texte"onchange="vaisTempsDeplacement(document.getElementById('end_galaxie').value, document.getElementById('end_ss').value, document.getElementById('end_position').value,<?php print min($AvaisVitesseC)>0?min($AvaisVitesseC):min($AvaisVitesseL) ?>,<?php print min($AvaisPrepC)>0?min($AvaisPrepC):max($AvaisPrepL); ?>,<?php print min($AvaisPrepC)>0?0:max($AvaisChauffe); ?>,<?php print count($AvaisType); ?>);" id="end_ss" value="<?php print $_SESSION['ss']; ?>">:<input type="text" name="position" maxlength="2" size="2" class="zone_texte" onchange="vaisTempsDeplacement(document.getElementById('end_galaxie').value, document.getElementById('end_ss').value, document.getElementById('end_position').value,<?php print min($AvaisVitesseC)>0?min($AvaisVitesseC):min($AvaisVitesseL) ?>,<?php print min($AvaisPrepC)>0?min($AvaisPrepC):max($AvaisPrepL); ?>,<?php print min($AvaisPrepC)>0?0:max($AvaisChauffe); ?>,<?php print count($AvaisType); ?>);" id="end_position" value="<?php print $_SESSION['pos']; ?>"></td></tr>
|
||||
<tr><td width="50%">Vitesse</td><td width="50%"><select name="speed"><option value="100">100%</option></select></td></tr>
|
||||
<tr><td width="50%">Temps de déplacement</td><td width="50%" id="temps"></td></tr>
|
||||
<tr><td width="50%">Consomation</td><td width="50%" id="conso"></td></tr>
|
||||
|
|
@ -110,11 +117,10 @@ if (isset($_POST['vaisseau5']) && $_POST['vaisseau5'] > 0) print '<option value=
|
|||
if (isset($_POST['vaisseau3']) && $_POST['vaisseau3'] > 0) print '<option value="3" selected>Coloniser</option>';
|
||||
?>
|
||||
</select></td></tr>
|
||||
<tr><td width="50%"> </td><td width="50%"> </td></tr>
|
||||
<tr><td width="50%">Métal</td><td width="50%"><input type="text" name="metal" maxlength="6" size="10"></td></tr>
|
||||
<tr><td width="50%">Cristal</td><td width="50%"><input type="text" name="cristal" maxlength="6" size="10"></td></tr>
|
||||
<tr><td width="50%">Hydrogène</td><td width="50%"><input type="text" name="hydrogene" maxlength="6" size="10"></td></tr>
|
||||
<tr><td colspan="2"><input type="submit" value="Envoyer la flotte"></td></tr>
|
||||
<tr><td width="50%">Métal</td><td width="50%"><input type="text" name="metal" maxlength="6" size="10" class="zone_texte"></td></tr>
|
||||
<tr><td width="50%">Cristal</td><td width="50%"><input type="text" name="cristal" maxlength="6" size="10" class="zone_texte"></td></tr>
|
||||
<tr><td width="50%">Hydrogène</td><td width="50%"><input type="text" name="hydrogene" maxlength="6" size="10" class="zone_texte"></td></tr>
|
||||
<tr><td colspan="2"><input type="submit" value="Envoyer la flotte" class="bouton"></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php
|
||||
|
|
@ -134,27 +140,38 @@ if (isset($_POST['vaisseau3']) && $_POST['vaisseau3'] > 0) print '<option value=
|
|||
|
||||
// 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) {
|
||||
if (mysql_num_rows($reqVPlan) == 0 && $mission != 3) {
|
||||
header('Location: flotte.php?err=9');
|
||||
exit;
|
||||
}
|
||||
elseif (mysql_num_rows($reqVPlan) != 0 && $mission == 3) {
|
||||
header('Location: flotte.php?err=c1');
|
||||
exit;
|
||||
}
|
||||
elseif ($mission == 3) {
|
||||
$reqVPlanComp = mysql_query("SELECT * FROM planete WHERE `id_user` = '$id'");
|
||||
if (mysql_num_rows($reqVPlanComp) > 15) {
|
||||
header('Location: flotte.php?err=c2');
|
||||
exit;
|
||||
}
|
||||
}
|
||||
else {
|
||||
$resultatVPlan = mysql_fetch_array($reqVPlan);
|
||||
if ($mission == 0 && $resultatVPlan['id_user'] != $id) {
|
||||
header('Location: flotte.php?err=s1');
|
||||
exit;
|
||||
exit;
|
||||
}
|
||||
elseif ($mission == 1 && $resultatVPlan['id_user'] == $id) {
|
||||
header('Location: flotte.php?err=a1');
|
||||
exit;
|
||||
exit;
|
||||
}
|
||||
elseif ($mission == 5 && $resultatVPlan['id_user'] == $id) {
|
||||
header('Location: flotte.php?err=a1');
|
||||
exit;
|
||||
exit;
|
||||
}
|
||||
elseif ($mission == '') {
|
||||
header('Location: flotte.php?err=10');
|
||||
exit;
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -228,13 +245,13 @@ if (isset($_POST['vaisseau3']) && $_POST['vaisseau3'] > 0) print '<option value=
|
|||
}
|
||||
}
|
||||
$AvaisType = split(' ', trim($AvaisType)); $AvaisVitesseC = split(' ', trim($AvaisVitesseC)); $AvaisVitesseL = split(' ', trim($AvaisVitesseL)); $AvaisContenu = split(' ', trim($AvaisContenu)); $AvaisPrepC = split(' ', trim($AvaisPrepC)); $AvaisPrepL = split(' ', trim($AvaisPrepL)); $AvaisChauffe = split(' ', trim($AvaisChauffe));
|
||||
if(min($AvaisVitesseC) != 0) {
|
||||
$timeDep = vais_tempsDeplacement($galaxy, $ss, $pos, $_POST['galaxie'],$_POST['ss'],$_POST['position'],min($AvaisVitesseC),1,max($AvaisPrepC),0);
|
||||
if(min($AvaisVitesseL) != 0) {
|
||||
$timeDep = vais_tempsDeplacement($galaxy, $ss, $pos, $_POST['galaxie'],$_POST['ss'],$_POST['position'],max($AvaisVitesseL),1,max($AvaisPrepL),max($AvaisChauffe));
|
||||
}
|
||||
elseif(min($AvaisVitesseL) != 0) {
|
||||
$timeDep = vais_tempsDeplacement($galaxy, $ss, $pos, $_POST['galaxie'],$_POST['ss'],$_POST['position'],min($AvaisVitesseL),1,max($AvaisPrepL),max($AvaisChauffe));
|
||||
else {
|
||||
$timeDep = vais_tempsDeplacement($galaxy, $ss, $pos, $_POST['galaxie'],$_POST['ss'],$_POST['position'],max($AvaisVitesseC),1,max($AvaisPrepC),0);
|
||||
}
|
||||
else { header('Location: flotte.php?err=7'); exit; }
|
||||
|
||||
|
||||
$metal -= $Cmetal;
|
||||
$cristal -= $Ccristal;
|
||||
|
|
@ -264,6 +281,8 @@ if (isset($_POST['vaisseau3']) && $_POST['vaisseau3'] > 0) print '<option value=
|
|||
header('Location: flotte.php?err=ok');
|
||||
}
|
||||
else header('Location: flotte.php');
|
||||
}
|
||||
else header('Location: flotte.php');
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -5,6 +5,8 @@ $id=$_SESSION['id'];
|
|||
$galaxy=$_SESSION['galaxy'];
|
||||
$ss=$_SESSION['ss'];
|
||||
$pos=$_SESSION['pos'];
|
||||
$_SESSION['dernPage'] = 'defense.php';
|
||||
require_once '../securite.php';
|
||||
|
||||
echo"<html>
|
||||
<head>
|
||||
|
|
@ -167,7 +169,7 @@ if ($unit_t<9 && $unit_t>0) echo '<br><br><font color="red">Construction en cour
|
|||
}
|
||||
echo '</form></div><br class=a>'; }
|
||||
|
||||
} else { echo '<table align=center><tr><td>Vous devez d\'abord construire un chantier spatial !</td></tr></table>'; } ?>
|
||||
</td></tr></table></div>
|
||||
} else echo '<table align=center><tr><td>Vous devez d\'abord construire un chantier terrestre !</td></tr></table>';
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,28 +1,36 @@
|
|||
<?php
|
||||
session_start();
|
||||
define('DESIGN', 'descriptions/diz/base.css');
|
||||
define('HEAD', '<style TYPE=text/css>
|
||||
TD.c {
|
||||
background-color: black;
|
||||
}
|
||||
|
||||
TD.d {
|
||||
background-color: #000043;
|
||||
}
|
||||
</style>');
|
||||
require('../header.php');
|
||||
|
||||
$id=$_SESSION['id'];
|
||||
$galaxy=$_SESSION['galaxy'];
|
||||
$ss=$_SESSION['ss'];
|
||||
$pos=$_SESSION['pos'];
|
||||
$race=$_SESSION['race'];
|
||||
if (isset($_SESSION['dernPage']) && $_SESSION['dernPage'] != '' && !isset($_GET['pas'])) {
|
||||
header('Location: '.$_SESSION['dernPage']);
|
||||
$_SESSION['dernPage'] = '';
|
||||
exit;
|
||||
}
|
||||
$_SESSION['dernPage'] = '';
|
||||
|
||||
include 'bdd.php';
|
||||
include 'ressource.php';
|
||||
include 'ressourcetem.php';
|
||||
require('../connectBDD.php');
|
||||
|
||||
$case = $cases - ($mine_m +$mine_c +$mine_h +$centrale_s +$centrale_f +$radar+$labo+$chantier_terrestre +$chantier_spatial+$caserne+$silo );
|
||||
require('../template.php');
|
||||
$template = new Template('../templates/'.$templates);
|
||||
|
||||
$template->set_filenames(array('ressourcestpl' => 'ressources.tpl'));
|
||||
$template->assign_vars( array('RES_IMAGE' => $RES_IMAGE, 'NOM_METAL' => $NOM_METAL, 'NOM_CRISTAL' => $NOM_CRISTAL, 'NOM_HYDROGENE' => $NOM_HYDROGENE, 'NOM_ENERGIE' => $NOM_ENERGIE, 'RES_METAL' => $RES_METAL, 'RES_CRISTAL' => $RES_CRISTAL, 'RES_HYDROGENE' => $RES_HYDROGENE, 'RES_ENERGIE' => $RES_ENERGIE));
|
||||
for ($i=0 ; $i<count($Aplan_value) ; $i++) {
|
||||
$template->assign_block_vars('planetes',array('RES_VALUE' => $Aplan_value[$i], 'RES_MORE' => $Aplan_more[$i], 'RES_REF' => $Aplan_ref[$i]));
|
||||
}
|
||||
|
||||
$template->set_filenames(array('depart' => 'depart.tpl'));
|
||||
$template->assign_var_from_handle('RESSOURCES', 'ressourcestpl');
|
||||
|
||||
// Calcul le nombre de cases restante sur la planète
|
||||
$case = $cases - ($mine_m + $mine_c + $mine_h + $centrale_s + $centrale_f + $radar + $labo + $chantier_terrestre + $chantier_spatial + $caserne + $silo);
|
||||
$diametre = $cases * 92;
|
||||
|
||||
$nbra = mysql_query("SELECT COUNT(*) AS nbre FROM mail WHERE destinataire='$pseudo' AND vu='1'");
|
||||
|
|
@ -32,37 +40,29 @@ $nbr = mysql_query("SELECT * FROM mail WHERE `destinataire` = '$pseudo' AND vu='
|
|||
$ee = mysql_query("SELECT pseudo, points, place_points FROM user WHERE id='$id'");
|
||||
$data = mysql_fetch_array($ee);
|
||||
|
||||
function convert_ts_fr($tstamp) { echo date('H:i:s d/m/Y', $tstamp); }
|
||||
function convert_ts_fr($tstamp) { return date('H:i:s d/m/Y', $tstamp); }
|
||||
|
||||
echo"</head>
|
||||
$DATEHEURE = convert_ts_fr(time());
|
||||
|
||||
if (mysql_num_rows($nbr) == 1) $MESSAGERIE = '<a href="lire_message.php">Vous avez 1 nouveau message</a>';
|
||||
elseif (mysql_num_rows($nbr) > 1) $MESSAGERIE = '<a href="lire_message.php">Vous avez '.mysql_num_rows($nbr).' nouveaux messages</a>';
|
||||
else $MESSAGERIE = 'Pas de nouveau message privé';
|
||||
|
||||
<body>";
|
||||
print "<table width=500 align=center>
|
||||
<tr><td colspan=2 align=left class=c>Evènements</td></tr>
|
||||
$NOM_PLANETE = $nom_planete;
|
||||
if (trim($NOM_PLANETE) == '') $NOM_PLANETE = 'Donnez un nom à votre planète en cliquant ici';
|
||||
$PSEUDO = $data['pseudo'];
|
||||
$IMAGE = $image;
|
||||
$DESC_DIAMETRE = $diametre;
|
||||
$DESC_CASES = $case;
|
||||
$DESC_CASESMAX = $cases;
|
||||
$RACE = $race;
|
||||
$GALAXIE = $galaxy;
|
||||
$SYSTEME = $ss;
|
||||
$POSITION = $pos;
|
||||
$POINTS = $data['points'];
|
||||
$PLACE = $data['place_points'];
|
||||
|
||||
$template->assign_vars( array('DATEHEURE' => $DATEHEURE, 'MESSAGERIE' => $MESSAGERIE, 'NOM_PLANETE' => $NOM_PLANETE, 'PSEUDO' => $PSEUDO, 'IMAGE' => $IMAGE, 'DESC_DIAMETRE' => $DESC_DIAMETRE, 'DESC_CASES' => $DESC_CASES, 'DESC_CASESMAX' => $DESC_CASESMAX, 'RACE' => $RACE, 'GALAXIE' => $GALAXIE, 'SYSTEME' => $SYSTEME, 'POSITION' => $POSITION, 'POINTS' => $POINTS, 'PLACE' => $PLACE));
|
||||
|
||||
<tr><td witdh=50 class=d>Heure du serveur</td>
|
||||
<td>"; convert_ts_fr(time()); echo"</td></tr>";
|
||||
|
||||
if (mysql_num_rows($nbr)== 1) echo "<tr><td colspan=2><a href=lire_message.php>Vous avez 1 nouveau message</a></td></tr>";
|
||||
elseif (mysql_num_rows($nbr) > 1) {echo "<tr><td colspan=2><a href=lire_message.php>Vous avez ".mysql_num_rows($nbr)." nouveaux messages</a></td></tr>"; }
|
||||
|
||||
echo "<tr><td colspan=2 align=left class=c><a href=rename.php>".$nom_planete."</a> (".$data['pseudo'].")</td></tr>
|
||||
|
||||
<tr><td align=center colspan=2 height=220><img src='descriptions/diz/planete/".$image.".jpg' height=200 width=200></td></tr>
|
||||
|
||||
<tr><td witdh=50 class=d>Diamètre</td>
|
||||
<td>".$diametre." km ( ".$case." / ".$cases." cases )</td></tr>
|
||||
|
||||
<tr><td witdh=50 class=d>Race</td>
|
||||
<td>".$race."</td></tr>
|
||||
|
||||
<tr><td witdh=50 class=d>Position</td>
|
||||
<td><a href=carte.php?galaxy=".$galaxy."&ss=".$ss.">[".$galaxy.":".$ss.":".$pos."]</a></td></tr>
|
||||
|
||||
<tr><td witdh=50 class=d>Classement</td>
|
||||
<td><a href=voir_classement.php >".$data['points']." points (".$data['place_points'].")</a></td></tr>
|
||||
</table>
|
||||
|
||||
</body></html>"; ?>
|
||||
$template->pparse('depart');
|
||||
?>
|
||||
|
|
@ -18,7 +18,7 @@ $return = '';
|
|||
$c = $nivo-2 < 1 ? 1 : $nivo-2; $a = $c + 7;
|
||||
if ($ibat == 0) {
|
||||
for ($c;$c<$a;$c++) {
|
||||
$b=ceil(($c*32)+(pow(1.41,$c)*exp(0.066*$c))*3.7);
|
||||
$b=ceil(($c*32)+(pow(1.41,$c)*exp(0.066*$c))*3.7);
|
||||
$h=ceil(($c*32)+(pow(1.41,$c)*exp(0.066*$c))*3.7) - ceil((($c-1)*32)+(pow(1.41,($c-1))*exp(0.066*($c-1)))*3.7);
|
||||
|
||||
$p=ceil((exp($c*0.28)*10));
|
||||
|
|
@ -30,7 +30,7 @@ $c = $nivo-2 < 1 ? 1 : $nivo-2; $a = $c + 7;
|
|||
}
|
||||
elseif ($ibat == 1) {
|
||||
for ($c;$c<$a;$c++) {
|
||||
$b=floor(($c*13)+(pow(1.36,$c)*exp(0.0675*$c))*7);
|
||||
$b=floor(($c*13)+(pow(1.36,$c)*exp(0.0675*$c))*7);
|
||||
$h=floor(($c*13)+(pow(1.36,$c)*exp(0.0675*$c))*7) - floor((($c-1)*13)+(pow(1.36,($c-1))*exp(0.0675*($c-1)))*7);
|
||||
|
||||
$p=ceil((exp($c*0.28)*10));
|
||||
|
|
@ -78,12 +78,21 @@ function niveauBat($bat){
|
|||
elseif ($bat == 4) return 'centrale_f';
|
||||
elseif ($bat == 5) return 'radar';
|
||||
elseif ($bat == 6) return 'labo';
|
||||
elseif ($bat == 7) return 'chantier_terrestre';
|
||||
elseif ($bat == 8) return 'chantier_spatial';
|
||||
elseif ($bat == 9) return 'caserne';
|
||||
elseif ($bat == 10) return 'silo';
|
||||
elseif ($bat == 11) return 'centre_info';
|
||||
else return '#Erreur, batiment invalide';
|
||||
}
|
||||
|
||||
if (isset($_GET['bat'])) {
|
||||
$i = intval($_GET['bat']);
|
||||
print '<table align="center" width="550"><tr><td colspan="2"><b>'.$batiment[$i].' niveau '.${niveauBat($i)}.'</b><br />'.$batimede[$i].'</td></tr><tr><td><img src="images/batiments/'.$batimeni[$i].'" alt="" /></td><td><div class="centre"><table style="margin-left: auto; margin-right: auto;"><tr><td><b>Niveau</b></td><td><b>Production par heure</b></td><td><b>Consommation énergie</b></td></tr>'.tableauProd($i,${niveauBat($i)}).'</table></div></<td></tr></table>';
|
||||
if (empty($batiment[$i])) print '<div class="centre"><table style="margin-left: auto; margin-right: auto; width: 275px; height: 50px"><tr><td><b>Batiment inexistant</b></td></tr></table></div>';
|
||||
else {
|
||||
if ($i <= 3) print '<table align="center" width="550"><tr><td colspan="2"><b>'.$batiment[$i].' niveau '.${niveauBat($i)}.'</b><br />'.$batimede[$i].'</td></tr><tr><td><img src="images/batiments/'.$batimeni[$i].'" alt="" /></td><td><div class="centre"><table style="margin-left: auto; margin-right: auto;"><tr><td><b>Niveau</b></td><td><b>Production par heure</b></td><td><b>Consommation énergie</b></td></tr>'.tableauProd($i,${niveauBat($i)}).'</table></div></<td></tr></table>';
|
||||
else print '<table align="center" width="550"><tr><td><img src="images/batiments/'.$batimeni[$i].'" alt="" /></td><td><b>'.$batiment[$i].' niveau '.${niveauBat($i)}.'</b><br /><br />'.$batimede[$i].'</td></tr></table>';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ border: none;
|
|||
}
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
border: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
|
|
@ -94,20 +94,20 @@ text-align: center;
|
|||
}
|
||||
|
||||
div.a {
|
||||
height: 132;
|
||||
width: 130;
|
||||
height: 132px;
|
||||
width: 130px;
|
||||
}
|
||||
|
||||
div.b {
|
||||
height: 132;
|
||||
width: 400;
|
||||
height: 132px;
|
||||
width: 400px;
|
||||
text-align: justify;
|
||||
background-image: url(fond/apb.jpg);
|
||||
}
|
||||
|
||||
div.c {
|
||||
height: 132;
|
||||
width: 149;
|
||||
height: 132px;
|
||||
width: 149px;
|
||||
text-align: center;
|
||||
background-image: url(fond/apc.jpg);
|
||||
}
|
||||
|
|
@ -120,8 +120,8 @@ margin-left: 450;
|
|||
}
|
||||
|
||||
div.fin {
|
||||
height: 20;
|
||||
width: 339;
|
||||
height: 20px;
|
||||
width: 339px;
|
||||
text-align: center;
|
||||
background-image: url(fond/apfin.jpg);
|
||||
}
|
||||
|
|
@ -129,7 +129,7 @@ background-image: url(fond/apfin.jpg);
|
|||
div.long {
|
||||
font-weight: bold;
|
||||
color: #ff8040;
|
||||
width: 550;
|
||||
width: 550px;
|
||||
text-align: center;
|
||||
margin-left: 90px;
|
||||
}
|
||||
|
|
@ -141,8 +141,8 @@ margin-left: 90px;
|
|||
}
|
||||
|
||||
div.e {
|
||||
height: 280;
|
||||
width: 125;
|
||||
height: 280px;
|
||||
width: 125px;
|
||||
text-align: justify;
|
||||
background-color: #000151;
|
||||
border: 0;
|
||||
|
|
@ -156,7 +156,7 @@ padding: 15 10 5 10;
|
|||
#axion {
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
border: 0;
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
|
@ -214,6 +214,35 @@ border: 1px solid #000170;
|
|||
}
|
||||
|
||||
|
||||
td.bla {
|
||||
height: 132px;
|
||||
width: 130px;
|
||||
border: 1px solid #004080;
|
||||
}
|
||||
|
||||
td.blb {
|
||||
height: 132px;
|
||||
width: 400px;
|
||||
text-align: justify;
|
||||
background-image: url(fond/apb.jpg);
|
||||
border: 1px solid #004080;
|
||||
}
|
||||
|
||||
td.blc {
|
||||
height: 132px;
|
||||
width: 149px;
|
||||
text-align: center;
|
||||
background-image: url(fond/apc.jpg);
|
||||
border: 1px solid #004080;
|
||||
}
|
||||
|
||||
td.bld {
|
||||
background-color: #00024A;
|
||||
border: 1px solid #02058A;
|
||||
margin-bottom: 20;
|
||||
margin-left: 450;
|
||||
}
|
||||
|
||||
|
||||
/*attaque {
|
||||
color: #CC0000;
|
||||
|
|
|
|||
BIN
pages/descriptions/diz/planete/Thumbs.db
Normal file
BIN
pages/descriptions/diz/planete/anneaux1.jpg
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
pages/descriptions/diz/planete/asteroide1.jpg
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
pages/descriptions/diz/planete/asteroide2.jpg
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
pages/descriptions/diz/planete/asteroide4.jpg
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
pages/descriptions/diz/planete/asteroide5.jpg
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
pages/descriptions/diz/planete/desert2.jpg
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
pages/descriptions/diz/planete/etrange1.jpg
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
pages/descriptions/diz/planete/etrange3.jpg
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
pages/descriptions/diz/planete/etrange6.jpg
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
pages/descriptions/diz/planete/fusion2.jpg
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
pages/descriptions/diz/planete/normal3.jpg
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
pages/descriptions/diz/planete/normal4.jpg
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
pages/descriptions/diz/planete/normal5.jpg
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
pages/descriptions/diz/planete/ocean2.jpg
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
pages/descriptions/diz/planete/rien1.jpg
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
pages/descriptions/diz/planete/rien10.jpg
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
pages/descriptions/diz/planete/rien2.jpg
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
pages/descriptions/diz/planete/rien3.jpg
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
pages/descriptions/diz/planete/rien4.jpg
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
pages/descriptions/diz/planete/rien5.jpg
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
pages/descriptions/diz/planete/rien6.jpg
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
pages/descriptions/diz/planete/rien7.jpg
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
pages/descriptions/diz/planete/rien8.jpg
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
pages/descriptions/diz/planete/rien9.jpg
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
pages/descriptions/diz/planete/soleil.jpg
Normal file
|
After Width: | Height: | Size: 37 KiB |
|
|
@ -1,33 +1,32 @@
|
|||
<?php
|
||||
session_start();
|
||||
define('DESIGN', 'descriptions/diz/base.css');
|
||||
require('../header.php');
|
||||
require_once 'bdd.php';
|
||||
require('../template.php');
|
||||
$template = new Template('../templates/'.$templates);
|
||||
$template->set_filenames(array('mp_env' => 'mp_env.tpl'));
|
||||
|
||||
if (isset($_GET['pseudo'])) $p=$_GET['pseudo']; else $p='';
|
||||
if (isset($_GET['ok'])) $_GET['ok']=1; else $_GET['ok']=0;
|
||||
if (!isset($_GET['err'])) $_GET['err']=0;
|
||||
|
||||
if (isset($_POST)) {
|
||||
if (isset($_POST['message_destinataire']) && $_POST['message_destinataire'] !='') {
|
||||
$resultat = mysql_query("SELECT pseudo FROM user WHERE pseudo='".$_POST['message_destinataire']."'"); // on vérifie l'existance
|
||||
if (isset($_POST['message_destinataire']) && $_POST['message_destinataire'] != '') {
|
||||
$resultat = mysql_query("SELECT pseudo FROM user WHERE pseudo='".mysql_real_escape_string($_POST['message_destinataire'])."'"); // on vérifie l'existance
|
||||
if(mysql_num_rows($resultat)>=1) { // si c'est bon on passe a la suite
|
||||
if (isset($_POST['sujet_message']) && $_POST['sujet_message'] !='' ) { mysql_query("INSERT INTO mail VALUES('', '1', '".htmlspecialchars($_POST['message_destinataire'])."', '".$pseudo."', '".htmlspecialchars($_POST['sujet_message'])."', '".htmlspecialchars($_POST['message'])."', '".$temps."')"); header('Location: envoyer_message.php?ok=5'); exit; }
|
||||
else echo "Précisez le nom du sujet";
|
||||
if (isset($_POST['sujet_message']) && $_POST['sujet_message'] !='' ) { mysql_query("INSERT INTO mail VALUES('', '1', '".mysql_real_escape_string(htmlspecialchars($_POST['message_destinataire']))."', '".mysql_real_escape_string($pseudo)."', '".mysql_real_escape_string(htmlspecialchars($_POST['sujet_message']))."', '".mysql_real_escape_string(htmlspecialchars($_POST['message']))."', '".$temps."')"); header('Location: envoyer_message.php?ok=1'); exit; }
|
||||
else $_GET['err'] = 3;
|
||||
}
|
||||
else echo "Précisez le nom du destinataire";
|
||||
else $_GET['err'] = 4;
|
||||
}
|
||||
else "Ce joueur n'existe pas";
|
||||
elseif (isset($_POST['message_destinataire'])) $_GET['err'] = 2;
|
||||
}
|
||||
?>
|
||||
<body>
|
||||
<form method="post" action="message.php">
|
||||
<br><br><br><br>
|
||||
<TABLE align=center>
|
||||
<? if ($_GET['ok'] == 1) { echo "<tr><td colspan=2><font color=lime>Message envoyé</font></td></tr>"; } ?>
|
||||
<tr><td>Nom du destinataire</td><td><input type="text" class="zone_texte" size="44" maxlength="20" name="message_destinataire" <? echo "value=".$p;?> ></td></tr>
|
||||
<tr><td>Sujet</td><td><input type="text" class="zone_texte" size="44" maxlength="20" name="sujet_message"></td></tr>
|
||||
<tr><td>Texte</td><td><textarea cols="30" rows="10" name="message" class="zone_texte"></textarea></td></tr>
|
||||
<tr><td colspan="2"><input type="submit" value="Envoyer" class="bouton"></td></tr>
|
||||
</TABLE>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
if ($_GET['ok'] == 1) $ERREUR = '<tr><td colspan="2"><font color="lime">Message envoyé</font></td></tr>';
|
||||
elseif ($_GET['err'] == 4) $ERREUR = '<tr><td colspan="2"><font color="red">Ce joueur n\'existe pas</font></td></tr>';
|
||||
elseif ($_GET['err'] == 2) $ERREUR = '<tr><td colspan="2"><font color="red">Votre message n\'a pas de contenu</font></td></tr>';
|
||||
elseif ($_GET['err'] == 3) $ERREUR = '<tr><td colspan="2"><font color="red">Précisez le sujet du message</font></td></tr>';
|
||||
|
||||
$template->assign_vars( array('ERREUR' => $ERREUR, 'PSEUDO' => $p));
|
||||
|
||||
$template->pparse('mp_env');
|
||||
?>
|
||||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ $pos=$_SESSION['pos'];
|
|||
*/
|
||||
|
||||
require_once('noms.php');
|
||||
require_once('../fonctions.php');
|
||||
require('../connectBDD.php');
|
||||
|
||||
function resteVaisseau($tableau){
|
||||
|
|
@ -137,15 +138,34 @@ while ($resultat = mysql_fetch_array($req)) {
|
|||
$reqT = mysql_query("SELECT * FROM `planete` WHERE `galaxie` = '$end_galaxie' AND `ss` = '$end_ss' AND `position` = '$end_position'") or die ("erreur sql ".mysql_error());
|
||||
if (!mysql_num_rows($reqT) > 0) {
|
||||
$time = time();
|
||||
$temps = time();
|
||||
$cases = mt_rand(125,222);
|
||||
$image = mt_rand(1,15);
|
||||
mysql_query("INSERT INTO planete (`id_user`, `nom_planete`, `galaxie`, `ss`, `position`, `image`, `cases`, `timestamp`, `metal`, `cristal`) VALUES ('$id', 'Planète colonisée', '$end_galaxie', '$end_ss', '$end_position', '$image', '$cases', '$time', '1000', '700')") or die ("erreur sql ".mysql_error());
|
||||
$reqIsol = mysql_query("SELECT * FROM planete WHERE id_user='$id'");
|
||||
if (mysql_num_rows($reqIsol) >= 11) $isolement = time() + rand(9000,170000);
|
||||
else $isolement = 0;
|
||||
mysql_query("INSERT INTO planete (`id_user`, `isolement`, `nom_planete`, `galaxie`, `ss`, `position`, `image`, `cases`, `timestamp`, `metal`, `cristal`) VALUES ('$id', '$isolement', 'Planète colonisée', '$end_galaxie', '$end_ss', '$end_position', '$image', '$cases', '$time', '1000', '700')") or die ("erreur sql ".mysql_error());
|
||||
mysql_query("UPDATE `flottes` SET `effectue` = '1', `vaisseau_3` = '0' WHERE `id` = '$id_flotte'") or die ("erreur sql ".mysql_error());
|
||||
|
||||
$message = 'Votre vaisseau a atteint la planète '.$arr_galaxy.':'.$arr_ss.':'.$arr_pos.' et commence la colonisation';
|
||||
$message = 'Votre vaisseau a atteint la planète ['.$end_galaxie.':'.$end_ss.':'.$end_position.'] et commence la colonisation';
|
||||
$pseudo = trouvNom($resultat['id_user']);
|
||||
mysql_query("INSERT INTO mail VALUES('', '1', '$pseudo', '', 'Transport', '$message', '$temps')");
|
||||
mysql_query("INSERT INTO mail VALUES('', '1', '$pseudo', '', 'Colonisation', '$message', '$temps')") or die ("erreur sql ".mysql_error());
|
||||
|
||||
$reqP = mysql_query("SELECT * FROM `planete` WHERE `id_user` = '$id'") or die ("erreur sql ".mysql_error());
|
||||
$reqPM = mysql_query("SELECT `planeteMere` FROM `user` WHERE `id` = '$id'") or die ("erreur sql ".mysql_error());
|
||||
$resultatPM = mysql_fetch_array($reqPM);
|
||||
$c=0;
|
||||
for ($m=0 ; $m<mysql_num_rows($reqP) ; $m++) {
|
||||
$resultatP = mysql_fetch_array($reqP);
|
||||
$idP = $resultatP['id'];
|
||||
if ($resultatPM['planeteMere'] == $idP || ($resultatPM['planeteMere'] == 0 && $m == 0)) mysql_query("UPDATE `planete` SET `nColo` = '0' WHERE `id`='$idP';");
|
||||
else {
|
||||
$c++;
|
||||
mysql_query("UPDATE `planete` SET `nColo` = '$c' WHERE `id`='$idP';");
|
||||
}
|
||||
}
|
||||
}
|
||||
else mysql_query("INSERT INTO mail VALUES('', '1', '$pseudo', '', 'Colonisation', 'Nous n''avons pas pu coloniser la planète [$end_galaxie:$end_ss:$end_position] car lorsque nous sommes arrivé sur place, elle était déjà colonisée.', '$temps')") or die ("erreur sql ".mysql_error());
|
||||
}
|
||||
//Mission Recycler
|
||||
elseif ($mission == 4) {
|
||||
|
|
|
|||
BIN
pages/images/arme.jpg
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
pages/images/technologies/Thumbs.db
Normal file
BIN
pages/images/terrestre/tourelle.jpg
Normal file
|
After Width: | Height: | Size: 31 KiB |
BIN
pages/images/terrestre/wraith.jpg
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
pages/images/vaisseaux/croiseur.jpg
Normal file
|
After Width: | Height: | Size: 31 KiB |
BIN
pages/images/vaisseaux/pv.jpg
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
pages/images/vaisseaux/vaisseau.jpg
Normal file
|
After Width: | Height: | Size: 28 KiB |
|
|
@ -5,18 +5,19 @@ $id=$_SESSION['id'];
|
|||
$galaxy=$_SESSION['galaxy'];
|
||||
$ss=$_SESSION['ss'];
|
||||
$pos=$_SESSION['pos'];
|
||||
$_SESSION['dernPage'] = 'laboratoire.php';
|
||||
|
||||
require_once 'bdd.php';
|
||||
require_once 'ressource.php';
|
||||
require_once('../securite.php');
|
||||
require_once 'ressourcetem.php';
|
||||
require_once 'laboratoire_ajout.php';
|
||||
require_once 'noms.php';
|
||||
//require_once('../securite.php');
|
||||
require('../template.php');
|
||||
$template = new Template('../templates/'.$templates);
|
||||
|
||||
function verification_des_ress($numtec, $metal, $calcium, $nourriture, $ress_ness_metal, $ress_ness_calcium, $ress_ness_nourriture) {
|
||||
if ($metal >= $ress_ness_metal && $calcium >= $ress_ness_calcium && $nourriture >= $ress_ness_nourriture) return '<br /><br /><br /><br /><font color="teal"><a href="construction.php?tec='.$numtec.'">Construire</a></font>';
|
||||
else return '<br /><br /><br /><font color="red">Construire</font>';
|
||||
if ($metal >= $ress_ness_metal && $calcium >= $ress_ness_calcium && $nourriture >= $ress_ness_nourriture) return '<font color="teal"><a href="construction.php?tec='.$numtec.'">Rechercher</a></font>';
|
||||
else return '<font color="red">Rechercher</font>';
|
||||
}
|
||||
|
||||
function ressources($fer, $cristal, $ro, $need_fer, $need_cristal, $need_ro) {
|
||||
|
|
@ -65,186 +66,193 @@ function sec($time) {
|
|||
}
|
||||
|
||||
if ($labo > 0) {
|
||||
$template->set_filenames(array('ressourcestpl' => 'ressources.tpl'));
|
||||
$template->assign_vars( array('RES_IMAGE' => $RES_IMAGE, 'NOM_METAL' => $NOM_METAL, 'NOM_CRISTAL' => $NOM_CRISTAL, 'NOM_HYDROGENE' => $NOM_HYDROGENE, 'NOM_ENERGIE' => $NOM_ENERGIE, 'RES_METAL' => $RES_METAL, 'RES_CRISTAL' => $RES_CRISTAL, 'RES_HYDROGENE' => $RES_HYDROGENE, 'RES_ENERGIE' => $RES_ENERGIE));
|
||||
$template->assign_block_vars('planetes',array('RES_VALUE' => $Aplan_value, 'RES_MORE' => $Aplan_more, 'RES_REF' => $Aplan_ref));
|
||||
if (!isset($_GET['err'])) $_GET['err'] = '';
|
||||
$ERREUR = '';
|
||||
if ($_GET['err'] == 1) $ERREUR = '<div class="centre"><table style="margin-left: auto; margin-right: auto;"><tr><td><font color="#FF0000"><b>Cette technologie est déjà en cours de recherche, vous ne pouvez pas la rajouter dans la file d\'attente.</b></font></td></tr></table></div>';
|
||||
|
||||
$template->set_filenames(array('labo' => 'laboratoire.tpl'));
|
||||
$template->assign_var_from_handle('RESSOURCES', 'ressourcestpl');
|
||||
$template->assign_vars( array('RACE' => $race));
|
||||
$template->set_filenames(array('ressourcestpl' => 'ressources.tpl'));
|
||||
$template->assign_vars( array('RES_IMAGE' => $RES_IMAGE, 'NOM_METAL' => $NOM_METAL, 'NOM_CRISTAL' => $NOM_CRISTAL, 'NOM_HYDROGENE' => $NOM_HYDROGENE, 'NOM_ENERGIE' => $NOM_ENERGIE, 'RES_METAL' => $RES_METAL, 'RES_CRISTAL' => $RES_CRISTAL, 'RES_HYDROGENE' => $RES_HYDROGENE, 'RES_ENERGIE' => $RES_ENERGIE, 'ERREUR' => $ERREUR, 'HEADER' => $HEADER));
|
||||
for ($i=0 ; $i<count($Aplan_value) ; $i++) {
|
||||
$template->assign_block_vars('planetes',array('RES_VALUE' => $Aplan_value[$i], 'RES_MORE' => $Aplan_more[$i], 'RES_REF' => $Aplan_ref[$i]));
|
||||
}
|
||||
|
||||
// Technologie n°1 : Informatique/Informatique/IA ; user.informatique
|
||||
if ($labo >= 1) {
|
||||
$i = 0;
|
||||
$nom_bdd = 'informatique';
|
||||
if (${$nom_bdd} > 0) $niveau = '(Niveau '.${$nom_bdd}.')'; else $niveau = '';
|
||||
$n=(${$nom_bdd}-1); $b=ceil(pow(2,$n)*500); $c=ceil(pow(2,$n)*150);
|
||||
if ($temps_tec > 0 && $tec == $i+1) { $tr=$temps_tec-time(); $action = '<br /><br /><br /><span id="axion"></span><br><script type="text/javascript">reste('.$tr.');</script><a href="anul_tec.php?tec='.($i+1).'">Annuler</a>'; }
|
||||
elseif($bat == 7) $action = '<br /><br /><br />Le laboratoire est en cours d\'évolution';
|
||||
else $action = verification_des_ress($i+1, $metal, $cristal, $hydrogene, 0, $b, $c);
|
||||
if (!empty($technolo[$i])) $template->assign_block_vars('technologie', array('IMAGE' => $technoli[$i], 'NOM' => $technolo[$i], 'NUM' => $i, 'NIVEAU' => $niveau, 'DESCRIPTION' => $technode[$i], 'BESOIN' => ressources($metal, $cristal, $hydrogene, 0, $b, $c, $mine_m, $mine_c, $mine_h), 'TEMPS' => sec(ceil((420*2*($informatique+1))/pow(1.25,($labo-1)))), 'ACTION' => $action));
|
||||
}
|
||||
|
||||
// Technologie n°2 : Detection/Detection/Radar ; user.detection
|
||||
if ($labo >= 2 && $informatique >=2) {
|
||||
$i = 1;
|
||||
$nom_bdd = 'detection';
|
||||
if (${$nom_bdd} > 0) $niveau = '(Niveau '.${$nom_bdd}.')'; else $niveau = '';
|
||||
$n=(${$nom_bdd}-1); $a=ceil(pow(2,$n)*500); $b=ceil(pow(2,$n)*750); $c=ceil(pow(2,$n)*100);
|
||||
if ($temps_tec > 0 && $tec == $i+1) { $tr=$temps_tec-time(); $action = '<br /><br /><br /><span id="axion"></span><br><script type="text/javascript">reste('.$tr.');</script><a href="anul_tec.php?tec='.($i+1).'">Annuler</a>'; }
|
||||
elseif($bat == 7) $action = '<br /><br /><br />Le laboratoire est en cours d\'évolution';
|
||||
else $action = verification_des_ress($i+1, $metal, $cristal, $hydrogene, $a, $b, $c);
|
||||
if (!empty($technolo[$i])) $template->assign_block_vars('technologie', array('TEMPS' => sec(ceil((600*2*($detection+1))/pow(1.25,($labo-2)))), 'BESOIN' => ressources($metal, $cristal, $hydrogene, $a, $b, $c, $mine_m, $mine_c, $mine_h), 'IMAGE' => $technoli[$i], 'NOM' => $technolo[$i], 'NUM' => $i, 'NIVEAU' => $niveau, 'DESCRIPTION' => $technode[$i], 'ACTION' => $action));
|
||||
}
|
||||
|
||||
// Technologie n°3 : Armement/Armement/Armement ; user.armement
|
||||
if ($labo >= 5) {
|
||||
$i = 2;
|
||||
$nom_bdd = 'armement';
|
||||
if (${$nom_bdd} > 0) $niveau = '(Niveau '.${$nom_bdd}.')'; else $niveau = '';
|
||||
$n=(${$nom_bdd}-1); $a=ceil(pow(2,$n)*2500); $b=ceil(pow(2,$n)*500);
|
||||
if ($temps_tec > 0 && $tec == $i+1) { $tr=$temps_tec-time(); $action = '<br /><br /><br /><span id="axion"></span><br><script type="text/javascript">reste('.$tr.');</script><a href="anul_tec.php?tec='.($i+1).'">Annuler</a>'; }
|
||||
elseif($bat == 7) $action = '<br /><br /><br />Le laboratoire est en cours d\'évolution';
|
||||
else $action = verification_des_ress($i+1, $metal, $cristal, $hydrogene, $a, $b, $c);
|
||||
if (!empty($technolo[$i])) $template->assign_block_vars('technologie', array('TEMPS' => sec(ceil((1500*2*($armement+1))/pow(1.25,($labo-5)))), 'BESOIN' => ressources($metal, $cristal, $hydrogene, $a, $b, 0, $mine_m, $mine_c, $mine_h), 'IMAGE' => $technoli[$i], 'NOM' => $technolo[$i], 'NUM' => $i, 'NIVEAU' => $niveau, 'DESCRIPTION' => $technode[$i], 'ACTION' => $action));
|
||||
}
|
||||
|
||||
// Technologie n°4 : Bouclier/Bouclier/Blindage ; user.blindage
|
||||
if ($labo >= 4) {
|
||||
$i = 3;
|
||||
$nom_bdd = 'blindage';
|
||||
$n=(${$nom_bdd}-1);
|
||||
if (${$nom_bdd} > 0) $niveau = '(Niveau '.${$nom_bdd}.')'; else $niveau = '';
|
||||
$a=ceil(pow(2,$n)*4000); $b=ceil(pow(2,$n)*1500);
|
||||
if ($temps_tec > 0 && $tec == $i+1) { $tr=$temps_tec-time(); $action = '<br /><br /><br /><span id="axion"></span><br><script type="text/javascript">reste('.$tr.');</script><a href="anul_tec.php?tec='.($i+1).'">Annuler</a>'; }
|
||||
elseif($bat == 7) $action = '<br /><br /><br />Le laboratoire est en cours d\'évolution';
|
||||
else $action = verification_des_ress($i+1, $metal, $cristal, $hydrogene, $a, $b, $c);
|
||||
if (!empty($technolo[$i])) $template->assign_block_vars('technologie', array('TEMPS' => sec(ceil((1710*2*($blindage+1))/pow(1.25,($labo-4)))), 'BESOIN' => ressources($metal, $cristal, $hydrogene, $a, $b, 0, $mine_m, $mine_c, $mine_h), 'IMAGE' => $technoli[$i], 'NOM' => $technolo[$i], 'NUM' => $i, 'NIVEAU' => $niveau, 'DESCRIPTION' => $technode[$i], 'ACTION' => $action));
|
||||
}
|
||||
|
||||
// Technologie n°5 : Maitrise de l'énergie/Maitrise de l'énergie/Maitrise de l'énergie ; user.energie_t
|
||||
if ($labo >= 2) {
|
||||
$i = 4;
|
||||
$nom_bdd = 'energie_t';
|
||||
$n=(${$nom_bdd}-1);
|
||||
if (${$nom_bdd} > 0) $niveau = '(Niveau '.${$nom_bdd}.')'; else $niveau = '';
|
||||
$a=ceil(pow(2,$n)*2000); $b=ceil(pow(2,$n)*1500); $c=ceil(pow(2,$n)*300);
|
||||
if ($temps_tec > 0 && $tec == $i+1) { $tr=$temps_tec-time(); $action = '<br /><br /><br /><span id="axion"></span><br><script type="text/javascript">reste('.$tr.');</script><a href="anul_tec.php?tec='.($i+1).'">Annuler</a>'; }
|
||||
elseif($bat == 7) $action = '<br /><br /><br />Le laboratoire est en cours d\'évolution';
|
||||
else $action = verification_des_ress($i+1, $metal, $cristal, $hydrogene, $a, $b, $c);
|
||||
if (!empty($technolo[$i])) $template->assign_block_vars('technologie', array('TEMPS' => sec(ceil((900*2*($energie_t+1))/pow(1.25,($labo-2)))), 'BESOIN' => ressources($metal, $cristal, $hydrogene, $a, $b, $c, $mine_m, $mine_c, $mine_h), 'IMAGE' => $technoli[$i], 'NOM' => $technolo[$i], 'NUM' => $i, 'NIVEAU' => $niveau, 'DESCRIPTION' => $technode[$i], 'ACTION' => $action));
|
||||
}
|
||||
|
||||
// Technologie n°6 : Réacteur à antigravité/Réacteur à antigravité/Réacteur à combustion ; user.energie_t
|
||||
if ($labo >= 2) {
|
||||
$i = 5;
|
||||
$nom_bdd = 'reacteur';
|
||||
$n=(${$nom_bdd}-1);
|
||||
if (${$nom_bdd} > 0) $niveau = '(Niveau '.${$nom_bdd}.')'; else $niveau = '';
|
||||
$a=ceil(pow(2,$n)*1400); $b=ceil(pow(2,$n)*400);
|
||||
if ($temps_tec > 0 && $tec == $i+1) { $tr=$temps_tec-time(); $action = '<br /><br /><br /><span id="axion"></span><br><script type="text/javascript">reste('.$tr.');</script><a href="anul_tec.php?tec='.($i+1).'">Annuler</a>'; }
|
||||
elseif($bat == 7) $action = '<br /><br /><br />Le laboratoire est en cours d\'évolution';
|
||||
else $action = verification_des_ress($i+1, $metal, $cristal, $hydrogene, $a, $b, $c);
|
||||
if (!empty($technolo[$i])) $template->assign_block_vars('technologie', array('TEMPS' => sec(ceil((510*2*($reacteur+1))/pow(1.25,($labo-2)))), 'BESOIN' => ressources($metal, $cristal, $hydrogene, $a, $b, 0, $mine_m, $mine_c, $mine_h), 'IMAGE' => $technoli[$i], 'NOM' => $technolo[$i], 'NUM' => $i, 'NIVEAU' => $niveau, 'DESCRIPTION' => $technode[$i], 'ACTION' => $action));
|
||||
}
|
||||
|
||||
// Technologie n°7 : Réacteur à fusion/Réacteur à fusion/Réacteur à fusion ; user.reacteur_f
|
||||
if ($labo >= 2) {
|
||||
$i = 6;
|
||||
$nom_bdd = 'reacteur_f';
|
||||
$n=(${$nom_bdd}-1);
|
||||
if (${$nom_bdd} > 0) $niveau = '(Niveau '.${$nom_bdd}.')'; else $niveau = '';
|
||||
$a=ceil(pow(2,$n)*3000); $b=ceil(pow(2,$n)*2100); $c=ceil(pow(2,$n)*750);
|
||||
if ($temps_tec > 0 && $tec == $i+1) { $tr=$temps_tec-time(); $action = '<br /><br /><br /><span id="axion"></span><br><script type="text/javascript">reste('.$tr.');</script><a href="anul_tec.php?tec='.($i+1).'">Annuler</a>'; }
|
||||
elseif($bat == 7) $action = '<br /><br /><br />Le laboratoire est en cours d\'évolution';
|
||||
else $action = verification_des_ress($i+1, $metal, $cristal, $hydrogene, $a, $b, $c);
|
||||
if (!empty($technolo[$i])) $template->assign_block_vars('technologie', array('TEMPS' => sec(ceil((1650*2*($reacteur_f+1))/pow(1.25,($labo-4)))), 'BESOIN' => ressources($metal, $cristal, $hydrogene, $a, $b, $c, $mine_m, $mine_c, $mine_h), 'IMAGE' => $technoli[$i], 'NOM' => $technolo[$i], 'NUM' => $i, 'NIVEAU' => $niveau, 'DESCRIPTION' => $technode[$i], 'ACTION' => $action));
|
||||
}
|
||||
|
||||
// Technologie n°8 : Réacteur à fusion Forerunneur/Réacteur à fusion Forerunneur/Réacteur à fusion de type II ; user.reacteur_ff
|
||||
if ($labo >= 6 && $energie_t >= 5 && $reacteur_f >= 4) {
|
||||
$i = 7;
|
||||
$nom_bdd = 'reacteur_ff';
|
||||
$n=(${$nom_bdd}-1);
|
||||
if (${$nom_bdd} > 0) $niveau = '(Niveau '.${$nom_bdd}.')'; else $niveau = '';
|
||||
$a=ceil(pow(2,$n)*5000); $b=ceil(pow(2,$n)*4000); $c=ceil(pow(2,$n)*1500);
|
||||
if ($temps_tec > 0 && $tec == $i+1) { $tr=$temps_tec-time(); $action = '<br /><br /><br /><span id="axion"></span><br><script type="text/javascript">reste('.$tr.');</script><a href="anul_tec.php?tec='.($i+1).'">Annuler</a>'; }
|
||||
elseif($bat == 7) $action = '<br /><br /><br />Le laboratoire est en cours d\'évolution';
|
||||
else $action = verification_des_ress($i+1, $metal, $cristal, $hydrogene, $a, $b, $c);
|
||||
if (!empty($technolo[$i])) $template->assign_block_vars('technologie', array('TEMPS' => sec(ceil((2400*2*($reacteur_ff+1))/pow(1.25,($labo-6)))), 'BESOIN' => ressources($metal, $cristal, $hydrogene, $a, $b, $c, $mine_m, $mine_c, $mine_h), 'IMAGE' => $technoli[$i], 'NOM' => $technolo[$i], 'NUM' => $i, 'NIVEAU' => $niveau, 'DESCRIPTION' => $technode[$i], 'ACTION' => $action));
|
||||
}
|
||||
|
||||
// Technologie n°9 : Médecine/Médecine/Médecine ; user.reacteur_ff
|
||||
if ($labo >= 1) {
|
||||
$i = 8;
|
||||
$nom_bdd = 'medecine';
|
||||
$n=(${$nom_bdd}-1);
|
||||
if (${$nom_bdd} > 0) $niveau = '(Niveau '.${$nom_bdd}.')'; else $niveau = '';
|
||||
$a=ceil(pow(2,$n)*800); $b=ceil(pow(2,$n)*1000);
|
||||
if ($temps_tec > 0 && $tec == $i+1) { $tr=$temps_tec-time(); $action = '<br /><br /><br /><span id="axion"></span><br><script type="text/javascript">reste('.$tr.');</script><a href="anul_tec.php?tec='.($i+1).'">Annuler</a>'; }
|
||||
elseif($bat == 7) $action = '<br /><br /><br />Le laboratoire est en cours d\'évolution';
|
||||
else $action = verification_des_ress($i+1, $metal, $cristal, $hydrogene, $a, $b, $c);
|
||||
if (!empty($technolo[$i])) $template->assign_block_vars('technologie', array('TEMPS' => sec(ceil((360*2*($medecine+1))/pow(1.25,($labo-1)))), 'BESOIN' => ressources($metal, $cristal, $hydrogene, $a, $b, 0, $mine_m, $mine_c, $mine_h), 'IMAGE' => $technoli[$i], 'NOM' => $technolo[$i], 'NUM' => $i, 'NIVEAU' => $niveau, 'DESCRIPTION' => $technode[$i], 'ACTION' => $action));
|
||||
}
|
||||
|
||||
// Technologie n°10 : Commandement militaire/Commandement militaire/Tactiques de combats ; user.tactique
|
||||
if ($labo >= 3) {
|
||||
$i = 9;
|
||||
$nom_bdd = 'tactique';
|
||||
$n=(${$nom_bdd}-1);
|
||||
if (${$nom_bdd} > 0) $niveau = '(Niveau '.${$nom_bdd}.')'; else $niveau = '';
|
||||
$a=ceil(pow(2,$n)*2600); $b=ceil(pow(2,$n)*2600);
|
||||
if ($temps_tec > 0 && $tec == $i+1) { $tr=$temps_tec-time(); $action = '<br /><br /><br /><span id="axion"></span><br><script type="text/javascript">reste('.$tr.');</script><a href="anul_tec.php?tec='.($i+1).'">Annuler</a>'; }
|
||||
elseif($bat == 7) $action = '<br /><br /><br />Le laboratoire est en cours d\'évolution';
|
||||
else $action = verification_des_ress($i+1, $metal, $cristal, $hydrogene, $a, $b, $c);
|
||||
if (!empty($technolo[$i])) $template->assign_block_vars('technologie', array('TEMPS' => sec(ceil((4410*2*($tactique+1))/pow(1.25,($labo-3)))), 'BESOIN' => ressources($metal, $cristal, $hydrogene, $a, $b, 0, $mine_m, $mine_c, $mine_h), 'IMAGE' => $technoli[$i], 'NOM' => $technolo[$i], 'NUM' => $i, 'NIVEAU' => $niveau, 'DESCRIPTION' => $technode[$i], 'ACTION' => $action));
|
||||
}
|
||||
|
||||
// Technologie n°11 : 0/0/Spartan ; user.spartan
|
||||
if ($labo >= 8 && $medecine >= 5 && $informatique >= 8) {
|
||||
$i = 10;
|
||||
$nom_bdd = 'spartan';
|
||||
$n=(${$nom_bdd}-1);
|
||||
if (${$nom_bdd} > 0) $niveau = '(Niveau '.${$nom_bdd}.')'; else $niveau = '';
|
||||
$a=ceil(pow(3,$n)*5200); $b=ceil(pow(3,$n)*4250); $c=ceil(pow(3,$n)*850);
|
||||
if ($temps_tec > 0 && $tec == $i+1) { $tr=$temps_tec-time(); $action = '<br /><br /><br /><span id="axion"></span><br><script type="text/javascript">reste('.$tr.');</script><a href="anul_tec.php?tec='.($i+1).'">Annuler</a>'; }
|
||||
elseif($bat == 7) $action = '<br /><br /><br />Le laboratoire est en cours d\'évolution';
|
||||
else $action = verification_des_ress($i+1, $metal, $cristal, $hydrogene, $a, $b, $c);
|
||||
if (!empty($technolo[$i])) $template->assign_block_vars('technologie', array('TEMPS' => sec(ceil((5000*2*($spartan+1))/pow(1.25,($labo-8)))), 'BESOIN' => ressources($metal, $cristal, $hydrogene, $a, $b, $c, $mine_m, $mine_c, $mine_h), 'IMAGE' => $technoli[$i], 'NOM' => $technolo[$i], 'NUM' => $i, 'NIVEAU' => $niveau, 'DESCRIPTION' => $technode[$i], 'ACTION' => $action));
|
||||
}
|
||||
$template->pparse('labo');
|
||||
exit;
|
||||
|
||||
|
||||
if ($labo >= 8 && $medecine >= 5 && $informatique >= 8 && $race == 'humain') {
|
||||
echo'<div class="a">
|
||||
<img src="images/technologies/'.$technoli[10].'" alt="" />
|
||||
</div>
|
||||
<div class="b">
|
||||
<a href=\"descriptions/.php\">'.$technolo[10].'</a> '; if ($spartan > 0) echo '(Niveau '.$spartan.')';
|
||||
echo '<br><span class="description">'.$technode[10].'</span><br>
|
||||
Besoin de : ';
|
||||
$n=($spartan-1);
|
||||
$a=ceil(pow(3,$n)*5200); $b=ceil(pow(3,$n)*4250); $c=ceil(pow(3,$n)*850);
|
||||
ressources($metal, $cristal, $hydrogene, $a, $b, $c, $mine_m, $mine_c, $mine_h); echo '<br>
|
||||
Temps de construction : '; sec(ceil((5000*2*($spartan+1))/pow(1.25,($labo-8))));
|
||||
echo '</div>
|
||||
<div class="c">';
|
||||
if ($temps_tec > 0) {
|
||||
if ($tec==11) {
|
||||
$tr=$temps_tec-time();
|
||||
echo '<br><br><br><span id="axion"></span><br>';
|
||||
echo '<script language="JavaScript">reste('.$tr.');</script>';
|
||||
echo "<a href=\"anul_tec.php?tec=11\">Annuler</a>";
|
||||
}
|
||||
$template->set_filenames(array('labo' => 'laboratoire.tpl'));
|
||||
$template->assign_var_from_handle('RESSOURCES', 'ressourcestpl');
|
||||
if (!empty($fileTec[0])) {
|
||||
for ($i=0 ; $i<count($fileTec) ; $i++) {
|
||||
$template->assign_block_vars('file',array('NOM' => $technolo[$fileTec[$i]-1], 'NUM' => $fileTec[$i]));
|
||||
}
|
||||
else {
|
||||
if($bat == 7) echo "<br><br><br>Le laboratoire est en cours d'évolution";
|
||||
else verification_des_ress(11, $metal, $cristal, $hydrogene, $a, $b, $c);
|
||||
}
|
||||
echo '</div>'; }
|
||||
}
|
||||
$template->assign_vars(array('RACE' => $race));
|
||||
|
||||
// Technologie n°1 : Informatique/Informatique/IA ; user.informatique
|
||||
if ($labo >= 1) {
|
||||
$i = 0;
|
||||
$nom_bdd = 'informatique';
|
||||
if (${$nom_bdd} > 0) $niveau = '(Niveau '.${$nom_bdd}.')'; else $niveau = '';
|
||||
$n=(${$nom_bdd}-1); $b=ceil(pow(2,$n)*500); $c=ceil(pow(2,$n)*150);
|
||||
if (is_array($fileTec) && $tec == $i+1) { $tr=$fileTemps_t[0]+$fileTemps_t[1]-time(); $action = 'Recherche en cours, temps restant : <span id="axion"></span><br><script type="text/javascript">reste('.$tr.');</script>'; }
|
||||
elseif (is_array($fileTec) && ereg(($i+1).',',implode(',', $fileTec).',')) { $tr=$fileTemps_t[0]+$fileTemps_t[1]-time(); $action = 'Recherche dans la file d\'attente'; }
|
||||
elseif($bat == 7) $action = 'Le laboratoire est en cours d\'évolution';
|
||||
else $action = verification_des_ress($i+1, $metal, $cristal, $hydrogene, 0, $b, $c);
|
||||
if (!empty($technolo[$i])) $template->assign_block_vars('technologie', array('IMAGE' => $technoli[$i], 'NOM' => $technolo[$i], 'NUM' => $i, 'NIVEAU' => $niveau, 'DESCRIPTION' => $technode[$i], 'BESOIN' => ressources($metal, $cristal, $hydrogene, 0, $b, $c, $mine_m, $mine_c, $mine_h), 'TEMPS' => sec(ceil((420*2*($informatique+1))/pow(1.25,($labo-1)))), 'ACTION' => $action));
|
||||
}
|
||||
|
||||
// Technologie n°2 : Detection/Detection/Radar ; user.detection
|
||||
if ($labo >= 2 && $informatique >=2) {
|
||||
$i = 1;
|
||||
$nom_bdd = 'detection';
|
||||
if (${$nom_bdd} > 0) $niveau = '(Niveau '.${$nom_bdd}.')'; else $niveau = '';
|
||||
$n=(${$nom_bdd}-1); $a=ceil(pow(2,$n)*500); $b=ceil(pow(2,$n)*750); $c=ceil(pow(2,$n)*100);
|
||||
if (is_array($fileTec) && $tec == $i+1) { $tr=$fileTemps_t[0]+$fileTemps_t[1]-time(); $action = 'Recherche en cours, temps restant : <span id="axion"></span><br><script type="text/javascript">reste('.$tr.');</script>'; }
|
||||
elseif (is_array($fileTec) && ereg(($i+1).',',implode(',', $fileTec).',')) { $tr=$fileTemps_t[0]+$fileTemps_t[1]-time(); $action = 'Recherche dans la file d\'attente'; }
|
||||
elseif($bat == 7) $action = 'Le laboratoire est en cours d\'évolution';
|
||||
else $action = verification_des_ress($i+1, $metal, $cristal, $hydrogene, $a, $b, $c);
|
||||
if (!empty($technolo[$i])) $template->assign_block_vars('technologie', array('TEMPS' => sec(ceil((600*2*($detection+1))/pow(1.25,($labo-2)))), 'BESOIN' => ressources($metal, $cristal, $hydrogene, $a, $b, $c, $mine_m, $mine_c, $mine_h), 'IMAGE' => $technoli[$i], 'NOM' => $technolo[$i], 'NUM' => $i, 'NIVEAU' => $niveau, 'DESCRIPTION' => $technode[$i], 'ACTION' => $action));
|
||||
}
|
||||
|
||||
// Technologie n°3 : Armement/Armement/Armement ; user.armement
|
||||
if ($labo >= 5) {
|
||||
$i = 2;
|
||||
$nom_bdd = 'armement';
|
||||
if (${$nom_bdd} > 0) $niveau = '(Niveau '.${$nom_bdd}.')'; else $niveau = '';
|
||||
$n=(${$nom_bdd}-1); $a=ceil(pow(2,$n)*2500); $b=ceil(pow(2,$n)*500);
|
||||
if (is_array($fileTec) && $tec == $i+1) { $tr=$fileTemps_t[0]+$fileTemps_t[1]-time(); $action = 'Recherche en cours, temps restant : <span id="axion"></span><br><script type="text/javascript">reste('.$tr.');</script>'; }
|
||||
elseif (is_array($fileTec) && ereg(($i+1).',',implode(',', $fileTec).',')) { $tr=$fileTemps_t[0]+$fileTemps_t[1]-time(); $action = 'Recherche dans la file d\'attente'; }
|
||||
elseif($bat == 7) $action = 'Le laboratoire est en cours d\'évolution';
|
||||
else $action = verification_des_ress($i+1, $metal, $cristal, $hydrogene, $a, $b, $c);
|
||||
if (!empty($technolo[$i])) $template->assign_block_vars('technologie', array('TEMPS' => sec(ceil((1500*2*($armement+1))/pow(1.25,($labo-5)))), 'BESOIN' => ressources($metal, $cristal, $hydrogene, $a, $b, 0, $mine_m, $mine_c, $mine_h), 'IMAGE' => $technoli[$i], 'NOM' => $technolo[$i], 'NUM' => $i, 'NIVEAU' => $niveau, 'DESCRIPTION' => $technode[$i], 'ACTION' => $action));
|
||||
}
|
||||
|
||||
// Technologie n°4 : Bouclier/Bouclier/Blindage ; user.blindage
|
||||
if ($labo >= 4) {
|
||||
$i = 3;
|
||||
$nom_bdd = 'blindage';
|
||||
$n=(${$nom_bdd}-1);
|
||||
if (${$nom_bdd} > 0) $niveau = '(Niveau '.${$nom_bdd}.')'; else $niveau = '';
|
||||
$a=ceil(pow(2,$n)*4000); $b=ceil(pow(2,$n)*1500);
|
||||
if (is_array($fileTec) && $tec == $i+1) { $tr=$fileTemps_t[0]+$fileTemps_t[1]-time(); $action = 'Recherche en cours, temps restant : <span id="axion"></span><br><script type="text/javascript">reste('.$tr.');</script>'; }
|
||||
elseif (is_array($fileTec) && ereg(($i+1).',',implode(',', $fileTec).',')) { $tr=$fileTemps_t[0]+$fileTemps_t[1]-time(); $action = 'Recherche dans la file d\'attente'; }
|
||||
elseif($bat == 7) $action = 'Le laboratoire est en cours d\'évolution';
|
||||
else $action = verification_des_ress($i+1, $metal, $cristal, $hydrogene, $a, $b, $c);
|
||||
if (!empty($technolo[$i])) $template->assign_block_vars('technologie', array('TEMPS' => sec(ceil((1710*2*($blindage+1))/pow(1.25,($labo-4)))), 'BESOIN' => ressources($metal, $cristal, $hydrogene, $a, $b, 0, $mine_m, $mine_c, $mine_h), 'IMAGE' => $technoli[$i], 'NOM' => $technolo[$i], 'NUM' => $i, 'NIVEAU' => $niveau, 'DESCRIPTION' => $technode[$i], 'ACTION' => $action));
|
||||
}
|
||||
|
||||
// Technologie n°5 : Maitrise de l'énergie/Maitrise de l'énergie/Maitrise de l'énergie ; user.energie_t
|
||||
if ($labo >= 2) {
|
||||
$i = 4;
|
||||
$nom_bdd = 'energie_t';
|
||||
$n=(${$nom_bdd}-1);
|
||||
if (${$nom_bdd} > 0) $niveau = '(Niveau '.${$nom_bdd}.')'; else $niveau = '';
|
||||
$a=ceil(pow(2,$n)*2000); $b=ceil(pow(2,$n)*1500); $c=ceil(pow(2,$n)*300);
|
||||
if (is_array($fileTec) && $tec == $i+1) { $tr=$fileTemps_t[0]+$fileTemps_t[1]-time(); $action = 'Recherche en cours, temps restant : <span id="axion"></span><br><script type="text/javascript">reste('.$tr.');</script>'; }
|
||||
elseif (is_array($fileTec) && ereg(($i+1).',',implode(',', $fileTec).',')) { $tr=$fileTemps_t[0]+$fileTemps_t[1]-time(); $action = 'Recherche dans la file d\'attente'; }
|
||||
elseif($bat == 7) $action = 'Le laboratoire est en cours d\'évolution';
|
||||
else $action = verification_des_ress($i+1, $metal, $cristal, $hydrogene, $a, $b, $c);
|
||||
if (!empty($technolo[$i])) $template->assign_block_vars('technologie', array('TEMPS' => sec(ceil((900*2*($energie_t+1))/pow(1.25,($labo-2)))), 'BESOIN' => ressources($metal, $cristal, $hydrogene, $a, $b, $c, $mine_m, $mine_c, $mine_h), 'IMAGE' => $technoli[$i], 'NOM' => $technolo[$i], 'NUM' => $i, 'NIVEAU' => $niveau, 'DESCRIPTION' => $technode[$i], 'ACTION' => $action));
|
||||
}
|
||||
|
||||
// Technologie n°6 : Réacteur à antigravité/Réacteur à antigravité/Réacteur à combustion ; user.energie_t
|
||||
if ($labo >= 2) {
|
||||
$i = 5;
|
||||
$nom_bdd = 'reacteur';
|
||||
$n=(${$nom_bdd}-1);
|
||||
if (${$nom_bdd} > 0) $niveau = '(Niveau '.${$nom_bdd}.')'; else $niveau = '';
|
||||
$a=ceil(pow(2,$n)*1400); $b=ceil(pow(2,$n)*400);
|
||||
if (is_array($fileTec) && $tec == $i+1) { $tr=$fileTemps_t[0]+$fileTemps_t[1]-time(); $action = 'Recherche en cours, temps restant : <span id="axion"></span><br><script type="text/javascript">reste('.$tr.');</script>'; }
|
||||
elseif (is_array($fileTec) && ereg(($i+1).',',implode(',', $fileTec).',')) { $tr=$fileTemps_t[0]+$fileTemps_t[1]-time(); $action = 'Recherche dans la file d\'attente'; }
|
||||
elseif($bat == 7) $action = 'Le laboratoire est en cours d\'évolution';
|
||||
else $action = verification_des_ress($i+1, $metal, $cristal, $hydrogene, $a, $b, $c);
|
||||
if (!empty($technolo[$i])) $template->assign_block_vars('technologie', array('TEMPS' => sec(ceil((510*2*($reacteur+1))/pow(1.25,($labo-2)))), 'BESOIN' => ressources($metal, $cristal, $hydrogene, $a, $b, 0, $mine_m, $mine_c, $mine_h), 'IMAGE' => $technoli[$i], 'NOM' => $technolo[$i], 'NUM' => $i, 'NIVEAU' => $niveau, 'DESCRIPTION' => $technode[$i], 'ACTION' => $action));
|
||||
}
|
||||
|
||||
// Technologie n°7 : Réacteur à fusion/Réacteur à fusion/Réacteur à fusion ; user.reacteur_f
|
||||
if ($labo >= 4 && $energie_t >= 2 && $reacteur >= 4) {
|
||||
$i = 6;
|
||||
$nom_bdd = 'reacteur_f';
|
||||
$n=(${$nom_bdd}-1);
|
||||
if (${$nom_bdd} > 0) $niveau = '(Niveau '.${$nom_bdd}.')'; else $niveau = '';
|
||||
$a=ceil(pow(2,$n)*3000); $b=ceil(pow(2,$n)*2100); $c=ceil(pow(2,$n)*750);
|
||||
if (is_array($fileTec) && $tec == $i+1) { $tr=$fileTemps_t[0]+$fileTemps_t[1]-time(); $action = 'Recherche en cours, temps restant : <span id="axion"></span><br><script type="text/javascript">reste('.$tr.');</script>'; }
|
||||
elseif (is_array($fileTec) && ereg(($i+1).',',implode(',', $fileTec).',')) { $tr=$fileTemps_t[0]+$fileTemps_t[1]-time(); $action = 'Recherche dans la file d\'attente'; }
|
||||
elseif($bat == 7) $action = 'Le laboratoire est en cours d\'évolution';
|
||||
else $action = verification_des_ress($i+1, $metal, $cristal, $hydrogene, $a, $b, $c);
|
||||
if (!empty($technolo[$i])) $template->assign_block_vars('technologie', array('TEMPS' => sec(ceil((1650*2*($reacteur_f+1))/pow(1.25,($labo-4)))), 'BESOIN' => ressources($metal, $cristal, $hydrogene, $a, $b, $c, $mine_m, $mine_c, $mine_h), 'IMAGE' => $technoli[$i], 'NOM' => $technolo[$i], 'NUM' => $i, 'NIVEAU' => $niveau, 'DESCRIPTION' => $technode[$i], 'ACTION' => $action));
|
||||
}
|
||||
|
||||
// Technologie n°8 : Réacteur à fusion Forerunneur/Réacteur à fusion Forerunneur/Réacteur à fusion de type II ; user.reacteur_ff
|
||||
if ($labo >= 6 && $energie_t >= 5 && $reacteur_f >= 4) {
|
||||
$i = 7;
|
||||
$nom_bdd = 'reacteur_ff';
|
||||
$n=(${$nom_bdd}-1);
|
||||
if (${$nom_bdd} > 0) $niveau = '(Niveau '.${$nom_bdd}.')'; else $niveau = '';
|
||||
$a=ceil(pow(2,$n)*5000); $b=ceil(pow(2,$n)*4000); $c=ceil(pow(2,$n)*1500);
|
||||
if (is_array($fileTec) && $tec == $i+1) { $tr=$fileTemps_t[0]+$fileTemps_t[1]-time(); $action = 'Recherche en cours, temps restant : <span id="axion"></span><br><script type="text/javascript">reste('.$tr.');</script>'; }
|
||||
elseif (is_array($fileTec) && ereg(($i+1).',',implode(',', $fileTec).',')) { $tr=$fileTemps_t[0]+$fileTemps_t[1]-time(); $action = 'Recherche dans la file d\'attente'; }
|
||||
elseif($bat == 7) $action = 'Le laboratoire est en cours d\'évolution';
|
||||
else $action = verification_des_ress($i+1, $metal, $cristal, $hydrogene, $a, $b, $c);
|
||||
if (!empty($technolo[$i])) $template->assign_block_vars('technologie', array('TEMPS' => sec(ceil((2400*2*($reacteur_ff+1))/pow(1.25,($labo-6)))), 'BESOIN' => ressources($metal, $cristal, $hydrogene, $a, $b, $c, $mine_m, $mine_c, $mine_h), 'IMAGE' => $technoli[$i], 'NOM' => $technolo[$i], 'NUM' => $i, 'NIVEAU' => $niveau, 'DESCRIPTION' => $technode[$i], 'ACTION' => $action));
|
||||
}
|
||||
|
||||
// Technologie n°9 : Médecine/Médecine/Médecine ; user.reacteur_ff
|
||||
if ($labo >= 1) {
|
||||
$i = 8;
|
||||
$nom_bdd = 'medecine';
|
||||
$n=(${$nom_bdd}-1);
|
||||
if (${$nom_bdd} > 0) $niveau = '(Niveau '.${$nom_bdd}.')'; else $niveau = '';
|
||||
$a=ceil(pow(2,$n)*800); $b=ceil(pow(2,$n)*1000);
|
||||
if (is_array($fileTec) && $tec == $i+1) { $tr=$fileTemps_t[0]+$fileTemps_t[1]-time(); $action = 'Recherche en cours, temps restant : <span id="axion"></span><br><script type="text/javascript">reste('.$tr.');</script>'; }
|
||||
elseif (is_array($fileTec) && ereg(($i+1).',',implode(',', $fileTec).',')) { $tr=$fileTemps_t[0]+$fileTemps_t[1]-time(); $action = 'Recherche dans la file d\'attente'; }
|
||||
elseif($bat == 7) $action = 'Le laboratoire est en cours d\'évolution';
|
||||
else $action = verification_des_ress($i+1, $metal, $cristal, $hydrogene, $a, $b, $c);
|
||||
if (!empty($technolo[$i])) $template->assign_block_vars('technologie', array('TEMPS' => sec(ceil((360*2*($medecine+1))/pow(1.25,($labo-1)))), 'BESOIN' => ressources($metal, $cristal, $hydrogene, $a, $b, 0, $mine_m, $mine_c, $mine_h), 'IMAGE' => $technoli[$i], 'NOM' => $technolo[$i], 'NUM' => $i, 'NIVEAU' => $niveau, 'DESCRIPTION' => $technode[$i], 'ACTION' => $action));
|
||||
}
|
||||
|
||||
// Technologie n°10 : Commandement militaire/Commandement militaire/Tactiques de combats ; user.tactique
|
||||
if ($labo >= 3) {
|
||||
$i = 9;
|
||||
$nom_bdd = 'tactique';
|
||||
$n=(${$nom_bdd}-1);
|
||||
if (${$nom_bdd} > 0) $niveau = '(Niveau '.${$nom_bdd}.')'; else $niveau = '';
|
||||
$a=ceil(pow(2,$n)*2600); $b=ceil(pow(2,$n)*2600);
|
||||
if (is_array($fileTec) && $tec == $i+1) { $tr=$fileTemps_t[0]+$fileTemps_t[1]-time(); $action = 'Recherche en cours, temps restant : <span id="axion"></span><br><script type="text/javascript">reste('.$tr.');</script>'; }
|
||||
elseif (is_array($fileTec) && ereg(($i+1).',',implode(',', $fileTec).',')) { $tr=$fileTemps_t[0]+$fileTemps_t[1]-time(); $action = 'Recherche dans la file d\'attente'; }
|
||||
elseif($bat == 7) $action = 'Le laboratoire est en cours d\'évolution';
|
||||
else $action = verification_des_ress($i+1, $metal, $cristal, $hydrogene, $a, $b, $c);
|
||||
if (!empty($technolo[$i])) $template->assign_block_vars('technologie', array('TEMPS' => sec(ceil((4410*2*($tactique+1))/pow(1.25,($labo-3)))), 'BESOIN' => ressources($metal, $cristal, $hydrogene, $a, $b, 0, $mine_m, $mine_c, $mine_h), 'IMAGE' => $technoli[$i], 'NOM' => $technolo[$i], 'NUM' => $i, 'NIVEAU' => $niveau, 'DESCRIPTION' => $technode[$i], 'ACTION' => $action));
|
||||
}
|
||||
|
||||
// Technologie n°11 : 0/0/Spartan ; user.spartan
|
||||
if ($labo >= 8 && $medecine >= 5 && $informatique >= 8) {
|
||||
$i = 10;
|
||||
$nom_bdd = 'spartan';
|
||||
$n=(${$nom_bdd}-1);
|
||||
if (${$nom_bdd} > 0) $niveau = '(Niveau '.${$nom_bdd}.')'; else $niveau = '';
|
||||
$a=ceil(pow(3,$n)*5200); $b=ceil(pow(3,$n)*4250); $c=ceil(pow(3,$n)*850);
|
||||
if (is_array($fileTec) && $tec == $i+1) { $tr=$fileTemps_t[0]+$fileTemps_t[1]-time(); $action = 'Recherche en cours, temps restant : <span id="axion"></span><br><script type="text/javascript">reste('.$tr.');</script>'; }
|
||||
elseif (is_array($fileTec) && ereg(($i+1).',',implode(',', $fileTec).',')) { $tr=$fileTemps_t[0]+$fileTemps_t[1]-time(); $action = 'Recherche dans la file d\'attente'; }
|
||||
elseif($bat == 7) $action = 'Le laboratoire est en cours d\'évolution';
|
||||
else $action = verification_des_ress($i+1, $metal, $cristal, $hydrogene, $a, $b, $c);
|
||||
if (!empty($technolo[$i])) $template->assign_block_vars('technologie', array('TEMPS' => sec(ceil((5000*2*($spartan+1))/pow(1.25,($labo-8)))), 'BESOIN' => ressources($metal, $cristal, $hydrogene, $a, $b, $c, $mine_m, $mine_c, $mine_h), 'IMAGE' => $technoli[$i], 'NOM' => $technolo[$i], 'NUM' => $i, 'NIVEAU' => $niveau, 'DESCRIPTION' => $technode[$i], 'ACTION' => $action));
|
||||
}
|
||||
|
||||
$template->pparse('labo');
|
||||
}
|
||||
else { echo '<table align=center><tr><td>Vous devez d\'abord construire un centre de recherche !</td></tr></table>'; }
|
||||
else echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||
<meta http-equiv="Content-Language" content="fr" />
|
||||
<meta http-equiv="Cache-Control" content="no-cache" />
|
||||
<meta http-equiv="Pragma" content="no-cache" />
|
||||
<meta name="Description" lang="fr" content="Jeu en ligne de simulation de guerre spatiale" />
|
||||
<meta name="Author" content="Halo-Battle" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
|
||||
<script type="text/javascript" src="time.js"></script>
|
||||
<link rel="stylesheet" media="screen" type="text/css" title="design" href="descriptions/diz/base.css" />
|
||||
<title> ::Halo-Battle:: Bêta - Laboratoire</title>
|
||||
</head>
|
||||
<body>
|
||||
<br /><br /><br /><div class="centre"><table style="margin-left: auto; margin-right: auto;"><tr><td>Vous devez d\'abord construire un centre de recherche !</td></tr></table></div>
|
||||
</body></html>';
|
||||
?>
|
||||
|
|
@ -7,19 +7,36 @@ require('../connectBDD.php');
|
|||
if ((time()) >= $temps_tec && !empty($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 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;
|
||||
case 5: $energie_t++; mysql_query("UPDATE user SET energie_t='".$energie_t."' WHERE id='".$id."'"); break;
|
||||
case 6: $reacteur++; mysql_query("UPDATE user SET reacteur='".$reacteur."' WHERE id='".$id."'"); break;
|
||||
case 7: $reacteur_f++; mysql_query("UPDATE user SET reacteur_f='".$reacteur_f."' WHERE id='".$id."'"); break;
|
||||
case 8: $reacteur_ff++; mysql_query("UPDATE user SET reacteur_ff='".$reacteur_ff."' WHERE id='".$id."'"); break;
|
||||
case 9: $medecine++; mysql_query("UPDATE user SET medecine='".$medecine."' WHERE id='".$id."'"); break;
|
||||
case 10: $tactique++; mysql_query("UPDATE user SET tactique='".$tactique."' WHERE id='".$id."'"); break;
|
||||
case 11: $spartan++; mysql_query("UPDATE user SET tech_spartan='".$spartan."' WHERE id='".$id."'"); break;
|
||||
case 1: $informatique++; mysql_query("UPDATE user SET informatique='$informatique' WHERE id='$id'") or die ("erreur sql ".mysql_error()); 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;
|
||||
case 5: $energie_t++; mysql_query("UPDATE user SET energie_t='$energie_t' WHERE id='$id'"); break;
|
||||
case 6: $reacteur++; mysql_query("UPDATE user SET reacteur='$reacteur' WHERE id='$id'"); break;
|
||||
case 7: $reacteur_f++; mysql_query("UPDATE user SET reacteur_f='$reacteur_f' WHERE id='$id'"); break;
|
||||
case 8: $reacteur_ff++; mysql_query("UPDATE user SET reacteur_ff='$reacteur_ff' WHERE id='$id'"); break;
|
||||
case 9: $medecine++; mysql_query("UPDATE user SET medecine='$medecine' WHERE id='$id'"); break;
|
||||
case 10: $tactique++; mysql_query("UPDATE user SET tactique='$tactique' WHERE id='$id'"); break;
|
||||
case 11: $spartan++; mysql_query("UPDATE user SET tech_spartan='$spartan' WHERE id='$id'"); break;
|
||||
}
|
||||
|
||||
mysql_query("UPDATE user SET temps_t='0', tec='0' WHERE id='$id'") or die ("erreur sql ".mysql_error());
|
||||
$pos = strpos(implode(',', $fileTec).',', $tec.',');
|
||||
if (!($pos === false)) {
|
||||
$newArray_tec = ''; $newArray_temps_t = $fileTemps_t[0].' ';
|
||||
for ($i=0 ; $i<count($fileTec) ; $i++) {
|
||||
if ($fileTec[$i] != $tec) {
|
||||
$newArray_tec .= $fileTec[$i].' ';
|
||||
$newArray_temps_t .= $fileTemps_t[$i+1].' ';
|
||||
}
|
||||
elseif ($i == 0) $newArray_temps_t = $fileTemps_t[0] + $fileTemps_t[1].' ';
|
||||
}
|
||||
$fileTec = split(' ', trim($newArray_tec));
|
||||
$fileTemps_t = split(' ', trim($newArray_temps_t));
|
||||
$temps_t = implode(' ', $fileTemps_t);
|
||||
$tec = implode(' ', $fileTec);
|
||||
|
||||
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());
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
<?php session_start(); ?>
|
||||
<?php session_start();
|
||||
require_once '../securite.php'; ?>
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>Halo Battle</TITLE>
|
||||
|
|
@ -51,7 +52,7 @@ echo "
|
|||
<td>"; convert_ts_fr($donnees['temps']); echo"</td>
|
||||
<td>".$donnees['expediteur']." <a href=envoyer_message.php?pseudo=".$donnees['expediteur']."><img src=descriptions/diz/m.gif></a></td>
|
||||
<td>".$donnees['sujet']."</td></tr>
|
||||
<tr><td colspan=4 align=center width=400>".$donnees['contenu']."</td></tr>";
|
||||
<tr><td colspan=4 align=center width=400>".bbcode($donnees['contenu'])."</td></tr>";
|
||||
}
|
||||
echo "<tr><td colspan=4 align=center><input type=submit value='Supprimer le message' class=bouton></td></tr></table></form></center>"; }
|
||||
else echo '<table align="center"><tr><td>Aucun message</td></tr></table>';
|
||||
|
|
|
|||
|
|
@ -79,7 +79,18 @@ setTimeout('dateTempsReel()', 999)
|
|||
}
|
||||
</script>";
|
||||
echo'</head>
|
||||
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="background-color: #040e1e; background-image: url(\'descriptions/diz/182.jpg\'); background-attachment: fixed; background-repeat: no-repeat; background-position: top left;">
|
||||
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="overflow: auto; background-color: #040e1e; background-image: url(\'descriptions/diz/182.jpg\'); background-attachment: fixed; background-repeat: no-repeat; background-position: top left;">
|
||||
<script type="text/javascript"><!--
|
||||
google_ad_client = "pub-8183761828268957";
|
||||
//120x600, date de création 19/11/07
|
||||
google_ad_slot = "7468171787";
|
||||
google_ad_width = 120;
|
||||
google_ad_height = 600;
|
||||
//--></script>
|
||||
<script type="text/javascript"
|
||||
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
|
||||
</script>
|
||||
|
||||
<table width=180 BORDER=0 CELLPADDING=0 CELLSPACING=0 align=center>
|
||||
<tr>
|
||||
<td colspan=6>
|
||||
|
|
@ -126,7 +137,7 @@ echo'</head>
|
|||
</tr>
|
||||
<tr>
|
||||
<td colspan=4>
|
||||
<a href="depart.php" target="changement" ><img src="images/menu/menu_11.png" width=161 height=18 alt="Accueil"></a></td>
|
||||
<a href="depart.php?pas=0" target="changement" ><img src="images/menu/menu_11.png" width=161 height=18 alt="Accueil"></a></td>
|
||||
<td>
|
||||
<img src="images/menu/espaceur.gif" width=1 height=18></td>
|
||||
</tr>
|
||||
|
|
@ -234,7 +245,7 @@ echo '<tr>
|
|||
</tr>
|
||||
<tr>
|
||||
<td colspan=4>
|
||||
<a href="gestion.php" target="changement" ><img src="images/menu/menu_29.png" width=161 height=15 alt="Gestion"></a></td>
|
||||
<a href="prochainement.php" target="changement" ><img src="images/menu/menu_29.png" width=161 height=15 alt="Gestion"></a></td>
|
||||
<td>
|
||||
<img src="images/menu/espaceur.gif" width=1 height=15></td>
|
||||
</tr>
|
||||
|
|
@ -258,7 +269,7 @@ echo '<tr>
|
|||
</tr>
|
||||
<tr>
|
||||
<td colspan=4>
|
||||
<a href="armee.php" target="changement" ><img src="images/menu/menu_33.png" width=161 height=17 alt="Armée"></a></td>
|
||||
<a href="prochainement.php" target="changement" ><img src="images/menu/menu_33.png" width=161 height=17 alt="Armée"></a></td>
|
||||
<td>
|
||||
<img src="images/menu/espaceur.gif" width=1 height=17"></td>
|
||||
</tr>
|
||||
|
|
@ -306,7 +317,7 @@ echo '<tr>
|
|||
</tr>
|
||||
<tr>
|
||||
<td colspan=4>
|
||||
<a href="alliance_choix.php" target="changement" ><img src="images/menu/menu_41.png" width=161 height=14 alt="Alliance"></a></td>
|
||||
<a href="prochainement.php" target="changement" ><img src="images/menu/menu_41.png" width=161 height=14 alt="Alliance"></a></td>
|
||||
<td>
|
||||
<img src="images/menu/espaceur.gif" width=1 height=14></td>
|
||||
</tr>
|
||||
|
|
@ -354,7 +365,7 @@ echo '<tr>
|
|||
</tr>
|
||||
<tr>
|
||||
<td colspan=4>
|
||||
<a href="faq.php" target="changement" ><img src="images/menu/menu_49.png" width=161 height=14 alt="F.A.Q."></a></td>
|
||||
<a href="prochainement.php" target="changement" ><img src="images/menu/menu_49.png" width=161 height=14 alt="F.A.Q."></a></td>
|
||||
<td>
|
||||
<img src="images/menu/espaceur.gif" width=1 height=14></td>
|
||||
</tr>
|
||||
|
|
|
|||
|
|
@ -5,8 +5,9 @@ $id=$_SESSION['id'];
|
|||
$galaxy=$_SESSION['galaxy'];
|
||||
$ss=$_SESSION['ss'];
|
||||
$pos=$_SESSION['pos'];
|
||||
require_once '../securite.php';
|
||||
|
||||
require_once('../connectBDD.php');
|
||||
require('../connectBDD.php');
|
||||
|
||||
$x = mysql_query("SELECT * FROM user WHERE id='$id'");
|
||||
$donnees = mysql_fetch_array($x);
|
||||
|
|
@ -15,20 +16,29 @@ $race = $donnees['race'];
|
|||
$pseudodes = $donnees['pseudo'];
|
||||
$temps = time();
|
||||
|
||||
if (isset($_POST['message_destinataire']) && $_POST['message_destinataire'] !='') {
|
||||
$resultat = mysql_query("SELECT pseudo FROM user WHERE pseudo='".$_POST['message_destinataire']."'"); // on vérifie l'existance
|
||||
if (isset($_POST['message_destinataire']) && $_POST['message_destinataire'] != '') {
|
||||
$resultat = mysql_query("SELECT pseudo FROM user WHERE pseudo='".mysql_real_escape_string($_POST['message_destinataire'])."'"); // on vérifie l'existance
|
||||
if(mysql_num_rows($resultat)>=1) { // si c'est bon on passe a la suite
|
||||
if (isset($_POST['sujet_message']) && $_POST['sujet_message'] !='' ) {
|
||||
$message_destinataire = htmlspecialchars($_POST['message_destinataire']);
|
||||
$sujet_message = htmlspecialchars($_POST['sujet_message']);
|
||||
$message = htmlspecialchars($_POST['message']);
|
||||
$message_destinataire = mysql_real_escape_string(htmlspecialchars($_POST['message_destinataire']));
|
||||
$sujet_message = mysql_real_escape_string(htmlspecialchars($_POST['sujet_message']));
|
||||
$message = mysql_real_escape_string(htmlspecialchars($_POST['message']));
|
||||
mysql_query("INSERT INTO mail VALUES('', '1', '$message_destinataire', '$pseudodes', '$sujet_message', '$message', '$temps')") or die ("erreur sql ".mysql_error());
|
||||
}
|
||||
else echo "Précisez le nom du sujet";
|
||||
else {
|
||||
header("Location: envoyer_message.php?err=3");
|
||||
exit;
|
||||
}
|
||||
}
|
||||
else {
|
||||
header("Location: envoyer_message.php?err=2");
|
||||
exit;
|
||||
}
|
||||
else echo "Ce joueur n'existe pas";
|
||||
}
|
||||
else "Précisez le nom du destinataire";
|
||||
else {
|
||||
header("Location: envoyer_message.php?err=4");
|
||||
exit;
|
||||
}
|
||||
mysql_close();
|
||||
@header("Location: envoyer_message.php?ok=1");
|
||||
?>
|
||||
|
|
@ -7,8 +7,8 @@ $pos=$_SESSION['pos'];
|
|||
|
||||
require('../connectBDD.php');
|
||||
|
||||
if (isset($_POST['nouveaunom']) && $_POST['nouveaunom']!='') {
|
||||
$_POST['nouveaunom'] = htmlentities($_POST['nouveaunom']);
|
||||
if (isset($_POST['nouveaunom']) && trim($_POST['nouveaunom']) != '') {
|
||||
$_POST['nouveaunom'] = htmlentities(mysql_real_escape_string($_POST['nouveaunom']));
|
||||
mysql_query("UPDATE planete SET nom_planete='".$_POST['nouveaunom']."' WHERE id_user='$id' AND galaxie='$galaxy' AND position='$pos' AND ss='$ss'") or die ("erreur sql ".mysql_error());
|
||||
header("Location: depart.php");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,8 @@
|
|||
<?php
|
||||
if (!isset($race)) $race = $_SESSION['race'];
|
||||
if (!isset($race)) $auth_level = $_SESSION['auth_level'];
|
||||
if (!isset($auth_level)) $auth_level = $_SESSION['auth_level'];
|
||||
require_once('flotte_dep.php');
|
||||
|
||||
$templates = '';
|
||||
|
||||
if ($race == 'covenant') {
|
||||
$ressourc = array('Métal','Cristal','Ions','Energie');
|
||||
$casernen = array('Grunt','Jackal','Drone','Elite','Sniper','Hunter','Médecin','Ingénieur','Brute');
|
||||
|
|
@ -24,7 +22,7 @@ $templates = '';
|
|||
$batiment = array('Purificateur de métal','Purificateur de cristal','Ionisateur','Centrale solaire','Centrale de fusion','Oeil des prophètes','Centre de recherches','Chantier terrestre','Chantier spatial','Caserne','Entrepôt','Centrale informatique');
|
||||
$batimede = array( 'Le purificateur de métal vous fournie les matières premières pour la construction de vos infrastructures et de vos unités. Plus vous développerez vos purificateurs, plus ils produiront de ressources. Les purificateurs les plus développés ont aussi besoin de plus d\'énergie.',
|
||||
'Le purificateur de cristal vous fournie les ressources pour vos installations électroniques et pour les alliages. Le purificateur de cristal consomme deux fois plus d\'énergie que celui de métal. Tous les vaisseaux et bâtiments ont besoin de cristal pour leur bouclier ou encore leurs composants électroniques. La production augmente avec le développement de l’usine.',
|
||||
'L\'ionisateur utilise des ions négatifs et positifs d\'hydrogène pour créer une source conventionnelle de courant stable, servant à alimenter les bâtiments covenants qui nécessitent une arrivée massive de cette "ressource" pour actionner les divers éléments matériels des contrôles. Malheureusement, la centrale consomme une grande quantité d\'hydrogène lors du procédé d\'ionisation. Cependant, la production compense largement ce léger désagrément.',
|
||||
'L\'ionisateur utilise des ions négatifs et positifs d\'hydrogène pour créer une source conventionnelle de courant stable, servant à alimenter les bâtiments covenants qui nécessitent une arrivée massive de cette "ressource" pour actionner les divers éléments matériels des contrôles. La centrale de fusion à besoin de beaucoup d\'hydrogène pour fonctionner.',
|
||||
'Pour assurer l\'approvisionnement des purificateurs, des centrales solaires sont nécessaires. Plus ces installations sont développées, plus vous obtiendrez d’énergie pour vos purificateurs. Les centrales solaires sont la base de l\'approvisionnement pour votre planète en énergie. Elles sont composées d’un recueilleur sur le haut de sa structure qui capte en grandes quantités l’énergie solaire.',
|
||||
'La centrale à fusion vous permet de créer l’énergie nécessaire à vos purificateurs. Elles est constitué d’un réacteur à fusion qui en tournant produit de l’énergie. Sa production reste nettement inférieure à celle d’une centrale solaire.',
|
||||
'Les grands prophètes ont partagé leur savoir pour construire ces structures qui permettent de repérer les éléments s’approchants de votre planète. Le système est constitué de deux grands arcs qui envoient des signaux électriques dans l’espace et captent ceux qui reviennent présageant ainsi l’arrivée d’un vaisseau.',
|
||||
|
|
@ -34,7 +32,7 @@ $templates = '';
|
|||
'Le Temple de la Guerre vous permet de créer l’élite des forces d’infanterie. Des soldats y sont fanatisés puis entraînés au maniement des armes et à la stratégie militaire. Plus vous développez le temple, plus la vitesse de production sera rapide.',
|
||||
'Les ressources qui ne sont pas encore traitées sont mises en stock dans ces entrepôts géants. Un entrepôt plus grand permet le stockage d\'une plus grande quantité de ressources. Lorsque l’entrepôt est plein, l\'extraction est stoppée. Il est grandement conseillé de développer ce genre d’infrastructure.',
|
||||
'La centrale informatique est le coeur de votre planète, le cerveau de votre territoire, analysant chaque particule détectée avec grand soin. Plus votre centrale est améliorée, plus rapidement et aisément les données seront traitées.');
|
||||
$technolo = array('Informatique','Detection','Armement','Bouclier','Maitrise de l\'énergie','Réacteur à antigravité','Réacteur à fusion','Réacteur à fusion Forerunneur','Médecine','Commandement militaire',0);
|
||||
$technolo = array('Informatique','Detection','Armement','Bouclier','Maitrise de l\'énergie','Réacteur à antigravité','Réacteur à fusion','Réacteur à fusion Forerunner','Médecine','Commandement militaire',0);
|
||||
$technode = array( 'L’informatique vous permet de traiter les informations de façon très rapide réduisant ainsi les temps de réactions qui dans les combats peuvent s’avérer fatales.',
|
||||
'La détection est cruciale pour préserver sa flotte et ses planètes. Développer cette technologie vous permet de construire une base « œil des prophètes » qui repèrera les vaisseaux s’approchant de votre planète.',
|
||||
'Un soldat n\'est rien sans son arme, et qu\'est-ce qu\'un soldat démuni face aux assauts féroces adverses ? Cette technologie vous permettra de rechercher de nouveaux systèmes d\'armements afin de rendre vos outils de guerre plus précis et mortels.',
|
||||
|
|
@ -46,7 +44,7 @@ $templates = '';
|
|||
'La médecine vous permet d’avoir moins de pertes au combat et ainsi d’avoir une force de frappe qui résiste plus longtemps. Au lieu de laisser mourir les soldats blessés, le médecin les soigne pour les remettre sur pied et les rendre de nouveau aptes au combat.',
|
||||
'En tant que général, vous devez avoir un esprit fin pour gagner vos batailles terrestres aussi bien que les affrontements spatiaux. C\'est pourquoi il vous faudra toujours innover en matière de stratégie, vous montrer toujours plus rusé que votre impitoyable adversaire, aussi feriez-vous bien d\'étudier de nouvelles tactiques de combat pour vous assurer une franche victoire.');
|
||||
$technoli = array('informatique1.jpg','detection.jpg','sanstitretruecolor04no6.jpg','boucliervaiseaucovenantey4.jpg','energie.jpg','reacteurantigravyd1.jpg','reacteur_f.jpg','reacteurfusionforerunnewu0.jpg','medecine.JPG','commandement.jpg');
|
||||
$nomvaisa = array('cargos de classe Inquisitor','grand(s) transporteur(s)','vaisseaux de colonisation','sonde(s)','recycleur(s)','séraphin(s)','frégate(s)','croiseur(s) de classe CCS','croiseur(s) de classe Reverence','porte-vaisseaux','station(s) orbitale','super(s) porte-vaisseaux');
|
||||
$nomvaisa = array('cargos de classe Inquisitor','grand(s) transporteur(s)','vaisseau(x) de colonisation','sonde(s)','recycleur(s)','séraphin(s)','frégate(s)','croiseur(s) de classe CCS','croiseur(s) de classe Reverence','porte-vaisseaux','station(s) orbitale','super(s) porte-vaisseaux');
|
||||
$nomvaisi = array('cargosparabola.jpg','cargosladen.jpg','coviecolobv3.jpg','sonde_despionnage1.jpg','recycleur.jpg','chasseurlourd7id.jpg','croiseur8er.jpg','fregate2ky.jpg','vaisseaudebataille9na.jpg','','citecovenant.jpg','.jpg');
|
||||
$nomvaisn = array('Cargos de classe Inquisitor','Cargos de classe Interdictor','Vaisseau de colonisation de classe Returning','Sonde de reconnaissance de classe Perception','Charognard','Séraphin','Frégate','Croiseur de classe CCS','Croiseur de classe Reverence','Porte vaisseaux','Station orbitale covenant','Super porte vaisseaux');
|
||||
$nomvaisd = array( 'Les cargos Inquisitor sont la base du transport de troupes et de ressources covenantes, capables de transporter un grand nombre de ressources sur une grande distance. Pratiquement sans armement, le cargo est sans défense et nécessite une défense rapprochée pour les trajets de grande distance.',
|
||||
|
|
@ -78,7 +76,7 @@ $templates = '';
|
|||
'Utilisant un principe similaire de la tourelle à plasma, le lanceur de torpilles plasma utilise un condensateur de matière pour condenser le flux de plasma surchauffé en une masse de destruction pure. Ce système est le système de défense terrestre le plus évolué jamais construit. Son défaut majeur reste sa cadence de tire lente, limitant sa défense face à de multiples adversaires.');
|
||||
$nomterri = array('bansheeqp0.jpg','spirit1.jpg','phantomfu2.jpg','boardingcraft.jpg','ghostic1.jpg','shadow.jpg','apparition.jpg','shade.jpg','strongshade.jpg','tourellebarreau.jpg','tourelle_plasma.jpg','lanceur_torpilles.jpg');
|
||||
}
|
||||
elseif (md5($race) == '34c19b21bd4a3dda389e767d32fe9779') {
|
||||
elseif (md5($race) == '34c19b21bd4a3dda389e767d32fe9779' && $auth_level >= 6) {
|
||||
$ressourc = array('Métal','Cristal','Hydrogène','Energie');
|
||||
$casernen = array('Constructor','Sentinelle Légère','Sentinelle Lourde','Enforcer Léger','Enforcer Lourd','Monitor','~#PAS DE NOM#~ Médecin','~#PAS DE NOM#~ Ingénieur','~#PAS DE NOM#~ Brute');
|
||||
$casernde = array( 'Les Constructors sont des minis sentinelles capable d\'effectuer certaine reparation mineur, ils peuvent réparés les sentinelles endommager ainsi que les chasseurs légers.',
|
||||
|
|
@ -86,7 +84,7 @@ $templates = '';
|
|||
'~#DESCRIPTION MANQUANTE#~ Sentinelle Lourde',
|
||||
'Les Enforcers Léger, sont des sentinelles massifs qui servent à contenir des grosses infections Floods. Ils sont protégés par un bouclier d\'énergie, mais il semble seulement protéger que l\'avant de la machine. Il est armé de faisceaux laser à impulsion rapides.',
|
||||
'Les Enforcers Lourd, sont des sentinelles massifs qui servent à contenir des grosses infections Floods. Ils sont protégés par un bouclier d\'énergie qui recouvre toute la machine. Il est armé de mortiers.',
|
||||
'Les monitors ont été placés sur les mondes-forteresse par les Forerunners pour entretenir et maintenir leurs systèmes, et pour s\'assurer que les Floods reste emprisonné.',
|
||||
'Les monitors ont été placés sur les mondes-forteresse par les Forruner pour entretenir et maintenir leurs systèmes, et pour s\'assurer que les Floods reste emprisonné.',
|
||||
'~#DESCRIPTION MANQUANTE#~ ',
|
||||
'~#DESCRIPTION MANQUANTE#~ ',
|
||||
'~#DESCRIPTION MANQUANTE#~ ');
|
||||
|
|
@ -107,7 +105,7 @@ $templates = '';
|
|||
0,
|
||||
'Les ressources qui ne sont pas encore traitées sont mises en stock dans ces entrepôts géants. Un entrepôt plus grand permet le stockage d\'une plus grande quantité de ressources. Lorsque l’entrepôt est plein, l\'extraction est stoppée. Il est grandement conseillé de développer ce genre d’infrastructure.',
|
||||
0);
|
||||
$technolo = array('Informatique','Detection','Armement','Bouclier','Maitrise de l\'énergie','Réacteur à antigravité','Réacteur à fusion','Réacteur à fusion Forerunneur','Médecine','Commandement militaire',0);
|
||||
$technolo = array('Informatique','Detection','Armement','Bouclier','Maitrise de l\'énergie','Réacteur à antigravité','Réacteur à fusion','Réacteur à fusion Forruner','Médecine','Commandement militaire',0);
|
||||
$technode = array( 'L’informatique vous permet de traiter les informations de façon très rapide réduisant ainsi les temps de réactions qui dans les combats peuvent s’avérer fatales.',
|
||||
'La détection est cruciale pour préserver sa flotte et ses planètes. Développer cette technologie vous permet de construire une base « œil des prophètes » qui repèrera les vaisseaux s’approchant de votre planète.',
|
||||
'Un soldat n\'est rien sans son arme, et qu\'est-ce qu\'un soldat démuni face aux assauts féroces adverses ? Cette technologie vous permettra de rechercher de nouveaux systèmes d\'armements afin de rendre vos outils de guerre plus précis et mortels.',
|
||||
|
|
@ -115,11 +113,11 @@ $templates = '';
|
|||
'L\'énergie est la base de tout. Sans énergie, pas de voyages stellaires ni même de quoi faire marcher vos installations. C\'est pourquoi l\'étude de nouvelles façons de produire de l\'énergie est vitale pour vos planètes et vaisseaux ; vos chercheurs vous permettront également d\'accéder à de nouveaux types d\'énergies, beaucoup plus intéressants.',
|
||||
'Les réacteurs à antigravité sont les moteurs basiques covenant. Ils utilisent une technologie complexe projetant des particules quantiques créant un champ gravitationnel inverse annulant ainsi la gravité présente. Le principe fonctionne également dans l\'espace puisque l\'absence de gravité dans l\'espace, sans compter les étoiles et les autres anomalies spatiales, permet une projection plus puissante du champ.',
|
||||
'Après la combustion, voici la fusion. Ce type de réacteur est beaucoup plus puissant que la combustion utilisée depuis déjà des centaines d\'années. Il génère une énergie cinétique de grande envergure. Aucun dirigeant politique désirant voyager dans le cosmos ne pourrait s’en passer.',
|
||||
'Les covenants ont découvert d’anciens réacteurs à fusion utilisant la technologie d’hyperpropulsion Forerunner. Cette technologie, beaucoup plus puissante que le réacteur conventionnel au Plasma, autorise des sauts dans le sous-espace ultra précis. Ce type de réacteur est le plus cher mais aussi le plus rapide et puissant de toute la flotte covenante.',
|
||||
'Les covenants ont découvert d’anciens réacteurs à fusion utilisant la technologie d’hyperpropulsion Forruner. Cette technologie, beaucoup plus puissante que le réacteur conventionnel au Plasma, autorise des sauts dans le sous-espace ultra précis. Ce type de réacteur est le plus cher mais aussi le plus rapide et puissant de toute la flotte covenante.',
|
||||
'La médecine vous permet d’avoir moins de pertes au combat et ainsi d’avoir une force de frappe qui résiste plus longtemps. Au lieu de laisser mourir les soldats blessés, le médecin les soigne pour les remettre sur pied et les rendre de nouveau aptes au combat.',
|
||||
'En tant que général, vous devez avoir un esprit fin pour gagner vos batailles terrestres aussi bien que les affrontements spatiaux. C\'est pourquoi il vous faudra toujours innover en matière de stratégie, vous montrer toujours plus rusé que votre impitoyable adversaire, aussi feriez-vous bien d\'étudier de nouvelles tactiques de combat pour vous assurer une franche victoire.');
|
||||
$technoli = array('informatique1.jpg','detection.jpg','sanstitretruecolor04no6.jpg','boucliervaiseaucovenantey4.jpg','energie.jpg','reacteurantigravyd1.jpg','reacteur_f.jpg','reacteurfusionforerunnewu0.jpg','medecine.JPG','commandement.jpg');
|
||||
$nomvaisa = array('cargos de classe Inquisitor','grand(s) transporteur(s)','vaisseaux de colonisation','sonde(s)','recycleur(s)','séraphin(s)','frégate(s)','croiseur(s) de classe CCS','croiseur(s) de classe Reverence','porte-vaisseaux','station(s) orbitale','super(s) porte-vaisseaux');
|
||||
$nomvaisa = array('cargos de classe Inquisitor','grand(s) transporteur(s)','vaisseau(x) de colonisation','sonde(s)','recycleur(s)','séraphin(s)','frégate(s)','croiseur(s) de classe CCS','croiseur(s) de classe Reverence','porte-vaisseaux','station(s) orbitale','super(s) porte-vaisseaux');
|
||||
$nomvaisi = array('nanw9.jpg','nanw9.jpg','nanw9.jpg',0,'nanw9.jpg','croiseurforrunerns4.jpg','superdestroyerwa6.jpg','nanw9.jpg','chasseurlourdfk8.jpg','nanw9.jpg','nanw9.jpg','nanw9.jpg');
|
||||
$nomvaisn = array('Transporteur Leger','Transporteur Lourd','Colonisateur',0,'Recycleur','Croiseur Forruner','Super-Destroyer','Chasseur Leger','Chasseur Lourd','Porte-Vaisseaux','Station orbitale','Super porte-vaisseaux');
|
||||
$nomvaisd = array( '~#DESCRIPTION MANQUANTE#~ Transporteur Leger',
|
||||
|
|
@ -169,7 +167,7 @@ $templates = '';
|
|||
$batimede = array( 'Cette usine traite tous les métaux recueillis afin de produire du titanium-A ou différents types d\'alliages de qualité pour vos différentes constructions planétaires ou spatiales. Chaque niveau augmente la production de métal.',
|
||||
'L\'usine de cristal filtre les déchets récoltés avec les cristaux. Une fois séparés du reste ils sont classés par qualité par une quantité d\'appareils de haute technologie. Plus les cristaux sont purs plus ceux-ci peuvent être transformés en unités de stockage de données ou en conducteurs énergétiques de haute qualité. Plus ce bâtiment sera développé, plus vous pourrez traiter de cristaux rapidement.',
|
||||
'Ce bâtiment use de l\'eau pour la décomposer et en extraire l\'hydrogène, la base de toutes vos productions énergétiques, pour ensuite l\'acheminer dans des condensateurs ioniques afin de le rendre plus dense et par le fait même plus efficace. Chaque niveau augmente la production du synchronisateur.',
|
||||
'La centrale solaire produit l’énergie nécessaire au fonctionnement de vos usines. Elle fonctionne à partir d’une technologie Forerunner qui consiste à envoyer un rayon à la verticale pour capter tous les rayons du soleil qui le croise.',
|
||||
'La centrale solaire produit l’énergie nécessaire au fonctionnement de vos usines. Elle fonctionne à partir d’une technologie Forruner qui consiste à envoyer un rayon à la verticale pour capter tous les rayons du soleil qui le croise.',
|
||||
'La centrale énergétique fonctionne avec un principe assez dépassé. En effet, l’énergie est produite par un réacteur à fusion qui en tournant produit de l’énergie comme le ferait une dynamo. Bien que ce principe fût révolutionnaire à l’époque, il fût rapidement dépassé par la centrale solaire qui permet de produire d’avantage d’énergie.',
|
||||
'Base radar',
|
||||
'Le centre de recherches est certainement l\'une des bâtisses les plus importantes que vous puissiez construire dans votre colonie. Vos chercheurs travailleront sans relâche aucun afin de mettre au point de nouvelles technologies vous assurant suprématie et victoire sur les champs de bataille. Chaque niveau dévellopé augmente la vitesse de recherche de vos technologies.',
|
||||
|
|
|
|||
|
|
@ -5,10 +5,11 @@ $id=$_SESSION['id'];
|
|||
$galaxy=$_SESSION['galaxy'];
|
||||
$ss=$_SESSION['ss'];
|
||||
$pos=$_SESSION['pos'];
|
||||
require_once '../securite.php';
|
||||
|
||||
echo"<html>
|
||||
<head>
|
||||
<title>Space battleship</title>
|
||||
<title>Halo-Battle</title>
|
||||
|
||||
<link rel=stylesheet media=screen type=text/css title=design href=descriptions/diz/base.css >
|
||||
<meta http-equiv=pragma content=no-cache >
|
||||
|
|
@ -29,9 +30,26 @@ include 'bdd.php';
|
|||
|
||||
echo"</head>
|
||||
|
||||
<body>
|
||||
<body>";
|
||||
|
||||
<table align=center id=tablo width=360>
|
||||
if (isset($_GET['erreur'])) {
|
||||
print '<br /><br /><div class="centre"><table align="center" style="margin-left: auto; margin-right: auto; border: none;"><tr><td><font color="#FF0000"><b>';
|
||||
if ($_GET['erreur'] == 1) print 'Cette adresse mail est déja utilisé';
|
||||
elseif ($_GET['erreur'] == 2) print 'Validation du mot de passe faux';
|
||||
elseif ($_GET['erreur'] == 3) print 'Ancien mot de passe faux';
|
||||
elseif ($_GET['erreur'] == 4) print 'L\'adresse électronique que vous avez tappé n\'est pas valide';
|
||||
print '</b></font></td></tr></table></div><br />';
|
||||
}
|
||||
|
||||
if (isset($_GET['ok'])) {
|
||||
print '<br /><br /><div class="centre"><table align="center" style="margin-left: auto; margin-right: auto; border: none;"><tr><td><font color="#00FF00"><b>';
|
||||
if ($_GET['ok'] == 1) print 'Votre adresse électronique a été changée avec succès';
|
||||
elseif ($_GET['ok'] == 2) print 'Votre mot de passe a été changé avec succès';
|
||||
elseif ($_GET['ok'] == 3) print 'Votre mot de passe et votre adresse électronique ont été changés avec succès';
|
||||
print '</b></font></td></tr></table></div><br />';
|
||||
}
|
||||
|
||||
echo "<table align=center id=tablo width=360>
|
||||
<form method=post action=options_validation.php>
|
||||
<tr><td class=c>Ancien mot de passe</td><td><input type=password class=zone_texte size=15 maxlength=30 name=ancien_mdp></td></tr>
|
||||
<tr><td class=c>Nouveau mot de passe</td><td><input type=password class=zone_texte size=15 maxlength=30 name=nouveau_mdp></td></tr>
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ require('../connectBDD.php');
|
|||
$x = mysql_query("SELECT * FROM user WHERE id='".$id."'");
|
||||
$donnees = mysql_fetch_array($x);
|
||||
|
||||
$pseudo = $donnees['pseudo'];
|
||||
$mail = $donnees['mail'];
|
||||
$mdp = $donnees['mdp'];
|
||||
|
||||
|
|
@ -15,33 +16,39 @@ if (isset($_POST['ancien_mdp']) && isset($_POST['nouveau_mdp']) && isset($_POST[
|
|||
$password = htmlspecialchars($_POST['nouveau_mdp']);
|
||||
$password = sha1(strtoupper($pseudo).':'.$password);
|
||||
mysql_query("UPDATE `user` SET mdp='$password' WHERE ID='$id'");
|
||||
$okmdp = true;
|
||||
header('Location: options.php?ok=2');
|
||||
exit;
|
||||
}
|
||||
else {
|
||||
header('Location: options.php?erreur=2');
|
||||
exit;
|
||||
}
|
||||
else echo "Validation du mot de passe faux";
|
||||
}
|
||||
else echo "Ancien mot de passe faux";
|
||||
else {
|
||||
header('Location: options.php?erreur=3');
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (isset($_POST['nouveau_mail']) && $_POST['nouveau_mail']!='')
|
||||
{
|
||||
if (preg_match("#^[a-z0-9._-]+@[a-z0-9._-]{2,}\.[a-z]{2,4}$#", $_POST['nouveau_mail']))
|
||||
{
|
||||
|
||||
$result = mysql_query("SELECT mail FROM user WHERE mail='".$_POST["nouveau_mail"]."'");
|
||||
if(mysql_num_rows($result)>=1)
|
||||
{echo "Cette adresse mail est déja utilisé";
|
||||
}
|
||||
else
|
||||
{ $mail=htmlspecialchars($_POST['nouveau_mail']);
|
||||
mysql_query("UPDATE `user` SET mail='".$mail."' WHERE ID='".$id."'"); }
|
||||
if(mysql_num_rows($result)>=1) header('Location: options.php?erreur=1');
|
||||
else {
|
||||
$mail=htmlspecialchars($_POST['nouveau_mail']);
|
||||
mysql_query("UPDATE `user` SET mail='".$mail."' WHERE ID='".$id."'");
|
||||
if (isset($okmdp)) header('Location: options.php?ok=3');
|
||||
else header('Location: options.php?ok=1');
|
||||
exit;
|
||||
}
|
||||
}
|
||||
else
|
||||
{ echo "L'adresse " . $_POST['nouveau_mail'] . " n'est pas valide";}
|
||||
else {
|
||||
header('Location: options.php?erreur=4');
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
mysql_close();
|
||||
@header("Location:options.php");
|
||||
|
||||
header('Location: options.php');
|
||||
?>
|
||||
24
pages/prochainement.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
session_start();
|
||||
|
||||
$id=$_SESSION['id'];
|
||||
$galaxy=$_SESSION['galaxy'];
|
||||
$ss=$_SESSION['ss'];
|
||||
$pos=$_SESSION['pos'];
|
||||
require_once '../securite.php';
|
||||
|
||||
echo"<html>
|
||||
<head>
|
||||
<title>Halo battle</title>
|
||||
<link rel=stylesheet media=screen type=text/css title=design href=descriptions/diz/base.css >
|
||||
<meta http-equiv=pragma content=no-cache >
|
||||
<meta http-equiv=content-type content=text/html;charset=iso-8869-1 >
|
||||
<link rel=shortcut icon type=image/x-icon href=favicon.ico >";
|
||||
require_once 'bdd.php';
|
||||
require_once 'ressource.php';
|
||||
print'</head>
|
||||
<body>
|
||||
<div class="centre"><table style="margin-left: auto; margin-right: auto; width: 275px; height: 50px"><tr><td><b>Prochainement dans Halo-Battle</b></td></tr></table></div></body></html>';
|
||||
exit;
|
||||
|
||||
?>
|
||||
|
|
@ -32,7 +32,7 @@ if ($bug > 0) {
|
|||
$result = mysql_query("SELECT * FROM bug ORDER BY temps DESC");
|
||||
while ($data = mysql_fetch_array($result)) {
|
||||
echo "<tr><td>Expéditeur : ".$data['pseudo']."</td></tr><tr><td>Le : "; convert_ts_fr($data['temps']);
|
||||
echo"</td></tr><tr><td>Page concernée : ".$data['page']."</td></tr><tr><td align=left><u>Description du bug :</u><br>".$data['description']."</td></tr><tr><td style=\"height: 5px; border: none; background: inherit;\"></td></tr>";
|
||||
echo"</td></tr><tr><td>Page concernée : ".$data['page']."</td></tr><tr><td align=left><u>Description du bug :</u><br>".nl2br($data['description'])."</td></tr><tr><td style=\"height: 5px; border: none; background: inherit;\"></td></tr>";
|
||||
}
|
||||
echo "</table>";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,11 +31,11 @@ require_once('ressource.php');
|
|||
</td>
|
||||
<td>'.$nomplanete.'
|
||||
</td>'; if ($nb >= 2) echo'
|
||||
<td> <form action="abandon_confirm.php" method="post" ><input type="submit" value="Abandonner" class=bouton ></form>
|
||||
<td> <form action="abandon_confirm.php" method="post" ><input type="submit" value="Abandonner" class="bouton"></form>
|
||||
</td>'; else echo '<td></td>';
|
||||
echo '</tr><form action="nom.php" method="post">
|
||||
<tr>
|
||||
<td>Renommer
|
||||
<td>Rennomer
|
||||
</td>
|
||||
<td><input type="text" name="nouveaunom" size="20" class=zone_texte >
|
||||
</td>
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ if ($mine_h > 0) $energie_h = ceil((exp($mine_h*0.31)*10)); else $energie_h= 0;
|
|||
if ($centrale_f > 0 ) $energie_f = ceil((($centrale_f*80+(exp($centrale_f*0.38)*11)))); else $energie_f = 1; // pour pas avoir div by 0
|
||||
if ($centrale_s > 0 ) $energie_s = ceil((($centrale_s*20+(exp($centrale_s*0.3)*10)))); else $energie_s = 0;
|
||||
|
||||
$nrj = $energie_m+$energie_c+energie_h;
|
||||
$nrj = ($energie_s+$energie_f) - ($energie_m+$energie_c+$energie_h);
|
||||
|
||||
$t = $energie_f+$energie_s;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
session_start();
|
||||
require_once '../securite.php';
|
||||
define('DESIGN', 'descriptions/diz/base.css');
|
||||
require('../header.php');
|
||||
|
||||
|
|
@ -7,6 +8,8 @@ $id=$_SESSION['id'];
|
|||
$galaxy=$_SESSION['galaxy'];
|
||||
$ss=$_SESSION['ss'];
|
||||
$pos=$_SESSION['pos'];
|
||||
$_SESSION['dernPage'] = 'ressources.php';
|
||||
|
||||
require_once('bdd.php');
|
||||
require_once('ressource.php');
|
||||
require_once('noms.php');
|
||||
|
|
@ -23,7 +26,7 @@ if ( $mine_c < 0 ) $prod_cri = 20;
|
|||
else $prod_cristal = (floor(($mine_c*13)+(pow(1.36,$mine_c)*exp(0.0675*$mine_c))*$coeff)*7) + 20;
|
||||
|
||||
|
||||
if ($centrale_f > 0) { $conso_hy = ceil(($centrale_f*5+(exp($mine_m*0.3)*10))*$coeff); }
|
||||
if ($centrale_f > 0) { $conso_hy = ceil(($centrale_f*5+(exp($mine_m*0.3)*10))*$coeff); }
|
||||
else {$conso_hy=0;}
|
||||
|
||||
if ($mine_h < 0) $prod_hydrogene = 0;
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ $g=$_SESSION['galaxy'];
|
|||
$s=$_SESSION['ss'];
|
||||
$p=$_SESSION['pos'];
|
||||
$race=$_SESSION['race'];
|
||||
require_once('../fonctions.php');
|
||||
require('../connectBDD.php');
|
||||
require_once 'noms.php';
|
||||
|
||||
|
|
@ -34,14 +35,16 @@ if ($mine_h > 0) $energie_h = ceil((exp($mine_h*0.31)*10)); else $energie_h= 0;
|
|||
if ($centrale_f > 0 ) $energie_f = ceil((($centrale_f*80+(exp($centrale_f*0.38)*11)))); else $energie_f = 1; // pour pas avoir div by 0
|
||||
if ($centrale_s > 0 ) $energie_s = ceil((($centrale_s*20+(exp($centrale_s*0.3)*10)))); else $energie_s = 0;
|
||||
|
||||
$nrj = $energie_m+$energie_c+energie_h;
|
||||
//Calcul de la consomation d'énergie
|
||||
$nrj = $energie_m+$energie_c+$energie_h;
|
||||
|
||||
//Calcul de la production d'énergie
|
||||
$t = $energie_f+$energie_s;
|
||||
|
||||
$coeff=($energie_s+$energie_f+$energie_m+$energie_c+$energie_h)/($energie_s+$energie_f);
|
||||
|
||||
if ( $coeff < 0 ) $coeff = 0;
|
||||
if ( $coeff > 1 ) $coeff = 1;
|
||||
if ($coeff < 0) $coeff = 0;
|
||||
if ($coeff > 1) $coeff = 1;
|
||||
|
||||
|
||||
if ($metal >= $cap) $prod_met=0;
|
||||
|
|
@ -78,29 +81,46 @@ mysql_query("UPDATE planete SET timestamp='$temps_actuel', metal='$a', cristal='
|
|||
$pseudoz = $ressource['pseudo'];
|
||||
|
||||
$req = mysql_query("SELECT id, galaxie, ss, position, nom_planete FROM planete WHERE id_user='$id'");
|
||||
$reqIsol = mysql_query("SELECT id FROM planete WHERE id_user='$id' AND isolement != '0'");
|
||||
|
||||
$RES_IMAGE = $image;
|
||||
$Aplan_ref = ''; $Aplan_value = ''; $Aplan_more = '';
|
||||
for ($i=0; $i < mysql_num_rows($req); $i++) {
|
||||
$x = mysql_query("SELECT id, galaxie, ss, position, nom_planete FROM planete WHERE id_user='$id' ORDER BY id LIMIT $i,8");
|
||||
for ($i=0; $i < mysql_num_rows($req); $i++) {
|
||||
$x = mysql_query("SELECT * FROM planete WHERE id_user='$id' ORDER BY id DESC LIMIT $i,1");
|
||||
$d = mysql_fetch_array($x);
|
||||
|
||||
$Aplan_value .= $d['id'].' ';
|
||||
if ($d['galaxie'] == $_SESSION['galaxy'] && $d['ss'] == $_SESSION['ss'] && $d['position'] == $_SESSION['pos']) $Aplan_more .= 'selected ';
|
||||
$Aplan_ref .= $d['nom_planete'].' ['.$d['galaxie'].':'.$d['ss'].':'.$d['position'].'];';
|
||||
if ($d['isolement'] != 0 && $d['isolement']+(mysql_num_rows($req)-10)*7200 <= time()) {
|
||||
$Aplan_value .= $d['id'].' ';
|
||||
if ($d['galaxie'] == $_SESSION['galaxy'] && $d['ss'] == $_SESSION['ss'] && $d['position'] == $_SESSION['pos']) $Aplan_more .= ' selected="selected";';
|
||||
else $Aplan_more .= ';';
|
||||
$Aplan_ref .= $d['nom_planete'].' ['.$d['galaxie'].':'.$d['ss'].':'.$d['position'].'];';
|
||||
$nextIsol = $d['isolement'] + (mysql_num_rows($req)-10)*7200 + rand(83000,170000);
|
||||
mysql_query("UPDATE planete SET isolement='$nextIsol' WHERE id_user='$id' AND galaxie='".$d['galaxie']."' AND ss='".$d['ss']."'AND position='".$d['position']."'");
|
||||
}
|
||||
elseif ($d['isolement']+(mysql_num_rows($req)-10)*7200 < time() || $d['isolement'] == 0) {
|
||||
$Aplan_value .= $d['id'].' ';
|
||||
if ($d['galaxie'] == $_SESSION['galaxy'] && $d['ss'] == $_SESSION['ss'] && $d['position'] == $_SESSION['pos']) $Aplan_more .= ' selected="selected";';
|
||||
else $Aplan_more .= ';';
|
||||
$Aplan_ref .= $d['nom_planete'].' ['.$d['galaxie'].':'.$d['ss'].':'.$d['position'].'];';
|
||||
}
|
||||
elseif ($d['galaxie'] == $_SESSION['galaxy'] && $d['ss'] == $_SESSION['ss'] && $d['position'] == $_SESSION['pos']) {
|
||||
$time = time();
|
||||
mysql_query("UPDATE planete SET isolement='$time' WHERE id_user='$id' AND galaxie='".$d['galaxie']."' AND ss='".$d['ss']."'AND position='".$d['position']."'");
|
||||
}
|
||||
|
||||
}
|
||||
$Aplan_value = split(' ',trim($Aplan_value));
|
||||
$Aplan_more = split(' ',trim($Aplan_more));
|
||||
$Aplan_more = split(';',trim($Aplan_more));
|
||||
$Aplan_ref = split(';',trim($Aplan_ref));
|
||||
|
||||
$NOM_METAL = $ressourc[0];
|
||||
$NOM_CRISTAL = $ressourc[1];
|
||||
$NOM_HYDROGENE = $ressourc[2];
|
||||
$NOM_ENERGIE = $ressourc[3];
|
||||
$RES_METAL = floor($a);
|
||||
$RES_CRISTAL = floor($b);
|
||||
$RES_HYDROGENE = floor($c);
|
||||
$RES_ENERGIE = $nrj.'/'.$t;
|
||||
$RES_METAL = separerNombres(floor($a));
|
||||
$RES_CRISTAL = separerNombres(floor($b));
|
||||
$RES_HYDROGENE = separerNombres(floor($c));
|
||||
$RES_ENERGIE = separerNombres($nrj).'/'.separerNombres($t);
|
||||
|
||||
mysql_close();
|
||||
?>
|
||||
|
|
@ -11,7 +11,7 @@ $pseudo = $donnees['pseudo'];
|
|||
if (isset($_POST['description']) && $_POST['description'] !='' ) {
|
||||
if (isset($_POST['page']) && $_POST['page'] !='' ) {
|
||||
$temps = time();
|
||||
mysql_query("INSERT INTO bug VALUES('', '$pseudo', '$temps', '".htmlspecialchars($_POST['page'])."', '".nl2br(htmlspecialchars($_POST['description']))."')");
|
||||
mysql_query("INSERT INTO bug VALUES('', '$pseudo', '$temps', '".mysql_real_escape_string(htmlspecialchars($_POST['page']))."', '".mysql_real_escape_string(htmlspecialchars($_POST['description']))."')");
|
||||
mysql_close();
|
||||
@header("Location: rapport_bug.php?ok=1");
|
||||
}
|
||||
|
|
|
|||