Version 0.7
BIN
ab/0.TTF
Normal file
BIN
ab/1.TTF
Normal file
BIN
ab/2.TTF
Normal file
70
ab/ab.php
Normal file
|
@ -0,0 +1,70 @@
|
|||
<?php
|
||||
// On crée la session avant tout
|
||||
session_start();
|
||||
|
||||
// On défini la configuration :
|
||||
if(!IsSet($_GET['nbr_chiffres']) || $_GET['nbr_chiffres'] < 5) {
|
||||
$nbr_chiffres = 7; // Nombre de chiffres qui formerons le nombre par défaut
|
||||
}
|
||||
else {
|
||||
$nbr_chiffres = $_GET['nbr_chiffres']; // Si l'on met dans l'adresse un ?nbr_chiffres=X
|
||||
}
|
||||
|
||||
// Là, on défini le header de la page pour la transformer en image
|
||||
header ("Content-type: image/png");
|
||||
// Là, on crée notre image
|
||||
$_img = imagecreatefromgif('fond_verif_img.gif');
|
||||
|
||||
// On défini maintenant les couleurs
|
||||
// Couleur de fond :
|
||||
//$arriere_plan = imagecolorallocate($_img, 0, 0, 0); // Au cas où on utiliserai pas d'image de fond, on utilise cette couleur là.
|
||||
// Autres couleurs :
|
||||
$couleur = mt_rand(0, 4);
|
||||
if ($couleur == 0) $avant_plan = imagecolorallocate($_img, rand(250,225), rand(0,25), rand(0,25));
|
||||
elseif ($couleur == 1) $avant_plan = imagecolorallocate($_img, rand(0,25), rand(250,225), rand(0,25));
|
||||
// elseif ($couleur == 2) $avant_plan = imagecolorallocate($_img, rand(0,55), rand(0,55), rand(250,255));
|
||||
elseif ($couleur == 3) $avant_plan = imagecolorallocate($_img, rand(0,25), rand(250,225), rand(250,225));
|
||||
elseif ($couleur == 4) $avant_plan = imagecolorallocate($_img, rand(250,225), rand(0,25), rand(250,225));
|
||||
elseif ($couleur == 5) $avant_plan = imagecolorallocate($_img, rand(250,225), rand(250,225), rand(0,25));
|
||||
else $avant_plan = imagecolorallocate($_img, rand(200,225), rand(200,225), rand(200,225)); // Couleur des chiffres
|
||||
|
||||
$i = 0;
|
||||
while($i < $nbr_chiffres) {
|
||||
$chiffre = mt_rand(1, 18); // On génère le nombre aléatoire
|
||||
if ($chiffre == 10) $chiffre="a";
|
||||
elseif ($chiffre == 2) $chiffre="w";
|
||||
elseif ($chiffre == 11) $chiffre="t";
|
||||
elseif ($chiffre == 12) $chiffre="c";
|
||||
elseif ($chiffre == 13) $chiffre="n";
|
||||
elseif ($chiffre == 14) $chiffre="p"; // e avec l'écriture Google
|
||||
elseif ($chiffre == 15) $chiffre="f";
|
||||
elseif ($chiffre == 16) $chiffre="y";
|
||||
elseif ($chiffre == 17) $chiffre="m";
|
||||
elseif ($chiffre == 18) $chiffre="k";
|
||||
$chiffres[$i] = $chiffre;
|
||||
$i++;
|
||||
}
|
||||
$nombre = null;
|
||||
// On explore le tableau $chiffres afin d'y afficher toutes les entrées qu'y s'y trouvent
|
||||
foreach ($chiffres as $caractere) {
|
||||
$nombre .= $caractere;
|
||||
}
|
||||
|
||||
$_SESSION['aleat_nbr'] = strtolower($nombre);
|
||||
// On détruit les variables inutiles :
|
||||
unset($chiffre);
|
||||
unset($i);
|
||||
unset($caractere);
|
||||
unset($chiffres);
|
||||
|
||||
//$fontfile = mt_rand(0, 2).'.TTF';
|
||||
// Free
|
||||
//$fontfile = '/mnt/152/free.fr/b/c/www.msnparadize/util/ab/1.TTF';
|
||||
$fontfile = './2.TTF';
|
||||
|
||||
//imagestring($_img, 5, 18, 8, $nombre, $avant_plan);
|
||||
if ($fontfile == '0.TTF') ImageTTFText($_img, 18, 2, 0, 23, $avant_plan, $fontfile, strtoupper($nombre));
|
||||
else ImageTTFText($_img, 18.5, 2, rand(0,6), 23, $avant_plan, $fontfile, $nombre);
|
||||
|
||||
imagepng($_img);
|
||||
?>
|
BIN
ab/fond_verif_img.gif
Normal file
After Width: | Height: | Size: 914 B |
BIN
ab/fond_verif_img.png
Normal file
After Width: | Height: | Size: 240 B |
128
ab/sound.php
Normal file
|
@ -0,0 +1,128 @@
|
|||
<?php
|
||||
session_start();
|
||||
|
||||
class wave
|
||||
{
|
||||
public $nombre;
|
||||
public function __construct($nombre = 0)
|
||||
{
|
||||
if(!empty($nombre))
|
||||
{
|
||||
$this->nombre = $nombre.'r'.$nombre;
|
||||
$strlen = strlen($this->nombre);
|
||||
|
||||
$binary = ''; // Contiendra les donnees, juste les donnees.
|
||||
|
||||
for($i = 0; $i < $strlen; $i++)
|
||||
{
|
||||
$binary .= $this->get_datas('../'.$this->nombre{$i}.'.wav');
|
||||
}
|
||||
|
||||
$this->package($binary);
|
||||
}
|
||||
}
|
||||
|
||||
public function analyse($wav,$arg = FALSE)
|
||||
{
|
||||
if(file_exists('../'.$wav))
|
||||
{
|
||||
|
||||
$entete_unpack = 'a4file_type/Lfile_size/a4file_id/A4nom_zone1/Ltaille_zone1/SFormatTag/SChannels/LSamplesPerSec/LAvgBytesPerSec/SBlockAlign/SBitsPerSample/A4nom_data/Ltaille_data';
|
||||
|
||||
$fp = fopen('../'.$wav,'r');
|
||||
$file = fread($fp, 44 );
|
||||
|
||||
$entete = unpack($entete_unpack,$file);
|
||||
fclose($fp);
|
||||
|
||||
|
||||
if( ($entete['file_type'] !== chr(0x52).chr(0x49).chr(0x46).chr(0x46) ) OR ( $entete['file_id'] !== chr(0x57).chr(0x41).chr(0x56).chr(0x45) ) )
|
||||
{
|
||||
trigger_error('Le fichier '.$wav.' n\'est pas un fichier wav',E_USER_ERROR);
|
||||
}
|
||||
|
||||
if(!$arg)
|
||||
return $entete;
|
||||
else
|
||||
return $entete[$arg];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
trigger_error('fonction analyse, le fichier '.$wav.' est neccessaire mais manquant', E_USER_ERROR);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
private function get_datas($wav)
|
||||
{
|
||||
if(file_exists('../'.$wav))
|
||||
{
|
||||
$fp = fopen('../'.$wav,'r');
|
||||
fseek($fp, 44 );
|
||||
|
||||
$datas = fread($fp, $this->analyse($wav, 'taille_data'));
|
||||
|
||||
fclose($fp);
|
||||
|
||||
return $datas;
|
||||
}
|
||||
else
|
||||
{
|
||||
trigger_error('fonction analyse, le fichier '.$wav.' est neccessaire mais manquant', E_USER_ERROR);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
private function package($datas)
|
||||
{
|
||||
$entete_pack = 'a4La4A4LSSLLSSA4L';
|
||||
|
||||
$entete = $this->analyse('../'.$this->nombre{0}.'.wav');
|
||||
|
||||
for($i = 1;$i<strlen($this->nombre); $i ++)
|
||||
{
|
||||
$entete2 = $this->analyse('../'.$this->nombre{$i}.'.wav');
|
||||
if($entete !== $entete2)
|
||||
{
|
||||
if($entete['Channels'] !== $entete2['Channels'])
|
||||
{
|
||||
trigger_error('fonction package, un ou plusieurs fichiers wad n\'ont pas le même nombre de canaux',E_USER_ERROR);
|
||||
}
|
||||
|
||||
if($entete['BitsPerSample'] !== $entete2['BitsPerSample'])
|
||||
{
|
||||
trigger_error('fonction package, un ou plusieurs fichiers wad, n\'on pas le même nombres d\'échantillons par seconde', E_USER_ERROR);
|
||||
}
|
||||
|
||||
if($entete['SamplesPerSec'] !== $entete2['SamplesPerSec'])
|
||||
{
|
||||
trigger_error('fonction package, un ou plusieurs fichiers wad, n\'ont pas la même fréquence d\'échantillonage', E_USER_WARNING);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* On calcule la taille des donnees que l'on à creer selon la formule de soundeditor */
|
||||
$entete['taille_data'] = strlen($datas);
|
||||
$entete['taille_data'] /= $entete['BlockAlign'];
|
||||
$entete['taille_data'] *= $entete['BlockAlign'];
|
||||
|
||||
$entete['file_size'] = 44 + strlen($datas);
|
||||
|
||||
/* on "pack l entete et on y ajoute les donnees */
|
||||
$binary = pack($entete_pack, $entete['file_type'],$entete['file_size'],$entete['file_id'],$entete['nom_zone1'],
|
||||
$entete['taille_zone1'],$entete['FormatTag'],$entete['Channels'],$entete['SamplesPerSec'],$entete['AvgBytesPerSec'],
|
||||
$entete['BlockAlign'],$entete['BitsPerSample'],$entete['nom_data'],$entete['taille_data']);
|
||||
$binary .= $datas;
|
||||
|
||||
/* On transmet ou enregistre */
|
||||
header('Content-type: audio/x-wav');
|
||||
header('Content-Disposition: attachment; filename="code.wav"');
|
||||
echo $binary;
|
||||
}
|
||||
}
|
||||
|
||||
$wav = new wave($_SESSION['aleat_nbr']);
|
||||
?>
|
BIN
ab/un.ttf
Normal file
BIN
ab/wave/1.WAV
Normal file
BIN
ab/wave/2.WAV
Normal file
BIN
ab/wave/3.WAV
Normal file
BIN
ab/wave/4.WAV
Normal file
BIN
ab/wave/5.wav
Normal file
BIN
ab/wave/6.WAV
Normal file
BIN
ab/wave/7.WAV
Normal file
BIN
ab/wave/8.WAV
Normal file
BIN
ab/wave/9.WAV
Normal file
BIN
ab/wave/A.WAV
Normal file
BIN
ab/wave/B.WAV
Normal file
BIN
ab/wave/C.WAV
Normal file
BIN
ab/wave/D.WAV
Normal file
BIN
ab/wave/E.WAV
Normal file
BIN
ab/wave/F.WAV
Normal file
BIN
ab/wave/G.WAV
Normal file
BIN
ab/wave/H.WAV
Normal file
BIN
ab/wave/I.WAV
Normal file
BIN
ab/wave/J.WAV
Normal file
BIN
ab/wave/K.WAV
Normal file
BIN
ab/wave/L.WAV
Normal file
BIN
ab/wave/M.WAV
Normal file
BIN
ab/wave/N.WAV
Normal file
BIN
ab/wave/O.WAV
Normal file
BIN
ab/wave/P.WAV
Normal file
BIN
ab/wave/Q.WAV
Normal file
BIN
ab/wave/R.WAV
Normal file
BIN
ab/wave/S.WAV
Normal file
BIN
ab/wave/T.WAV
Normal file
BIN
ab/wave/U.WAV
Normal file
BIN
ab/wave/V.WAV
Normal file
BIN
ab/wave/W.WAV
Normal file
BIN
ab/wave/X.WAV
Normal file
BIN
ab/wave/Y.WAV
Normal file
BIN
ab/wave/Z.WAV
Normal file
|
@ -1,11 +1,11 @@
|
|||
<?php
|
||||
//Connexion MySQL
|
||||
//Serveur localhost
|
||||
//$db = mysql_connect('localhost','hb','bddhb') or die ("erreur de connexion");
|
||||
//mysql_select_db('wars',$db) or die ("erreur de connexion base");
|
||||
$db = mysql_connect('localhost','hb','bddhb') or die ("erreur de connexion");
|
||||
mysql_select_db('halo_battle',$db) or die ("erreur de connexion base");
|
||||
//Serveur Halo.fr
|
||||
$db = mysql_connect(':/var/lib/mysql/mysql3.sock','halobattle','m8zFmdtm9PftrcHb') or die ("erreur de connexion");
|
||||
mysql_select_db('halobattle',$db) or die ("erreur de connexion base");
|
||||
//$db = mysql_connect(':/var/lib/mysql/mysql3.sock','halobattle','m8zFmdtm9PftrcHb') or die ("erreur de connexion");
|
||||
//mysql_select_db('halobattle',$db) or die ("erreur de connexion base");
|
||||
|
||||
if (!isset($dejadefi)) {
|
||||
function realip() {
|
||||
|
|
BIN
favicon.ico
Normal file
After Width: | Height: | Size: 926 B |
60
fermerServeur.php
Normal file
|
@ -0,0 +1,60 @@
|
|||
<?php
|
||||
// Définition des paramètres de fermeture du serveur
|
||||
$fermerServeur_auth = 7;
|
||||
$fermerServeur_causeR = 0;
|
||||
$fermerServeur_timeS = 1195553038;
|
||||
$fermerServeur_timeE = 1195553938;
|
||||
$fermerServeur_ouverture = ''; // ... jusqu'à environ %c heure de Paris. DEFINIR PLUTÔT LES TIMEE ET TIMES
|
||||
$fermerServeur_lien = '';
|
||||
|
||||
// Calcul du temps de la maintenance
|
||||
$durer = $fermerServeur_timeE - $fermerServeur_timeS;
|
||||
$jours = intval($durer/86400);
|
||||
$heures = intval(($durer/86400-intval($durer/86400))*24);
|
||||
$minutes = intval((($durer/86400-intval($durer/86400))*24-intval(($durer/86400-intval($durer/86400))*24))*60);
|
||||
$secondes = intval(((($durer/86400-intval($durer/86400))*24-intval(($durer/86400-intval($durer/86400))*24))*60-intval((($durer/86400-intval($durer/86400))*24-intval(($durer/86400-intval($durer/86400))*24))*60))*60);
|
||||
if ($durer > 0 && $jours > 0) $durer = $jours.' jour(s), '.$heures.' heure(s), '.$minutes.' minutes(s)';
|
||||
elseif ($durer > 0 && $heures > 0) $durer = $heures.' heure(s), '.$minutes.' minutes(s)';
|
||||
elseif ($durer > 0) $durer = $minutes.' minutes(s)';
|
||||
else $durer = '';
|
||||
|
||||
if (empty($fermerServeur_lien)) $fermerServeur_lien = 'http://www.halo-battle.s-fr.com/forum/index.php';
|
||||
if (!ereg('http://',$fermerServeur_lien)) $fermerServeur_lien = 'http://www.halo-battle.s-fr.com/forum/'.$fermerServeur_lien;
|
||||
|
||||
if ($fermerServeur_timeE < time() && !empty($fermerServeur_timeE)) $fermerServeur_auth = 0;
|
||||
|
||||
if ($fermerServeur_causeR == 0 && $fermerServeur_timeS < time() && ($fermerServeur_timeE > time() || empty($fermerServeur_timeE))) {
|
||||
$fermerServeur_Titre = 'Serveur en maintenance';
|
||||
if ($fermerServeur_timeE != 0 && $fermerServeur_timeE-time() >= 86400) $ouvr = 'jusqu\'au '.date('d/m/y',$fermerServeur_timeE).' à '.date('H:i',$fermerServeur_timeE).' heure de Paris';
|
||||
elseif ($fermerServeur_timeE != 0) $ouvr = 'jusqu\'à '.date('H:i',$fermerServeur_timeE).' heure de Paris';
|
||||
elseif (!empty($fermerServeur_ouverture)) $ouvr = 'jusqu\'à environ '.$fermerServeur_ouverture.' heure de Paris';
|
||||
else $ouvr = 'durant quelques minutes';
|
||||
if (!empty($durer)) $durer = '<br /><br /><u>Durée de la phase de maintenance :</u> '.$durer;
|
||||
$fermerServeur_Contenu = 'Nous effectuons actuellement des opérations de maintenance sur le serveur, il est indisponible '.$ouvr.'.<br /><br />Pour plus d\'information sur les corrections et nouveautés apportés, nous vous conseillons de lire la <a href="'.$fermerServeur_lien.'" class="lien">HB Weekly Update sur le forum du jeu</a>.'.$durer.'<br /><br />Merci de votre compréhension';
|
||||
}
|
||||
elseif ($fermerServeur_causeR == 0 && ($fermerServeur_timeE > time() || empty($fermerServeur_timeE))) {
|
||||
$fermerServeur_Titre = 'Prévision de maintenance du serveur';
|
||||
if ($fermerServeur_timeS != 0 && $fermerServeur_timeS-time() >= 86400) $ouvr = 'le '.date('d/m/y',$fermerServeur_timeS).' à '.date('H:i',$fermerServeur_timeS).' heure de Paris';
|
||||
elseif ($fermerServeur_timeS != 0) $ouvr = 'à '.date('H:i',$fermerServeur_timeS).' heure de Paris';
|
||||
else $ouvr = 'dans quelques minutes';
|
||||
if (!empty($durer)) $durer = '<br /><br /><u>Durée de la phase de maintenance :</u> '.$durer;
|
||||
$fermerServeur_Contenu = 'Une phase de maintenance du serveur va être effectuée '.$ouvr.'.<br /><br />Pour plus d\'information sur les corrections et nouveautés apportés, nous vous conseillons de lire la <a href="'.$fermerServeur_lien.'" class="lien">HB Weekly Update sur le forum du jeu</a> lors de sa parution.'.$durer.'<br /><br />Merci de votre compréhension';
|
||||
}
|
||||
elseif ($fermerServeur_causeR == 1 && $fermerServeur_timeS < time() && ($fermerServeur_timeE > time() || empty($fermerServeur_timeE))) {
|
||||
$fermerServeur_Titre = 'Serveur en maintenance exceptionnelle';
|
||||
if ($fermerServeur_timeE != 0 && $fermerServeur_timeE-time() >= 86400) $ouvr = 'jusqu\'au '.date('d/m/y',$fermerServeur_timeE).' à '.date('H:i',$fermerServeur_timeE).' heure de Paris';
|
||||
elseif ($fermerServeur_timeE != 0) $ouvr = 'jusqu\'à '.date('H:i',$fermerServeur_timeE).' heure de Paris';
|
||||
elseif (!empty($fermerServeur_ouverture)) $ouvr = 'jusqu\'à environ '.$fermerServeur_ouverture.' heure de Paris';
|
||||
else $ouvr = 'durant quelques minutes';
|
||||
if (!empty($durer)) $durer = '<br /><br /><u>Durée de la phase de maintenance :</u> '.$durer;
|
||||
$fermerServeur_Contenu = 'Nous effectuons actuellement des opérations de maintenance sur le serveur, il est indisponible '.$ouvr.'.<br /><br />Pour plus d\'information sur les corrections et nouveautés apportés, nous vous conseillons de lire l\'<a href="'.$fermerServeur_lien.'" class="lien">annonce officielle de cette maintenance sur le forum du jeu</a>.'.$durer.'<br /><br />Merci de votre compréhension';
|
||||
}
|
||||
elseif ($fermerServeur_causeR == 1 && ($fermerServeur_timeE > time() || empty($fermerServeur_timeE))) {
|
||||
$fermerServeur_Titre = 'Prévision d\'une maintenance exceptionnelle du serveur';
|
||||
if ($fermerServeur_timeS != 0 && $fermerServeur_timeS-time() >= 86400) $ouvr = 'le '.date('d/m/y',$fermerServeur_timeS).' à '.date('H:i',$fermerServeur_timeS).' heure de Paris';
|
||||
elseif ($fermerServeur_timeS != 0) $ouvr = 'à '.date('H:i',$fermerServeur_timeS).' heure de Paris';
|
||||
else $ouvr = 'dans quelques minutes';
|
||||
if (!empty($durer)) $durer = '<br /><br /><u>Durée de la phase de maintenance :</u> '.$durer;
|
||||
$fermerServeur_Contenu = 'Une phase de maintenance du serveur va être effectuée exceptionnellement '.$ouvr.'.<br /><br />Pour plus d\'information sur les corrections et nouveautés apportés, nous vous conseillons de lire les <a href="'.$fermerServeur_lien.'" class="lien">annonces officielles sur le forum du jeu</a>.'.$durer.'<br /><br />Merci de votre compréhension';
|
||||
}
|
||||
?>
|
|
@ -14,7 +14,7 @@ function vais_tempsDeplacement($start_galaxie,$start_ss,$start_position,$end_gal
|
|||
}
|
||||
|
||||
function vais_conso($tempsDeplacement,$nbvais = 1){
|
||||
return intval($tempsDeplacement*11.5*$nbvais);
|
||||
return intval($tempsDeplacement*$nbvais/20);
|
||||
}
|
||||
|
||||
function vais_tempsArrivee($start_time,$start_galaxie,$start_ss,$start_position,$end_galaxie,$end_ss,$end_position,$vitesse,$chauffe = 0){
|
||||
|
@ -53,4 +53,78 @@ function trouvNom($id_user){
|
|||
$resultat = mysql_fetch_array($req);
|
||||
return $resultat['pseudo'];
|
||||
}
|
||||
|
||||
function separerNombres($nombre) {
|
||||
$j=0;
|
||||
$lgr=strlen($nombre);
|
||||
$chaine = '';
|
||||
for($i = $lgr-1; $i >= 0; $i--) {
|
||||
$chaine .= substr($nombre,$i,1);
|
||||
$j+=1;
|
||||
if($j == 3 and $i >0) {
|
||||
$chaine .= ".";
|
||||
$j = 0;
|
||||
}
|
||||
}
|
||||
$nombre="";
|
||||
$lgr=strlen($chaine);
|
||||
$j=$lgr;
|
||||
for($i = $lgr+1; $i > 0; $i--) {
|
||||
$nombre .= substr($chaine,$j,1);
|
||||
$j -=1;
|
||||
}
|
||||
return $nombre;
|
||||
}
|
||||
|
||||
function bbcode($text) {
|
||||
$text = htmlentities($text);
|
||||
|
||||
$text = nl2br($text);
|
||||
|
||||
$text = str_replace("[b]", "<b>", $text);
|
||||
$text = str_replace("[/b]", "</b>", $text);
|
||||
|
||||
$text = str_replace("[u]", "<u>", $text);
|
||||
$text = str_replace("[/u]", "</u>", $text);
|
||||
|
||||
$text = str_replace("[i]", "<i>", $text);
|
||||
$text = str_replace("[/i]", "</i>", $text);
|
||||
|
||||
$text = str_replace("[center]", "<center>", $text);
|
||||
$text = str_replace("[/center]", "</center>", $text);
|
||||
|
||||
$text = str_replace(" ", " ", $text);
|
||||
|
||||
$patterns = array();
|
||||
$replacements = array();
|
||||
|
||||
$patterns[] = "#\[img\](.*?)\[/img\]#si";
|
||||
$replacements[] = "<img src=\"\\1\" border=\"0\" />";
|
||||
|
||||
$patterns[] = "#\[quote=(.*?)\](.*?)\[/quote\]#si";
|
||||
$replacements[] = "<div class=\"centre\"><table width=\"90%\" border=\"1\" color=\"#C6C6C6\" bgcolor=\"#4D4D4D\" style=\"margin-left: auto; margin-right: auto;\"><tr><td><b><i><font color=\"#C6C6C6\"> \\1 à dit :</i></b><br><i>\\2 </i></font></td></tr></table></div>";
|
||||
|
||||
$patterns[] = "#\[color=(.*?)\](.*?)\[/color\]#si";
|
||||
$replacements[] = "<font color=\"\\1\">\\2</font>";
|
||||
|
||||
$patterns[] = "#\[quote\](.*?)\[/quote\]#si";
|
||||
$replacements[] = "<div class=\"centre\"><table width=\"90%\" border=\"1\" color=\"#C6C6C6\" bgcolor=\"#4D4D4D\" style=\"margin-left: auto; margin-right: auto;\"><tr><td><i><font color=\"#C6C6C6\">\\1</font></i></td></tr></table></div>";
|
||||
|
||||
$patterns[] = "#\[url\]([a-z0-9]+?://){1}([\w\-]+\.([\w\-]+\.)*[\w]+(:[0-9]+)?(/[^ \"\n\r\t<]*)?)\[/url\]#is";
|
||||
$replacements[] = "<a href=\"\1\2\" target=\"_blank\" class=\"postlink\">\1\2</a>";
|
||||
|
||||
$patterns[] = "#\[url\]((www|ftp)\.([\w\-]+\.)*[\w]+(:[0-9]+)?(/[^ \"\n\r\t<]*?)?)\[/url\]#si";
|
||||
$replacements[] = "<a href=\"http://\\1\" target=\"_blank\" class=\"postlink\">\\1</a>";
|
||||
|
||||
$patterns[] = "#\[url=([a-z0-9]+://)([\w\-]+\.([\w\-]+\.)*[\w]+(:[0-9]+)?(/[^ \"\n\r\t<]*?)?)\](.*?)\[/url\]#si";
|
||||
$replacements[] = "<a href=\"\\1\\2\" target=\"_blank\">\\6</a>";
|
||||
|
||||
$patterns[] = "#\[url=(([\w\-]+\.)*?[\w]+(:[0-9]+)?(/[^ \"\n\r\t<]*)?)\](.*?)\[/url\]#si";
|
||||
$replacements[] = "<a href=\"http://\\1\" target=\"_blank\">\\5</a>";
|
||||
|
||||
$patterns[] = "#\[email\]([a-z0-9\-_.]+?@[\w\-]+\.([\w\-\.]+\.)?[\w]+)\[/email\]#si";
|
||||
$replacements[] = "<a href=\"mailto:\\1\">\\1</A>";
|
||||
|
||||
return preg_replace($patterns, $replacements, $text);
|
||||
}
|
||||
?>
|
BIN
images/Thumbs.db
Normal file
BIN
images/background.jpg
Normal file
After Width: | Height: | Size: 236 KiB |
19
index.php
|
@ -1,11 +1,19 @@
|
|||
<?php
|
||||
session_start();
|
||||
include('template.php');
|
||||
require('fermerServeur.php');
|
||||
|
||||
// Système de vérification de nombre de login via la base de données
|
||||
/* require('connectBDD.php');
|
||||
$req = mysql_query("SELECT essai FROM securite_identification WHERE `ip` = '$ip'");
|
||||
$data = mysql_fetch_assoc($req);
|
||||
if (isset($_SESSION['essaimdp']) && $_SESSION['essaimdp'] != $data['essai']) $_SESSION['essaimdp'] = $data['essai'];
|
||||
mysql_close();*/
|
||||
|
||||
$template = new Template('./');
|
||||
$template->set_filenames(array('index' => 'templates/index.tpl'));
|
||||
|
||||
if (isset($_GET['erreur'])) {
|
||||
if (isset($_GET['erreur']) && $_GET['erreur'] != '8') {
|
||||
if ($_GET['erreur'] == '0') $texte = '<b><font color="#FF0000">Nom d\'utilisateur ou mot de passe incorrect.</font><br /><br />Cliquez ici si vous avez perdu votre mot de passe.</b>';
|
||||
elseif (strtolower($_GET['erreur']) == 'b2') $texte = '<b><font color="#FF0000">Vous n\'avez pas trouvé votre mot de passe au bout de 15 essais. Par mesure de sécurité, vous avez été banni 3 heures.</font></b>';
|
||||
elseif ($_GET['erreur'] == '2') $texte = '<script type="text/javascript">var i = 0; function gen() { i++;
|
||||
|
@ -23,17 +31,16 @@ if (isset($_GET['erreur'])) {
|
|||
elseif (strtolower($_GET['erreur']) == 'b') $texte = '<b><font color="#FF0000">Vous êtes banni du jeu. Vous ne pouvez pas vous identifier</font></b>';
|
||||
else $texte = '<b><font color="#FF0000">Erreur !</font></b>';
|
||||
}
|
||||
else $texte = 'Bienvenue sur la page de connexion de la version Beta d'Halo-Battle,<br />
|
||||
La béta étant réservée à certains utilisateurs, vous ne pouvez pas encore vous inscrire pour jouer.<br />
|
||||
Si vous possèdez un code d\'activation de compte béta-testeur, <a href="inscription.php" class="lien">cliquez ici pour activer votre compte</a><br />
|
||||
Pour suivre l'avancement du projet, rendez-vous sur le <a class="lien" target="_blank" href="http://halo-battle.s-fr.com/forum/">forum</a>.<br /><br />
|
||||
<div style="text-align:left; text-indent:10%;font-weight: bold;">Staff Halo-Battle</div>';
|
||||
elseif ($fermerServeur_auth > 0 && ($fermerServeur_timeE > time() || empty($fermerServeur_timeE))) $texte = '<b><font color="#FFCC00">'.$fermerServeur_Titre.'</font><br /><br />'.$fermerServeur_Contenu.'</b>';
|
||||
elseif ($_GET['erreur'] == '8') $texte = '<b><font color="#FFCC00">Serveur indisponible</font><br /><br />Le serveur est actuellement indisponible. Vous pouvez essayer de vous reconnecter.<br /><br />Pou plus d\'informations, lisez les annonces officielles sur le forum du jeu.<br /><br />Merci de votre compréhension</b>';
|
||||
else require('textlog.php');
|
||||
|
||||
$login = '<form name="login" method="post" action="verifLogin.php">
|
||||
<table>
|
||||
<tr>
|
||||
<td class="cellulestxt">:: Pseudo :: </td><td><input type="text" class="champ" name="login" /></td></tr>
|
||||
<tr><td class="cellulestxt">:: Mot de Passe :: </td><td><input type="password" class="champ" name="password" /></td></tr>';
|
||||
|
||||
if (isset($_SESSION['essaimdp']) && $_SESSION['essaimdp'] >= 3 && strtolower($_GET['erreur']) != 'b') $login .= '<tr><td class="cellulestxt" colspan="2" style="text-align: center;"><br />Veuillez recopier le texte de cette image<br /><br /><span id="gen"><img src="ab/ab.php" alt="Captcha" /></span><br /><input type="text" class="champ" name="captcha" /></td></tr>';
|
||||
$login .= '<tr><td align="center" colspan="2"><br />
|
||||
<input class="connexion" type="submit" value="› Connexion ‹" /></td></tr></table>
|
||||
|
|
3
info.php
Normal file
|
@ -0,0 +1,3 @@
|
|||
<?php
|
||||
phpinfo();
|
||||
?>
|
|
@ -32,7 +32,7 @@ if ($affichage == false) {
|
|||
<table style="margin-left: auto; margin-right: auto;">
|
||||
<tr><td colspan="3"><b><font size="+1">Inscription</font></b><br /><br /></td></tr>
|
||||
<tr><td class="cellulestxt">Code d\'activation : </td><td class="cellulestxt"><input type="text" class="champ" onfocus="document.getElementById(\'description\').innerHTML = \'<br /><br /><b>Code d\\\'activation</b><br /><br />Entrez ici le code d\\\'activation qui vous a été fournis par un administrateur.<br />Ce code est indispensable pour vérifier que vous êtes autorisé à tester la béta.<br /><br />Si vous avez perdu votre code d\\\'activation ou s\\\'il ne vous a pas été communiqué, contactez un administrateur via le forum du jeu.\';" size="20" maxlength="15" name="code" /></td></tr>
|
||||
<tr><td class="cellulestxt">Pseudo : </td><td class="cellulestxt"><input type="text" class="champ" onfocus="document.getElementById(\'description\').innerHTML = \'<br /><br /><br /><b>Pseudo</b><br /><br />Votre pseudo est le nom que vous porterez dans le jeu.<br /><br />Vous pouvez utiliser toutes les lettres, les chiffres ainsi que les caractères _ et &002;<br /><font color=#FF0000>Attention : ce pseudo est définitif, vous ne pourrez pas le changer par la suite.</font>\';" size="20" maxlength="15" name="pseudo" /></td></tr>
|
||||
<tr><td class="cellulestxt">Pseudo : </td><td class="cellulestxt"><input type="text" class="champ" onfocus="document.getElementById(\'description\').innerHTML = \'<br /><br /><br /><b>Pseudo</b><br /><br />Votre pseudo est le nom que vous porterez dans le jeu.<br /><br />Vous pouvez utiliser toutes les lettres, les chiffres ainsi <br />que les caractères _ et .<br /><br /><font color=#FF0000>Attention : ce pseudo est définitif, vous ne pourrez pas le changer par la suite.</font>\';" size="20" maxlength="15" name="pseudo" /></td></tr>
|
||||
<tr><td class="cellulestxt">Mot de passe : </td><td class="cellulestxt"><input type="password" class="champ" onfocus="document.getElementById(\'description\').innerHTML = \'<br /><br /><br /><br /><br /><b>Mot de passe</b><br /><br />Le mot de passe sert à empêcher d\\\'autres joueurs d\\\'accèder à votre compte.<br />Choisissez de préférence un mot de passe compliqué avec au minimum 6 caractères.\';" size="20" maxlength="30" name="mdp" /></td></tr>
|
||||
<tr><td class="cellulestxt">Confirmer le mot de passe : </td><td class="cellulestxt"><input type="password" class="champ" onfocus="document.getElementById(\'description\').innerHTML = \'<br /><br /><br /><br /><br /><br /><br /><br /><b>Confirmer le mot de passe</b><br /><br />Recopier le mot de passe que vous venez d\\\'écrire dans le champs précédent.\';" size="20" maxlength="30" name="mdp2" /></td></tr>
|
||||
<tr><td class="cellulestxt">Adresse mail : </td><td class="cellulestxt"><input type="text" class="champ" onfocus="document.getElementById(\'description\').innerHTML = \'<br /><br /><br /><br /><br /><br /><br /><b>Adresse électronique</b><br /><br />Afin de vous tenir informé des principales informations sur le jeu et pour valider votre compte, nous vous demandons de bien vouloir indiquer votre adresse électronique.<br /><br />Nous ne diffusion pas vos adresses et/ou informations personnelles à des sites tiers ou commerciaux.\';" size="20" maxlength="30" name="mail" /></td></tr>
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
<?php
|
||||
require_once('connectBDD.php');
|
||||
if (isset($_POST['code']) && isset($_POST['pseudo']) && isset($_POST['mail']) && isset($_POST['mdp2']) && isset($_POST['mdp']) && isset($_POST['race'])) {
|
||||
$code = strtoupper(str_replace('\'','\'\'',$_POST['code']));
|
||||
$code = strtoupper(mysql_real_escape_string($_POST['code']));
|
||||
$req = mysql_query("SELECT * FROM cds_beta WHERE `code` = '$code' AND `utilise` = '0'");
|
||||
if(mysql_num_rows($req) >= 1) {
|
||||
$pseudo = str_replace('\'','\'\'',$_POST['pseudo']);
|
||||
$mail = str_replace('\'','\'\'',$_POST['mail']);
|
||||
$mdp = str_replace('\'','\'\'',$_POST['mdp']);
|
||||
$mdp2 = str_replace('\'','\'\'',$_POST['mdp2']);
|
||||
$race = str_replace('\'','\'\'',$_POST['race']);
|
||||
$code = str_replace('\'','\'\'',$_POST['code']);
|
||||
$pseudo = mysql_real_escape_string($_POST['pseudo']);
|
||||
$mail = mysql_real_escape_string($_POST['mail']);
|
||||
$mdp = mysql_real_escape_string($_POST['mdp']);
|
||||
$mdp2 = mysql_real_escape_string($_POST['mdp2']);
|
||||
$race = mysql_real_escape_string($_POST['race']);
|
||||
mysql_query("UPDATE `cds_beta` SET `user` = '$pseudo', `utilise` = '1' WHERE `code`='$code';") or die ("erreur sql ".mysql_error());
|
||||
|
||||
$erreurs = '<table style="width: 75%; margin-left: auto; margin-right: auto;">';
|
||||
$inscriptOk = true;
|
||||
|
@ -60,7 +60,6 @@ if (isset($_POST['code']) && isset($_POST['pseudo']) && isset($_POST['mail']) &&
|
|||
print $erreurs.'</table>';
|
||||
}
|
||||
else {
|
||||
mysql_query("UPDATE `cds_beta` SET `user` = '$pseudo', `utilise` = '1' WHERE `code`='$code';") or die ("erreur sql ".mysql_error());
|
||||
$time = time();
|
||||
$ip = $_SERVER["REMOTE_ADDR"];
|
||||
// Activer la ligne suivante pour crypter les mots de passe dans la base de données
|
||||
|
@ -71,7 +70,7 @@ if (isset($_POST['code']) && isset($_POST['pseudo']) && isset($_POST['mail']) &&
|
|||
$galaxie = 1;
|
||||
//$galaxie = mt_rand(2,4);
|
||||
$ss = mt_rand(1,100);
|
||||
$pos = mt_rand(1,15);
|
||||
$pos = mt_rand(1,12);
|
||||
|
||||
// Test pour savoir si la planète est déjà habitée
|
||||
$result = mysql_query("SELECT id FROM planete WHERE galaxie='$galaxie' AND ss='$ss' AND position='$pos'");
|
||||
|
|
|
@ -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 |