Version 1.2
This commit is contained in:
parent
c4a18d4281
commit
083eb365c5
73 changed files with 1167 additions and 363 deletions
|
@ -39,6 +39,7 @@ class gererFile {
|
|||
$this->file = array_merge($this->file);
|
||||
}
|
||||
}
|
||||
if ($i == 0) $this->timestamp = time();
|
||||
}
|
||||
return $nombre;
|
||||
}
|
||||
|
|
|
@ -115,7 +115,7 @@ class Rapport{
|
|||
function sendAlliance2(){
|
||||
include_once('includes/function.php');
|
||||
$titreA = 'Fondation de votre alliance !';
|
||||
$rapportA = 'Pour terminer la création de votre alliance, trouvez 4 joueurs de cette galaxie sans alliance pour leur faire signer votre traité de fondation d\'alliance.<br /><br />Lien de signature : <a href="?p=alliances&q=signer&i='.$this->var[0].'">http://battle.halo.fr/?p=alliances&q=signer&i='.$this->var[0].'</a>';
|
||||
$rapportA = 'Pour terminer la création de votre alliance, trouvez 4 joueurs de cette galaxie sans alliance pour leur faire signer votre traité de fondation d\'alliance.<br /><br />Lien de signature : <a href="?p=alliances&q=signer&i='.$this->var[0].'">http://'.$_SERVER['HTTP_HOST'].'/?p=alliances&q=signer&i='.$this->var[0].'</a>';
|
||||
|
||||
$titreA = mysql_real_escape_string($titreA);
|
||||
$rapportA = mysql_real_escape_string($rapportA);
|
||||
|
|
|
@ -11,14 +11,14 @@ $chapeau->connexion();
|
|||
$chapeau->db();
|
||||
|
||||
mysql_query("TRUNCATE TABLE `classement`");
|
||||
$sql_1 = mysql_query("SELECT `id`, `pseudo`, `race` FROM `user`");
|
||||
$sql_1 = mysql_query("SELECT * FROM `user`");
|
||||
while($recup_id = mysql_fetch_array($sql_1)) {
|
||||
|
||||
$id = $recup_id['id'];
|
||||
$PSEUDO_USER = $recup_id['pseudo'];
|
||||
$race = $recup_id['race'];
|
||||
|
||||
$planete = mysql_query("SELECT `id`, `mine_m`, `mine_c`, `mine_h`, `centrale_s`, `centrale_f`, `radar`, `labo`, `chantier_terrestre`, `chantier_spatial`, `caserne`, `silo`, `centre_info`, `vaisseau_1`, `vaisseau_2`, `vaisseau_3`, `vaisseau_4`, `vaisseau_5`, `vaisseau_6`, `vaisseau_7`, `vaisseau_8`, `vaisseau_9`, `vaisseau_10`, `vaisseau_11`, `vaisseau_12`, `def_1`, `def_2`, `def_3`, `def_4`, `def_5` FROM `planete` WHERE `id_user` = " . $id)or die( mysql_error() );
|
||||
$planete = mysql_query("SELECT * FROM `planete` WHERE `id_user` = " . $id)or die( mysql_error() );
|
||||
while ($donnees_planete = mysql_fetch_array($planete)) {
|
||||
|
||||
// partie pts batiements ressources
|
||||
|
@ -118,7 +118,7 @@ while($recup_id = mysql_fetch_array($sql_1)) {
|
|||
$POINTS_BATIMENTS = $POINTS_BATIMENTS / 1000;
|
||||
|
||||
// points flottes terrestres recherches batiments
|
||||
mysql_query("INSERT INTO `classement` VALUES (NULL, '$PSEUDO_USER', '$race', '$PT_RESSOURCES', '$POINTS_VAISSEAUX', '0', '$POINTS_TECHNO', '$POINTS_BATIMENTS')") or die (mysql_error());
|
||||
if ($recup_id['auth_level'] < 3) mysql_query("INSERT INTO `classement` VALUES (NULL, '$PSEUDO_USER', '$race', '$PT_RESSOURCES', '$POINTS_VAISSEAUX', '0', '$POINTS_TECHNO', '$POINTS_BATIMENTS')") or die (mysql_error());
|
||||
mysql_query("UPDATE `user` SET `flotte` = '" . $POINTS_VAISSEAUX . "', `recherches` = '" . $POINTS_TECHNO . "', `batiments` = '" . $POINTS_BATIMENTS . "', `points` = '" . $PT_RESSOURCES . "' WHERE `pseudo` = '" . $PSEUDO_USER . "'") or die (mysql_error());
|
||||
|
||||
$metal = 0;
|
||||
|
@ -135,12 +135,17 @@ while($recup_id = mysql_fetch_array($sql_1)) {
|
|||
|
||||
}
|
||||
|
||||
$sql_2 = mysql_query("SELECT * FROM `classement` ORDER BY `classement`.`points` DESC") or die(mysql_error());
|
||||
$sql_2 = mysql_query("SELECT * FROM `classement` ORDER BY `classement`.`points` DESC");
|
||||
$i=0;
|
||||
while($resultat = mysql_fetch_array($sql_2)) {
|
||||
$i++;
|
||||
$nomuser = $resultat['pseudo'];
|
||||
mysql_query("UPDATE `user` SET `place_points` = '$i' WHERE `pseudo` = '$nomuser'") or die (mysql_error());
|
||||
$reqd = mysql_query("SELECT `auth_level` FROM `user` WHERE `pseudo` = '$nomuser'");
|
||||
$resultatd = mysql_fetch_array($reqd);
|
||||
if ($resultatd['auth_level'] < 3) {
|
||||
$i++;
|
||||
mysql_query("UPDATE `user` SET `place_points` = '$i' WHERE `pseudo` = '$nomuser'");
|
||||
}
|
||||
else mysql_query("UPDATE `user` SET `place_points` = '0' WHERE `pseudo` = '$nomuser'");
|
||||
}
|
||||
|
||||
$chapeau->deconnexion();
|
||||
|
|
|
@ -3,30 +3,32 @@ if(!defined('INDEX')) { header('Location: ../'); exit; }
|
|||
$page = 'accueil';
|
||||
$titre = 'Accueil';
|
||||
|
||||
$table = $config['db_prefix'].'mail';
|
||||
//On recherche si le joueur a des messages non lus
|
||||
$pseudo = trouvNom($id_user);
|
||||
$queryMail = $chapeau->unique_query("SELECT COUNT(*) AS nbre FROM `$table` WHERE `destinataire` = '$pseudo' AND `vu` = '1';");
|
||||
$template->assign('mail',$queryMail);
|
||||
$queryMail = $chapeau->unique_query("SELECT COUNT(*) AS nbre FROM `$table_mail` WHERE `destinataire` = '$pseudo' AND `vu` = '1';");
|
||||
$template->assign('mail', $queryMail);
|
||||
|
||||
$req = mysql_query("SELECT `galaxie`,`ss`,`position`,`nom_planete` FROM `planete` WHERE `id_user` = '$id_user'");
|
||||
//On regarde si le joueur a une attaque en vue
|
||||
$attaquesRadar = array();
|
||||
while ($resultat = mysql_fetch_array($req)) {
|
||||
$end_galaxie = $resultat['galaxie'];
|
||||
$end_ss = $resultat['ss'];
|
||||
$end_position = $resultat['position'];
|
||||
$reqf = mysql_query("SELECT * FROM flottes WHERE `mission` = '1' AND end_galaxie='$end_galaxie' AND end_ss='$end_ss' AND end_position='$end_position'");
|
||||
while ($resultatf = mysql_fetch_array($reqf)) {
|
||||
$nbPlan = count($queryPlanetes);
|
||||
for($i = 0; $i < $nbPlan; $i++){
|
||||
$end_galaxie = $queryPlanetes[$i]['galaxie'];
|
||||
$end_ss = $queryPlanetes[$i]['ss'];
|
||||
$end_position = $queryPlanetes[$i]['position'];
|
||||
$resultatf = $chapeau->query("SELECT * FROM `$table_flottes` WHERE `mission` = '1' AND `end_galaxie` = '$end_galaxie' AND `end_ss` = '$end_ss' AND `end_position` = '$end_position';");
|
||||
$nbF = $chapeau->num_rows;
|
||||
for ($j = 0; $j < $nbF; $j++) {
|
||||
$start_galaxie = $resultatf['start_galaxie'];
|
||||
$start_ss = $resultatf['start_ss'];
|
||||
$start_position = $resultatf['start_position'];
|
||||
if ($resultatf['start_time'] + $resultatf['end_time'] < time() + $queryUser['detection']*1800) {
|
||||
$reqp = mysql_query("SELECT nom_planete FROM planete WHERE galaxie='$start_galaxie' AND ss='$start_ss' AND position='$start_position'");
|
||||
$resultatp = mysql_fetch_array($reqp);
|
||||
$attaquesRadar[] = array($resultatp['nom_planete'],affTemp($resultatf['start_time']+$resultatf['end_time']-time()),$resultatf['start_galaxie'],$resultatf['start_ss'],$resultatf['start_position'],$resultat['nom_planete'],$resultatf['end_galaxie'],$resultatf['end_ss'],$resultatf['end_position'],$resultatf['start_time']+$resultatf['end_time']-time());
|
||||
$resultatp = $chapeau->unique_query("SELECT `nom_planete` FROM `$table_planete` WHERE `galaxie` = '$start_galaxie' AND `ss` = '$start_ss' AND `position` = '$start_position'");
|
||||
$attaquesRadar[] = array(htmlspecialchars($resultatp['nom_planete']), affTemp($resultatf['start_time']+$resultatf['end_time']-time()), $resultatf['start_galaxie'], $resultatf['start_ss'], $resultatf['start_position'], htmlspecialchars($queryPlanetes[$i]['nom_planete']), $resultatf['end_galaxie'], $resultatf['end_ss'], $resultatf['end_position'], $resultatf['start_time']+$resultatf['end_time']-time());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//Affichage des informations sur la planète
|
||||
$diametre = separerNombres($queryPlanete['cases'] * 92);
|
||||
$Classpoints = separerNombres($queryUser['points']);
|
||||
|
||||
|
@ -34,6 +36,7 @@ $template->assign('attaques',$attaquesRadar);
|
|||
$template->assign('diametre',$diametre);
|
||||
$template->assign('points',$Classpoints);
|
||||
|
||||
//Affichage de l'alliance du joueur
|
||||
$alli = $chapeau->unique_query("SELECT * FROM `$table_alliances` WHERE `id` = '".$queryUser['id_alliance']."';");
|
||||
$template->assign('alliance', $alli);
|
||||
?>
|
|
@ -195,7 +195,8 @@ if (!empty($queryUser['id_alliance']) && $queryUser['id_grade_alliance'] != -1 )
|
|||
}
|
||||
elseif ($_GET['q'] == 'chat') {
|
||||
if (isset($_POST['msg'])) {
|
||||
$message = mysql_real_escape_string($_POST['msg']);
|
||||
$message = $_POST['msg'];
|
||||
$chapeau->escape($message);
|
||||
if (!empty($message)) $chapeau->query("INSERT INTO `$table_alliances_chat` VALUES (NULL, '".$alliance['id']."', '$id_user', '".time()."', '$message')");
|
||||
header('Location: ?p=alliances&q=chat#chat');
|
||||
exit;
|
||||
|
@ -205,6 +206,7 @@ if (!empty($queryUser['id_alliance']) && $queryUser['id_grade_alliance'] != -1 )
|
|||
$chat = $chapeau->query("SELECT * FROM `$table_alliances_chat` WHERE `id_alliance` = '".$alliance['id']."' ORDER BY `id` DESC LIMIT 30");
|
||||
for($i = 0; $i < $chapeau->num_rows ; $i++){
|
||||
$chat[$i]['emetteur'] = trouvNom($chat[$i]['emetteur']);
|
||||
$chat[$i]['message'] = htmlspecialchars($chat[$i]['message']);
|
||||
}
|
||||
$template->assign('chat', $chat);
|
||||
}
|
||||
|
@ -220,6 +222,7 @@ if (!empty($queryUser['id_alliance']) && $queryUser['id_grade_alliance'] != -1 )
|
|||
$chat = $chapeau->query("SELECT * FROM `$table_alliances_chat` WHERE `id_alliance` = '".$alliance['id']."' ORDER BY `id` DESC LIMIT 30");
|
||||
for($i = 0; $i < $chapeau->num_rows ; $i++){
|
||||
$chat[$i]['emetteur'] = trouvNom($chat[$i]['emetteur']);
|
||||
$chat[$i]['message'] = htmlspecialchars($chat[$i]['message']);
|
||||
}
|
||||
$template->assign('chat', $chat);
|
||||
}
|
||||
|
@ -268,6 +271,7 @@ else {
|
|||
exit;
|
||||
}
|
||||
$template->assign('alliance', $alliance);
|
||||
$template->assign('alliancei', $id);
|
||||
$page = 'alliance_nm_postuler';
|
||||
}
|
||||
elseif ($_GET['q'] == 'signer' && !empty($_GET['i'])) {
|
||||
|
@ -289,6 +293,8 @@ else {
|
|||
$chapeau->query("INSERT INTO `$table_alliances` VALUES (NULL, '".$alliance['tag']."', '".$alliance['nom']."', '".$alliance['fondateur']."', 'A faire', 'A faire', '', '', 1, 1, '');");
|
||||
$chapeau->query("DELETE FROM `$table_alliances_creation` WHERE `lien` = '$lien';");
|
||||
|
||||
$alliance = $chapeau->unique_query("SELECT * FROM `$table_alliances` WHERE `nom` = '".$alliance['nom']."' AND `fondateur` = '".$alliance['fondateur']."';");
|
||||
|
||||
file_log("Création de l'alliance : ".$alliance['nom']." par ".$id_user." (fondateur : ".$alliance['fondateur'].") après validation de 4 signatures : ".implode(', ', $signataires).$id_user);
|
||||
|
||||
//On envoie un message au fondateur de l'alliance
|
||||
|
@ -300,6 +306,7 @@ else {
|
|||
$chapeau->query("UPDATE `$table_user` SET `id_alliance` = '".$alliance['id']."' WHERE `id` = '".$signataires[$i]."'");
|
||||
}
|
||||
$chapeau->query("UPDATE `$table_user` SET `id_alliance` = '".$alliance['id']."' WHERE `id` = '$id_user'");
|
||||
$chapeau->query("UPDATE `$table_user` SET `id_alliance` = '".$alliance['id']."' WHERE `id` = '".$alliance['fondateur']."'");
|
||||
|
||||
$template->assign('message','Votre signature a bien été ajoutée à la déclaration de l\'alliance.<br />L\'alliance a désormais suffisament de signature pour être créée !');
|
||||
$template->assign('couleur','green');
|
||||
|
@ -377,7 +384,7 @@ else {
|
|||
$rapport->addInfo($lien, 0);
|
||||
$rapport->send();
|
||||
|
||||
$template->assign('message','Votre alliance a bien été créée.<br />Il ne vous reste plus qu\'à trouver au moins 4 signatures pour finir la création de votre alliance.<br /><br />Le lien permettant à vos quatres personnes de signer est <a href="?p=alliances&q=signer&i='.$lien.'">'.$config['serv_adresse'].'?p=alliances&q=signer&i='.$lien.'</a>');
|
||||
$template->assign('message','Votre alliance a bien été créée.<br />Il ne vous reste plus qu\'à trouver au moins 4 signatures pour finir la création de votre alliance.<br /><br />Le lien permettant à vos quatres personnes de signer est <a href="?p=alliances&q=signer&i='.$lien.'">http://'.$_SERVER['HTTP_HOST'].'?p=alliances&q=signer&i='.$lien.'</a>');
|
||||
$template->assign('couleur','green');
|
||||
$template->display('game/erreur.tpl');
|
||||
exit;
|
||||
|
|
|
@ -10,7 +10,7 @@ $TEMP_batiments = array();
|
|||
$nb=count($batiment);
|
||||
for ($id=0 ; $id<$nb ; $id++) {
|
||||
if (!empty($batiment[$id])) $TEMP_batiments[] = array(
|
||||
'url' => 'id='.$id.'&type=batiment&lvl='.$queryPlanete[$batimentVAR[$id]],
|
||||
'id' => $id,
|
||||
'nom' => $batiment[$id],
|
||||
'niveau' => $queryPlanete[$batimentVAR[$id]],
|
||||
'etat' => readDeblok($batimentTECH[$id], $queryPlanete, $queryUser)
|
||||
|
@ -22,7 +22,7 @@ $TEMP_technologies = array();
|
|||
$nb=count($technolo);
|
||||
for ($id=0 ; $id<$nb ; $id++) {
|
||||
if (!empty($technolo[$id])) $TEMP_technologies[] = array(
|
||||
'url' => 'id='.$id.'&type=technologie&lvl='.$queryUser[$technoloVAR[$id]],
|
||||
'id' => $id,
|
||||
'nom' => $technolo[$id],
|
||||
'niveau' => $queryUser[$technoloVAR[$id]],
|
||||
'etat' => readDeblok($technoloTECH[$id], $queryPlanete, $queryUser)
|
||||
|
@ -34,7 +34,7 @@ $TEMP_terrestre = array();
|
|||
$nb=count($nomterrn);
|
||||
for ($id=0 ; $id<$nb ; $id++) {
|
||||
if (!empty($nomterrn[$id])) $TEMP_terrestre[] = array(
|
||||
'url' => 'id='.$id.'&type=unite&lvl='.$queryPlanete[$nomterrnVAR[$id]],
|
||||
'id' => $id,
|
||||
'nom' => $nomterrn[$id],
|
||||
'niveau' => $queryPlanete[$nomterrnVAR[$id]],
|
||||
'etat' => readDeblok($nomterrnTECH[$id], $queryPlanete, $queryUser)
|
||||
|
@ -46,7 +46,7 @@ $TEMP_vaisseaux = array();
|
|||
$nb=count($nomvaisn);
|
||||
for ($id=0 ; $id<$nb ; $id++) {
|
||||
if (!empty($nomvaisn[$id])) $TEMP_vaisseaux[] = array(
|
||||
'url' => 'id='.$id.'&type=unite&lvl='.$queryPlanete[$nomvaisnVAR[$id]],
|
||||
'id' => $id,
|
||||
'nom' => $nomvaisn[$id],
|
||||
'niveau' => $queryPlanete[$nomvaisnVAR[$id]],
|
||||
'etat' => readDeblok($nomvaisnTECH[$id], $queryPlanete, $queryUser)
|
||||
|
|
|
@ -16,7 +16,7 @@ $titre = 'Batiments';
|
|||
if (isset($_GET['c']) && isset($batiment[$_GET['c']])) {
|
||||
$i = $_GET['c'];
|
||||
if(requestDeblok($batimentTECH[$i], $queryPlanete, $queryUser)) {
|
||||
$n=($queryPlanete[$batimentVAR[$i]]+1);
|
||||
$n = $queryPlanete[$batimentVAR[$i]]+1;
|
||||
eval($batimentCALC[$i][0]); $metal -= $a;
|
||||
eval($batimentCALC[$i][1]); $cristal -= $b;
|
||||
eval($batimentCALC[$i][2]); $hydrogene -= $c;
|
||||
|
@ -35,9 +35,17 @@ $titre = 'Batiments';
|
|||
exit;
|
||||
}
|
||||
eval($batimentCALC[$i][3]);
|
||||
if ($file->addObjet($i, 1, ceil($sec))) {
|
||||
$export = mysql_real_escape_string(serialize($file));
|
||||
mysql_query("UPDATE `planete` SET `file_bat` = '$export', `metal` = '$metal', `cristal` = '$cristal', `hydrogene` = '$hydrogene' WHERE `id` = '$idPlan';");
|
||||
if (!$file->existe($i) && $file->addObjet($i, 1, ceil($sec))) {
|
||||
$export = serialize($file);
|
||||
$chapeau->escape($export);
|
||||
$chapeau->query("UPDATE `$table_planete` SET `file_bat` = '$export', `metal` = '$metal', `cristal` = '$cristal', `hydrogene` = '$hydrogene' WHERE `id` = '$idPlan';");
|
||||
}
|
||||
elseif ($file->existe($i)) {
|
||||
$template->assign('message','Ce bâtiment est déjà dans la file d\'attente !');
|
||||
$template->assign('script','<script type="text/javascript">setTimeout(\'document.location.href="?p=batiments";\', 3500);</script>');
|
||||
$template->assign('couleur','red');
|
||||
$template->display('game/erreur.tpl');
|
||||
exit;
|
||||
}
|
||||
else {
|
||||
$template->assign('message','Vous ne pouvez pas mettre plus de batiments en file d\'attente.');
|
||||
|
@ -49,6 +57,13 @@ $titre = 'Batiments';
|
|||
header('Location: ?p=batiments');
|
||||
exit;
|
||||
}
|
||||
else {
|
||||
$template->assign('message','Vous n\'avez pas les technologies nécessaire pour construire ce batiment !');
|
||||
$template->assign('script','<script type="text/javascript">setTimeout(\'document.location.href="?p=batiments";\', 3500);</script>');
|
||||
$template->assign('couleur','red');
|
||||
$template->display('game/erreur.tpl');
|
||||
exit;
|
||||
}
|
||||
}
|
||||
//Annulation d'une nouvelle construction
|
||||
if (isset($_GET['a']) && isset($batiment[$_GET['a']])) {
|
||||
|
@ -59,8 +74,9 @@ $titre = 'Batiments';
|
|||
eval($batimentCALC[$i][1]); $cristal += $b;
|
||||
eval($batimentCALC[$i][2]); $hydrogene += $c;
|
||||
$file->delobjet($i);
|
||||
$export = mysql_real_escape_string(serialize($file));
|
||||
mysql_query("UPDATE `planete` SET `file_bat` = '$export', `metal` = '$metal', `cristal` = '$cristal', `hydrogene` = '$hydrogene' WHERE `id` = '$idPlan';");
|
||||
$export = serialize($file);
|
||||
$chapeau->escape($export);
|
||||
$chapeau->query("UPDATE `$table_planete` SET `file_bat` = '$export', `metal` = '$metal', `cristal` = '$cristal', `hydrogene` = '$hydrogene' WHERE `id` = '$idPlan';");
|
||||
header('Location: ?p=batiments');
|
||||
exit;
|
||||
}
|
||||
|
|
|
@ -4,20 +4,25 @@ $page = 'bugs';
|
|||
$titre = 'Rapports de bugs';
|
||||
|
||||
if (!empty($_POST['page']) && !empty($_POST['description'])) {
|
||||
$pages = mysql_real_escape_string($_POST['page']);
|
||||
$description = mysql_real_escape_string($_POST['description']);
|
||||
$chapeau->query("INSERT INTO `bug` VALUES(NULL, '".$queryUser['pseudo']."', '".time()."', '$pages', '$description');");
|
||||
$pages = $_POST['page'];
|
||||
$chapeau->escape($pages);
|
||||
$description = $_POST['description'];
|
||||
$chapeau->escape($description);
|
||||
|
||||
$chapeau->query("INSERT INTO `$table_bug` VALUES(NULL, '".$queryUser['pseudo']."', '".time()."', '$pages', '$description');");
|
||||
header('Location: ?p=bugs');
|
||||
}
|
||||
elseif (isset($_GET['a']) && $_GET['a'] == 'del' && isset($_GET['i']) && $sess->values['auth_level'] > 2) {
|
||||
$chapeau->query("DELETE FROM `bug` WHERE `id` = '".$_GET['i']."' LIMIT 1");
|
||||
$i = $_GET['i'];
|
||||
$chapeau->escape($i);
|
||||
$chapeau->query("DELETE FROM `$table_bug` WHERE `id` = '$i' LIMIT 1");
|
||||
header('Location: ?p=bugs');
|
||||
}
|
||||
|
||||
$result = mysql_query("SELECT * FROM `bug` ORDER BY `id` DESC");
|
||||
$bugs = $chapeau->query("SELECT * FROM `$table_bug` ORDER BY `id` DESC");
|
||||
$TEMP_bugs = array();
|
||||
while ($data = mysql_fetch_array($result)) {
|
||||
$TEMP_bugs[] = array('<a href="?p=envoyer&d='.$data['pseudo'].'">'.$data['pseudo'].'</a>', date("d/m/y", $data['temps']), $data['page'], nl2br($data['description']),$data['id'] );
|
||||
for ($i = 0; $i < $chapeau->num_rows; $i++) {
|
||||
$TEMP_bugs[] = array('<a href="?p=envoyer&d='.$bugs[$i]['pseudo'].'">'.$bugs[$i]['pseudo'].'</a>', date("d/m/y h:m:s", $bugs[$i]['temps']), $bugs[$i]['page'], nl2br(htmlspecialchars(str_replace('\\\'', '\'', $bugs[$i]['description']))), $bugs[$i]['id']);
|
||||
}
|
||||
$template->assign('bugs', $TEMP_bugs);
|
||||
?>
|
|
@ -3,11 +3,16 @@ if(!defined('INDEX')) { header('Location: ../'); exit; }
|
|||
$page = 'carte';
|
||||
$titre = 'Carte spatiale';
|
||||
|
||||
if (isset($_GET['galaxy'])) $g = floor($_GET['galaxy']); else $g = $queryPlanete['galaxie'];
|
||||
if ($g < 1) $g = 1;
|
||||
if (isset($_GET['galaxie'])) $g = $chapeau->escape(floor($_GET['galaxie']));
|
||||
else $g = $queryPlanete['galaxie'];
|
||||
|
||||
if ($queryUser['auth_level'] >= 5 && $g < 0) $g = 0;
|
||||
elseif ($g < 1) $g = 1;
|
||||
if ($g > MAX_AMAS) $g = 1;
|
||||
|
||||
if (isset($_GET['ss'])) $s = floor($_GET['ss']); else $s = $queryPlanete['ss'];
|
||||
if (isset($_GET['ss'])) $s = $chapeau->escape(floor($_GET['ss']));
|
||||
else $s = $queryPlanete['ss'];
|
||||
|
||||
if ($s < 1) $s = 1;
|
||||
if ($s > MAX_SYSTEME) $s = MAX_SYSTEME;
|
||||
|
||||
|
@ -33,20 +38,18 @@ else {
|
|||
}
|
||||
|
||||
$TEMP_carte = array();
|
||||
for ($i=1; $i<=MAX_PLANETE; $i++) {
|
||||
$resultat = mysql_query("SELECT * FROM planete WHERE galaxie='$g' AND ss='$s' AND position='$i'");
|
||||
if(mysql_num_rows($resultat)>=1) {
|
||||
$x = mysql_query("SELECT * FROM planete WHERE galaxie='$g' AND ss='$s'AND position='$i'");
|
||||
$d = mysql_fetch_array($x);
|
||||
for ($i = 1; $i <= MAX_PLANETE; $i++) {
|
||||
$resultat = $chapeau->query("SELECT * FROM `$table_planete` WHERE `galaxie` = '$g' AND `ss` = '$s' AND `position` = '$i';");
|
||||
if($resultat) {
|
||||
$d = $chapeau->unique_query("SELECT * FROM `$table_planete` WHERE `galaxie` = '$g' AND `ss` = '$s'AND `position` = '$i';");
|
||||
|
||||
$id_user = $d['id_user'];
|
||||
$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)';
|
||||
$e = $chapeau->unique_query("SELECT `pseudo`, `race` FROM `$table_user` WHERE `id` = '$id_user'");
|
||||
if ($e['race'] == 'covenant') $ra = '(c)';
|
||||
elseif ($auth_level >= 6 && md5($e['race']) == '34c19b21bd4a3dda389e767d32fe9779') $ra = '(f)';
|
||||
else $ra = '(h)';
|
||||
|
||||
$TEMP_carte[] = array($i, $d['nom_planete'], $d['debris_met'], $d['debris_cri'], $ra, trouvNom($d['id_user']), '<a href="?p=envoyer&d='.trouvNom($d['id_user']).'" class="msg"><span>Message</span></a>');
|
||||
$TEMP_carte[] = array($i, htmlspecialchars($d['nom_planete']), $d['debris_met'], $d['debris_cri'], $ra, $e['pseudo'], '<a href="?p=envoyer&d='.$e['pseudo'].'" class="msg"><span>Message</span></a>');
|
||||
}
|
||||
else $TEMP_carte[] = array($i);
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ $titre = 'Chantier spatial';
|
|||
if (empty($queryPlanete['file_vais'])) $file = new gererFile($queryUser['prodfile']+2);
|
||||
else {
|
||||
$file = unserialize($queryPlanete['file_vais']);
|
||||
$file->limite = $queryUser['prodfile']+2;
|
||||
$file->limite = $queryUser['prodfile'] + 2;
|
||||
}
|
||||
|
||||
if ($queryPlanete['chantier_spatial'] == 0) {
|
||||
|
@ -38,8 +38,9 @@ $titre = 'Chantier spatial';
|
|||
}
|
||||
eval($nomvaisnCALC[$i][3]);
|
||||
if ($file->addObjet($i, $nbv, ceil($sec))) {
|
||||
$export = mysql_real_escape_string(serialize($file));
|
||||
mysql_query("UPDATE `planete` SET `file_vais` = '$export', `metal` = '$metal', `cristal` = '$cristal', `hydrogene` = '$hydrogene' WHERE `id` = '$idPlan';");
|
||||
$export = serialize($file);
|
||||
$chapeau->escape($export);
|
||||
$chapeau->query("UPDATE `$table_planete` SET `file_vais` = '$export', `metal` = '$metal', `cristal` = '$cristal', `hydrogene` = '$hydrogene' WHERE `id` = '$idPlan';");
|
||||
}
|
||||
else {
|
||||
$template->assign('message','Vous ne pouvez pas mettre plus de vaisseaux en file d\'attente.');
|
||||
|
@ -51,6 +52,13 @@ $titre = 'Chantier spatial';
|
|||
header('Location: ?p=chantierspatial');
|
||||
exit;
|
||||
}
|
||||
else {
|
||||
$template->assign('message','Vous n\'avez pas les technologies nécessaire pour construire ce vaisseau !');
|
||||
$template->assign('script','<script type="text/javascript">setTimeout(\'document.location.href="?p=chantierspatial";\', 3500);</script>');
|
||||
$template->assign('couleur','red');
|
||||
$template->display('game/erreur.tpl');
|
||||
exit;
|
||||
}
|
||||
}
|
||||
//Annulation d'une nouvelle construction
|
||||
if (isset($_GET['a']) && isset($nomvaisn[$_GET['a']])) {
|
||||
|
@ -69,8 +77,9 @@ $titre = 'Chantier spatial';
|
|||
$cristal += $b*$nbvr;
|
||||
$hydrogene += $c*$nbvr;
|
||||
|
||||
$export = mysql_real_escape_string(serialize($file));
|
||||
mysql_query("UPDATE `planete` SET `file_vais` = '$export', `metal` = '$metal', `cristal` = '$cristal', `hydrogene` = '$hydrogene' WHERE `id` = '$idPlan';");
|
||||
$export = serialize($file);
|
||||
$chapeau->escape($export);
|
||||
$chapeau->query("UPDATE `$table_planete` SET `file_vais` = '$export', `metal` = '$metal', `cristal` = '$cristal', `hydrogene` = '$hydrogene' WHERE `id` = '$idPlan';");
|
||||
header('Location: ?p=chantierspatial');
|
||||
exit;
|
||||
}
|
||||
|
@ -85,7 +94,7 @@ $titre = 'Chantier spatial';
|
|||
exit;
|
||||
}*/
|
||||
|
||||
for ($i=0 ; $i<$nbstop ; $i++) {
|
||||
for ($i = 0; $i < $nbstop; $i++) {
|
||||
$tr = 0; $a = 0; $b = 0; $c = 0; $sec = 0;
|
||||
$nom_bdd = $nomvaisnVAR[$i]; $a = $nomvaisnCALC[$i][0]; $b = $nomvaisnCALC[$i][1]; $c = $nomvaisnCALC[$i][2]; eval($nomvaisnCALC[$i][3]);
|
||||
if ($queryPlanete[$nom_bdd] > 0) $nombre = $queryPlanete[$nom_bdd]; else $nombre = 0;
|
||||
|
|
119
game/chantierterrestre.php
Normal file
119
game/chantierterrestre.php
Normal file
|
@ -0,0 +1,119 @@
|
|||
<?php
|
||||
if(!defined('INDEX')) { header('Location: ../'); exit; }
|
||||
include_once('Class/class.gerefile.php');
|
||||
$page = 'chantierterrestre';
|
||||
$titre = 'Chantier terrestre';
|
||||
|
||||
$TEMP_unitee = array();
|
||||
$nbstop = count($nomterrn);
|
||||
if (empty($queryPlanete['file_ter'])) $file = new gererFile($queryUser['prodfile']+2);
|
||||
else {
|
||||
$file = unserialize($queryPlanete['file_ter']);
|
||||
$file->limite = $queryUser['prodfile']+2;
|
||||
}
|
||||
|
||||
if ($queryPlanete['chantier_terrestre'] == 0) {
|
||||
$template->assign('message','Vous devez d\'abord construire un '.strtolower($batiment[7]));
|
||||
$template->assign('script','<script type="text/javascript">setTimeout(\'document.location.href="?p=batiments";\', 4000);</script>');
|
||||
$template->assign('couleur','red');
|
||||
$template->display('game/erreur.tpl');
|
||||
exit;
|
||||
}
|
||||
//Lancement d'une nouvelle construction
|
||||
if (isset($_GET['v']) && isset($nomvaisn[$_GET['v']]) && !empty($_POST['nombre'])) {
|
||||
$i = $_GET['v'];
|
||||
$nbv = floor($_POST['nombre']);
|
||||
if(requestDeblok($nomterrnTECH[$i], $queryPlanete, $queryUser) && $nbv > 0) {
|
||||
$n=($queryPlanete[$nomterrnVAR[$i]]+1);
|
||||
$a = $nomterrnCALC[$i][0]; $metal -= $a * $nbv;
|
||||
$b = $nomterrnCALC[$i][1]; $cristal -= $b * $nbv;
|
||||
$c = $nomterrnCALC[$i][2]; $hydrogene -= $c * $nbv;
|
||||
if ($metal < 0 || $cristal < 0 || $hydrogene < 0) {
|
||||
$template->assign('message','Vous n\'avez pas assez de ressources pour démarrer cette construction.');
|
||||
$template->assign('script','<script type="text/javascript">setTimeout(\'document.location.href="?p=chantierterrestre";\', 3500);</script>');
|
||||
$template->assign('couleur','red');
|
||||
$template->display('game/erreur.tpl');
|
||||
exit;
|
||||
}
|
||||
eval($nomterrnCALC[$i][3]);
|
||||
if ($file->addObjet($i, $nbv, ceil($sec))) {
|
||||
$export = mysql_real_escape_string(serialize($file));
|
||||
mysql_query("UPDATE `planete` SET `file_ter` = '$export', `metal` = '$metal', `cristal` = '$cristal', `hydrogene` = '$hydrogene' WHERE `id` = '$idPlan';");
|
||||
}
|
||||
else {
|
||||
$template->assign('message','Vous ne pouvez pas mettre plus d\'unit&eactue;s en file d\'attente.');
|
||||
$template->assign('script','<script type="text/javascript">setTimeout(\'document.location.href="?p=chantierterrestre";\', 3500);</script>');
|
||||
$template->assign('couleur','red');
|
||||
$template->display('game/erreur.tpl');
|
||||
exit;
|
||||
}
|
||||
header('Location: ?p=chantierterrestre');
|
||||
exit;
|
||||
}
|
||||
}
|
||||
//Annulation d'une nouvelle construction
|
||||
if (isset($_GET['a']) && isset($nomterrn[$_GET['a']])) {
|
||||
$i = $_GET['a'];
|
||||
if (!isset($_GET['n'])) $nbv = 1;
|
||||
else $nbv = $_GET['n'];
|
||||
|
||||
if($file->existe($i)) {
|
||||
$n=($queryPlanete[$nomterrnVAR[$i]]+1);
|
||||
$a = $nomterrnCALC[$i][0];
|
||||
$b = $nomterrnCALC[$i][1];
|
||||
$c = $nomterrnCALC[$i][2];
|
||||
$nbvr = $file->delobjet($i, $nbv);
|
||||
|
||||
$metal += $a*$nbvr;
|
||||
$cristal += $b*$nbvr;
|
||||
$hydrogene += $c*$nbvr;
|
||||
|
||||
$export = mysql_real_escape_string(serialize($file));
|
||||
mysql_query("UPDATE `planete` SET `file_ter` = '$export', `metal` = '$metal', `cristal` = '$cristal', `hydrogene` = '$hydrogene' WHERE `id` = '$idPlan';");
|
||||
header('Location: ?p=chantierterrestre');
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
for ($i=0 ; $i<$nbstop ; $i++) {
|
||||
$tr = 0; $a = 0; $b = 0; $c = 0; $sec = 0;
|
||||
$nom_bdd = $nomterrnVAR[$i]; $a = $nomterrnCALC[$i][0]; $b = $nomterrnCALC[$i][1]; $c = $nomterrnCALC[$i][2]; eval($nomterrnCALC[$i][3]);
|
||||
if ($queryPlanete[$nom_bdd] > 0) $nombre = $queryPlanete[$nom_bdd]; else $nombre = 0;
|
||||
$n=($queryPlanete[$nom_bdd]+1);
|
||||
if (!empty($nomterrn[$i]) && requestDeblok($nomterrnTECH[$i], $queryPlanete, $queryUser)) $TEMP_unitee[] =
|
||||
array(
|
||||
'image' => $nomterri[$i],
|
||||
'nom' => $nomterrn[$i],
|
||||
'nombre' => $nombre,
|
||||
'description' => $nomterde[$i],
|
||||
'descriptione' => addslashes($nomterde[$i]),
|
||||
'nec_metal' => $a,
|
||||
'nec_cristal' => $b,
|
||||
'nec_hydrogene' => $c,
|
||||
'nec_metalS' => separerNombres($a),
|
||||
'nec_cristalS' => separerNombres($b),
|
||||
'nec_hydrogeneS' => separerNombres($c),
|
||||
'temps' => sec($sec),
|
||||
'num' => $i
|
||||
);
|
||||
}
|
||||
$template->assign('unitee',$TEMP_unitee);
|
||||
$template->assign('chaine',$file->chaine);
|
||||
$fileBat = $file->file;
|
||||
$nbfile = count($fileBat);
|
||||
|
||||
if ($nbfile == 1) $template->assign('Pchaine',true);
|
||||
else $template->assign('Pchaine',false);
|
||||
if ($nbfile == 0) $template->assign('Vchaine',true);
|
||||
else $template->assign('Vchaine',false);
|
||||
|
||||
for ($i=0 ; $i<$nbfile ; $i++) {
|
||||
$fileBat[$i][3] = $nomterrn[$fileBat[$i][0]];
|
||||
$fileBat[$i][4] = $fileBat[$i][2]*$fileBat[$i][1];
|
||||
if ($i == 0) {
|
||||
$fileBat[$i][2] -= time() - $file->timestamp;
|
||||
$fileBat[$i][4] -= time() - $file->timestamp;
|
||||
}
|
||||
}
|
||||
$template->assign('file',$fileBat);
|
||||
?>
|
|
@ -5,6 +5,7 @@ $titre = 'Classement';
|
|||
|
||||
if (isset($_GET['q']) && is_numeric($_GET['q']) && $_GET['q'] > 0) $pageClassement = $_GET['q'];
|
||||
else $pageClassement = 1;
|
||||
|
||||
if (isset($_GET['e'])) {
|
||||
if ($_GET['e'] == 'batiment') $export = 'batiments';
|
||||
elseif ($_GET['e'] == 'flotte') $export = 'flottes';
|
||||
|
|
|
@ -3,14 +3,12 @@ if(!defined('INDEX')) { header('Location: ../'); exit; }
|
|||
$page = 'defenses';
|
||||
$titre = 'Défenses';
|
||||
|
||||
$fileTer = '';
|
||||
|
||||
$TEMP_ = array();
|
||||
$nbstop = count($nomterrn);
|
||||
if (empty($queryPlanete['file_ter'])) $file = new gererFile($queryUser['prodfile']+2);
|
||||
else {
|
||||
$file = unserialize($queryPlanete['file_ter']);
|
||||
$file->limite = $queryUser['prodfile']+2;
|
||||
$file->limite = $queryUser['prodfile'] + 2;
|
||||
}
|
||||
|
||||
if ($queryPlanete['chantier_terrestre'] == 0) {
|
||||
|
@ -39,8 +37,9 @@ $titre = 'Défenses';
|
|||
}
|
||||
eval($nomterrnCALC[$i][3]);
|
||||
if ($file->addObjet($i, $nbv, ceil($sec))) {
|
||||
$export = mysql_real_escape_string(serialize($file));
|
||||
mysql_query("UPDATE `planete` SET `file_ter` = '$export', `metal` = '$metal', `cristal` = '$cristal', `hydrogene` = '$hydrogene' WHERE `id` = '$idPlan';");
|
||||
$export = serialize($file);
|
||||
$chapeau->escape($export);
|
||||
$chapeau->query("UPDATE `$table_planete` SET `file_ter` = '$export', `metal` = '$metal', `cristal` = '$cristal', `hydrogene` = '$hydrogene' WHERE `id` = '$idPlan';");
|
||||
}
|
||||
else {
|
||||
$template->assign('message','Vous ne pouvez pas mettre plus de défenses en file d\'attente.');
|
||||
|
@ -70,8 +69,9 @@ $titre = 'Défenses';
|
|||
$cristal += $b*$nbvr;
|
||||
$hydrogene += $c*$nbvr;
|
||||
|
||||
$export = mysql_real_escape_string(serialize($file));
|
||||
mysql_query("UPDATE `planete` SET `file_ter` = '$export', `metal` = '$metal', `cristal` = '$cristal', `hydrogene` = '$hydrogene' WHERE `id` = '$idPlan';");
|
||||
$export = serialize($file);
|
||||
$chapeau->escape($export);
|
||||
mysql_query("UPDATE `$table_planete` SET `file_ter` = '$export', `metal` = '$metal', `cristal` = '$cristal', `hydrogene` = '$hydrogene' WHERE `id` = '$idPlan';");
|
||||
header('Location: ?p=defenses');
|
||||
exit;
|
||||
}
|
||||
|
|
79
game/description.php
Normal file
79
game/description.php
Normal file
|
@ -0,0 +1,79 @@
|
|||
<?php
|
||||
if(!defined('INDEX')) { header('Location: ../'); exit; }
|
||||
$page = 'description';
|
||||
$titre = 'Détails';
|
||||
|
||||
if (isset($_GET['b']) && is_numeric($_GET['b']) && $_GET['b'] < count($batiment)) {
|
||||
$template->assign('type', 'batiments');
|
||||
$t = $_GET['b'];
|
||||
$nom_bdd = $batimentVAR[$t];
|
||||
$template->assign('image', $batimeni[$t]);
|
||||
$template->assign('nom', $batiment[$t]);
|
||||
$template->assign('niveau', $queryPlanete[$nom_bdd]);
|
||||
$template->assign('description', $batimede[$t]);
|
||||
|
||||
$n=($queryPlanete[$nom_bdd]+1);
|
||||
$a = 0; $b = 0; $c = 0; $sec = 0;
|
||||
eval($batimentCALC[$t][0]);
|
||||
eval($batimentCALC[$t][1]);
|
||||
eval($batimentCALC[$t][2]);
|
||||
eval($batimentCALC[$t][3]);
|
||||
$template->assign('ressourcesNext', array(separerNombres($a), separerNombres($b), separerNombres($c), sec($sec)));
|
||||
|
||||
$template->assign('etat', readDeblok($batimentTECH[$t], $queryPlanete, $queryUser));
|
||||
}
|
||||
elseif (isset($_GET['t']) && is_numeric($_GET['t']) && $_GET['t'] < count($technolo)) {
|
||||
$template->assign('type', 'technologies');
|
||||
$t = $_GET['t'];
|
||||
$nom_bdd = $technoloVAR[$t];
|
||||
$template->assign('image', $technoli[$t]);
|
||||
$template->assign('nom', $technolo[$t]);
|
||||
$template->assign('niveau', $queryUser[$nom_bdd]);
|
||||
$template->assign('description', $technode[$t]);
|
||||
|
||||
$n=($queryUser[$nom_bdd]+1);
|
||||
$a = 0; $b = 0; $c = 0; $sec = 0;
|
||||
eval($technoloCALC[$t][0]);
|
||||
eval($technoloCALC[$t][1]);
|
||||
eval($technoloCALC[$t][2]);
|
||||
eval($technoloCALC[$t][3]);
|
||||
$template->assign('ressourcesNext', array(separerNombres($a), separerNombres($b), separerNombres($c), sec($sec)));
|
||||
|
||||
$template->assign('etat', readDeblok($technoloTECH[$t], $queryPlanete, $queryUser));
|
||||
}
|
||||
elseif (isset($_GET['v']) && is_numeric($_GET['v']) && $_GET['v'] < count($nomvaisn)) {
|
||||
$template->assign('type', 'vaisseaux');
|
||||
$t = $_GET['v'];
|
||||
$nom_bdd = $nomvaisnVAR[$t];
|
||||
$template->assign('image', $nomvaisi[$t]);
|
||||
$template->assign('nom', $nomvaisn[$t]);
|
||||
$template->assign('niveau', $queryPlanete[$nom_bdd]);
|
||||
$template->assign('description', $nomvaisd[$t]);
|
||||
|
||||
$n=($queryPlanete[$nom_bdd]+1);
|
||||
$a = $nomvaisnCALC[$t][0]; $b = $nomvaisnCALC[$t][1]; $c = $nomvaisnCALC[$t][2]; $sec = 0;
|
||||
eval($nomvaisnCALC[$t][3]);
|
||||
$template->assign('ressourcesNext', array(separerNombres($a), separerNombres($b), separerNombres($c), sec($sec)));
|
||||
|
||||
$template->assign('etat', readDeblok($nomvaisnTECH[$t], $queryPlanete, $queryUser));
|
||||
}
|
||||
elseif (isset($_GET['d']) && is_numeric($_GET['d']) && $_GET['d'] < count($nomterrn)) {
|
||||
$template->assign('type', 'terrestre');
|
||||
$t = $_GET['d'];
|
||||
$nom_bdd = $nomterrnVAR[$t];
|
||||
$template->assign('image', $nomterri[$t]);
|
||||
$template->assign('nom', $nomterrn[$t]);
|
||||
$template->assign('niveau', $queryPlanete[$nom_bdd]);
|
||||
$template->assign('description', $nomterde[$t]);
|
||||
|
||||
$n=($queryPlanete[$nom_bdd]+1);
|
||||
$a = $nomterrnCALC[$t][0]; $b = $nomterrnCALC[$t][1]; $c = $nomterrnCALC[$t][2]; $sec = 0;
|
||||
eval($nomterrnCALC[$t][3]);
|
||||
$template->assign('ressourcesNext', array(separerNombres($a), separerNombres($b), separerNombres($c), sec($sec)));
|
||||
|
||||
$template->assign('etat', readDeblok($nomterrnTECH[$t], $queryPlanete, $queryUser));
|
||||
}
|
||||
else {
|
||||
header('Location: ?p=accueil');
|
||||
}
|
||||
?>
|
|
@ -4,11 +4,14 @@ $page = 'envoyer';
|
|||
$titre = 'Envoyer un message';
|
||||
|
||||
if (!empty($_POST['objet']) && !empty($_POST['nom']) && !empty($_POST['message'])) {
|
||||
$util = mysql_real_escape_string($_POST['nom']);
|
||||
if ($chapeau->unique_query("SELECT `pseudo` FROM `user` WHERE `pseudo` = '$util'")) {
|
||||
$message = mysql_real_escape_string(htmlspecialchars($_POST['message']));
|
||||
$objet = mysql_real_escape_string(htmlspecialchars($_POST['objet']));
|
||||
mysql_query("INSERT INTO mail VALUES('', '1', '$util', '".$queryUser["pseudo"]."', '$objet', '$message', '".time()."')");
|
||||
$util = $_POST['nom'];
|
||||
$chapeau->escape($util);
|
||||
if ($chapeau->unique_query("SELECT `pseudo` FROM `$table_user` WHERE `pseudo` = '$util';")) {
|
||||
$message = htmlspecialchars($_POST['message']);
|
||||
$chapeau->escape($message);
|
||||
$objet = htmlspecialchars($_POST['objet']);
|
||||
$chapeau->escape($objet);
|
||||
mysql_query("INSERT INTO `$table_mail` VALUES(NULL, '1', '$util', '".$queryUser["pseudo"]."', '$objet', '$message', '".time()."');");
|
||||
|
||||
$template->assign('message','Votre message a été envoyé avec succès.');
|
||||
$template->assign('script','<script type="text/javascript">setTimeout(\'document.location.href="?p=messagerie";\', 2500);</script>');
|
||||
|
@ -25,6 +28,6 @@ if (!empty($_POST['objet']) && !empty($_POST['nom']) && !empty($_POST['message']
|
|||
}
|
||||
}
|
||||
|
||||
if (isset($_GET['d'])) $template->assign('destinataire',$_GET['d']);
|
||||
if (isset($_GET['o'])) $template->assign('objet',$_GET['o']);
|
||||
if (isset($_GET['d'])) $template->assign('destinataire', $_GET['d']);
|
||||
if (isset($_GET['o'])) $template->assign('objet', $_GET['o']);
|
||||
?>
|
|
@ -8,9 +8,24 @@ if (!empty($_POST['cds']) && !empty($_POST['nomflotte']) && !empty($_POST['amas'
|
|||
$nbr = $chapeau->num_rows;
|
||||
|
||||
$end_galaxie = floor($_POST['amas']);
|
||||
$chapeau->escape($end_galaxie);
|
||||
$end_ss = floor($_POST['ss']);
|
||||
$chapeau->escape($end_ss);
|
||||
$end_pos = floor($_POST['pos']);
|
||||
$chapeau->escape($end_pos);
|
||||
$mission = floor($_POST['mission']);
|
||||
$chapeau->escape($mission);
|
||||
$tactique = floor($_POST['tactique']);
|
||||
$chapeau->escape($tactique);
|
||||
$EBmetal = floor($_POST['metal']);
|
||||
$chapeau->escape($EBmetal);
|
||||
$EBcristal = floor($_POST['cristal']);
|
||||
$chapeau->escape($EBcristal);
|
||||
$EBhydrogene = floor($_POST['hydrogene']);
|
||||
$chapeau->escape($EBhydrogene);
|
||||
$vitesse = floor($_POST['vitesse']);
|
||||
$chapeau->escape($vitesse);
|
||||
|
||||
|
||||
//Vérification du code anti-bots
|
||||
if ($_POST['cds'] != $sess->values['flcds']) {
|
||||
|
@ -21,7 +36,7 @@ if (!empty($_POST['cds']) && !empty($_POST['nomflotte']) && !empty($_POST['amas'
|
|||
exit;
|
||||
}
|
||||
//Si la mission est d'attaquer, on vérifie que les attaques ne soient pas désactivées
|
||||
elseif ($_POST['mission'] == 1 && !ATTAQUES) {
|
||||
elseif ($mission == 1 && !ATTAQUES) {
|
||||
$template->assign('message','Les attaques sont désactivées pour le moment. Pour plus d\'informations, <a href="http://halo-battle.s-fr.com/forum/">consultez le forum</a>.');
|
||||
$template->assign('script','<script type="text/javascript">setTimeout(\'document.location.href="?p=flotte";\', 5000);</script>');
|
||||
$template->assign('couleur','red');
|
||||
|
@ -53,7 +68,7 @@ if (!empty($_POST['cds']) && !empty($_POST['nomflotte']) && !empty($_POST['amas'
|
|||
exit;
|
||||
}
|
||||
//Si la mission est d'attaquer, on vérifie la tactique
|
||||
elseif ($mission == 1 && $_POST['tactique'] > $queryUser['tactique']) {
|
||||
elseif ($mission == 1 && $tactique > $queryUser['tactique']) {
|
||||
$template->assign('message','Vous ne connaissez pas cette tactique de combat !');
|
||||
$template->assign('script','<script type="text/javascript">setTimeout(\'document.location.href="?p=flotte";\', 2500);</script>');
|
||||
$template->assign('couleur','red');
|
||||
|
@ -85,7 +100,7 @@ if (!empty($_POST['cds']) && !empty($_POST['nomflotte']) && !empty($_POST['amas'
|
|||
exit;
|
||||
}
|
||||
//On vérifie que l'on possède assez de ressources
|
||||
elseif ((!empty($_POST['metal']) && !$_POST['metal'] > $queryPlanete['metal']) || (!empty($_POST['cristal']) && !$_POST['cristal'] > $queryPlanete['cristal']) || (!empty($_POST['hydrogene']) && !$_POST['hydrogene'] > $queryPlanete['hydrogene'])) {
|
||||
elseif ((!empty($EBmetal) && !$EBmetal > $queryPlanete['metal']) || (!empty($EBcristal) && !$EBcristal > $queryPlanete['cristal']) || (!empty($EBhydrogene) && !$EBhydrogene > $queryPlanete['hydrogene'])) {
|
||||
$template->assign('message','Vous ne pouvez pas envoyer plus de ressources que vous n\'en posséder.');
|
||||
$template->assign('script','<script type="text/javascript">setTimeout(\'document.location.href="?p=flotte";\', 2500);</script>');
|
||||
$template->assign('couleur','red');
|
||||
|
@ -93,7 +108,7 @@ if (!empty($_POST['cds']) && !empty($_POST['nomflotte']) && !empty($_POST['amas'
|
|||
exit;
|
||||
}
|
||||
//On vérifie la vitesse du vaisseau
|
||||
elseif (!is_numeric($_POST['vitesse']) || $_POST['vitesse'] < 0 || $_POST['vitesse'] > 100) {
|
||||
elseif (!is_numeric($vitesse) || $vitesse < 0 || $vitesse > 100) {
|
||||
$template->assign('message','La vitesse de votre flotte est incorrecte !');
|
||||
$template->assign('script','<script type="text/javascript">setTimeout(\'document.location.href="?p=flotte";\', 2500);</script>');
|
||||
$template->assign('couleur','red');
|
||||
|
@ -201,7 +216,8 @@ if (!empty($_POST['cds']) && !empty($_POST['nomflotte']) && !empty($_POST['amas'
|
|||
}
|
||||
else {
|
||||
//Envoie de la flotte
|
||||
$nom = mysql_real_escape_string(htmlentities($_POST['nomflotte']));
|
||||
$nom = $_POST['nomflotte'];
|
||||
$chapeau->escape($nom);
|
||||
|
||||
$start_time = time();
|
||||
$start_galaxie = $queryPlanete['galaxie'];
|
||||
|
@ -209,6 +225,7 @@ if (!empty($_POST['cds']) && !empty($_POST['nomflotte']) && !empty($_POST['amas'
|
|||
$start_pos = $queryPlanete['position'];
|
||||
|
||||
$vitesse = floor($_POST['vitesse'])/100;
|
||||
$chapeau->escape($vitesse);
|
||||
|
||||
$end_time = vais_tempsDeplacement($start_galaxie, $start_ss, $start_pos, $end_galaxie, $end_ss, $end_pos, $sess->values['flvitesse'], $vitesse, $sess->values['flpreparation'], $sess->values['flchauffe']);
|
||||
if ($end_time <= 0) {
|
||||
|
@ -217,9 +234,9 @@ if (!empty($_POST['cds']) && !empty($_POST['nomflotte']) && !empty($_POST['amas'
|
|||
|
||||
//On vérifie qu'il y a assez de place dans les cales des vaisseaux avant l'envoie
|
||||
$conso = vais_conso($end_time, $sess->values['flnbvais'])*$vitesse*10;
|
||||
$contenu_metal = $_POST['metal']; $plan_metal = $queryPlanete['metal'] - $_POST['metal'];
|
||||
$contenu_cristal = $_POST['cristal']; $plan_cristal = $queryPlanete['cristal'] - $_POST['cristal'];
|
||||
$contenu_hydrogene = $_POST['hydrogene']; $plan_hydrogene = $queryPlanete['hydrogene'] - $_POST['hydrogene'] - $conso;
|
||||
$contenu_metal = $_POST['metal']; $chapeau->escape($contenu_metal); $plan_metal = $queryPlanete['metal'] - $contenu_metal;
|
||||
$contenu_cristal = $_POST['cristal']; $chapeau->escape($contenu_cristal); $plan_cristal = $queryPlanete['cristal'] - $contenu_cristal;
|
||||
$contenu_hydrogene = $_POST['hydrogene']; $chapeau->escape($contenu_hydrogene); $plan_hydrogene = $queryPlanete['hydrogene'] - $contenu_hydrogene - $conso;
|
||||
$contenu_max = $sess->values['flcontenu'];
|
||||
if ($contenu_metal + $contenu_cristal + $contenu_hydrogene + $conso > $contenu_max && ($contenu_metal + $contenu_cristal + $contenu_hydrogene != 0 || $mission != 5)) {
|
||||
$template->assign('message','Vous ne pouvez pas embarquer autant de ressources, les cales débordent.');
|
||||
|
@ -231,7 +248,9 @@ if (!empty($_POST['cds']) && !empty($_POST['nomflotte']) && !empty($_POST['amas'
|
|||
else {
|
||||
if ($mission == 1) {
|
||||
$tactiqueAT = $_POST['tactique'];
|
||||
$chapeau->escape($tactiqueAT);
|
||||
$tactiqueEN = $resultatu['tactique'];
|
||||
$chapeau->escape($tactiqueEN);
|
||||
}
|
||||
else {
|
||||
$tactiqueAT = 0;
|
||||
|
|
|
@ -23,7 +23,7 @@ $titre = 'Laboratoire';
|
|||
if (isset($_GET['t']) && isset($technolo[$_GET['t']])) {
|
||||
$i = $_GET['t'];
|
||||
if(requestDeblok($technoloTECH[$i], $queryPlanete, $queryUser)) {
|
||||
$n=($queryUser[$technoloVAR[$i]]+1);
|
||||
$n = $queryUser[$technoloVAR[$i]] + 1;
|
||||
eval($technoloCALC[$i][0]); $metal -= $a;
|
||||
eval($technoloCALC[$i][1]); $cristal -= $b;
|
||||
eval($technoloCALC[$i][2]); $hydrogene -= $c;
|
||||
|
@ -35,9 +35,17 @@ $titre = 'Laboratoire';
|
|||
exit;
|
||||
}
|
||||
eval($technoloCALC[$i][3]);
|
||||
if ($fileT->addObjet($i, 1, ceil($sec))) {
|
||||
$export = mysql_real_escape_string(serialize($fileT));
|
||||
mysql_query("UPDATE `planete` SET `metal` = '$metal', `cristal` = '$cristal', `hydrogene` = '$hydrogene', `file_tech` = '$export' WHERE `id` = '$idPlan';");
|
||||
if (!$fileT->existe($i) && $fileT->addObjet($i, 1, ceil($sec))) {
|
||||
$export = serialize($fileT);
|
||||
$chapeau->escape($export);
|
||||
$chapeau->query("UPDATE `$table_planete` SET `metal` = '$metal', `cristal` = '$cristal', `hydrogene` = '$hydrogene', `file_tech` = '$export' WHERE `id` = '$idPlan';");
|
||||
}
|
||||
elseif ($file->existe($i)) {
|
||||
$template->assign('message','Cette rechrche est déjà dans la file d\'attente !');
|
||||
$template->assign('script','<script type="text/javascript">setTimeout(\'document.location.href="?p=laboratoire";\', 3500);</script>');
|
||||
$template->assign('couleur','red');
|
||||
$template->display('game/erreur.tpl');
|
||||
exit;
|
||||
}
|
||||
else {
|
||||
$template->assign('message','Vous ne pouvez pas mettre plus de recherche en file d\'attente.');
|
||||
|
@ -54,13 +62,14 @@ $titre = 'Laboratoire';
|
|||
if (isset($_GET['a']) && isset($technolo[$_GET['a']])) {
|
||||
$i = $_GET['a'];
|
||||
if($fileT->existe($i)) {
|
||||
$n=($queryUser[$technoloVAR[$i]]+1);
|
||||
$n = $queryUser[$technoloVAR[$i]] + 1;
|
||||
eval($technoloCALC[$i][0]); $metal += $a;
|
||||
eval($technoloCALC[$i][1]); $cristal += $b;
|
||||
eval($technoloCALC[$i][2]); $hydrogene += $c;
|
||||
$fileT->delobjet($i);
|
||||
$export = mysql_real_escape_string(serialize($fileT));
|
||||
mysql_query("UPDATE `planete` SET `metal` = '$metal', `cristal` = '$cristal', `hydrogene` = '$hydrogene', `file_tech` = '$export' WHERE `id` = '$idPlan';");
|
||||
$export = serialize($fileT);
|
||||
$chapeau->escape($export);
|
||||
$chapeau->query("UPDATE `$table_planete` SET `metal` = '$metal', `cristal` = '$cristal', `hydrogene` = '$hydrogene', `file_tech` = '$export' WHERE `id` = '$idPlan';");
|
||||
header('Location: ?p=laboratoire');
|
||||
exit;
|
||||
}
|
||||
|
@ -76,10 +85,11 @@ $titre = 'Laboratoire';
|
|||
}*/
|
||||
|
||||
for ($i=0 ; $i<$nbstop ; $i++) {
|
||||
$tr = 0; $a = 0; $b = 0; $c = 0; $sec = 0;
|
||||
$tr = 0; $a = 0; $b = 0; $c = 0; $sec = 0; $enFile = false;
|
||||
$nom_bdd = $technoloVAR[$i];
|
||||
if ($queryUser[$nom_bdd] > 0) $niveau = $queryUser[$nom_bdd]; else $niveau = 0;
|
||||
$n=($queryUser[$nom_bdd]+1); eval($technoloCALC[$i][0]); eval($technoloCALC[$i][1]); eval($technoloCALC[$i][2]); eval($technoloCALC[$i][3]);
|
||||
if ($fileT->existe($i)) $enFile = true;
|
||||
if (!empty($technolo[$i]) && requestDeblok($technoloTECH[$i], $queryPlanete, $queryUser)) $TEMP_recherches[] =
|
||||
array(
|
||||
'image' => $technoli[$i],
|
||||
|
@ -94,6 +104,7 @@ $titre = 'Laboratoire';
|
|||
'nec_cristalS' => separerNombres($b),
|
||||
'nec_hydrogeneS' => separerNombres($c),
|
||||
'num' => $i,
|
||||
'enfile' => $enFile,
|
||||
'temps' => sec($sec),
|
||||
'maq_metal' => ceil($a-$metal),
|
||||
'maq_cristal' => ceil($b-$cristal),
|
||||
|
|
|
@ -8,7 +8,7 @@ if (isset($_POST['IM'])) {
|
|||
for($i=1 ; $i<=$_POST['IM'] ; $i++) {
|
||||
if (!empty($_POST['m'.$i])) {
|
||||
$mes = $_POST['m'.$i];
|
||||
mysql_query("DELETE FROM `mail` WHERE `destinataire` = '".$queryUser["pseudo"]."' AND `id` = '$mes';");
|
||||
mysql_query("DELETE FROM `$table_mail` WHERE `destinataire` = '".$queryUser["pseudo"]."' AND `id` = '$mes';");
|
||||
$stop = true;
|
||||
}
|
||||
}
|
||||
|
@ -19,24 +19,32 @@ if (isset($_POST['IR'])) {
|
|||
for($i=1 ; $i<=$_POST['IR'] ; $i++) {
|
||||
if (!empty($_POST['r'.$i])) {
|
||||
$mes = $_POST['r'.$i];
|
||||
mysql_query("UPDATE mail SET vu='s' WHERE `destinataire` = '".$queryUser["pseudo"]."' AND `id` = '$mes';");
|
||||
mysql_query("UPDATE `$table_mail` SET vu='s' WHERE `destinataire` = '".$queryUser["pseudo"]."' AND `id` = '$mes';");
|
||||
$stop = true;
|
||||
}
|
||||
}
|
||||
if ($stop) { header('Location: ?p=messagerie'); exit; }
|
||||
}
|
||||
|
||||
$result = mysql_query("SELECT * FROM mail WHERE `destinataire` = '".$queryUser["pseudo"]."' AND `expediteur` != '' ORDER BY id DESC");
|
||||
$messcomp = $chapeau->query("SELECT * FROM `$table_mail` WHERE `destinataire` = '".$queryUser["pseudo"]."' AND `expediteur` != '' ORDER BY `id` DESC;");
|
||||
$nbmax = $chapeau->num_rows;
|
||||
|
||||
$result = $chapeau->query("SELECT * FROM `$table_mail` WHERE `destinataire` = '".$queryUser["pseudo"]."' AND `expediteur` != '' ORDER BY `id` DESC LIMIT 50;");
|
||||
|
||||
if ($queryUser['auth_level'] >= 3 && $nbmax > $i) $result = $messcomp;
|
||||
elseif ($nbmax > $chapeau->num_rows) $template->assign('avertissement', '<p style="color: red; "><b>Vous avez des messages en attente de réception. Libérez de la place dans votre messagerie pour les afficher.</b></p>');
|
||||
|
||||
$TEMP_messages = array();
|
||||
$i=0;
|
||||
while ($data = mysql_fetch_array($result)) {
|
||||
$i++;
|
||||
$TEMP_messages[] = array($data['sujet'], date("d/m/y H:i:s", $data['temps']), $data['expediteur'], bbcode($data['contenu']), $i, $data['id']);
|
||||
$nbc = count($result);
|
||||
for ($i=0 ; $i < $nbc ; $i++) {
|
||||
$TEMP_messages[] = array($result[$i]['sujet'], date("d/m/y H:i:s", $result[$i]['temps']), $result[$i]['expediteur'], bbcode($result[$i]['contenu']), $i+1, $result[$i]['id']);
|
||||
}
|
||||
$template->assign('messages', $TEMP_messages);
|
||||
$template->assign('IM', $i);
|
||||
|
||||
$result = mysql_query("SELECT * FROM mail WHERE `destinataire` = '".$queryUser["pseudo"]."' AND `expediteur` = '' AND `vu` != 's' ORDER BY id DESC");
|
||||
|
||||
$result = mysql_query("SELECT * FROM `$table_mail` WHERE `destinataire` = '".$queryUser["pseudo"]."' AND `expediteur` = '' AND `vu` != 's' ORDER BY `id` DESC;");
|
||||
$TEMP_rapport = array();
|
||||
$i=0;
|
||||
while ($data = mysql_fetch_array($result)) {
|
||||
|
@ -50,5 +58,5 @@ for (j=1; document.getElementsByName(\'m\'+j)[0]; j++) hide(document.getElements
|
|||
for (j=1; document.getElementsByName(\'r\'+j)[0]; j++) hide(document.getElementsByName(\'r\'+j)[0]);
|
||||
</script>');
|
||||
|
||||
mysql_query("UPDATE mail SET vu='0' WHERE `destinataire` = '".$queryUser["pseudo"]."' AND `vu` != 's'");
|
||||
mysql_query("UPDATE `$table_mail` SET `vu` = '0' WHERE `destinataire` = '".$queryUser["pseudo"]."' AND `vu` != 's'");
|
||||
?>
|
100
game/options.php
100
game/options.php
|
@ -82,7 +82,7 @@ if (isset($_GET['chg']) && $_GET['chg'] == 'mdp') {
|
|||
$mail->AddAddress($mailUtil);
|
||||
$mail->AddReplyTo('no-reply@halo-battle.s-fr.com');
|
||||
$mail->Subject='Halo-Battle :: Activation de votre nouveau mot de passe';
|
||||
$mail->Body='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><title>Halo-Battle :: Activation de votre nouveau mot de passe</title></head><body><p>Bonjour '.trouvNom($id_user).',<br />Vous recevez ce mail suite à votre demande de changement de mot de passe. Ce dernier entrera en vigueur une fois que vous aurez valider ce changement en cliquant via ce lien :<br /><a href="'.$config['serv_adresse'].'?p=changeopt&util='.$id_user.'&auth='.$auth.'">'.$config['serv_adresse'].'?p=changeopt&util='.$id_user.'&auth='.$auth.'</a><br />Notez que pour que le mot de passe soit changé, il faut que vous soyer connecté sur votre compte.<br /><br />A bientôt dans Halo-Battle,<br />Le staff</p></body></html>';
|
||||
$mail->Body='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><title>Halo-Battle :: Activation de votre nouveau mot de passe</title></head><body><p>Bonjour '.trouvNom($id_user).',<br />Vous recevez ce mail suite à votre demande de changement de mot de passe. Ce dernier entrera en vigueur une fois que vous aurez valider ce changement en cliquant via ce lien :<br /><a href="http://'.$_SERVER['HTTP_HOST'].'?p=changeopt&util='.$id_user.'&auth='.$auth.'">http://'.$_SERVER['HTTP_HOST'].'?p=changeopt&util='.$id_user.'&auth='.$auth.'</a><br />Notez que pour que le mot de passe soit changé, il faut que vous soyer connecté sur votre compte.<br /><br />A bientôt dans Halo-Battle,<br />Le staff</p></body></html>';
|
||||
|
||||
if(!$mail->Send()){ //Teste si le return code est ok.
|
||||
$template->assign('message','Erreur lors de l\'envoie du courriel de confirmation !<br /><br /><small><i>'.$mail->ErrorInfo.'</i></small><br /><br />Si le problème perciste, <a href="mailto:technique@halo-battle.s-fr.com">contactez un administrateur</a>.');
|
||||
|
@ -124,52 +124,62 @@ if (isset($_GET['chg']) && $_GET['chg'] == 'mdp') {
|
|||
}
|
||||
}
|
||||
elseif (isset($_GET['chg']) && $_GET['chg'] == 'mail') {
|
||||
if (isset($_POST['mail']) && !empty($_POST['mail'])) {
|
||||
$Nmail = htmlspecialchars(mysql_escape_string($_POST['mail']));
|
||||
if (preg_match("#^[a-z0-9._-]+@[a-z0-9._-]{2,}\.[a-z]{2,4}$#", $Nmail)) {
|
||||
$result = mysql_query("SELECT `mail` FROM `user` WHERE `mail` = '$Nmail'");
|
||||
if(mysql_num_rows($result) >= 1) {
|
||||
header('Location: options.php?erreur=5');
|
||||
if (isset($_POST['mdp_mail']) && sha1(strtoupper($pseudo).':'.$_POST['mdp_mail']) == $mdp) {
|
||||
if (isset($_POST['mail']) && !empty($_POST['mail'])) {
|
||||
$Nmail = $_POST['mail'];
|
||||
$chapeau->escape($Nmail);
|
||||
if (preg_match("#^[a-z0-9._-]+@[a-z0-9._-]{2,}\.[a-z]{2,4}$#", $Nmail)) {
|
||||
$result = mysql_query("SELECT `mail` FROM `user` WHERE `mail` = '$Nmail'");
|
||||
if(mysql_num_rows($result) >= 1) {
|
||||
header('Location: options.php?erreur=5');
|
||||
exit;
|
||||
}
|
||||
else {
|
||||
$auth = sha1($Nmail);
|
||||
mysql_query("UPDATE `user` SET `mailNOUV` = '$Nmail' WHERE `id` = '$id_user'");
|
||||
|
||||
//On envoie le mail de confirmation
|
||||
$mail = new PHPmailer();
|
||||
$mail->SetLanguage('fr', 'Class/');
|
||||
$mail->IsSMTP();
|
||||
$mail->IsHTML(true);
|
||||
$mail->Host='s-fr.com';
|
||||
$mail->From='Halo-Battle <no-reply@halo-battle.s-fr.com>';
|
||||
$mail->SMTPAuth=true;
|
||||
$mail->Username='no-reply@halo-battle.s-fr.com';
|
||||
$mail->Password='hD3e2nXu';
|
||||
|
||||
$mail->AddAddress($Nmail);
|
||||
$mail->AddReplyTo('no-reply@halo-battle.s-fr.com');
|
||||
$mail->Subject='Halo-Battle :: Activation de votre nouvelle adresse électronique';
|
||||
$mail->Body='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><title>Halo-Battle :: Activation de votre nouvelle adresse électronique</title></head><body><p>Bonjour,<br />Vous recevez ce mail suite à votre demande de changement d\'adresse électronique. Cette dernière entrera en vigueur une fois que vous aurez valider ce changement en cliquant via ce lien :<br /><a href="http://'.$_SERVER['HTTP_HOST'].'?p=changeopt&util='.$id_user.'&auth='.$auth.'">http://'.$_SERVER['HTTP_HOST'].'?p=changeopt&util='.$id_user.'&auth='.$auth.'</a><br />Notez que pour que l\'adresse soit changée, il faut que vous soyer connecté sur votre compte.<br /><br />A bientôt dans Halo-Battle,<br />Le staff</p></body></html>';
|
||||
|
||||
if(!$mail->Send()){ //Teste si le return code est ok.
|
||||
$template->assign('message','Erreur lors de l\'envoie du courriel de confirmation !<br /><br /><small><i>'.$mail->ErrorInfo.'</i></small><br /><br />Si le problème perciste, <a href="mailto:technique@halo-battle.s-fr.com">contactez un administrateur</a>.');
|
||||
$template->assign('couleur','red');
|
||||
$template->display('game/erreur.tpl');
|
||||
exit;
|
||||
}
|
||||
else{
|
||||
$template->assign('message','Un courriel vient d\'être envoyé à '.$Nmail.'. L\'adresse électronique ne sera modifié qu\'après avoir cliqué sur le lien d\'activation contenu dans ce courriel.');
|
||||
$template->assign('couleur','green');
|
||||
$template->display('game/erreur.tpl');
|
||||
exit;
|
||||
}
|
||||
$mail->SmtpClose();
|
||||
unset($mail);
|
||||
}
|
||||
}
|
||||
else {
|
||||
$template->assign('message','L\'adresse électronique que vous avez tapée n\'est pas valide.');
|
||||
$template->assign('script','<script type="text/javascript">setTimeout(\'document.location.href="?p=options";\', 2500);</script>');
|
||||
$template->assign('couleur','red');
|
||||
$template->display('game/erreur.tpl');
|
||||
exit;
|
||||
}
|
||||
else {
|
||||
$auth = sha1($Nmail);
|
||||
mysql_query("UPDATE `user` SET `mailNOUV` = '$Nmail' WHERE `id` = '$id_user'");
|
||||
|
||||
//On envoie le mail de confirmation
|
||||
$mail = new PHPmailer();
|
||||
$mail->SetLanguage('fr', 'Class/');
|
||||
$mail->IsSMTP();
|
||||
$mail->IsHTML(true);
|
||||
$mail->Host='s-fr.com';
|
||||
$mail->From='Halo-Battle <no-reply@halo-battle.s-fr.com>';
|
||||
$mail->SMTPAuth=true;
|
||||
$mail->Username='no-reply@halo-battle.s-fr.com';
|
||||
$mail->Password='hD3e2nXu';
|
||||
|
||||
$mail->AddAddress($Nmail);
|
||||
$mail->AddReplyTo('no-reply@halo-battle.s-fr.com');
|
||||
$mail->Subject='Halo-Battle :: Activation de votre nouvelle adresse électronique';
|
||||
$mail->Body='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><title>Halo-Battle :: Activation de votre nouvelle adresse électronique</title></head><body><p>Bonjour,<br />Vous recevez ce mail suite à votre demande de changement d\'adresse électronique. Cette dernière entrera en vigueur une fois que vous aurez valider ce changement en cliquant via ce lien :<br /><a href="'.$config['serv_adresse'].'?p=changeopt&util='.$id_user.'&auth='.$auth.'">'.$config['serv_adresse'].'?p=changeopt&util='.$id_user.'&auth='.$auth.'</a><br />Notez que pour que l\'adresse soit changée, il faut que vous soyer connecté sur votre compte.<br /><br />A bientôt dans Halo-Battle,<br />Le staff</p></body></html>';
|
||||
|
||||
if(!$mail->Send()){ //Teste si le return code est ok.
|
||||
$template->assign('message','Erreur lors de l\'envoie du courriel de confirmation !<br /><br /><small><i>'.$mail->ErrorInfo.'</i></small><br /><br />Si le problème perciste, <a href="mailto:technique@halo-battle.s-fr.com">contactez un administrateur</a>.');
|
||||
$template->assign('couleur','red');
|
||||
$template->display('game/erreur.tpl');
|
||||
exit;
|
||||
}
|
||||
else{
|
||||
$template->assign('message','Un courriel vient d\'être envoyé à '.$Nmail.'. L\'adresse électronique ne sera modifié qu\'après avoir cliqué sur le lien d\'activation contenu dans ce courriel.');
|
||||
$template->assign('couleur','green');
|
||||
$template->display('game/erreur.tpl');
|
||||
exit;
|
||||
}
|
||||
$mail->SmtpClose();
|
||||
unset($mail);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
$template->assign('message','L\'adresse électronique que vous avez tapée n\'est pas valide.');
|
||||
$template->assign('message','Veuillez remplir tous les champs avant de valider le formulaire.');
|
||||
$template->assign('script','<script type="text/javascript">setTimeout(\'document.location.href="?p=options";\', 2500);</script>');
|
||||
$template->assign('couleur','red');
|
||||
$template->display('game/erreur.tpl');
|
||||
|
@ -177,7 +187,7 @@ elseif (isset($_GET['chg']) && $_GET['chg'] == 'mail') {
|
|||
}
|
||||
}
|
||||
else {
|
||||
$template->assign('message','Veuillez remplir tous les champs avant de valider le formulaire.');
|
||||
$template->assign('message','Mot de passe incorrect.');
|
||||
$template->assign('script','<script type="text/javascript">setTimeout(\'document.location.href="?p=options";\', 2500);</script>');
|
||||
$template->assign('couleur','red');
|
||||
$template->display('game/erreur.tpl');
|
||||
|
|
|
@ -6,9 +6,13 @@ $page = 'oubliemdp';
|
|||
$erreur = '';
|
||||
|
||||
if (!empty($_GET['i']) && isset($_GET['n'])) {
|
||||
$user = $chapeau->unique_query("SELECT * FROM `user` WHERE `pseudo` = '".mysql_real_escape_string($_GET['n'])."' AND `mdpNOUV` = '".mysql_real_escape_string($_GET['i'])."';");
|
||||
$Un = $_GET['n'];
|
||||
$Ui = $_GET['i'];
|
||||
$chapeau->escape($Un);
|
||||
$chapeau->escape($Ui);
|
||||
$user = $chapeau->unique_query("SELECT * FROM `user` WHERE `pseudo` = '$Un' AND `mdpNOUV` = '$Ui';");
|
||||
if ($user) {
|
||||
mysql_query("UPDATE `user` SET `mdp` = `mdpNOUV`, `mdpNOUV` = '' WHERE `pseudo` = '".mysql_real_escape_string($_GET['n'])."'");
|
||||
mysql_query("UPDATE `user` SET `mdp` = `mdpNOUV`, `mdpNOUV` = '' WHERE `pseudo` = '$Un'");
|
||||
$template->assign('message','Votre mot de passe a été réinitialisé avec succès.');
|
||||
$template->assign('script','<script type="text/javascript">setTimeout(\'document.location.href="?index";\', 3500);</script>');
|
||||
$template->assign('couleur','green');
|
||||
|
@ -34,15 +38,17 @@ if (isset($_POST['HB_pseudo']) && isset($_POST['HB_mail']) && isset($_POST['HB_c
|
|||
$erreur .= '<p style="color: #FF0000"><b>Code de vérification incorrect :</b><br />Le texte que vous avez recopier ne correspondait pas au texte de l\'image, veuillez recommencer.</p><br />';
|
||||
}
|
||||
if ($ok) {
|
||||
$user = $chapeau->unique_query("SELECT * FROM `user` WHERE `pseudo` = '".mysql_real_escape_string($_POST['HB_pseudo'])."' AND `mail` = '".mysql_real_escape_string($_POST['HB_mail'])."';");
|
||||
$HB_pseudo = $chapeau->escape($_POST['HB_pseudo']);
|
||||
$HB_mail = $chapeau->escape($_POST['HB_mail']);
|
||||
$user = $chapeau->unique_query("SELECT * FROM `user` WHERE `pseudo` = '$HB_pseudo' AND `mail` = '$HB_mail';");
|
||||
if ($user) {
|
||||
$liste = "abcdefghijklmnopqrstuvwxyz123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||
$code = '';
|
||||
while(strlen($code) != 8) {
|
||||
$code .= $liste[rand(0,60)];
|
||||
}
|
||||
$passNOUV = sha1(strtoupper($pseudo).':'.$code);
|
||||
mysql_query("UPDATE `user` SET `mdpNOUV` = '".$passNOUV."' WHERE `pseudo` = '".mysql_real_escape_string($_POST["HB_pseudo"])."'");
|
||||
$passNOUV = sha1(strtoupper($HB_pseudo).':'.$code);
|
||||
mysql_query("UPDATE `user` SET `mdpNOUV` = '$passNOUV' WHERE `pseudo` = '$HB_pseudo';");
|
||||
|
||||
$mail = new PHPmailer();
|
||||
$mail->SetLanguage('fr', 'Class/');
|
||||
|
@ -55,10 +61,10 @@ if (isset($_POST['HB_pseudo']) && isset($_POST['HB_mail']) && isset($_POST['HB_c
|
|||
$mail->Username='no-reply@halo-battle.s-fr.com';
|
||||
$mail->Password='hD3e2nXu';
|
||||
|
||||
$mail->AddAddress($_POST['HB_mail']);
|
||||
$mail->AddAddress($HB_mail);
|
||||
$mail->AddReplyTo('no-reply@halo-battle.s-fr.com');
|
||||
$mail->Subject='Halo-Battle :: Reinitialisation du mot de passe';
|
||||
$mail->Body='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Halo-Battle :: Réinitialisation du mot de passe</title></head><body><p>Bonjour '.$_POST["HB_pseudo"].',<br />Vous recevez ce mail suite à votre demande de réinitialisation de mot de passe. Pour confirmer votre réinitialisation de mot de passe et ainsi pouvoir de nouveau accéder au jeu, cliquez sur le lien ci-après :<br /><a href="'.$config['serv_adresse'].'?p=oubliemdp&i='.$passNOUV.'&n='.$_POST["HB_pseudo"].'">'.$config['serv_adresse'].'?p=oubliemdp&i='.$passNOUV.'&n='.$_POST["HB_pseudo"].'</a><br /><br />Votre nouveau mot de passe est : '.$code.'<br /><br />A bientôt dans Halo-Battle,<br />Le staff</p></body></html>';
|
||||
$mail->Body='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Halo-Battle :: Réinitialisation du mot de passe</title></head><body><p>Bonjour '.$HB_pseudo.',<br />Vous recevez ce mail suite à votre demande de réinitialisation de mot de passe. Pour confirmer votre réinitialisation de mot de passe et ainsi pouvoir de nouveau accéder au jeu, cliquez sur le lien ci-après :<br /><a href="'.$config['serv_adresse'].'?p=oubliemdp&i='.$passNOUV.'&n='.$HB_pseudo.'">'.$config['serv_adresse'].'?p=oubliemdp&i='.$passNOUV.'&n='.$HB_pseudo.'</a><br /><br />Votre nouveau mot de passe est : '.$code.'<br /><br />A bientôt dans Halo-Battle,<br />Le staff</p></body></html>';
|
||||
|
||||
if(!$mail->Send()){ //Teste si le return code est ok.
|
||||
$template->assign('message','Erreur lors de l\'envoie du courriel de confirmation !<br /><br /><small><i>'.$mail->ErrorInfo.'</i></small><br /><br />Si le problème perciste, <a href="mailto:technique@halo-battle.s-fr.com">contactez un administrateur</a>.');
|
||||
|
|
|
@ -5,7 +5,8 @@ $titre = $queryPlanete["nom_planete"];
|
|||
$id_plan = $queryPlanete["id"];
|
||||
|
||||
if (isset($_POST['planete'])) {
|
||||
$nouvNom = mysql_real_escape_string(str_replace('<', '<', trim($_POST['planete'])));
|
||||
$nouvNom = trim($_POST['planete']);
|
||||
$chapeau->escape($nouvNom);
|
||||
if (empty($nouvNom)) {
|
||||
$template->assign('message','Vous n\'avez indiqué aucun nom de planète.');
|
||||
$template->assign('script','<script type="text/javascript">setTimeout(\'document.location.href="?p=rename";\', 2500);</script>');
|
||||
|
@ -25,11 +26,10 @@ if (isset($_POST['planete'])) {
|
|||
}
|
||||
elseif(isset($_GET['a']) && $_GET['a'] == $sess->values['abandon']) {
|
||||
$galaxie = $queryPlanete["galaxie"]; $ss = $queryPlanete["ss"]; $position = $queryPlanete["position"];
|
||||
mysql_query("DELETE FROM `planete` WHERE `id_user` = '$id_user' AND `id` = '$id_plan' LIMIT 1;");
|
||||
mysql_query("DELETE FROM `flottes` WHERE `id_user` = '$id_user' AND `start_galaxie` = '$galaxie' AND `start_ss` = '$ss' AND `start_position` = '$position';");
|
||||
$chapeau->query("DELETE FROM `$table_planete` WHERE `id_user` = '$id_user' AND `id` = '$id_plan' LIMIT 1;");
|
||||
$chapeau->query("DELETE FROM `$table_flottes` WHERE `id_user` = '$id_user' AND `start_galaxie` = '$galaxie' AND `start_ss` = '$ss' AND `start_position` = '$position';");
|
||||
|
||||
$table = $config['db_prefix'].'planete';
|
||||
$req = $chapeau->unique_query("SELECT * FROM `$table` WHERE `id_user` = '$id_user' LIMIT 1;");
|
||||
$req = $chapeau->unique_query("SELECT * FROM `$table_planete` WHERE `id_user` = '$id_user' LIMIT 1;");
|
||||
$sess->values['idPlan'] = $req['id'];
|
||||
$sess->put();
|
||||
|
||||
|
@ -40,8 +40,7 @@ elseif(isset($_GET['a']) && $_GET['a'] == $sess->values['abandon']) {
|
|||
exit;
|
||||
}
|
||||
|
||||
$table = $config['db_prefix'].'planete';
|
||||
$reqnb = $chapeau->query("SELECT * FROM `$table` WHERE `id_user` = '$id_user'");
|
||||
$reqnb = $chapeau->query("SELECT * FROM `$table_planete` WHERE `id_user` = '$id_user'");
|
||||
if (count($reqnb) > 1) $hashA = md5(rand(123456789,9876543210));
|
||||
else $hashA = false;
|
||||
$sess->values['abandon'] = $hashA;
|
||||
|
|
|
@ -8,7 +8,18 @@ if (isset($_POST['coeff_metal']) && isset($_POST['coeff_cs'])) {
|
|||
if (!isset($_POST['coeff_hydrogene'])) $_POST['coeff_hydrogene'] = 0;
|
||||
if (!isset($_POST['coeff_ce'])) $_POST['coeff_ce'] = 0;
|
||||
|
||||
$chapeau->query("UPDATE `planete` SET `coeff_mine_m` = '".(floor($_POST['coeff_metal'])/100)."', `coeff_mine_c` = '".(floor($_POST['coeff_cristal'])/100)."', `coeff_mine_h` = '".(floor($_POST['coeff_hydrogene'])/100)."', `coeff_centrale_s` = '".(floor($_POST['coeff_cs'])/100)."', `coeff_centrale_f` = '".(floor($_POST['coeff_ce'])/100)."' WHERE `id` = '$idPlan'");
|
||||
$coeff_metal = floor($_POST['coeff_metal']);
|
||||
$chapeau->escape($coeff_metal);
|
||||
$coeff_cristal = floor($_POST['coeff_cristal']);
|
||||
$chapeau->escape($coeff_cristal);
|
||||
$coeff_hydrogene = floor($_POST['coeff_hydrogene']);
|
||||
$chapeau->escape($coeff_hydrogene);
|
||||
$coeff_cs = floor($_POST['coeff_cs']);
|
||||
$chapeau->escape($coeff_cs);
|
||||
$coeff_ce = floor($_POST['coeff_ce']);
|
||||
$chapeau->escape($coeff_ce);
|
||||
|
||||
$chapeau->query("UPDATE `planete` SET `coeff_mine_m` = '".($coeff_metal/100)."', `coeff_mine_c` = '".($coeff_cristal/100)."', `coeff_mine_h` = '".($coeff_hydrogene/100)."', `coeff_centrale_s` = '".($coeff_cs/100)."', `coeff_centrale_f` = '".($coeff_ce/100)."' WHERE `id` = '$idPlan'");
|
||||
header('Location: ?p=ressources');
|
||||
exit;
|
||||
}
|
||||
|
@ -18,5 +29,6 @@ $template->assign('ressources_prod', array(separerNombres(floor(ceil(pow(1.1,$mi
|
|||
$template->assign('ressources_conso', array(separerNombres(ceil(exp(0.28*$mine_m)*10)*$coeff_mine_m), separerNombres(ceil(exp(0.28*$mine_c)*10)*$coeff_mine_c), separerNombres(ceil(exp(0.2849*$mine_h)*13)*$coeff_mine_h), floor(ceil(pow(1.34,($centrale_f-1))*9)*$coeff_centrale_f)));
|
||||
$template->assign('ressources_toto', array(separerNombres(floor((ceil(pow(1.1,$mine_h)*14*($mine_h+0.7))) * $coeff_mine_h) - floor(ceil(pow(1.34,($centrale_f-1))*9)*$coeff_centrale_f))), '('.$diffnrj.')');
|
||||
$template->assign('ressources_coef', array(floor($coeff_mine_m*10)*10, floor($coeff_mine_c*10)*10, floor($coeff_mine_h*10)*10, floor($coeff_centrale_s*10)*10, floor($coeff_centrale_f*10)*10));
|
||||
$template->assign('ressources_silo', array($queryPlanete['silo'], $cap));
|
||||
$template->assign('ressources_tab', array(0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100));
|
||||
?>
|
|
@ -4,12 +4,12 @@ if(!defined('INDEX')) { header('Location: ../'); exit; }
|
|||
define("_FCORE",$_SERVER["DOCUMENT_ROOT"].'/includes/onyx/');
|
||||
define("_FDIR",'hbn');
|
||||
|
||||
define('VERSION', '1.1b');
|
||||
define('VERSION', '1.2');
|
||||
|
||||
//Constante permettant de savoir si les attaques sont désactivées ou non
|
||||
define("ATTAQUES", false);
|
||||
//Définition des limites de la galaxie
|
||||
define("MAX_AMAS", 9);
|
||||
define("MAX_AMAS", 10);
|
||||
define("MAX_SYSTEME", 99);
|
||||
define("MAX_PLANETE", 12);
|
||||
|
||||
|
@ -57,6 +57,7 @@ google_ad_height = 60;
|
|||
<script type="text/javascript"
|
||||
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
|
||||
</script><br />');
|
||||
|
||||
$template->assign('analyst', '<script type="text/javascript">
|
||||
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
||||
document.write(unescape("%3Cscript src=\'" + gaJsHost + "google-analytics.com/ga.js\' type=\'text/javascript\'%3E%3C/script%3E"));
|
||||
|
|
|
@ -19,8 +19,8 @@ if (!isset($auth_level)) @$auth_level = $sess->values['auth_level'];
|
|||
$batimend = array('purificateur_m','purificateur_c','ionisateur','centrale_s','centrale_fusion','oeil','recherches','chantier_terrestre','???','caserne','silo','centre_info');
|
||||
$batimeni = array('purificateurdemtalhb3.jpg','cristaloo3.png','ioniseurdn4.jpg','solaire.jpg','sanstitrevi7.jpg','oeilduprophetewj6.jpg','covielabocn5.jpg','chantierterrestrehg1.jpg','sanstitretruecolor09zn6.jpg','caserncov0ry.jpg','stockagebasement1cs10bl.jpg','ordianteur_hologramme.jpg');
|
||||
$batiment = array('Purificateur de métal','Purificateur de cristal','Ionisateur','Centrale solaire','Centrale de fusion','Oeil des prophètes','Centre de recherches','Chantier terrestre','Chantier spatial',0/*'Caserne'*/,'Entrepôt','Centrale informatique');
|
||||
$batimede = array( 'Le purificateur de métal vous fournie les matières premières pour la construction de vos infrastructures et de vos unités. Plus vous développerez vos purificateurs, plus ils produiront de ressources. Les purificateurs les plus développés ont aussi besoin de plus d\'énergie.',
|
||||
'Le purificateur de cristal vous fournie les ressources pour vos installations électroniques et pour les alliages. Le purificateur de cristal consomme deux fois plus d\'énergie que celui de métal. Tous les vaisseaux et bâtiments ont besoin de cristal pour leur bouclier ou encore leurs composants électroniques. La production augmente avec le développement de l’usine.',
|
||||
$batimede = array( 'Le purificateur de métal vous fournit les matières premières pour la construction de vos infrastructures et de vos unités. Plus vous développerez vos purificateurs, plus ils produiront de ressources. Les purificateurs les plus développés ont aussi besoin de plus d\'énergie.',
|
||||
'Le purificateur de cristal vous fournit les ressources pour vos installations électroniques et pour les alliages. Le purificateur de cristal consomme deux fois plus d\'énergie que celui de métal. Tous les vaisseaux et bâtiments ont besoin de cristal pour leur bouclier ou encore leurs composants électroniques. La production augmente avec le développement de l’usine.',
|
||||
'L\'ionisateur utilise des ions négatifs et positifs d\'hydrogène pour créer une source conventionnelle de courant stable, servant à alimenter les bâtiments covenants qui nécessitent une arrivée massive de cette "ressource" pour actionner les divers éléments matériels des contrôles. La centrale de fusion à besoin de beaucoup d\'hydrogène pour fonctionner.',
|
||||
'Pour assurer l\'approvisionnement des purificateurs, des centrales solaires sont nécessaires. Plus ces installations sont développées, plus vous obtiendrez d’énergie pour vos purificateurs. Les centrales solaires sont la base de l\'approvisionnement pour votre planète en énergie. Elles sont composées d’un recueilleur sur le haut de sa structure qui capte en grandes quantités l’énergie solaire.',
|
||||
'La centrale à fusion vous permet de créer l’énergie nécessaire à vos purificateurs. Elles est constitué d’un réacteur à fusion qui en tournant produit de l’énergie. Sa production reste nettement inférieure à celle d’une centrale solaire.',
|
||||
|
@ -92,7 +92,7 @@ if (!isset($auth_level)) @$auth_level = $sess->values['auth_level'];
|
|||
$batimend = array('purificateur_m','purificateur_c','ionisateur','centrale_s','centrale_fusion','oeil','recherches','chantier_terrestre','???','caserne','silo','centre_info');
|
||||
$batimeni = array('generateurdemetalsg0.jpg','generateurdecristalmh5.jpg','generateurdhydrognedh3.jpg','generateurdenergievb7.jpg','generateurafusiondb2.jpg',0,'centrederecherchegu9.jpg','chantierterrestrehg1.jpg','chantierspatialff8.jpg',0,'nanw9.jpg',0);
|
||||
$batiment = array('Générateur de Métal','Générateur de Cristal','Générateur d\'Hydrogène','Générateur d\'Energie',0,0,'Centre de recherches','Chantier terrestre','Chantier spatial',0,'Entrepôt',0);
|
||||
$batimede = array( 'Le générateur de métal vous fournie les matières premières pour la construction de vos infrastructures et de vos unités. Plus vous développerez vos générateurs, plus uls vous rapportera. Les générateurs plus développés ont aussi besoin de plus d\'énergie.',
|
||||
$batimede = array( 'Le générateur de métal vous fournit les matières premières pour la construction de vos infrastructures et de vos unités. Plus vous développerez vos générateurs, plus uls vous rapportera. Les générateurs plus développés ont aussi besoin de plus d\'énergie.',
|
||||
'Le générateur de cristal vous fourni les ressources pour vos installations électroniques et pour les alliages. Le générateur consomme deux fois plus d\'énergie que celui du métal. Tous les vaisseaux et bâtiments ont besoin de cristal pour leur bouclier ou encore leur composant électronique. La production augmente avec le développement du générateur ainsi que sa consommation.',
|
||||
'L\'hydrogène n\'est pas directement disponible dans la nature. On doit le produire : par electrolyse de l\'eau ce qui consiste à faire passer un courant électrique dans de l\'eau pour que les molécules se séparent et forme du dihydrogène. Mais cette technique utilise de trop grande quantitée d\'énergie.',
|
||||
'Pour assurer l\'approvisionnement des générateurs, des générateurs énergie géantes sont nécessaires. Plus ces installations sont développées, plus vous obtiendrez d’énergie pour vos générateurs. Les générateurs d\'énergies sont la base de l\'approvisionnement pour votre planète en énergie.',
|
||||
|
|
2
includes/onyx/logs/22-05-2008.xlog
Normal file
2
includes/onyx/logs/22-05-2008.xlog
Normal file
|
@ -0,0 +1,2 @@
|
|||
[22:45:42] AVERTISSEMENT : identification : login = nemunaire ; password = mopmop , [127.0.0.1] [POST] [/?log] [Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9) Gecko/2008051206 Firefox/3.0] [http://halobattle.local/]
|
||||
[23:01:50] AVERTISSEMENT : identification : login = nemunaire ; password = mopmop , [127.0.0.1] [POST] [/?log] [Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9) Gecko/2008051206 Firefox/3.0] [http://halobattle.local/]
|
|
@ -9,10 +9,10 @@
|
|||
<div class="header">Formulaire d'inscription</div>
|
||||
<div class="corpsi">
|
||||
<form action="{$menu.inscription}" method="post">
|
||||
<span><label for="pseudo">Pseudo :</label> <input class="text" name="HB_pseudo" id="pseudo" type="text" value="{$smarty.post.HB_pseudo}" />
|
||||
<br /><label for="mdp">Mot de passe :</label> <input class="text" name="HB_mdp" id="mdp" type="password" />
|
||||
<br /><label for="conf">Confirmation :</label> <input class="text" name="HB_conf" id="conf" type="password" />
|
||||
<br /><label for="mail">Adresse électronique :</label> <input class="text" name="HB_mail" id="mail" type="text" value="{$smarty.post.HB_mail}" />
|
||||
<span><label for="pseudo">Pseudo :</label> <input class="text" name="HB_pseudo" id="pseudo" type="text" maxlength="16" value="{$smarty.post.HB_pseudo}" />
|
||||
<br /><label for="mdp">Mot de passe :</label> <input class="text" name="HB_mdp" id="mdp" type="password" maxlength="32" />
|
||||
<br /><label for="conf">Confirmation :</label> <input class="text" name="HB_conf" id="conf" type="password" maxlength="32" />
|
||||
<br /><label for="mail">Adresse électronique :</label> <input class="text" name="HB_mail" id="mail" type="text" value="{$smarty.post.HB_mail}" maxlength="64" />
|
||||
<br /><br />Race :<br />
|
||||
<table style="margin-left: auto; margin-right: auto; width: 75%;">
|
||||
<tr>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<h4>Diamètre: {$diametre} km <ins>({$caseRest}/{$planete.cases} cases)</ins></h4>
|
||||
<h4>Race : {$user.race}</h4>
|
||||
<h4>position: <a href="?p=carte&galaxie={$planete.galaxie}&ss={$planete.ss}">{$planete.galaxie}.{$planete.ss}.{$planete.position}</a></h4>
|
||||
<h4>Classement: <a href="?p=classement&j={$user.id}">{$points} points ({$user.place_points}{if $user.place_points == '1'}er{else}ème{/if})</a></h4>
|
||||
<h4>Classement: <a href="?p=classement&j={$user.id}">{$points} points ({if $user.place_points == '0'}non classé{else}{$user.place_points}{if $user.place_points == '1'}er{else}ème{/if}{/if})</a></h4>
|
||||
{if $alliance}<h4>Alliance: <a href="?p=alliances">[{$alliance.tag|upper}] {$alliance.nom}</a></h4>{/if}
|
||||
<div class="border_bt"></div>
|
||||
{include file='game/footer.tpl'}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right; vertical-align: middle;"><strong>Nom : </strong></td>
|
||||
<td style="width: 70%;">{$alliance.nom} ({$alliance.tag})</td>
|
||||
<td style="width: 70%;">{$alliance.nom|escape} ({$alliance.tag|escape})</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right;"><strong>Membres : </strong></td>
|
||||
|
@ -16,7 +16,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right;"><strong>Votre grade :</strong></td>
|
||||
<td>{if $access.fondateur}Fondateur{else}{$grade.nom}{/if}<br />{if $access.chat} <a href="{$menu.alliance}&q=adm_chat">Modérer le chat</a> |{/if} {if $access.membre} <a href="{$menu.alliance}&q=adm_membres">Gestion des membres</a> |{/if} {if $access.ecriture} <a href="{$menu.alliance}&q=adm_ecrits">Gestion des écritures</a> |{/if} {if $access.alliance} <a href="{$menu.alliance}&q=adm_alliance">Gestion de l'alliance</a> |{/if}</td>
|
||||
<td>{if $access.fondateur}Fondateur{else}{$grade.nom|escape}{/if}<br />{if $access.chat} <a href="{$menu.alliance}&q=adm_chat">Modérer le chat</a> |{/if} {if $access.membre} <a href="{$menu.alliance}&q=adm_membres">Gestion des membres</a> |{/if} {if $access.ecriture} <a href="{$menu.alliance}&q=adm_ecrits">Gestion des écritures</a> |{/if} {if $access.alliance} <a href="{$menu.alliance}&q=adm_alliance">Gestion de l'alliance</a> |{/if}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right;"><strong>Status des inscriptions :</strong></td>
|
||||
|
@ -31,7 +31,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<h2>Présentation</h2>
|
||||
{$alliance.presentation|nl2br}
|
||||
{$alliance.presentation|escape|nl2br}
|
||||
<table style="width: 100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
|
@ -41,7 +41,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<h2>Texte interne</h2>
|
||||
{$alliance.texte_interne|nl2br}
|
||||
{$alliance.texte_interne|escape|nl2br}
|
||||
<h2>Chat</h2>
|
||||
<div style="height: 150px; overflow: auto; width: 99%;" id="chat">
|
||||
<table style="width: 100%; margin: 0px;">
|
||||
|
@ -54,7 +54,7 @@
|
|||
<tbody>
|
||||
{foreach from=$chat item=message}
|
||||
<tr>
|
||||
<td>[{$message.emetteur}] <i>{$message.timestamp|date_format:"%d/%m/%y %H:%M:%S"}</i></td>
|
||||
<td>[{$message.emetteur}] <i>{$message.timestamp|date_format:"%d/%m/%y %H:%M:%S"|escape}</i></td>
|
||||
<td>{$message.message}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<tr>
|
||||
<td>{$message.emetteur}</td>
|
||||
<td>{$message.timestamp|date_format:"%d/%m/%y %H:%M:%S"}</td>
|
||||
<td>{$message.message}</td>
|
||||
<td>{$message.message|escape}</td>
|
||||
<td><a href="{$menu.alliance}&q=adm_chat&i={$message.id}"><i>Supprimer</i></a></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
<tbody>
|
||||
{foreach from=$grades item=grade}
|
||||
<tr>
|
||||
<td><a href="{$menu.alliance}&q=adm_grades&i={$grade.id}">{$grade.nom}</a></td>
|
||||
<td>{$grade.description|nl2br}</td>
|
||||
<td><a href="{$menu.alliance}&q=adm_grades&i={$grade.id}">{$grade.nom|escape}</a></td>
|
||||
<td>{$grade.description|escape|nl2br}</td>
|
||||
<td>{if $grade.gest_ecriture}Oui{else}Non{/if}</td>
|
||||
<td>{if $grade.gest_chat}Oui{else}Non{/if}</td>
|
||||
<td>{if $grade.gest_membre}Oui{else}Non{/if}</td>
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
<tr>
|
||||
<th>Pseudo</th>
|
||||
<th>Race</th>
|
||||
<th>Dernière connexion </th>
|
||||
<th>Dernière connexion</th>
|
||||
<th>Points</th>
|
||||
<th>Grade</th>
|
||||
<th>Mp</th>
|
||||
</tr>
|
||||
|
@ -17,6 +18,7 @@
|
|||
<td>{$membre.pseudo}</td>
|
||||
<td>{$membre.race}</td>
|
||||
<td>{$membre.last_visite|date_format:"%d/%m/%y %H:%M:%S"}</td>
|
||||
<td>{$membre.points} ({$membre.place_points})</td>
|
||||
<td>{$membre.id_grade_alliance}</td>
|
||||
<td><a href="?p=envoyer&d={$membre.pseudo}" class="msg"><span>Message</span></a></td>
|
||||
</tr>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{include file='game/header.tpl'}
|
||||
<div class="border_top"></div>
|
||||
<h2>Postuler pour l'alliance : {$alliance.nom}</h2>
|
||||
<form action="{$menu.alliance}&q=postuler&i=2" method="post">
|
||||
<form action="{$menu.alliance}&q=postuler&i={$menu.alliancei}" method="post">
|
||||
<table style="width: 100%;">
|
||||
<tr>
|
||||
<td>Message de motivation </td>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<tr><th>Batiments (niveau)</th><th>Technologies nécessaires (niveau actuel)</th></tr>
|
||||
</thead><tbody>
|
||||
{foreach from=$batiments item=batiment}
|
||||
<tr><td><a href="#">{$batiment.nom}</a> ({$batiment.niveau}) :</td><td>{$batiment.etat}</td></tr>
|
||||
<tr><td><a href="?p=description&b={$batiment.id}#menu">{$batiment.nom}</a> ({$batiment.niveau}) :</td><td>{$batiment.etat}</td></tr>
|
||||
{/foreach}
|
||||
</tbody></table></div>
|
||||
</div>
|
||||
|
@ -17,7 +17,7 @@
|
|||
<tr><th>Technologies (niveau)</th><th>Technologies nécessaires (niveau actuel)</th></tr>
|
||||
</thead><tbody>
|
||||
{foreach from=$technologies item=technologie}
|
||||
<tr><td><a href="#">{$technologie.nom}</a> ({$technologie.niveau}) :</td><td>{$technologie.etat}</td></tr>
|
||||
<tr><td><a href="?p=description&t={$technologie.id}#menu">{$technologie.nom}</a> ({$technologie.niveau}) :</td><td>{$technologie.etat}</td></tr>
|
||||
{/foreach}
|
||||
</tbody></table></div>
|
||||
</div>
|
||||
|
@ -27,7 +27,7 @@
|
|||
<tr><th>Véhicules/Défenses</th><th>Technologies nécessaires (niveau actuel)</th></tr>
|
||||
</thead><tbody>
|
||||
{foreach from=$unites item=unite}
|
||||
<tr><td><a href="#">{$unite.nom}</a> ({$unite.niveau}) :</td><td>{$unite.etat}</td></tr>
|
||||
<tr><td><a href="?p=description&d={$unite.id}#menu">{$unite.nom}</a> ({$unite.niveau}) :</td><td>{$unite.etat}</td></tr>
|
||||
{/foreach}
|
||||
</tbody></table></div>
|
||||
</div>
|
||||
|
@ -37,7 +37,7 @@
|
|||
<tr><th>Vaisseaux</th><th>Technologies nécessaires (niveau actuel)</th></tr>
|
||||
</thead><tbody>
|
||||
{foreach from=$vaisseaux item=vaisseau}
|
||||
<tr><td><a href="#">{$vaisseau.nom}</a> ({$vaisseau.niveau}) :</td><td>{$vaisseau.etat}</td></tr>
|
||||
<tr><td><a href="?p=description&v={$vaisseau.id}#menu">{$vaisseau.nom}</a> ({$vaisseau.niveau}) :</td><td>{$vaisseau.etat}</td></tr>
|
||||
{/foreach}
|
||||
</tbody></table></div>
|
||||
</div>
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
{foreach from=$batiments item=batiment}
|
||||
<tr>
|
||||
<td>
|
||||
<a class="bulle" href="#">
|
||||
<a class="bulle" href="?p=description&b={$batiment.num}#menu">
|
||||
<img width="130" height="132" src="images/batiments/{$batiment.image}" alt="{$batiment.nom}" />
|
||||
<span>{$batiment.description}</span>
|
||||
</a>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<h2>Rapports de bug</h2>
|
||||
{foreach from=$bugs item=bug}
|
||||
<dl>
|
||||
<dt><input class="button2" type="button" onclick="hide(this); return false;" />{$bug.0}, le {$bug.1} sur {$bug.2}</dt><dd>{$bug.3}{if $auth_level > 2}<div style="text-align: right"><a href="{$menu.bugs}&a=del&i={$bug.4}"><i>Supprimer</i></a></div>{/if}</dd>
|
||||
<dt><input class="button2" type="button" onclick="hide(this); return false;" />{$bug.0}, le {$bug.1} sur {$bug.2|escape}</dt><dd>{$bug.3}{if $auth_level > 2}<div style="text-align: right"><a href="{$menu.bugs}&a=del&i={$bug.4}"><i>Supprimer</i></a></div>{/if}</dd>
|
||||
</dl>
|
||||
{/foreach}
|
||||
<h2>Ajouter un bug</h2>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{include file='game/header.tpl'}
|
||||
<div class="border_top"></div>
|
||||
<h2>Navigation</h2>
|
||||
<form action="{$menu.carte}" method="get"><fieldset class="systeme"><label for="galaxie">Galaxie :</label><input type="hidden" value="carte" name="p" /><input class="text" type="text" value="{$position.0}" id="galaxie" name="galaxie" /><label for="systeme">Système solaire :</label><input class="text" type="text" value="{$position.1}" id="systeme" name="ss" /><div><a href="{$menu.carte}&galaxie={$position.4}&ss={$position.5}"><<<</a><input class="submit" type="submit" value="GO" /><a href="{$menu.carte}&galaxie={$position.2}&ss={$position.3}">>>></a></div></fieldset></form>
|
||||
<form action="{$menu.carte}" method="get"><fieldset class="systeme"><label for="galaxie">Amas :</label><input type="hidden" value="carte" name="p" /><input class="text" type="text" value="{$position.0}" id="galaxie" name="galaxie" /><label for="systeme">Système solaire :</label><input class="text" type="text" value="{$position.1}" id="systeme" name="ss" /><div><a href="{$menu.carte}&galaxie={$position.4}&ss={$position.5}"><<<</a><input class="submit" type="submit" value="GO" /><a href="{$menu.carte}&galaxie={$position.2}&ss={$position.3}">>>></a></div></fieldset></form>
|
||||
<h2>Système Solaire</h2>
|
||||
<table class="systeme">
|
||||
<thead>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
{foreach from=$vaisseaux item=vaisseau}
|
||||
<tr>
|
||||
<td>
|
||||
<a class="bulle" href="#">
|
||||
<a class="bulle" href="?p=description&v={$vaisseau.num}#menu">
|
||||
<img width="130" height="132" src="images/vaisseaux/{$vaisseau.image}" alt="Vaisseaux" />
|
||||
<span>{$vaisseau.description}</span>
|
||||
</a>
|
||||
|
|
53
includes/onyx/templates/templates/game/chantierterrestre.tpl
Normal file
53
includes/onyx/templates/templates/game/chantierterrestre.tpl
Normal file
|
@ -0,0 +1,53 @@
|
|||
{include file='game/header.tpl'}
|
||||
<div class="border_top"></div>
|
||||
<h2>File d'attente</h2>
|
||||
<div class="file">
|
||||
{foreach from=$file item=fterr key=key}
|
||||
{if $key==0}<span><strong>Prochaine unité </strong> : <em id="resten"></em>
|
||||
<script type="text/javascript">reste({$fterr.2},'resten', true);</script></span>{/if}
|
||||
<span>{$fterr.1} {$fterr.3} - <em id="reste{$key}"></em><script type="text/javascript">reste({$fterr.4},'reste{$key}', {if $key==0}true{else}false{/if});</script>
|
||||
- <a href="{$menu.chantierterrestre}&a={$fterr.0}">Annuler un</a> - <a href="{$menu.chantierterrestre}&a={$fterr.0}&n={$fterr.1}">Annuler tous</a></span>
|
||||
{/foreach}
|
||||
{if $Vchaine}<span>Aucune unité dans la file d'attente</span>{/if}
|
||||
<br />
|
||||
</div>
|
||||
<h3><a href="{$menu.arbre}&q=chantierterrestre">Arbre des technologies</a></h3><br />
|
||||
<h2>Chantier terrestre </h2>
|
||||
<table class="construction">
|
||||
{foreach from=$unite item=unite}
|
||||
<tr>
|
||||
<td>
|
||||
<a class="bulle" href="#">
|
||||
<img width="130" height="132" src="images/terrestre/{$unite.image}" alt="Unité terrestre" />
|
||||
<span>{$unite.description}</span>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<strong>{$unite.nom}{if $unite.nombre > 0} ({$unite.nombre} unite{if $unite.nombre > 1}x{/if}){/if}</strong><br /><br />
|
||||
{if $unite.nec_metal > 0}
|
||||
{if $unite.nec_metal > $planete.metal}<span class="lack">Coût {$nomsressources.0|lower} : {$unite.nec_metalS}</span><br />
|
||||
{else}Coût {$nomsressources.0|lower} : {$unite.nec_metalS}<br />{/if}
|
||||
{/if}
|
||||
{if $unite.nec_cristal > 0}
|
||||
{if $unite.nec_cristal > $planete.cristal}<span class="lack">Coût {$nomsressources.1|lower} : {$unite.nec_cristalS}</span><br />
|
||||
{else}Coût {$nomsressources.1|lower} : {$unite.nec_cristalS}<br />{/if}
|
||||
{/if}
|
||||
{if $unite.nec_hydrogene > 0}
|
||||
{if $unite.nec_hydrogene > $planete.hydrogene}<span class="lack">Coût {$nomsressources.2|lower} : {$unite.nec_hydrogeneS}</span><br />
|
||||
{else}Coût {$nomsressources.2|lower} : {$unite.nec_hydrogeneS}<br />{/if}
|
||||
{/if}
|
||||
Temps de construction : {$unite.temps}<br /><br />
|
||||
<form action="{$menu.chantierterrestre}&v={$unite.num}" method="post">
|
||||
<fieldset>
|
||||
<input class="text" type="text" name="nombre" value="0" />
|
||||
<input class="submit" type="submit" value="OK" />
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
<div class="border_bt"></div>
|
||||
{include file='game/footer.tpl'}
|
|
@ -15,7 +15,7 @@
|
|||
{foreach from=$defenses item=defense}
|
||||
<tr>
|
||||
<td>
|
||||
<a class="bulle" href="#">
|
||||
<a class="bulle" href="?p=description&d={$defense.num}#menu">
|
||||
<img width="130" height="132" src="images/terrestre/{$defense.image}" alt="Image" />
|
||||
<span>{$defense.description}</span>
|
||||
</a>
|
||||
|
|
69
includes/onyx/templates/templates/game/description.tpl
Normal file
69
includes/onyx/templates/templates/game/description.tpl
Normal file
|
@ -0,0 +1,69 @@
|
|||
{include file='game/header.tpl'}
|
||||
<div class="border_top"></div>
|
||||
<h2>Détails {$type} : {$nom}</h2>
|
||||
<table style="width: 400px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 120px;"><img src="images/{$type}/{$image}" alt="" /></td>
|
||||
<td><b>{$nom}</b><br />Actuellement : {if $type != 'vaisseaux' && $type != 'terrestre'}niveau{/if} {$niveau}{if $type == 'vaisseaux' || $type == 'terrestre'} unités{/if}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">{$description}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table style="margin: auto; width: 100%;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2">Coûts {if $type == 'vaisseaux' || $type == 'terrestre'}unité{else}prochain niveau{/if}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{if $ressourcesNext.0}
|
||||
<tr>
|
||||
<th>{$nomsressources.0}</th>
|
||||
<td>{$ressourcesNext.0}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $ressourcesNext.1}
|
||||
<tr>
|
||||
<th>{$nomsressources.1}</th>
|
||||
<td>{$ressourcesNext.1}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $ressourcesNext.2}
|
||||
<tr>
|
||||
<th>{$nomsressources.2}</th>
|
||||
<td>{$ressourcesNext.2}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr>
|
||||
<th>Temps</th>
|
||||
<td>{$ressourcesNext.3}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table style="margin: auto; width: 100%;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Requiert</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{$etat}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<div class="border_bt"></div>
|
||||
{include file='game/footer.tpl'}
|
|
@ -8,12 +8,12 @@
|
|||
<tbody>
|
||||
{foreach from=$flottesEC item=flotteEC}
|
||||
<tr>
|
||||
<td><a href="{$menu.flotte}&n={$flotteEC.0}">{$flotteEC.1}</a></td>
|
||||
<td><a href="{$menu.flotte}&n={$flotteEC.0}">{$flotteEC.1|escape}</a></td>
|
||||
<td>{$flotteEC.2}</td>
|
||||
<td>{$flotteEC.3}</td>
|
||||
<td>{$flotteEC.4}</td>
|
||||
<td>{$flotteEC.4|escape}</td>
|
||||
<td>{$flotteEC.5}</td>
|
||||
<td>{$flotteEC.6}</td>
|
||||
<td>{$flotteEC.6|escape}</td>
|
||||
<td>{$flotteEC.7}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<form action="{$menu.flotte}" method="post">
|
||||
<h2>Paramètres généraux</h2>
|
||||
<fieldset class="options">
|
||||
<label for="nom">Nom de la flotte :</label><input class="text" type="text" id="nom" name="nomflotte" /><br />
|
||||
<label for="nom">Nom de la flotte :</label><input class="text" type="text" id="nom" name="nomflotte" maxlength="24" /><br />
|
||||
<label for="amas">Destination :</label><input class="dest" type="text" id="amas" name="amas" maxlength="2" />:<input class="dest" type="text" id="ss" name="ss" maxlength="2" />:<input class="dest" type="text" id="plan" name="pos" maxlength="2" /><br />
|
||||
<label for="vitesse">Vitesse :</label><select name="vitesse" id="vitesse"><option value="100">100%</option><option value="75">75%</option><option value="50">50%</option><option value="25">25%</option></select><br />
|
||||
<br /><div id="aide1">Pour vous repérer plus facilement entre vos différentes flottes, donnez-lui un nom.</div>
|
||||
|
|
|
@ -1,21 +1,8 @@
|
|||
</div>
|
||||
</div>
|
||||
<div id="footer">
|
||||
Réalisé par Halo Battle Staff<br />
|
||||
Design by <a href="http://nothing-arts.com" onclick="window.open(this.href); return false;"><ins>nothingarts</ins></a><br />
|
||||
<!-- Site visité 514200 fois depuis sa création<br /> -->
|
||||
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
||||
<input type="hidden" name="cmd" value="_donations">
|
||||
<input type="hidden" name="business" value="admin@halo-battle.s-fr.com">
|
||||
<input type="hidden" name="item_name" value="Halo-Battle Dons">
|
||||
<input type="hidden" name="no_shipping" value="0">
|
||||
<input type="hidden" name="no_note" value="1">
|
||||
<input type="hidden" name="currency_code" value="EUR">
|
||||
<input type="hidden" name="tax" value="0">
|
||||
<input type="hidden" name="lc" value="FR">
|
||||
<input type="hidden" name="bn" value="PP-DonationsBF">
|
||||
<input type="image" src="https://www.paypal.com/fr_FR/FR/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - la solution de paiement en ligne la plus simple et la plus sécurisée !">
|
||||
<img alt="" border="0" src="https://www.paypal.com/fr_FR/i/scr/pixel.gif" width="1" height="1">
|
||||
</form>
|
||||
Actuellement en ligne : {$enligne} joueurs<br />
|
||||
<a href="{$link.accueil}">Accueil</a> | <a href="{$link.jeu}">Le jeu</a> | <a href="{$link.inscription}">S'inscrire</a> | <a href="{$link.forum}">Forum</a> | <a href="{$link.staff}">Staff</a> | <a href="{$link.faq}">F.A.Q.</a>
|
||||
{$analyst}
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
<div id="menu"><div class="menu_head"></div>
|
||||
{if $page == "admin"} {if $pagea == "accueil"}<span>Accueil</span>{else}<a href="{$menua.accueil}">Accueil</a>{/if}<div class="space"></div>
|
||||
{if $pagea == "vip"}<span>Vérifier IP</span>{else}<a href="{$menua.vip}">Vérifier IP</a>{/if} {if $pagea == "vflottes"}<span>Vérifier flottes</span>{else}<a href="{$menua.vflottes}">Vérifier flottes</a>{/if} {if $pagea == "vplanetes"}<span>Vérifier planètes</span>{else}<a href="{$menua.vplanetes}">Vérifier planètes</a>{/if} {if $pagea == "vjoueurs"}<span>Vérifier joueurs</span>{else}<a href="{$menua.vjoueurs}">Vérifier joueurs</a>{/if} {if $pagea == "valliances"}<span>Vérifier alliances</span>{else}<a href="{$menua.valliances}">Vérifier alliances</a>{/if}<div class="space"></div>
|
||||
{if $pagea == "sancj"}<span>Sanctions joueur</span>{else}<a href="{$menua.sancj}">Sanctions joueur</a>{/if} {if $pagea == "sancp"}<span>Sanctions planète</span>{else}<a href="{$menua.sancp}">Sanctions planète</a>{/if} {if $pagea == "controle"}<span>Prendre le contrôle</span>{else}<a href="{$menua.controle}">Prendre le contrôle</a>{/if} {if $pagea == "sjoueurs"}<span>Supprimer joueurs</span>{else}<a href="{$menua.sjoueurs}">Supprimer joueurs</a>{/if}<div class="space"></div>
|
||||
{else} {if $page == "accueil"}<span>Accueil</span>{else}<a href="{$menu.accueil}">Accueil</a>{/if} {if $page == "batiments"}<span>Batiments</span>{else}<a href="{$menu.batiments}">Batiments</a>{/if} {if $page == "caserne"}<span>Caserne</span>{else}<a href="{$menu.caserne}">Caserne</a>{/if} {if $page == "chantierspatial"}<span>Chantier spatial</span>{else}<a href="{$menu.chantierspatial}">Chantier spatial</a>{/if} {if $page == "chantierterrestre"}<span>Chantier terrestre</span>{else}<a href="{$menu.chantierterrestre}">Chantier terrestre</a>{/if} {if $page == "defenses"}<span>Défenses</span>{else}<a href="{$menu.defenses}">Défenses</a>{/if} {if $page == "laboratoire"}<span>Laboratoire</span>{else}<a href="{$menu.laboratoire}">Laboratoire</a>{/if} {if $page == "arbre"}<span>Arbre technologique</span>{else}<a href="{$menu.arbre}">Arbre technologique</a>{/if}<div class="space"></div>
|
||||
{if $page == "ressources"}<span>Ressources</span>{else}<a href="{$menu.ressources}">Ressources</a>{/if} {if $page == "gestion" || $page == "rename"}<span>Gestion</span>{else}<a href="{$menu.gestion}">Gestion</a>{/if} {if $page == "flotte1" || $page == "flotte2"}<span>Flottes</span>{else}<a href="{$menu.flotte}">Flottes</a>{/if} {if $page == "armee"}<span>Armée</span>{else}<a href="{$menu.armee}">Armée</a>{/if} {if $page == "carte"}<span>Carte spatiale</span>{else}<a href="{$menu.carte}">Carte spatiale</a>{/if} {if $page == "options"}<span>Options</span>{else}<a href="{$menu.options}">Options</a>{/if}<div class="space"></div>
|
||||
{if $page == "messagerie" || $page == "envoyer"}<span>Messages et rapports</span>{else}<a href="{$menu.messages}">{if $alertMail}<b>Messages et rapports ({$alertMail})</b>{else}Messages et rapports{/if}</a>{/if} {if $page == "alliance"}<span>Alliance</span>{else}<a href="{$menu.alliance}">Alliance</a>{/if} {if $page == "classement"}<span>Classement</span>{else}<a href="{$menu.classement}">Classement</a>{/if} {if $page == "forums"}<span>Forums</span>{else}<a href="{$menu.forums}">Forums</a>{/if} {if $page == "bugs"}<span>Rapports de bug</span>{else}<a href="{$menu.bugs}">Rapports de bug</a>{/if} {if $page == "faq"}<span>F.A.Q.</span>{else}<a href="{$menu.faq}">F.A.Q.</a>{/if} <a href="{$menu.deconnexion}">Déconnexion</a><div class="space"></div>
|
||||
|
@ -41,7 +42,7 @@
|
|||
<div id="corps_top">
|
||||
<div class="border_top"></div>
|
||||
<img src="images/planetes/{$planete.image}.jpg" width="70" height="70" alt="planète" />
|
||||
<div>Bonjour, <span>{$user.pseudo}.</span><br />Votre position actuelle:<br /><br /><form action="{$link.changeplanete}" method="post"><fieldset><select onchange="this.form.submit();" name="Cplanete">{foreach from=$planetes item=plan}<option {if $plan.id == $planete.id}selected="selected" {/if}value="{$plan.id}">{$plan.nom_planete} [{$plan.galaxie}:{$plan.ss}:{$plan.position}]</option>{/foreach}</select><noscript><div><br /><input class="submit" type="submit" value="GO" /></div></noscript></fieldset></form></div>
|
||||
<div>Bonjour, <span>{$user.pseudo}.</span><br />Votre position actuelle:<br /><br /><form action="{$link.changeplanete}" method="post"><fieldset><select onchange="this.form.submit();" name="Cplanete">{foreach from=$planetes item=plan}<option {if $plan.id == $planete.id}selected="selected" {/if}value="{$plan.id}">{$plan.nom_planete|escape:'html'} [{$plan.galaxie}:{$plan.ss}:{$plan.position}]</option>{/foreach}</select><noscript><div><br /><input class="submit" type="submit" value="GO" /></div></noscript></fieldset></form></div>
|
||||
<div class="ressource"><span>{$nomsressources.3}</span><br />{if $alertes.4 == true}<span class="lack">{/if}{$alertes.3}{if $alertes.4}</span>{/if}</div>
|
||||
<div class="ressource"><span>{$nomsressources.2}</span><br />{if $alertes.2 == true}<span class="lack">{/if}{$planete.hydrogeneS}{if $alertes.2}</span>{/if}</div>
|
||||
<div class="ressource"><span>{$nomsressources.1}</span><br />{if $alertes.1 == true}<span class="lack">{/if}{$planete.cristalS}{if $alertes.1}</span>{/if}</div>
|
||||
|
@ -49,5 +50,5 @@
|
|||
<div class="border_bt"></div>
|
||||
</div>
|
||||
{/if}
|
||||
<div>{$pub}</div>
|
||||
{if $page != "admin"}<div>{$pub}</div>{/if}
|
||||
<div id="corps">
|
|
@ -13,12 +13,12 @@
|
|||
<br />
|
||||
</div>
|
||||
<h3><a href="{$menu.arbre}&q=technologies">Arbre des technologies</a></h3><br />
|
||||
<h2>Batiments</h2>
|
||||
<h2>Laboratoire</h2>
|
||||
<table class="construction">
|
||||
{foreach from=$recherches item=recherche}
|
||||
<tr>
|
||||
<td>
|
||||
<a class="bulle" href="#">
|
||||
<a class="bulle" href="?p=description&t={$recherche.num}#menu">
|
||||
<img width="130" height="132" src="images/technologies/{$recherche.image}" alt="{$recherche.nom}" />
|
||||
<span>{$recherche.description}</span>
|
||||
</a>
|
||||
|
@ -39,7 +39,8 @@
|
|||
{else}Coût {$nomsressources.2|lower} : {$recherche.nec_hydrogeneS}<br />{/if}
|
||||
{/if}
|
||||
Temps de recherche : {$recherche.temps}<br /><br />
|
||||
{if $recherche.nec_hydrogene > $planete.hydrogene}<span class="lack" title="manque {if $recherche.maq_metal >0}{$recherche.maq_metal} de {$nomsressources.0|lower} ; {/if}{if $recherche.maq_cristal >0}{$recherche.maq_cristal} de {$nomsressources.1|lower} ; {/if}{if $recherche.maq_hydrogene > 0}{$recherche.maq_hydrogene} de {$nomsressources.2|lower}{/if}">Ressources insuffisantes</span>
|
||||
{if $recherche.enfile}<a href="{$menu.laboratoire}&a={$recherche.num}">Arrêter</a>
|
||||
{elseif $recherche.nec_hydrogene > $planete.hydrogene}<span class="lack" title="manque {if $recherche.maq_metal >0}{$recherche.maq_metal} de {$nomsressources.0|lower} ; {/if}{if $recherche.maq_cristal >0}{$recherche.maq_cristal} de {$nomsressources.1|lower} ; {/if}{if $recherche.maq_hydrogene > 0}{$recherche.maq_hydrogene} de {$nomsressources.2|lower}{/if}">Ressources insuffisantes</span>
|
||||
{elseif $recherche.nec_cristal > $planete.cristal}<span class="lack" title="manque {if $recherche.maq_metal >0}{$recherche.maq_metal} de {$nomsressources.0|lower} ; {/if}{if $recherche.maq_cristal >0}{$recherche.maq_cristal} de {$nomsressources.1|lower} ; {/if}{if $recherche.maq_hydrogene > 0}{$recherche.maq_hydrogene} de {$nomsressources.2|lower}{/if}">Ressources insuffisantes</span>
|
||||
{elseif $recherche.nec_metal > $planete.metal}<span class="lack" title="manque {if $recherche.maq_metal >0}{$recherche.maq_metal} de {$nomsressources.0|lower} ; {/if}{if $recherche.maq_cristal >0}{$recherche.maq_cristal} de {$nomsressources.1|lower} ; {/if}{if $recherche.maq_hydrogene > 0}{$recherche.maq_hydrogene} de {$nomsressources.2|lower}{/if}">Ressources insuffisantes</span>
|
||||
{else}<a href="{$menu.laboratoire}&t={$recherche.num}">Construire</a>
|
||||
|
@ -48,9 +49,6 @@
|
|||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<!--<tr><td><a class="bulle" href="#"><img width="130" height="132" src="images/metal.png" alt="métal" /><span>Cette usine traite tous les métaux recueillis afin de produire du titanium-A ou différents types d'alliages de qualité pour vos différentes constructions planétaires ou spatiales. Chaque niveau augmente la production de métal.</span></a></td><td><div><strong>Usine de métal</strong><br /><br />Coût métal : 12000<br />Coût cristal : 12000<br />Coût hydrogène : 12000<br />Temps de construction restant : <em id="reste2"></em><script type="text/javascript">reste(250,'reste2');</script><br /><br /><a href="#">Arrêter</a></div></td></tr>
|
||||
<tr><td><a class="bulle" href="#"><img width="130" height="132" src="images/cristal.png" alt="cristal" /><span>L'usine de cristal filtre les déchets récoltés avec les cristaux. Une fois séparés du reste ils sont classés par qualité par une quantité d'appareils de haute technologie. Plus les cristaux sont purs plus ceux-ci peuvent être transformés en unités de stockage de données ou en conducteurs énergétiques de haute qualité. Plus ce bâtiment sera développé, plus vous pourrez traiter de cristaux rapidement.</span></a></td><td><div><strong>Usine de cristal</strong><br /><br />Coût métal : 12000<br />Coût cristal : 12000<br />Coût hydrogène : 12000<br />Temps de construction : 1 heure 12 minutes<br /><br /><a href="#">Construire</a></div></td></tr>
|
||||
<tr><td><a class="bulle" href="#"><img width="130" height="132" src="images/hydrogene.jpg" alt="hydrogène" /><span>Ce bâtiment use de l'eau pour la décomposer et en extraire l'hydrogène, la base de toutes vos productions énergétiques, pour ensuite l'acheminer dans des condensateurs ioniques afin de le rendre plus dense et par le fait même plus efficace. Chaque niveau augmente la production du synchronisateur.</span></a></td><td><div><strong>Usine d'hydrogène</strong><br /><br />Coût métal : 12000<br />Coût cristal : 12000<br /><span class="lack">Coût hydrogène : 12000</span><br />Temps de construction : 1 heure 12 minutes<br /><br /><span class="lack" title="manque 1000 de cristal">Ressources insuffisantes</span></div></td></tr>-->
|
||||
</table>
|
||||
<div class="border_bt"></div>
|
||||
{include file='game/footer.tpl'}
|
|
@ -1,6 +1,7 @@
|
|||
{include file='game/header.tpl'}
|
||||
<div class="border_top"></div>
|
||||
<h2>Messages</h2>
|
||||
{$avertissement}
|
||||
<h3><a href="{$menu.envoie}">Ecrire un message</a></h3>
|
||||
<form action="{$menu.messagerie}" method="post">
|
||||
{foreach from=$messages item=message}
|
||||
|
|
|
@ -11,7 +11,8 @@
|
|||
<h2>Changer d'adresse électronique</h2>
|
||||
<form action="{$menu.options}&chg=mail" method="post"><fieldset class="options">
|
||||
<label>Adresse actuelle :</label><p style="text-align: center;">{$mail}</p>
|
||||
<label for="mail">Nouveau mail :</label><input class="text" type="text" id="mail" name="mail" /><br /><br />
|
||||
<label for="mail">Nouveau mail :</label><input class="text" type="text" id="mail" name="mail" />
|
||||
<label for="mdp_mail">Mot de passe actuel :</label><input class="text" type="password" id="mdp_mail" name="mdp_mail" /><br /><br />
|
||||
<b>L'adresse électronique sera modifiée une fois validée depuis votre nouvelle adresse.</b><br /><br />
|
||||
<input class="submit" type="submit" value="OK" />
|
||||
</fieldset></form>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<img src="images/planetes/{$planete.image}.jpg" width="200" height="200" alt="planète" />
|
||||
<h2>Renommer la planète</h2>
|
||||
<form action="?p=rename" method="post">
|
||||
<fieldset class="options"><label for="planete">Renommer la planète: ({$planete.galaxie}:{$planete.ss}:{$planete.position}) :</label><input class="text" type="text" name="planete" value="{$planete.nom_planete}" id="planete" /><br /><br /><input class="submit" type="submit" value="OK" /></fieldset>
|
||||
<fieldset class="options"><label for="planete">Renommer la planète: ({$planete.galaxie}:{$planete.ss}:{$planete.position}) :</label><input class="text" type="text" name="planete" maxlength="18" value="{$planete.nom_planete}" id="planete" /><br /><br /><input class="submit" type="submit" value="OK" /></fieldset>
|
||||
</form>
|
||||
<h2>Abandonner la planète</h2>
|
||||
{if $abandonH}<b>Attention, cette action est irréversible ; vous perdrez tous les batiments, vaisseaux et unités présents sur cette planète, les flottes ayant une mision qui a pour origine votre planète se perdront dans l'espace.</b><br /><br />Si vous êtes sur de vouloir abandonner cette planète : <a href="?p=rename&a={$abandonH}" onclick="return confirm('Êtes-vous sûr de vouloir abandonner cette planète ?');">cliquez sur ce lien</a>.<br /><br />
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
{if $planete.mine_h}<tr><td>{$planete.mine_h} {$nombat.2}</td><td><select name="coeff_hydrogene" class="coeff">{html_options values=$ressources_tab selected=$ressources_coef.2 output=$ressources_tab|cat:'%'}</select></td><td>0</td><td>0</td><td>{$ressources_prod.2}</td><td class="lack">-{$ressources_conso.2}</td></tr>{/if}
|
||||
<tr><td>{$planete.centrale_s} {$nombat.3}</td><td><select name="coeff_cs" class="coeff">{html_options values=$ressources_tab selected=$ressources_coef.3 output=$ressources_tab|cat:'%'}</select></td><td>0</td><td>0</td><td>0</td><td>{$ressources_prod.3}</td></tr>
|
||||
{if $planete.centrale_f}<tr><td>{$planete.centrale_f} {$nombat.4}</td><td><select name="coeff_ce" class="coeff">{html_options values=$ressources_tab selected=$ressources_coef.4 output=$ressources_tab|cat:'%'}</select></td><td>0</td><td>0</td><td class="lack">-{$ressources_conso.3}</td><td>{$ressources_prod.4}</td></tr>{/if}
|
||||
<tr><td>{$planete.silo} {$nombat.10}</td><td>-</td><td>{$ressources_silo.1}</td><td>{$ressources_silo.1}</td><td>{$ressources_silo.1}</td><td>0</td></tr>
|
||||
<tr><td><strong>Total</strong></td><td>-</td><td>{$ressources_prod.0}</td><td>{$ressources_prod.1}</td><td>{if $planete.mine_h}{$ressources_toto.0}{else}0{/if}</td><td{if $alertes.5 <= 0} class="lack"{/if}>{$alertes.5}</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -0,0 +1,100 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-21 15:50:22
|
||||
compiled from game/chantierterrestre.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'lower', 'game/chantierterrestre.tpl', 29, false),)), $this); ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/header.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<div class="border_top"></div>
|
||||
<h2>File d'attente</h2>
|
||||
<div class="file">
|
||||
<?php $_from = $this->_tpl_vars['file']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['fterr']):
|
||||
?>
|
||||
<?php if ($this->_tpl_vars['key'] == 0): ?><span><strong>Prochaine unité </strong> : <em id="resten"></em>
|
||||
<script type="text/javascript">reste(<?php echo $this->_tpl_vars['fterr']['2']; ?>
|
||||
,'resten', true);</script></span><?php endif; ?>
|
||||
<span><?php echo $this->_tpl_vars['fterr']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['fterr']['3']; ?>
|
||||
- <em id="reste<?php echo $this->_tpl_vars['key']; ?>
|
||||
"></em><script type="text/javascript">reste(<?php echo $this->_tpl_vars['fterr']['4']; ?>
|
||||
,'reste<?php echo $this->_tpl_vars['key']; ?>
|
||||
', <?php if ($this->_tpl_vars['key'] == 0): ?>true<?php else: ?>false<?php endif; ?>);</script>
|
||||
- <a href="<?php echo $this->_tpl_vars['menu']['chantierterrestre']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['fterr']['0']; ?>
|
||||
">Annuler un</a> - <a href="<?php echo $this->_tpl_vars['menu']['chantierterrestre']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['fterr']['0']; ?>
|
||||
&n=<?php echo $this->_tpl_vars['fterr']['1']; ?>
|
||||
">Annuler tous</a></span>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php if ($this->_tpl_vars['Vchaine']): ?><span>Aucune unité dans la file d'attente</span><?php endif; ?>
|
||||
<br />
|
||||
</div>
|
||||
<h3><a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
||||
&q=chantierterrestre">Arbre des technologies</a></h3><br />
|
||||
<h2>Chantier terrestre </h2>
|
||||
<table class="construction">
|
||||
<?php $_from = $this->_tpl_vars['unite']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['unite']):
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<a class="bulle" href="#">
|
||||
<img width="130" height="132" src="images/terrestre/<?php echo $this->_tpl_vars['unite']['image']; ?>
|
||||
" alt="Unité terrestre" />
|
||||
<span><?php echo $this->_tpl_vars['unite']['description']; ?>
|
||||
</span>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<strong><?php echo $this->_tpl_vars['unite']['nom']; ?>
|
||||
<?php if ($this->_tpl_vars['unite']['nombre'] > 0): ?> (<?php echo $this->_tpl_vars['unite']['nombre']; ?>
|
||||
unite<?php if ($this->_tpl_vars['unite']['nombre'] > 1): ?>x<?php endif; ?>)<?php endif; ?></strong><br /><br />
|
||||
<?php if ($this->_tpl_vars['unite']['nec_metal'] > 0): ?>
|
||||
<?php if ($this->_tpl_vars['unite']['nec_metal'] > $this->_tpl_vars['planete']['metal']): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['unite']['nec_metalS']; ?>
|
||||
</span><br />
|
||||
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['unite']['nec_metalS']; ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['unite']['nec_cristal'] > 0): ?>
|
||||
<?php if ($this->_tpl_vars['unite']['nec_cristal'] > $this->_tpl_vars['planete']['cristal']): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['unite']['nec_cristalS']; ?>
|
||||
</span><br />
|
||||
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['unite']['nec_cristalS']; ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['unite']['nec_hydrogene'] > 0): ?>
|
||||
<?php if ($this->_tpl_vars['unite']['nec_hydrogene'] > $this->_tpl_vars['planete']['hydrogene']): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['unite']['nec_hydrogeneS']; ?>
|
||||
</span><br />
|
||||
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['unite']['nec_hydrogeneS']; ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php endif; ?>
|
||||
Temps de construction : <?php echo $this->_tpl_vars['unite']['temps']; ?>
|
||||
<br /><br />
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['chantierterrestre']; ?>
|
||||
&v=<?php echo $this->_tpl_vars['unite']['num']; ?>
|
||||
" method="post">
|
||||
<fieldset>
|
||||
<input class="text" type="text" name="nombre" value="0" />
|
||||
<input class="submit" type="submit" value="OK" />
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</table>
|
||||
<div class="border_bt"></div>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/footer.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
|
@ -0,0 +1,94 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-23 02:23:49
|
||||
compiled from game/description.tpl */ ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/header.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<div class="border_top"></div>
|
||||
<h2>Détails <?php echo $this->_tpl_vars['type']; ?>
|
||||
: <?php echo $this->_tpl_vars['nom']; ?>
|
||||
</h2>
|
||||
<table style="width: 400px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 120px;"><img src="images/<?php echo $this->_tpl_vars['type']; ?>
|
||||
/<?php echo $this->_tpl_vars['image']; ?>
|
||||
" alt="" /></td>
|
||||
<td><b><?php echo $this->_tpl_vars['nom']; ?>
|
||||
</b><br />Actuellement : <?php if ($this->_tpl_vars['type'] != 'vaisseaux' && $this->_tpl_vars['type'] != 'terrestre'): ?>niveau<?php endif; ?> <?php echo $this->_tpl_vars['niveau']; ?>
|
||||
<?php if ($this->_tpl_vars['type'] == 'vaisseaux' || $this->_tpl_vars['type'] == 'terrestre'): ?> unités<?php endif; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><?php echo $this->_tpl_vars['description']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table style="margin: auto; width: 100%;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2">Coûts <?php if ($this->_tpl_vars['type'] == 'vaisseaux' || $this->_tpl_vars['type'] == 'terrestre'): ?>unité<?php else: ?>prochain niveau<?php endif; ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if ($this->_tpl_vars['ressourcesNext']['0']): ?>
|
||||
<tr>
|
||||
<th><?php echo $this->_tpl_vars['nomsressources']['0']; ?>
|
||||
</th>
|
||||
<td><?php echo $this->_tpl_vars['ressourcesNext']['0']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['ressourcesNext']['1']): ?>
|
||||
<tr>
|
||||
<th><?php echo $this->_tpl_vars['nomsressources']['1']; ?>
|
||||
</th>
|
||||
<td><?php echo $this->_tpl_vars['ressourcesNext']['1']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['ressourcesNext']['2']): ?>
|
||||
<tr>
|
||||
<th><?php echo $this->_tpl_vars['nomsressources']['2']; ?>
|
||||
</th>
|
||||
<td><?php echo $this->_tpl_vars['ressourcesNext']['2']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<th>Temps</th>
|
||||
<td><?php echo $this->_tpl_vars['ressourcesNext']['3']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table style="margin: auto; width: 100%;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Requiert</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['etat']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<div class="border_bt"></div>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/footer.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
|
@ -1,4 +1,4 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-17 12:27:08
|
||||
<?php /* Smarty version 2.6.19, created on 2008-05-23 02:24:53
|
||||
compiled from game/arbre.tpl */ ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/header.tpl', 'smarty_include_vars' => array()));
|
||||
|
@ -16,7 +16,8 @@ unset($_smarty_tpl_vars);
|
|||
<?php $_from = $this->_tpl_vars['batiments']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['batiment']):
|
||||
?>
|
||||
<tr><td><a href="#"><?php echo $this->_tpl_vars['batiment']['nom']; ?>
|
||||
<tr><td><a href="?p=description&b=<?php echo $this->_tpl_vars['batiment']['id']; ?>
|
||||
#menu"><?php echo $this->_tpl_vars['batiment']['nom']; ?>
|
||||
</a> (<?php echo $this->_tpl_vars['batiment']['niveau']; ?>
|
||||
) :</td><td><?php echo $this->_tpl_vars['batiment']['etat']; ?>
|
||||
</td></tr>
|
||||
|
@ -32,7 +33,8 @@ unset($_smarty_tpl_vars);
|
|||
<?php $_from = $this->_tpl_vars['technologies']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['technologie']):
|
||||
?>
|
||||
<tr><td><a href="#"><?php echo $this->_tpl_vars['technologie']['nom']; ?>
|
||||
<tr><td><a href="?p=description&t=<?php echo $this->_tpl_vars['technologie']['id']; ?>
|
||||
#menu"><?php echo $this->_tpl_vars['technologie']['nom']; ?>
|
||||
</a> (<?php echo $this->_tpl_vars['technologie']['niveau']; ?>
|
||||
) :</td><td><?php echo $this->_tpl_vars['technologie']['etat']; ?>
|
||||
</td></tr>
|
||||
|
@ -48,7 +50,8 @@ unset($_smarty_tpl_vars);
|
|||
<?php $_from = $this->_tpl_vars['unites']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['unite']):
|
||||
?>
|
||||
<tr><td><a href="#"><?php echo $this->_tpl_vars['unite']['nom']; ?>
|
||||
<tr><td><a href="?p=description&d=<?php echo $this->_tpl_vars['unite']['id']; ?>
|
||||
#menu"><?php echo $this->_tpl_vars['unite']['nom']; ?>
|
||||
</a> (<?php echo $this->_tpl_vars['unite']['niveau']; ?>
|
||||
) :</td><td><?php echo $this->_tpl_vars['unite']['etat']; ?>
|
||||
</td></tr>
|
||||
|
@ -64,7 +67,8 @@ unset($_smarty_tpl_vars);
|
|||
<?php $_from = $this->_tpl_vars['vaisseaux']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['vaisseau']):
|
||||
?>
|
||||
<tr><td><a href="#"><?php echo $this->_tpl_vars['vaisseau']['nom']; ?>
|
||||
<tr><td><a href="?p=description&v=<?php echo $this->_tpl_vars['vaisseau']['id']; ?>
|
||||
#menu"><?php echo $this->_tpl_vars['vaisseau']['nom']; ?>
|
||||
</a> (<?php echo $this->_tpl_vars['vaisseau']['niveau']; ?>
|
||||
) :</td><td><?php echo $this->_tpl_vars['vaisseau']['etat']; ?>
|
||||
</td></tr>
|
||||
|
|
|
@ -0,0 +1,115 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-23 02:28:15
|
||||
compiled from game/laboratoire.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'lower', 'game/laboratoire.tpl', 30, false),)), $this); ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/header.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<div class="border_top"></div>
|
||||
<h2>File d'attente</h2>
|
||||
<div class="file">
|
||||
<?php $_from = $this->_tpl_vars['file']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['flab']):
|
||||
?>
|
||||
<span><?php echo $this->_tpl_vars['flab']['3']; ?>
|
||||
- <em id="reste<?php echo $this->_tpl_vars['key']; ?>
|
||||
"></em><script type="text/javascript">reste(<?php echo $this->_tpl_vars['flab']['2']; ?>
|
||||
,'reste<?php echo $this->_tpl_vars['key']; ?>
|
||||
', <?php if ($this->_tpl_vars['key'] == 0): ?>true<?php else: ?>false<?php endif; ?>);</script> - <a href="<?php echo $this->_tpl_vars['menu']['laboratoire']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['flab']['0']; ?>
|
||||
">Annuler</a></span>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php if ($this->_tpl_vars['Vchaine']): ?><span>Aucune recherche dans la file d'attente</span>
|
||||
<?php endif; ?>
|
||||
<br />
|
||||
</div>
|
||||
<h3><a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
||||
&q=technologies">Arbre des technologies</a></h3><br />
|
||||
<h2>Laboratoire</h2>
|
||||
<table class="construction">
|
||||
<?php $_from = $this->_tpl_vars['recherches']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['recherche']):
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<a class="bulle" href="?p=description&t=<?php echo $this->_tpl_vars['recherche']['num']; ?>
|
||||
#menu">
|
||||
<img width="130" height="132" src="images/technologies/<?php echo $this->_tpl_vars['recherche']['image']; ?>
|
||||
" alt="<?php echo $this->_tpl_vars['recherche']['nom']; ?>
|
||||
" />
|
||||
<span><?php echo $this->_tpl_vars['recherche']['description']; ?>
|
||||
</span>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<strong><?php echo $this->_tpl_vars['recherche']['nom']; ?>
|
||||
<?php if ($this->_tpl_vars['recherche']['niveau'] > 0): ?> (Niveau <?php echo $this->_tpl_vars['recherche']['niveau']; ?>
|
||||
)<?php endif; ?></strong><br /><br />
|
||||
<?php if ($this->_tpl_vars['recherche']['nec_metal'] > 0): ?>
|
||||
<?php if ($this->_tpl_vars['recherche']['nec_metal'] > $this->_tpl_vars['planete']['metal']): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['recherche']['nec_metalS']; ?>
|
||||
</span><br />
|
||||
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['recherche']['nec_metalS']; ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['recherche']['nec_cristal'] > 0): ?>
|
||||
<?php if ($this->_tpl_vars['recherche']['nec_cristal'] > $this->_tpl_vars['planete']['cristal']): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['recherche']['nec_cristalS']; ?>
|
||||
</span><br />
|
||||
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['recherche']['nec_cristalS']; ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['recherche']['nec_hydrogene'] > 0): ?>
|
||||
<?php if ($this->_tpl_vars['recherche']['nec_hydrogene'] > $this->_tpl_vars['planete']['hydrogene']): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['recherche']['nec_hydrogeneS']; ?>
|
||||
</span><br />
|
||||
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['recherche']['nec_hydrogeneS']; ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php endif; ?>
|
||||
Temps de recherche : <?php echo $this->_tpl_vars['recherche']['temps']; ?>
|
||||
<br /><br />
|
||||
<?php if ($this->_tpl_vars['recherche']['enfile']): ?><a href="<?php echo $this->_tpl_vars['menu']['laboratoire']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['recherche']['num']; ?>
|
||||
">Arrêter</a>
|
||||
<?php elseif ($this->_tpl_vars['recherche']['nec_hydrogene'] > $this->_tpl_vars['planete']['hydrogene']): ?><span class="lack" title="manque <?php if ($this->_tpl_vars['recherche']['maq_metal'] > 0): ?><?php echo $this->_tpl_vars['recherche']['maq_metal']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
; <?php endif; ?><?php if ($this->_tpl_vars['recherche']['maq_cristal'] > 0): ?><?php echo $this->_tpl_vars['recherche']['maq_cristal']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
; <?php endif; ?><?php if ($this->_tpl_vars['recherche']['maq_hydrogene'] > 0): ?><?php echo $this->_tpl_vars['recherche']['maq_hydrogene']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
<?php endif; ?>">Ressources insuffisantes</span>
|
||||
<?php elseif ($this->_tpl_vars['recherche']['nec_cristal'] > $this->_tpl_vars['planete']['cristal']): ?><span class="lack" title="manque <?php if ($this->_tpl_vars['recherche']['maq_metal'] > 0): ?><?php echo $this->_tpl_vars['recherche']['maq_metal']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
; <?php endif; ?><?php if ($this->_tpl_vars['recherche']['maq_cristal'] > 0): ?><?php echo $this->_tpl_vars['recherche']['maq_cristal']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
; <?php endif; ?><?php if ($this->_tpl_vars['recherche']['maq_hydrogene'] > 0): ?><?php echo $this->_tpl_vars['recherche']['maq_hydrogene']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
<?php endif; ?>">Ressources insuffisantes</span>
|
||||
<?php elseif ($this->_tpl_vars['recherche']['nec_metal'] > $this->_tpl_vars['planete']['metal']): ?><span class="lack" title="manque <?php if ($this->_tpl_vars['recherche']['maq_metal'] > 0): ?><?php echo $this->_tpl_vars['recherche']['maq_metal']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
; <?php endif; ?><?php if ($this->_tpl_vars['recherche']['maq_cristal'] > 0): ?><?php echo $this->_tpl_vars['recherche']['maq_cristal']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
; <?php endif; ?><?php if ($this->_tpl_vars['recherche']['maq_hydrogene'] > 0): ?><?php echo $this->_tpl_vars['recherche']['maq_hydrogene']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
<?php endif; ?>">Ressources insuffisantes</span>
|
||||
<?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['laboratoire']; ?>
|
||||
&t=<?php echo $this->_tpl_vars['recherche']['num']; ?>
|
||||
">Construire</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</table>
|
||||
<div class="border_bt"></div>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/footer.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
|
@ -1,23 +1,10 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-19 19:19:52
|
||||
<?php /* Smarty version 2.6.19, created on 2008-05-20 22:08:13
|
||||
compiled from game/footer.tpl */ ?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer">
|
||||
Réalisé par Halo Battle Staff<br />
|
||||
Design by <a href="http://nothing-arts.com" onclick="window.open(this.href); return false;"><ins>nothingarts</ins></a><br />
|
||||
<!-- Site visité 514200 fois depuis sa création<br /> -->
|
||||
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
||||
<input type="hidden" name="cmd" value="_donations">
|
||||
<input type="hidden" name="business" value="admin@halo-battle.s-fr.com">
|
||||
<input type="hidden" name="item_name" value="Halo-Battle Dons">
|
||||
<input type="hidden" name="no_shipping" value="0">
|
||||
<input type="hidden" name="no_note" value="1">
|
||||
<input type="hidden" name="currency_code" value="EUR">
|
||||
<input type="hidden" name="tax" value="0">
|
||||
<input type="hidden" name="lc" value="FR">
|
||||
<input type="hidden" name="bn" value="PP-DonationsBF">
|
||||
<input type="image" src="https://www.paypal.com/fr_FR/FR/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - la solution de paiement en ligne la plus simple et la plus sécurisée !">
|
||||
<img alt="" border="0" src="https://www.paypal.com/fr_FR/i/scr/pixel.gif" width="1" height="1">
|
||||
</form>
|
||||
Actuellement en ligne : <?php echo $this->_tpl_vars['enligne']; ?>
|
||||
joueurs<br />
|
||||
<a href="<?php echo $this->_tpl_vars['link']['accueil']; ?>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-19 00:06:10
|
||||
<?php /* Smarty version 2.6.19, created on 2008-05-20 00:21:13
|
||||
compiled from game/envoyer.tpl */ ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/header.tpl', 'smarty_include_vars' => array()));
|
||||
|
@ -11,7 +11,8 @@ unset($_smarty_tpl_vars);
|
|||
" method="post"><fieldset class="options">
|
||||
<label for="nom">Nom du destinataire :</label><input class="text" type="text" name="nom" value="<?php echo $this->_tpl_vars['destinataire']; ?>
|
||||
" id="nom" />
|
||||
<label for="objet">Objet :</label><input class="text" type="text" name="objet" id="objet" />
|
||||
<label for="objet">Objet :</label><input class="text" type="text" name="objet" value="<?php echo $this->_tpl_vars['objet']; ?>
|
||||
" id="objet" />
|
||||
<label for="message">Texte :</label>
|
||||
<textarea id="message" name="message" cols="40" rows="10"></textarea><br /><br />
|
||||
<input class="submit" type="submit" value="OK" />
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-17 14:52:54
|
||||
<?php /* Smarty version 2.6.19, created on 2008-05-23 01:05:35
|
||||
compiled from game/alliance_adm_chat.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'game/alliance_adm_chat.tpl', 20, false),)), $this); ?>
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'game/alliance_adm_chat.tpl', 20, false),array('modifier', 'escape', 'game/alliance_adm_chat.tpl', 21, false),)), $this); ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/header.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
|
@ -34,7 +34,7 @@ unset($_smarty_tpl_vars);
|
|||
</td>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['message']['timestamp'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y %H:%M:%S") : smarty_modifier_date_format($_tmp, "%d/%m/%y %H:%M:%S")); ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['message']['message']; ?>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['message']['message'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
</td>
|
||||
<td><a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=adm_chat&i=<?php echo $this->_tpl_vars['message']['id']; ?>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-16 22:58:42
|
||||
<?php /* Smarty version 2.6.19, created on 2008-05-23 02:26:31
|
||||
compiled from game/chantierspatial.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'lower', 'game/chantierspatial.tpl', 27, false),)), $this); ?>
|
||||
|
@ -39,7 +39,8 @@ unset($_smarty_tpl_vars);
|
|||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<a class="bulle" href="#">
|
||||
<a class="bulle" href="?p=description&v=<?php echo $this->_tpl_vars['vaisseau']['num']; ?>
|
||||
#menu">
|
||||
<img width="130" height="132" src="images/vaisseaux/<?php echo $this->_tpl_vars['vaisseau']['image']; ?>
|
||||
" alt="Vaisseaux" />
|
||||
<span><?php echo $this->_tpl_vars['vaisseau']['description']; ?>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-16 22:58:07
|
||||
<?php /* Smarty version 2.6.19, created on 2008-05-23 02:27:04
|
||||
compiled from game/batiments.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'lower', 'game/batiments.tpl', 30, false),)), $this); ?>
|
||||
|
@ -34,7 +34,8 @@ unset($_smarty_tpl_vars);
|
|||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<a class="bulle" href="#">
|
||||
<a class="bulle" href="?p=description&b=<?php echo $this->_tpl_vars['batiment']['num']; ?>
|
||||
#menu">
|
||||
<img width="130" height="132" src="images/batiments/<?php echo $this->_tpl_vars['batiment']['image']; ?>
|
||||
" alt="<?php echo $this->_tpl_vars['batiment']['nom']; ?>
|
||||
" />
|
||||
|
@ -82,21 +83,21 @@ unset($_smarty_tpl_vars);
|
|||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
; <?php endif; ?><?php if ($this->_tpl_vars['batiment']['maq_hydrogene'] > 0): ?><?php echo $this->_tpl_vars['batiment']['maq_hydrogene']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
<?php endif; ?>">Ressouces insuffisantes</span>
|
||||
<?php endif; ?>">Ressources insuffisantes</span>
|
||||
<?php elseif ($this->_tpl_vars['batiment']['nec_cristal'] > $this->_tpl_vars['planete']['cristal']): ?><span class="lack" title="manque <?php if ($this->_tpl_vars['batiment']['maq_metal'] > 0): ?><?php echo $this->_tpl_vars['batiment']['maq_metal']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
; <?php endif; ?><?php if ($this->_tpl_vars['batiment']['maq_cristal'] > 0): ?><?php echo $this->_tpl_vars['batiment']['maq_cristal']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
; <?php endif; ?><?php if ($this->_tpl_vars['batiment']['maq_hydrogene'] > 0): ?><?php echo $this->_tpl_vars['batiment']['maq_hydrogene']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
<?php endif; ?>">Ressouces insuffisantes</span>
|
||||
<?php endif; ?>">Ressources insuffisantes</span>
|
||||
<?php elseif ($this->_tpl_vars['batiment']['nec_metal'] > $this->_tpl_vars['planete']['metal']): ?><span class="lack" title="manque <?php if ($this->_tpl_vars['batiment']['maq_metal'] > 0): ?><?php echo $this->_tpl_vars['batiment']['maq_metal']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
; <?php endif; ?><?php if ($this->_tpl_vars['batiment']['maq_cristal'] > 0): ?><?php echo $this->_tpl_vars['batiment']['maq_cristal']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
; <?php endif; ?><?php if ($this->_tpl_vars['batiment']['maq_hydrogene'] > 0): ?><?php echo $this->_tpl_vars['batiment']['maq_hydrogene']; ?>
|
||||
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
<?php endif; ?>">Ressouces insuffisantes</span>
|
||||
<?php endif; ?>">Ressources insuffisantes</span>
|
||||
<?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
||||
&c=<?php echo $this->_tpl_vars['batiment']['num']; ?>
|
||||
">Construire</a>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-16 22:59:00
|
||||
<?php /* Smarty version 2.6.19, created on 2008-05-23 01:13:38
|
||||
compiled from game/options.tpl */ ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/header.tpl', 'smarty_include_vars' => array()));
|
||||
|
@ -20,7 +20,8 @@ unset($_smarty_tpl_vars);
|
|||
&chg=mail" method="post"><fieldset class="options">
|
||||
<label>Adresse actuelle :</label><p style="text-align: center;"><?php echo $this->_tpl_vars['mail']; ?>
|
||||
</p>
|
||||
<label for="mail">Nouveau mail :</label><input class="text" type="text" id="mail" name="mail" /><br /><br />
|
||||
<label for="mail">Nouveau mail :</label><input class="text" type="text" id="mail" name="mail" />
|
||||
<label for="mdp_mail">Mot de passe actuel :</label><input class="text" type="password" id="mdp_mail" name="mdp_mail" /><br /><br />
|
||||
<b>L'adresse électronique sera modifiée une fois validée depuis votre nouvelle adresse.</b><br /><br />
|
||||
<input class="submit" type="submit" value="OK" />
|
||||
</fieldset></form>
|
||||
|
|
|
@ -0,0 +1,99 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-23 02:27:35
|
||||
compiled from game/defenses.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'lower', 'game/defenses.tpl', 27, false),)), $this); ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/header.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<div class="border_top"></div>
|
||||
<h2>File d'attente</h2>
|
||||
<div class="file">
|
||||
<?php $_from = $this->_tpl_vars['file']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['fvais']):
|
||||
?>
|
||||
<?php if ($this->_tpl_vars['key'] == 0): ?><span><strong>Prochain véhicule</strong> : <em id="resten"></em><script type="text/javascript">reste(<?php echo $this->_tpl_vars['fvais']['2']; ?>
|
||||
,'resten', true);</script></span><?php endif; ?>
|
||||
<span><?php echo $this->_tpl_vars['fvais']['1']; ?>
|
||||
<?php echo $this->_tpl_vars['fvais']['3']; ?>
|
||||
- <em id="reste<?php echo $this->_tpl_vars['key']; ?>
|
||||
"></em><script type="text/javascript">reste(<?php echo $this->_tpl_vars['fvais']['4']; ?>
|
||||
,'reste<?php echo $this->_tpl_vars['key']; ?>
|
||||
', <?php if ($this->_tpl_vars['key'] == 0): ?>true<?php else: ?>false<?php endif; ?>);</script> - <a href="<?php echo $this->_tpl_vars['menu']['defenses']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['fvais']['0']; ?>
|
||||
">Annuler un</a> - <a href="<?php echo $this->_tpl_vars['menu']['defenses']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['fvais']['0']; ?>
|
||||
&n=<?php echo $this->_tpl_vars['fvais']['1']; ?>
|
||||
">Annuler tous</a></span>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php if ($this->_tpl_vars['Vchaine']): ?><span>Aucun véhicule dans la file d'attente</span><?php endif; ?>
|
||||
<br />
|
||||
</div>
|
||||
<h3><a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
||||
&q=chantierterrestre">Arbre des technologies</a></h3><br />
|
||||
<h2>Défenses</h2>
|
||||
<table class="construction">
|
||||
<?php $_from = $this->_tpl_vars['defenses']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['defense']):
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<a class="bulle" href="?p=description&d=<?php echo $this->_tpl_vars['defense']['num']; ?>
|
||||
#menu">
|
||||
<img width="130" height="132" src="images/terrestre/<?php echo $this->_tpl_vars['defense']['image']; ?>
|
||||
" alt="Image" />
|
||||
<span><?php echo $this->_tpl_vars['defense']['description']; ?>
|
||||
</span>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<strong><?php echo $this->_tpl_vars['defense']['nom']; ?>
|
||||
<?php if ($this->_tpl_vars['defense']['nombre'] > 0): ?> (<?php echo $this->_tpl_vars['defense']['nombre']; ?>
|
||||
defense<?php if ($this->_tpl_vars['defense']['nombre'] > 1): ?>s<?php endif; ?>)<?php endif; ?></strong><br /><br />
|
||||
<?php if ($this->_tpl_vars['defense']['nec_metal'] > 0): ?>
|
||||
<?php if ($this->_tpl_vars['defense']['nec_metal'] > $this->_tpl_vars['planete']['metal']): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['defense']['nec_metalS']; ?>
|
||||
</span><br />
|
||||
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['defense']['nec_metalS']; ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['defense']['nec_cristal'] > 0): ?>
|
||||
<?php if ($this->_tpl_vars['defense']['nec_cristal'] > $this->_tpl_vars['planete']['cristal']): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['defense']['nec_cristalS']; ?>
|
||||
</span><br />
|
||||
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['defense']['nec_cristalS']; ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['defense']['nec_hydrogene'] > 0): ?>
|
||||
<?php if ($this->_tpl_vars['defense']['nec_hydrogene'] > $this->_tpl_vars['planete']['hydrogene']): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['defense']['nec_hydrogeneS']; ?>
|
||||
</span><br />
|
||||
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
||||
: <?php echo $this->_tpl_vars['defense']['nec_hydrogeneS']; ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php endif; ?>
|
||||
Temps de construction : <?php echo $this->_tpl_vars['defense']['temps']; ?>
|
||||
<br /><br />
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['defenses']; ?>
|
||||
&v=<?php echo $this->_tpl_vars['defense']['num']; ?>
|
||||
" method="post">
|
||||
<fieldset>
|
||||
<input class="text" type="text" name="nombre" value="0" />
|
||||
<input class="submit" type="submit" value="OK" />
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</table>
|
||||
<div class="border_bt"></div>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/footer.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
|
@ -1,4 +1,4 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-19 02:05:45
|
||||
<?php /* Smarty version 2.6.19, created on 2008-05-20 00:35:27
|
||||
compiled from game/accueil.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'upper', 'game/accueil.tpl', 18, false),)), $this); ?>
|
||||
|
@ -53,8 +53,8 @@ unset($_smarty_tpl_vars);
|
|||
</a></h4>
|
||||
<h4>Classement: <a href="?p=classement&j=<?php echo $this->_tpl_vars['user']['id']; ?>
|
||||
"><?php echo $this->_tpl_vars['points']; ?>
|
||||
points (<?php echo $this->_tpl_vars['user']['place_points']; ?>
|
||||
<?php if ($this->_tpl_vars['user']['place_points'] == '1'): ?>er<?php else: ?>ème<?php endif; ?>)</a></h4>
|
||||
points (<?php if ($this->_tpl_vars['user']['place_points'] == '0'): ?>non classé<?php else: ?><?php echo $this->_tpl_vars['user']['place_points']; ?>
|
||||
<?php if ($this->_tpl_vars['user']['place_points'] == '1'): ?>er<?php else: ?>ème<?php endif; ?><?php endif; ?>)</a></h4>
|
||||
<?php if ($this->_tpl_vars['alliance']): ?><h4>Alliance: <a href="?p=alliances">[<?php echo ((is_array($_tmp=$this->_tpl_vars['alliance']['tag'])) ? $this->_run_mod_handler('upper', true, $_tmp) : smarty_modifier_upper($_tmp)); ?>
|
||||
] <?php echo $this->_tpl_vars['alliance']['nom']; ?>
|
||||
</a></h4><?php endif; ?>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-18 23:03:52
|
||||
<?php /* Smarty version 2.6.19, created on 2008-05-23 01:21:07
|
||||
compiled from game/ressources.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'game/ressources.tpl', 8, false),array('modifier', 'cat', 'game/ressources.tpl', 8, false),)), $this); ?>
|
||||
|
@ -47,6 +47,12 @@ unset($_smarty_tpl_vars);
|
|||
</select></td><td>0</td><td>0</td><td class="lack">-<?php echo $this->_tpl_vars['ressources_conso']['3']; ?>
|
||||
</td><td><?php echo $this->_tpl_vars['ressources_prod']['4']; ?>
|
||||
</td></tr><?php endif; ?>
|
||||
<tr><td><?php echo $this->_tpl_vars['planete']['silo']; ?>
|
||||
<?php echo $this->_tpl_vars['nombat']['10']; ?>
|
||||
</td><td>-</td><td><?php echo $this->_tpl_vars['ressources_silo']['1']; ?>
|
||||
</td><td><?php echo $this->_tpl_vars['ressources_silo']['1']; ?>
|
||||
</td><td><?php echo $this->_tpl_vars['ressources_silo']['1']; ?>
|
||||
</td><td>0</td></tr>
|
||||
<tr><td><strong>Total</strong></td><td>-</td><td><?php echo $this->_tpl_vars['ressources_prod']['0']; ?>
|
||||
</td><td><?php echo $this->_tpl_vars['ressources_prod']['1']; ?>
|
||||
</td><td><?php if ($this->_tpl_vars['planete']['mine_h']): ?><?php echo $this->_tpl_vars['ressources_toto']['0']; ?>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-16 22:58:59
|
||||
<?php /* Smarty version 2.6.19, created on 2008-05-20 22:09:01
|
||||
compiled from game/carte.tpl */ ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/header.tpl', 'smarty_include_vars' => array()));
|
||||
|
@ -8,7 +8,7 @@ unset($_smarty_tpl_vars);
|
|||
<div class="border_top"></div>
|
||||
<h2>Navigation</h2>
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['carte']; ?>
|
||||
" method="get"><fieldset class="systeme"><label for="galaxie">Galaxie :</label><input type="hidden" value="carte" name="p" /><input class="text" type="text" value="<?php echo $this->_tpl_vars['position']['0']; ?>
|
||||
" method="get"><fieldset class="systeme"><label for="galaxie">Amas :</label><input type="hidden" value="carte" name="p" /><input class="text" type="text" value="<?php echo $this->_tpl_vars['position']['0']; ?>
|
||||
" id="galaxie" name="galaxie" /><label for="systeme">Système solaire :</label><input class="text" type="text" value="<?php echo $this->_tpl_vars['position']['1']; ?>
|
||||
" id="systeme" name="ss" /><div><a href="<?php echo $this->_tpl_vars['menu']['carte']; ?>
|
||||
&galaxie=<?php echo $this->_tpl_vars['position']['4']; ?>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-17 14:24:26
|
||||
<?php /* Smarty version 2.6.19, created on 2008-05-23 01:02:05
|
||||
compiled from game/alliance_liste.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'game/alliance_liste.tpl', 19, false),)), $this); ?>
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'game/alliance_liste.tpl', 20, false),)), $this); ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/header.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
|
@ -14,7 +14,8 @@ unset($_smarty_tpl_vars);
|
|||
<tr>
|
||||
<th>Pseudo</th>
|
||||
<th>Race</th>
|
||||
<th>Dernière connexion </th>
|
||||
<th>Dernière connexion</th>
|
||||
<th>Points</th>
|
||||
<th>Grade</th>
|
||||
<th>Mp</th>
|
||||
</tr>
|
||||
|
@ -30,6 +31,9 @@ unset($_smarty_tpl_vars);
|
|||
</td>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['membre']['last_visite'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y %H:%M:%S") : smarty_modifier_date_format($_tmp, "%d/%m/%y %H:%M:%S")); ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['membre']['points']; ?>
|
||||
(<?php echo $this->_tpl_vars['membre']['place_points']; ?>
|
||||
)</td>
|
||||
<td><?php echo $this->_tpl_vars['membre']['id_grade_alliance']; ?>
|
||||
</td>
|
||||
<td><a href="?p=envoyer&d=<?php echo $this->_tpl_vars['membre']['pseudo']; ?>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-17 18:51:48
|
||||
<?php /* Smarty version 2.6.19, created on 2008-05-23 00:59:16
|
||||
compiled from game/alliance_accueil.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'upper', 'game/alliance_accueil.tpl', 3, false),array('modifier', 'capitalize', 'game/alliance_accueil.tpl', 3, false),array('modifier', 'nl2br', 'game/alliance_accueil.tpl', 34, false),array('modifier', 'date_format', 'game/alliance_accueil.tpl', 57, false),)), $this); ?>
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'upper', 'game/alliance_accueil.tpl', 3, false),array('modifier', 'capitalize', 'game/alliance_accueil.tpl', 3, false),array('modifier', 'escape', 'game/alliance_accueil.tpl', 11, false),array('modifier', 'nl2br', 'game/alliance_accueil.tpl', 34, false),array('modifier', 'date_format', 'game/alliance_accueil.tpl', 57, false),)), $this); ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/header.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
|
@ -19,8 +19,8 @@ unset($_smarty_tpl_vars);
|
|||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right; vertical-align: middle;"><strong>Nom : </strong></td>
|
||||
<td style="width: 70%;"><?php echo $this->_tpl_vars['alliance']['nom']; ?>
|
||||
(<?php echo $this->_tpl_vars['alliance']['tag']; ?>
|
||||
<td style="width: 70%;"><?php echo ((is_array($_tmp=$this->_tpl_vars['alliance']['nom'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
(<?php echo ((is_array($_tmp=$this->_tpl_vars['alliance']['tag'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -31,7 +31,7 @@ unset($_smarty_tpl_vars);
|
|||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right;"><strong>Votre grade :</strong></td>
|
||||
<td><?php if ($this->_tpl_vars['access']['fondateur']): ?>Fondateur<?php else: ?><?php echo $this->_tpl_vars['grade']['nom']; ?>
|
||||
<td><?php if ($this->_tpl_vars['access']['fondateur']): ?>Fondateur<?php else: ?><?php echo ((is_array($_tmp=$this->_tpl_vars['grade']['nom'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
<?php endif; ?><br /><?php if ($this->_tpl_vars['access']['chat']): ?> <a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=adm_chat">Modérer le chat</a> |<?php endif; ?> <?php if ($this->_tpl_vars['access']['membre']): ?> <a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=adm_membres">Gestion des membres</a> |<?php endif; ?> <?php if ($this->_tpl_vars['access']['ecriture']): ?> <a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
|
@ -51,7 +51,7 @@ unset($_smarty_tpl_vars);
|
|||
</tbody>
|
||||
</table>
|
||||
<h2>Présentation</h2>
|
||||
<?php echo ((is_array($_tmp=$this->_tpl_vars['alliance']['presentation'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
|
||||
<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['alliance']['presentation'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
|
||||
|
||||
<table style="width: 100%;">
|
||||
<tbody>
|
||||
|
@ -64,7 +64,7 @@ unset($_smarty_tpl_vars);
|
|||
</tbody>
|
||||
</table>
|
||||
<h2>Texte interne</h2>
|
||||
<?php echo ((is_array($_tmp=$this->_tpl_vars['alliance']['texte_interne'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
|
||||
<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['alliance']['texte_interne'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
|
||||
|
||||
<h2>Chat</h2>
|
||||
<div style="height: 150px; overflow: auto; width: 99%;" id="chat">
|
||||
|
@ -81,7 +81,7 @@ unset($_smarty_tpl_vars);
|
|||
?>
|
||||
<tr>
|
||||
<td>[<?php echo $this->_tpl_vars['message']['emetteur']; ?>
|
||||
] <i><?php echo ((is_array($_tmp=$this->_tpl_vars['message']['timestamp'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y %H:%M:%S") : smarty_modifier_date_format($_tmp, "%d/%m/%y %H:%M:%S")); ?>
|
||||
] <i><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['message']['timestamp'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y %H:%M:%S") : smarty_modifier_date_format($_tmp, "%d/%m/%y %H:%M:%S")))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
</i></td>
|
||||
<td><?php echo $this->_tpl_vars['message']['message']; ?>
|
||||
</td>
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-16 22:59:08
|
||||
<?php /* Smarty version 2.6.19, created on 2008-05-23 00:21:44
|
||||
compiled from game/bugs.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'game/bugs.tpl', 6, false),)), $this); ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/header.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
|
@ -13,7 +15,7 @@ unset($_smarty_tpl_vars);
|
|||
<dl>
|
||||
<dt><input class="button2" type="button" onclick="hide(this); return false;" /><?php echo $this->_tpl_vars['bug']['0']; ?>
|
||||
, le <?php echo $this->_tpl_vars['bug']['1']; ?>
|
||||
sur <?php echo $this->_tpl_vars['bug']['2']; ?>
|
||||
sur <?php echo ((is_array($_tmp=$this->_tpl_vars['bug']['2'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
</dt><dd><?php echo $this->_tpl_vars['bug']['3']; ?>
|
||||
<?php if ($this->_tpl_vars['auth_level'] > 2): ?><div style="text-align: right"><a href="<?php echo $this->_tpl_vars['menu']['bugs']; ?>
|
||||
&a=del&i=<?php echo $this->_tpl_vars['bug']['4']; ?>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-17 16:18:47
|
||||
<?php /* Smarty version 2.6.19, created on 2008-05-23 01:04:47
|
||||
compiled from game/alliance_adm_grades.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'nl2br', 'game/alliance_adm_grades.tpl', 23, false),)), $this); ?>
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'game/alliance_adm_grades.tpl', 22, false),array('modifier', 'nl2br', 'game/alliance_adm_grades.tpl', 23, false),)), $this); ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/header.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
|
@ -35,9 +35,9 @@ unset($_smarty_tpl_vars);
|
|||
<tr>
|
||||
<td><a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=adm_grades&i=<?php echo $this->_tpl_vars['grade']['id']; ?>
|
||||
"><?php echo $this->_tpl_vars['grade']['nom']; ?>
|
||||
"><?php echo ((is_array($_tmp=$this->_tpl_vars['grade']['nom'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
</a></td>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['grade']['description'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
|
||||
<td><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['grade']['description'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['grade']['gest_ecriture']): ?>Oui<?php else: ?>Non<?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['grade']['gest_chat']): ?>Oui<?php else: ?>Non<?php endif; ?></td>
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-19 18:07:18
|
||||
<?php /* Smarty version 2.6.19, created on 2008-05-22 23:30:07
|
||||
compiled from game/header.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'game/header.tpl', 45, false),)), $this); ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
|
||||
|
@ -63,6 +65,11 @@
|
|||
">Vérifier planètes</a><?php endif; ?> <?php if ($this->_tpl_vars['pagea'] == 'vjoueurs'): ?><span>Vérifier joueurs</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menua']['vjoueurs']; ?>
|
||||
">Vérifier joueurs</a><?php endif; ?> <?php if ($this->_tpl_vars['pagea'] == 'valliances'): ?><span>Vérifier alliances</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menua']['valliances']; ?>
|
||||
">Vérifier alliances</a><?php endif; ?><div class="space"></div>
|
||||
<?php if ($this->_tpl_vars['pagea'] == 'sancj'): ?><span>Sanctions joueur</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menua']['sancj']; ?>
|
||||
">Sanctions joueur</a><?php endif; ?> <?php if ($this->_tpl_vars['pagea'] == 'sancp'): ?><span>Sanctions planète</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menua']['sancp']; ?>
|
||||
">Sanctions planète</a><?php endif; ?> <?php if ($this->_tpl_vars['pagea'] == 'controle'): ?><span>Prendre le contrôle</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menua']['controle']; ?>
|
||||
">Prendre le contrôle</a><?php endif; ?> <?php if ($this->_tpl_vars['pagea'] == 'sjoueurs'): ?><span>Supprimer joueurs</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menua']['sjoueurs']; ?>
|
||||
">Supprimer joueurs</a><?php endif; ?><div class="space"></div>
|
||||
<?php else: ?> <?php if ($this->_tpl_vars['page'] == 'accueil'): ?><span>Accueil</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['accueil']; ?>
|
||||
">Accueil</a><?php endif; ?> <?php if ($this->_tpl_vars['page'] == 'batiments'): ?><span>Batiments</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
||||
">Batiments</a><?php endif; ?> <?php if ($this->_tpl_vars['page'] == 'caserne'): ?><span>Caserne</span><?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['caserne']; ?>
|
||||
|
@ -99,7 +106,7 @@
|
|||
" method="post"><fieldset><select onchange="this.form.submit();" name="Cplanete"><?php $_from = $this->_tpl_vars['planetes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['plan']):
|
||||
?><option <?php if ($this->_tpl_vars['plan']['id'] == $this->_tpl_vars['planete']['id']): ?>selected="selected" <?php endif; ?>value="<?php echo $this->_tpl_vars['plan']['id']; ?>
|
||||
"><?php echo $this->_tpl_vars['plan']['nom_planete']; ?>
|
||||
"><?php echo ((is_array($_tmp=$this->_tpl_vars['plan']['nom_planete'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
|
||||
[<?php echo $this->_tpl_vars['plan']['galaxie']; ?>
|
||||
:<?php echo $this->_tpl_vars['plan']['ss']; ?>
|
||||
:<?php echo $this->_tpl_vars['plan']['position']; ?>
|
||||
|
@ -119,6 +126,6 @@
|
|||
<div class="border_bt"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div><?php echo $this->_tpl_vars['pub']; ?>
|
||||
</div>
|
||||
<?php if ($this->_tpl_vars['page'] != 'admin'): ?><div><?php echo $this->_tpl_vars['pub']; ?>
|
||||
</div><?php endif; ?>
|
||||
<div id="corps">
|
|
@ -1,5 +1,7 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-16 22:58:55
|
||||
<?php /* Smarty version 2.6.19, created on 2008-05-23 01:11:54
|
||||
compiled from game/flotte1.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'game/flotte1.tpl', 11, false),)), $this); ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/header.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
|
@ -18,17 +20,17 @@ unset($_smarty_tpl_vars);
|
|||
<tr>
|
||||
<td><a href="<?php echo $this->_tpl_vars['menu']['flotte']; ?>
|
||||
&n=<?php echo $this->_tpl_vars['flotteEC']['0']; ?>
|
||||
"><?php echo $this->_tpl_vars['flotteEC']['1']; ?>
|
||||
"><?php echo ((is_array($_tmp=$this->_tpl_vars['flotteEC']['1'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
</a></td>
|
||||
<td><?php echo $this->_tpl_vars['flotteEC']['2']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['flotteEC']['3']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['flotteEC']['4']; ?>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['flotteEC']['4'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['flotteEC']['5']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['flotteEC']['6']; ?>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['flotteEC']['6'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['flotteEC']['7']; ?>
|
||||
</td>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php /* Smarty version 2.6.19, created on 2008-05-19 01:51:56
|
||||
<?php /* Smarty version 2.6.19, created on 2008-05-20 00:01:48
|
||||
compiled from game/messagerie.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'nl2br', 'game/messagerie.tpl', 8, false),)), $this); ?>
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'nl2br', 'game/messagerie.tpl', 9, false),)), $this); ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/header.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
|
@ -9,6 +9,8 @@ unset($_smarty_tpl_vars);
|
|||
?>
|
||||
<div class="border_top"></div>
|
||||
<h2>Messages</h2>
|
||||
<?php echo $this->_tpl_vars['avertissement']; ?>
|
||||
|
||||
<h3><a href="<?php echo $this->_tpl_vars['menu']['envoie']; ?>
|
||||
">Ecrire un message</a></h3>
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['messagerie']; ?>
|
||||
|
|
|
@ -94,7 +94,7 @@ if ($metal >= $cap) {
|
|||
}
|
||||
else {
|
||||
if ($mine_m <= 0 || $centrale_s <= 0) $prod_met = 0.011*$temps_ecoule;
|
||||
else $prod_met = ((ceil(pow(1.1,$mine_m)*35*$mine_m)/3600)*$temps_ecoule)*$coeff_mine_m;
|
||||
else $prod_met = ((ceil(pow(1.1,$mine_m)*35*$mine_m)/3600)*$temps_ecoule)*$coeff_mine_m*1.5;
|
||||
}
|
||||
|
||||
$alert_cristal = false;
|
||||
|
@ -105,7 +105,7 @@ if ($cristal >= $cap) {
|
|||
}
|
||||
else {
|
||||
if ($mine_c <= 0 || $centrale_s <= 0) $prod_cri = 0.0055*$temps_ecoule;
|
||||
else $prod_cri = ((ceil(pow(1.1,$mine_c)*23*$mine_c)/3600)*$temps_ecoule)*$coeff_mine_c;
|
||||
else $prod_cri = ((ceil(pow(1.1,$mine_c)*23*$mine_c)/3600)*$temps_ecoule)*$coeff_mine_c*1.5;
|
||||
}
|
||||
|
||||
$alert_hydrogene = false;
|
||||
|
@ -116,7 +116,7 @@ if ($hydrogene >= $cap) {
|
|||
}
|
||||
else {
|
||||
if ($mine_h < 0) $prod_hy = 0;
|
||||
else $prod_hy = (((ceil(pow(1.1,$mine_h)*14*($mine_h+0.7))/3600)*$temps_ecoule) - $conso_h) * $coeff_mine_h;
|
||||
else $prod_hy = (((ceil(pow(1.1,$mine_h)*14*($mine_h+0.7))/3600)*$temps_ecoule) - $conso_h) * $coeff_mine_h*1.5;
|
||||
if ($mine_h == 0) $prod_hy=0;
|
||||
if ($prod_hy < 0) $prod_hy = 0;
|
||||
}
|
||||
|
|
|
@ -1,67 +0,0 @@
|
|||
<?php
|
||||
//Vérification préalable anti-hacking
|
||||
if(!defined('INDEX')) { header('Location: ./'); exit; }
|
||||
|
||||
|
||||
// Vérification que la session soit bien définit et qu'elle ne soit pas vide
|
||||
if (!isset($_SESSION) || $_SESSION['id'] == '' || $_SESSION['auth_level'] == '' || $_SESSION['galaxy'] == '' || $_SESSION['ss'] == '' || $_SESSION['pos'] == '') {
|
||||
session_destroy();
|
||||
unset($_SESSION);
|
||||
header('Location: index.php?erreur=1');
|
||||
print '<script type="text/javascript">top.location.href="index.php?erreur=1";</script>';
|
||||
exit;
|
||||
}
|
||||
|
||||
// Vérification que l'utilisateur se soit bien identifié
|
||||
if (!isset($_SESSION['authConnexion']) || !$_SESSION['authConnexion']) {
|
||||
session_destroy();
|
||||
unset($_SESSION);
|
||||
header('Location: index.php?erreur=1');
|
||||
print '<script type="text/javascript">top.location.href="index.php?erreur=1";</script>';
|
||||
exit;
|
||||
}
|
||||
|
||||
// Vérification que la session n'ait pas été volée
|
||||
if (!isset($_SESSION) || $_SESSION['ip'] == '' || $_SESSION['ip'] != $_SERVER["REMOTE_ADDR"] || $_SESSION['realip'] == '' || $_SESSION['realip'] != realip()) {
|
||||
session_destroy();
|
||||
unset($_SESSION);
|
||||
header('Location: index.php?erreur=1');
|
||||
print '<script type="text/javascript">top.location.href="index.php?erreur=1";</script>';
|
||||
exit;
|
||||
}
|
||||
|
||||
// Vérification que le serveur ne soit pas en fase de maintenance
|
||||
if ($_SESSION['auth_level'] < $fermerServeur_auth && ($fermerServeur_timeS < time() || empty($fermerServeur_timeS))) {
|
||||
session_destroy();
|
||||
unset($_SESSION);
|
||||
header('Location: index.php?erreur=8');
|
||||
print '<script type="text/javascript">top.location.href="index.php?erreur=8";</script>';
|
||||
exit;
|
||||
}
|
||||
|
||||
// Déconnection automatique au bout de 20 min d'inactivité
|
||||
if (!isset($_SESSION) || $_SESSION['timestamp'] + 1200 < time()) {
|
||||
session_destroy();
|
||||
unset($_SESSION);
|
||||
header('Location: index.php?erreur=5');
|
||||
print '<script type="text/javascript">top.location.href="index.php?erreur=5";</script>';
|
||||
exit;
|
||||
}
|
||||
|
||||
/*// Fait patienter l'utilisateur s'il a fait une réquête il y a moins de deux secondes
|
||||
if (!isset($_SESSION['microtimestamp']) || time()+microtime() - $_SESSION['microtimestamp'] < 1.5) {
|
||||
usleep((1.5-(time()+microtime() - $_SESSION['microtimestamp']))*1000000);
|
||||
}*/
|
||||
|
||||
// Vérification que la requête proviennent du serveur
|
||||
if (isset($_SERVER['HTTP_REFERER']) && !ereg(time().'http://'.$_SERVER["HTTP_HOST"].'/', time().$_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER'] != '') {
|
||||
setHistorique('Requête depuis une adresse non officiel', 'Par mesure de sécurité, la requête de '.$_SESSION['id'].' a été annulée car l\'\'adresse de provenance ne correspond pas à celle du site : '.$_SERVER['HTTP_REFERER']);
|
||||
session_destroy();
|
||||
header('Location: index.php?erreur=4');
|
||||
print '<script type="text/javascript">top.location.href="index.php?erreur=4";</script>';
|
||||
exit;
|
||||
}
|
||||
|
||||
$_SESSION['timestamp'] = time();
|
||||
$_SESSION['microtimestamp'] = time()+microtime();
|
||||
?>
|
37
index.php
37
index.php
|
@ -5,7 +5,7 @@ require_once(_FCORE."../tables.php");
|
|||
|
||||
//On vérifie que le serveur ne soit pas fermé
|
||||
require('includes/fermerServeur.php');
|
||||
$template->assign('url_serveur', $config['serv_adresse']);
|
||||
$template->assign('url_serveur', $_SERVER['HTTP_HOST']);
|
||||
|
||||
//On vérifie si le client est connecté ou non sur le site
|
||||
if (isset($sess) && isset($sess->values['connected']) && $sess->values['connected'] && !empty($sess->values['id']) && isset($sess->values['auth_level']) && !empty($sess->values['idPlan'])) {
|
||||
|
@ -20,29 +20,32 @@ if (isset($sess) && isset($sess->values['connected']) && $sess->values['connecte
|
|||
$template->assign('infos',$infos);
|
||||
$template->assign('nbinfos',$chapeau->num_rows-1);
|
||||
|
||||
//Affichage de la version du jeu
|
||||
$template->assign('version', VERSION);
|
||||
|
||||
//Affichage du nombre d'inscrits par race
|
||||
$chapeau->unique_query("SELECT * FROM `$table_user` WHERE `race` = 'covenant'");
|
||||
$nbcovie = $chapeau->num_rows;
|
||||
$chapeau->unique_query("SELECT * FROM `$table_user` WHERE `race` = 'humain'");
|
||||
$nbhumain = $chapeau->num_rows;
|
||||
$template->assign('count',array('humains' => $nbhumain, 'covenants' => $nbcovie, 'serveurs' => 'cette'));
|
||||
|
||||
//Récupération d'informations au sujet de l'utilisateur
|
||||
$id_user = $sess->values['id'];
|
||||
$queryUser = $chapeau->unique_query("SELECT * FROM `$table_user` WHERE `id` = '$id_user'");
|
||||
$race = $queryUser['race'];
|
||||
$template->assign('auth_level',$sess->values['auth_level']);
|
||||
$template->assign('race',$queryUser['race']);
|
||||
//$template->assign('race','covenant');
|
||||
$template->assign('user',$queryUser);
|
||||
$template->assign('auth_level', $sess->values['auth_level']);
|
||||
$template->assign('race', $queryUser['race']);
|
||||
$template->assign('user', $queryUser);
|
||||
$tpsdejeu = time() - $queryUser['last_visite'];
|
||||
$heur = floor($tpsdejeu/3600);
|
||||
$min = floor(($tpsdejeu - $heur*3600)/60);
|
||||
if ($heur > 0) $min = $heur.' h '.$min;
|
||||
$template->assign('tpsdejeu',$min.' min');
|
||||
$template->assign('tpsdejeu', $min.' min');
|
||||
|
||||
if (isset($_POST['Cplanete'])) {
|
||||
$idPlanTest = $_POST['Cplanete'];
|
||||
$chapeau->escape($idPlanTest);
|
||||
if ($chapeau->unique_query("SELECT * FROM `$table_planete` WHERE `id_user` = '$id_user' AND `id` = '$idPlanTest'")) {
|
||||
$sess->values['idPlan'] = $idPlanTest;
|
||||
$sess->put();
|
||||
|
@ -71,6 +74,7 @@ if (isset($sess) && isset($sess->values['connected']) && $sess->values['connecte
|
|||
$queryPlanete["cristalS"] = separerNombres($queryPlanete["cristal"]);
|
||||
$queryPlanete["hydrogeneS"] = separerNombres($queryPlanete["hydrogene"]);
|
||||
$queryPlanete["energieS"] = separerNombres($queryPlanete["energie"]);
|
||||
$queryPlanete["nom_planete"] = htmlspecialchars($queryPlanete["nom_planete"]);
|
||||
|
||||
$template->assign('planete',$queryPlanete);
|
||||
$template->assign('planetes',$queryPlanetes);
|
||||
|
@ -140,6 +144,9 @@ if (isset($sess) && isset($sess->values['connected']) && $sess->values['connecte
|
|||
case 'rename':
|
||||
include('game/rename.php');
|
||||
break;
|
||||
case 'description':
|
||||
include('game/description.php');
|
||||
break;
|
||||
case 'batiments':
|
||||
include('game/batiments.php');
|
||||
break;
|
||||
|
@ -212,23 +219,28 @@ else {
|
|||
$template->assign('count',array('humains' => $chapeau->num_rows, 'covenants' => $nbcovie, 'serveurs' => '1'));
|
||||
|
||||
if (isset($_POST['HB_login']) && isset($_POST['HB_password'])) {
|
||||
if (empty($_POST['HB_login']) || empty($_POST['HB_password']) || $_POST['HB_login'] != mysql_real_escape_string($_POST['HB_login']) || $_POST['HB_password'] != mysql_real_escape_string($_POST['HB_password'])) {
|
||||
file_log('identification : login = '.$_POST['HB_login'].' ; password = '.$_POST['HB_password'], 1);
|
||||
$HB_login = $_POST['HB_login'];
|
||||
$HB_password = $_POST['HB_password'];
|
||||
$chapeau->escape($HB_login);
|
||||
$chapeau->escape($HB_password);
|
||||
if (empty($HB_login) || empty($HB_password)) {
|
||||
$template->assign('message','Nom d\'utilisateur ou mot de passe incorrect.');
|
||||
$template->assign('couleur','red');
|
||||
$template->display('cms/erreur.tpl');
|
||||
exit;
|
||||
}
|
||||
else {
|
||||
$chapeau->query("SELECT * FROM `$table_sessions` WHERE `active` = '1' AND `var_session` != '';");
|
||||
/*if ($chapeau->num_rows > 750) {
|
||||
//Limiter le nombre de personnes en ligne simutanément
|
||||
/*$chapeau->query("SELECT * FROM `$table_sessions` WHERE `active` = '1' AND `var_session` != '';");
|
||||
if ($chapeau->num_rows > 750) {
|
||||
$template->assign('message','Il y a actuellement trop de monde connecté sur Halo-Battle. Pour permettre aux joueurs une navigation convenable, nous vous remercions de revenir plus tard.<br /><br /><i>Un système de file d\'attente sera bientôt mis en place pour permettre d\'avoir accès au jeu dans un délais raisonable.</i>');
|
||||
$template->assign('couleur','red');
|
||||
$template->display('cms/erreur.tpl');
|
||||
exit;
|
||||
}*/
|
||||
$HB_login = mysql_real_escape_string($_POST['HB_login']);
|
||||
$HB_password = sha1(strtoupper($HB_login).':'.mysql_real_escape_string($_POST['HB_password']));
|
||||
$resultat = $chapeau->unique_query("SELECT * FROM `$table_user` WHERE `pseudo` = '$HB_login' AND `mdp` = '$HB_password'");
|
||||
$HB_password = sha1(strtoupper($HB_login).':'.$HB_password);
|
||||
$resultat = $chapeau->unique_query("SELECT * FROM `$table_user` WHERE `pseudo` = '$HB_login' AND `mdp` = '$HB_password';");
|
||||
if ($resultat) {
|
||||
$id = $resultat['id'];
|
||||
$time = time();
|
||||
|
@ -248,6 +260,7 @@ else {
|
|||
$chapeau->query("UPDATE `$table_planete` SET `timestamp` = '".time()."' WHERE `id_user` = '$id';");
|
||||
}
|
||||
|
||||
$chapeau->query("INSERT INTO `$table_registre_identification` (`id_util`,`ip`) VALUES ('".$id."','".$ip."')");
|
||||
$sess->values['connected'] = TRUE;
|
||||
$sess->values['id'] = $resultat['id'];
|
||||
$id_user = $sess->values['id'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue