forked from halo-battle/game
Version 1.7b
This commit is contained in:
parent
58928889ed
commit
8a8280758b
716 changed files with 4361 additions and 33524 deletions
|
|
@ -1,56 +0,0 @@
|
|||
<?php
|
||||
if(!defined('INDEX')) { header('Location: ../'); exit; }
|
||||
$page = 'arbre';
|
||||
$titre = 'Arbre des technologies';
|
||||
|
||||
if (empty($_GET['q'])) $_GET['q'] = '';
|
||||
$template->assign('defaut',$_GET['q']);
|
||||
|
||||
$TEMP_batiments = array();
|
||||
$nb=count($batiment);
|
||||
for ($id=0 ; $id<$nb ; $id++) {
|
||||
if (!empty($batiment[$id])) $TEMP_batiments[] = array(
|
||||
'id' => $id,
|
||||
'nom' => $batiment[$id],
|
||||
'niveau' => $queryPlanete[$batimentVAR[$id]],
|
||||
'etat' => readDeblok($batimentTECH[$id], $queryPlanete, $queryUser)
|
||||
);
|
||||
}
|
||||
$template->assign('batiments',$TEMP_batiments);
|
||||
|
||||
$TEMP_technologies = array();
|
||||
$nb=count($technolo);
|
||||
for ($id=0 ; $id<$nb ; $id++) {
|
||||
if (!empty($technolo[$id])) $TEMP_technologies[] = array(
|
||||
'id' => $id,
|
||||
'nom' => $technolo[$id],
|
||||
'niveau' => $queryUser[$technoloVAR[$id]],
|
||||
'etat' => readDeblok($technoloTECH[$id], $queryPlanete, $queryUser)
|
||||
);
|
||||
}
|
||||
$template->assign('technologies',$TEMP_technologies);
|
||||
|
||||
$TEMP_terrestre = array();
|
||||
$nb=count($nomterrn);
|
||||
for ($id=0 ; $id<$nb ; $id++) {
|
||||
if (!empty($nomterrn[$id])) $TEMP_terrestre[] = array(
|
||||
'id' => $id,
|
||||
'nom' => $nomterrn[$id],
|
||||
'niveau' => $queryPlanete[$nomterrnVAR[$id]],
|
||||
'etat' => readDeblok($nomterrnTECH[$id], $queryPlanete, $queryUser)
|
||||
);
|
||||
}
|
||||
$template->assign('unites',$TEMP_terrestre);
|
||||
|
||||
$TEMP_vaisseaux = array();
|
||||
$nb=count($nomvaisn);
|
||||
for ($id=0 ; $id<$nb ; $id++) {
|
||||
if (!empty($nomvaisn[$id])) $TEMP_vaisseaux[] = array(
|
||||
'id' => $id,
|
||||
'nom' => $nomvaisn[$id],
|
||||
'niveau' => $queryPlanete[$nomvaisnVAR[$id]],
|
||||
'etat' => readDeblok($nomvaisnTECH[$id], $queryPlanete, $queryUser)
|
||||
);
|
||||
}
|
||||
$template->assign('vaisseaux',$TEMP_vaisseaux);
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue