game/onyx2/modules/templates/compile/%%69^69D^69D54D9C%%accueil.tpl.php

191 lines
16 KiB
PHP

<?php /* Smarty version 2.6.22, created on 2009-11-01 01:32:07
compiled from game/accueil.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'game/accueil.tpl', 5, false),array('modifier', 'escape', 'game/accueil.tpl', 8, false),array('modifier', 'separerNombres', 'game/accueil.tpl', 21, false),array('modifier', 'upper', 'game/accueil.tpl', 33, false),array('modifier', 'ucfirst', 'game/accueil.tpl', 46, 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);
?>
<h2>&Eacute;vénements</h2>
<?php if ($this->_tpl_vars['multi']): ?><strong style="color: #FF0000;"><a href="?p=avertmulti">Multicompte :</a> évitez toute interaction avec <?php $_from = $this->_tpl_vars['multi']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['cmpt']):
?><?php if ($this->_tpl_vars['cmpt']['id_util'] != $this->_tpl_vars['planete']->id_user): ?><?php if ($this->_tpl_vars['key'] > 0): ?>, <?php endif; ?><?php echo $this->_tpl_vars['cmpt']['pseudo']; ?>
<?php endif; ?><?php endforeach; endif; unset($_from); ?> durant cette session.</strong><br /><?php endif; ?>
<?php if ($this->_tpl_vars['planete']->mv < 0): ?><strong style="color: #FF0000;">Une demande de suppression de votre compte est en cours. Il sera supprimé sous 48h.<br />Si vous n'avez pas demandé la suppression de votre compte, <a href="<?php echo $this->_tpl_vars['link']['operateur']; ?>
">contactez un opérateur</a> au plus vite.</strong><br /><?php endif; ?>
<em>Heure du serveur : <?php echo ((is_array($_tmp=time())) ? $this->_run_mod_handler('date_format', true, $_tmp, "/%a %d %b %Y/%H%M %S") : smarty_modifier_date_format($_tmp, "/%a %d %b %Y/%H%M %S")); ?>
</em>
<?php $_from = $this->_tpl_vars['radar']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['flottes']):
?>
<?php $_from = $this->_tpl_vars['flottes']['0']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['flotte']):
?>
<?php if ($this->_tpl_vars['flotte']['mission'] == 1): ?><h4 class="attaque">attaque: Une flotte ennemie en provenance de <?php echo ((is_array($_tmp=$this->_tpl_vars['flotte']['nom_planete'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
[<?php echo $this->_tpl_vars['flotte']['start_galaxie']; ?>
:<?php echo $this->_tpl_vars['flotte']['start_ss']; ?>
:<?php echo $this->_tpl_vars['flotte']['start_position']; ?>
] atteint la planète <?php echo ((is_array($_tmp=$this->_tpl_vars['flottes']['1']['0'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
[<?php echo $this->_tpl_vars['flottes']['1']['1']; ?>
:<?php echo $this->_tpl_vars['flottes']['1']['2']; ?>
:<?php echo $this->_tpl_vars['flottes']['1']['3']; ?>
] dans <span id="reste<?php echo $this->_tpl_vars['key']; ?>
"><?php echo $this->_tpl_vars['flotte']['arrive_time']; ?>
</span><script type="text/javascript">reste(<?php echo $this->_tpl_vars['flotte']['arrive_time']; ?>
,'reste<?php echo $this->_tpl_vars['key']; ?>
', true);</script></h4>
<?php elseif ($this->_tpl_vars['flotte']['mission'] == 2): ?><h4 class="attaque">transport: Une flotte en provenance de <?php echo ((is_array($_tmp=$this->_tpl_vars['flotte']['nom_planete'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
[<?php echo $this->_tpl_vars['flotte']['start_galaxie']; ?>
:<?php echo $this->_tpl_vars['flotte']['start_ss']; ?>
:<?php echo $this->_tpl_vars['flotte']['start_position']; ?>
] atteint la planète <?php echo ((is_array($_tmp=$this->_tpl_vars['flottes']['1']['0'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
[<?php echo $this->_tpl_vars['flottes']['1']['1']; ?>
:<?php echo $this->_tpl_vars['flottes']['1']['2']; ?>
:<?php echo $this->_tpl_vars['flottes']['1']['3']; ?>
] dans <span id="reste<?php echo $this->_tpl_vars['key']; ?>
"><?php echo $this->_tpl_vars['flotte']['arrive_time']; ?>
</span><script type="text/javascript">reste(<?php echo $this->_tpl_vars['flotte']['arrive_time']; ?>
,'reste<?php echo $this->_tpl_vars['key']; ?>
', true);</script></h4>
<?php elseif ($this->_tpl_vars['flotte']['mission'] == 6 || $this->_tpl_vars['flotte']['mission'] == 7): ?><h4 class="attaque">stationnement/don: Une flotte en provenance de <?php echo ((is_array($_tmp=$this->_tpl_vars['flotte']['nom_planete'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
[<?php echo $this->_tpl_vars['flotte']['start_galaxie']; ?>
:<?php echo $this->_tpl_vars['flotte']['start_ss']; ?>
:<?php echo $this->_tpl_vars['flotte']['start_position']; ?>
] atteint la planète <?php echo ((is_array($_tmp=$this->_tpl_vars['flottes']['1']['0'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
[<?php echo $this->_tpl_vars['flottes']['1']['1']; ?>
:<?php echo $this->_tpl_vars['flottes']['1']['2']; ?>
:<?php echo $this->_tpl_vars['flottes']['1']['3']; ?>
] dans <span id="reste<?php echo $this->_tpl_vars['key']; ?>
"><?php echo $this->_tpl_vars['flotte']['arrive_time']; ?>
</span><script type="text/javascript">reste(<?php echo $this->_tpl_vars['flotte']['arrive_time']; ?>
,'reste<?php echo $this->_tpl_vars['key']; ?>
', true);</script></h4>
<?php endif; ?>
<?php endforeach; endif; unset($_from); ?>
<?php endforeach; endif; unset($_from); ?>
<?php if ($this->_tpl_vars['alertMail']['0'] + $this->_tpl_vars['alertMail']['1'] >= 1): ?><h4>messagerie: <?php if ($this->_tpl_vars['alertMail']['0']): ?><a href="?p=messagerie"><?php echo $this->_tpl_vars['alertMail']['0']; ?>
message<?php if ($this->_tpl_vars['alertMail']['0'] > 1): ?>s<?php endif; ?><?php endif; ?><?php if ($this->_tpl_vars['alertMail']['0'] != 0 && $this->_tpl_vars['alertMail']['1'] != 0): ?></a> et <?php else: ?> non lu</a><?php endif; ?><?php if ($this->_tpl_vars['alertMail']['1']): ?><a href="?p=messagerie&amp;n=rapports"><?php echo $this->_tpl_vars['alertMail']['1']; ?>
rapport<?php if ($this->_tpl_vars['alertMail']['1'] > 1): ?>s<?php endif; ?> non lu</a><?php endif; ?></h4>
<?php endif; ?>
<h3><a href="?p=rename"><?php if (! $this->_tpl_vars['planete']->nom_planete): ?>Sans nom<?php endif; ?><?php echo ((is_array($_tmp=$this->_tpl_vars['planete']->nom_planete)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</a> (<span><?php echo $this->_tpl_vars['planete']->pseudo; ?>
</span>)</h3>
<?php if (SURFACE == 'planete'): ?><img src="<?php echo $this->_tpl_vars['url_images']; ?>
images/planetes/<?php echo $this->_tpl_vars['planete']->image; ?>
.jpg" width="200" height="200" alt="Planète" />
<?php else: ?><img src="<?php echo $this->_tpl_vars['url_images']; ?>
images/asteroides/<?php echo $this->_tpl_vars['planete']->image; ?>
.jpg" width="200" height="200" alt="Astéroïde" />
<?php endif; ?>
<h2>Infos</h2>
<?php if (SURFACE == 'planete'): ?><h4>Diamètre: <?php echo ((is_array($_tmp=$this->_tpl_vars['diametre'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
km <ins>(<?php echo $this->_tpl_vars['planete']->casesRest; ?>
case<?php if ($this->_tpl_vars['planete']->casesRest > 1): ?>s<?php endif; ?> disponible<?php if ($this->_tpl_vars['planete']->casesRest > 1): ?>s<?php endif; ?> sur <?php echo $this->_tpl_vars['planete']->cases; ?>
)</ins></h4><?php endif; ?>
<h4>Race : <?php echo $this->_tpl_vars['planete']->race; ?>
</h4>
<h4>position: <a href="?p=carte&amp;galaxie=<?php echo $this->_tpl_vars['planete']->galaxie; ?>
&amp;ss=<?php echo $this->_tpl_vars['planete']->ss; ?>
"><?php echo $this->_tpl_vars['planete']->galaxie; ?>
.<?php echo $this->_tpl_vars['planete']->ss; ?>
.<?php echo $this->_tpl_vars['planete']->position; ?>
</a></h4>
<?php if (SURFACE == 'planete'): ?>
<h4>population: <?php echo ((is_array($_tmp=$this->_tpl_vars['planete']->population)) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
</h4>
<h4>crédits: <?php echo ((is_array($_tmp=$this->_tpl_vars['planete']->credits)) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
</h4>
<?php else: ?>
<h4>nombre de membres: <?php echo ((is_array($_tmp=123456789)) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
</h4>
<h4>fondateur: <?php echo $this->_tpl_vars['planete']->fondateur->pseudo; ?>
</h4>
<h4>crédits: <?php echo ((is_array($_tmp=$this->_tpl_vars['planete']->credits_alliance)) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
</h4>
<?php endif; ?>
<h4>Classement: <a href="?p=classement&amp;j=<?php echo $this->_tpl_vars['planete']->id; ?>
&amp;c=<?php echo $this->_tpl_vars['planete']->place_points; ?>
#moi"><?php if ($this->_tpl_vars['planete']->place_points == '0'): ?>non classé<?php else: ?><?php echo $this->_tpl_vars['planete']->place_points; ?>
<?php if ($this->_tpl_vars['planete']->place_points == '1'): ?>er<?php else: ?>ème<?php endif; ?><?php endif; ?> (<?php echo ((is_array($_tmp=$this->_tpl_vars['points'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
points)</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; ?>
<?php if (SURFACE == 'planete'): ?>
<h2>En cours sur la planète</h2>
<?php if ($this->_tpl_vars['fileBat']): ?>
<h4>
<?php $_from = $this->_tpl_vars['fileBat']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['element']):
?>
<?php if ($this->_tpl_vars['key'] < 3): ?><?php if ($this->_tpl_vars['i'] == true): ?> - <?php else: ?><?php $this->assign('i', true); ?><a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
">Bâtiments</a> : <?php endif; ?><?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['batiments']['noms_sing'][$this->_tpl_vars['element']['0']]; ?>
<?php if ($this->_tpl_vars['element']['1']): ?> (démolition)<?php endif; ?><?php elseif ($this->_tpl_vars['key'] == 3): ?>...<?php endif; ?>
<?php endforeach; endif; unset($_from); ?>
</h4>
<?php endif; ?>
<?php if ($this->_tpl_vars['fileCas']): ?>
<h4>
<?php $_from = $this->_tpl_vars['fileCas']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['element']):
?>
<?php if ($this->_tpl_vars['j'] == true): ?> - <?php else: ?><?php $this->assign('j', true); ?><a href="<?php echo $this->_tpl_vars['menu']['caserne']; ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['batiments']['noms_sing']['9'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
</a> : <?php endif; ?><?php echo $this->_tpl_vars['element']['1']; ?>
<?php if ($this->_tpl_vars['element']['1'] > 1): ?><?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['caserne']['noms_pluriel'][$this->_tpl_vars['element']['0']]; ?>
<?php else: ?><?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['caserne']['noms_sing'][$this->_tpl_vars['element']['0']]; ?>
<?php endif; ?><?php if ($this->_tpl_vars['element']['2']): ?> (démantèlement)<?php endif; ?>
<?php endforeach; endif; unset($_from); ?>
</h4>
<?php endif; ?>
<?php if ($this->_tpl_vars['fileVais']): ?>
<h4>
<?php $_from = $this->_tpl_vars['fileVais']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['element']):
?>
<?php if ($this->_tpl_vars['k'] == true): ?> - <?php else: ?><?php $this->assign('k', true); ?><a href="<?php echo $this->_tpl_vars['menu']['chantierspatial']; ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['batiments']['noms_sing']['8'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
</a> : <?php endif; ?><?php echo $this->_tpl_vars['element']['1']; ?>
<?php if ($this->_tpl_vars['element']['1'] > 1): ?><?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['vaisseaux']['noms_pluriel'][$this->_tpl_vars['element']['0']]; ?>
<?php else: ?><?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['vaisseaux']['noms_sing'][$this->_tpl_vars['element']['0']]; ?>
<?php endif; ?><?php if ($this->_tpl_vars['element']['2']): ?> (démantèlement)<?php endif; ?>
<?php endforeach; endif; unset($_from); ?>
</h4>
<?php endif; ?>
<?php if ($this->_tpl_vars['fileTer']): ?>
<h4>
<?php $_from = $this->_tpl_vars['fileTer']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['element']):
?>
<?php if ($this->_tpl_vars['l'] == true): ?> - <?php else: ?><?php $this->assign('l', true); ?><a href="<?php echo $this->_tpl_vars['menu']['chantierterrestre']; ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['batiments']['noms_sing']['7'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
</a> : <?php endif; ?><?php echo $this->_tpl_vars['element']['1']; ?>
<?php if ($this->_tpl_vars['element']['1'] > 1): ?><?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['terrestre']['noms_pluriel'][$this->_tpl_vars['element']['0']]; ?>
<?php else: ?><?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['terrestre']['noms_sing'][$this->_tpl_vars['element']['0']]; ?>
<?php endif; ?><?php if ($this->_tpl_vars['element']['2']): ?> (démantèlement)<?php endif; ?>
<?php endforeach; endif; unset($_from); ?>
</h4>
<?php endif; ?>
<?php if ($this->_tpl_vars['fileTech']): ?>
<h4>
<?php $_from = $this->_tpl_vars['fileTech']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['element']):
?>
<?php if ($this->_tpl_vars['m'] == true): ?> - <?php else: ?><?php $this->assign('m', true); ?><a href="<?php echo $this->_tpl_vars['menu']['laboratoire']; ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['batiments']['noms_sing']['6'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
</a> : <?php endif; ?><?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['technologies']['noms_sing'][$this->_tpl_vars['element']['0']][$this->_tpl_vars['element']['1']]; ?>
<?php endforeach; endif; unset($_from); ?>
</h4>
<?php endif; ?>
<?php else: ?>
<h2>Infos de l'alliance</h2>
<?php echo $this->_tpl_vars['planete']->details['texte_interne']; ?>
<?php endif; ?>
<?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);
?>