Version 1.14a
This commit is contained in:
parent
ba8f323879
commit
dc48225dc9
1094 changed files with 189052 additions and 13889 deletions
|
|
@ -0,0 +1,89 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 14:50:14
|
||||
compiled from game/batiments_alli.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'ucfirst', 'game/batiments_alli.tpl', 7, false),array('modifier', 'countdown', 'game/batiments_alli.tpl', 7, false),array('modifier', 'separerNombres', 'game/batiments_alli.tpl', 26, 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>File d'attente</h2>
|
||||
<ul id="file">
|
||||
<?php ob_start(); ?>
|
||||
<?php $_from = $this->_tpl_vars['files']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['keyF'] => $this->_tpl_vars['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['keyE'] => $this->_tpl_vars['element']):
|
||||
?>
|
||||
<li><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['alli_batiments']['noms_sing'][$this->_tpl_vars['element']['0']])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
<?php if ($this->_tpl_vars['element']['1']): ?> (démolition)<?php endif; ?> - <span<?php if ($this->_tpl_vars['element']['3']): ?> class="countdown"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['element']['2'])) ? $this->_run_mod_handler('countdown', true, $_tmp) : smarty_modifier_countdown($_tmp)); ?>
|
||||
</span> - <a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['keyF']; ?>
|
||||
&b=<?php echo $this->_tpl_vars['keyE']; ?>
|
||||
">Annuler</a></li>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php $this->_smarty_vars['capture']['expFile'] = ob_get_contents(); ob_end_clean(); ?>
|
||||
<?php if ($this->_tpl_vars['files'] && $this->_smarty_vars['capture']['expFile']): ?>
|
||||
<?php echo $this->_smarty_vars['capture']['expFile']; ?>
|
||||
|
||||
<?php else: ?>
|
||||
<li>Aucun bâtiment dans la file d'attente</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
<h3><a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
||||
&q=alli_batiments">Arbre des technologies</a></h3><br />
|
||||
<h2>Bâtiments</h2>
|
||||
<div id="constructions">
|
||||
<?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']):
|
||||
?>
|
||||
<dl>
|
||||
<dt><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['alli_batiments']['noms_sing'][$this->_tpl_vars['batiment']['id']])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
<?php if ($this->_tpl_vars['batiment']['niveau'] > 0): ?> (Niveau <?php echo $this->_tpl_vars['batiment']['niveau']; ?>
|
||||
)<?php endif; ?></dt>
|
||||
<dd class="description"><a href="?p=description&a=<?php echo $this->_tpl_vars['batiment']['id']; ?>
|
||||
#body"><img src="<?php echo $this->_tpl_vars['url_images']; ?>
|
||||
images/alli_batiments/<?php echo $this->_tpl_vars['batiment']['id']; ?>
|
||||
.jpg" alt="<?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['alli_batiments']['noms_sing'][$this->_tpl_vars['batiment']['id']]; ?>
|
||||
" /></a><p><?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['alli_batiments']['descriptions'][$this->_tpl_vars['batiment']['id']]; ?>
|
||||
</p></dd>
|
||||
<dd>
|
||||
<?php if ($this->_tpl_vars['batiment']['niveau'] > 0): ?>Niveau actuel : <em><?php echo $this->_tpl_vars['batiment']['niveau']; ?>
|
||||
</em><br /><br /><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['batiment']['nec_metal'] > 0): ?>Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['metal']; ?>
|
||||
: <em<?php if ($this->_tpl_vars['batiment']['nec_metal'] > $this->_tpl_vars['planete']->metal): ?> class="lack"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['batiment']['nec_metal'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</em><br /><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['batiment']['nec_cristal'] > 0): ?>Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['cristal']; ?>
|
||||
: <em<?php if ($this->_tpl_vars['batiment']['nec_cristal'] > $this->_tpl_vars['planete']->cristal): ?> class="lack"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['batiment']['nec_cristal'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</em><br /><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['batiment']['nec_hydrogene'] > 0): ?>Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['hydrogene']; ?>
|
||||
: <em<?php if ($this->_tpl_vars['batiment']['nec_hydrogene'] > $this->_tpl_vars['planete']->hydrogene): ?> class="lack"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['batiment']['nec_hydrogene'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</em><br /><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['batiment']['nec_credits'] > 0): ?>Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['credits']; ?>
|
||||
: <em<?php if ($this->_tpl_vars['batiment']['nec_credits'] > $this->_tpl_vars['planete']->credits_alliance): ?> class="lack"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['batiment']['nec_credits'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</em><br /><?php endif; ?>
|
||||
Temps de construction : <em><?php echo $this->_tpl_vars['batiment']['temps']; ?>
|
||||
</em><br />
|
||||
<br />
|
||||
<?php if ($this->_tpl_vars['batiment']['nec_credits'] > $this->_tpl_vars['planete']->credits_alliance || $this->_tpl_vars['batiment']['nec_hydrogene'] > $this->_tpl_vars['planete']->hydrogene || $this->_tpl_vars['batiment']['nec_cristal'] > $this->_tpl_vars['planete']->cristal || $this->_tpl_vars['batiment']['nec_metal'] > $this->_tpl_vars['planete']->metal): ?><span class="lack" title="Rassemblez les ressources manquantes avant de lancer la construction de ce batiment">Ressources insuffisantes</span>
|
||||
<?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
||||
&c=<?php echo $this->_tpl_vars['batiment']['id']; ?>
|
||||
">Construire</a><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['batiment']['enfile'] !== false): ?><a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['batiment']['enfile']['0']; ?>
|
||||
&b=<?php echo $this->_tpl_vars['batiment']['enfile']['1']; ?>
|
||||
">Arrêter</a><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['batiment']['niveau'] > 0 && $this->_tpl_vars['batiment']['id'] != 0): ?> <a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
||||
&d=<?php echo $this->_tpl_vars['batiment']['id']; ?>
|
||||
">Démolir un niveau</a><?php endif; ?>
|
||||
</dd>
|
||||
</dl>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</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,106 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 21:22:39
|
||||
compiled from game/chantierterrestre.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'countdown', 'game/chantierterrestre.tpl', 11, false),array('modifier', 'ucfirst', 'game/chantierterrestre.tpl', 24, false),array('modifier', 'separerNombres', 'game/chantierterrestre.tpl', 33, 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);
|
||||
?>
|
||||
<ul class="onglets">
|
||||
<li<?php if ($this->_tpl_vars['onglet'] != 'defenses'): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['chantierterrestre']; ?>
|
||||
">Unités</a></li>
|
||||
<li<?php if ($this->_tpl_vars['onglet'] == 'defenses'): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['chantierterrestre']; ?>
|
||||
&n=defenses">Défenses</a></li>
|
||||
</ul><br /><br />
|
||||
<h2>File d'attente</h2>
|
||||
<ul id="file">
|
||||
<?php ob_start(); ?>
|
||||
<?php $_from = $this->_tpl_vars['files']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['keyF'] => $this->_tpl_vars['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['keyE'] => $this->_tpl_vars['element']):
|
||||
?>
|
||||
<?php if ($this->_tpl_vars['element']['5']): ?><li><strong>Prochaine <?php if ($this->_tpl_vars['element']['6']): ?>unité<?php else: ?>défense<?php endif; ?> </strong> : <span class="countdown"><?php echo ((is_array($_tmp=$this->_tpl_vars['element']['4'])) ? $this->_run_mod_handler('countdown', true, $_tmp) : smarty_modifier_countdown($_tmp)); ?>
|
||||
</span></li><?php endif; ?>
|
||||
<li><?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émolition)<?php endif; ?> - <span<?php if ($this->_tpl_vars['element']['5']): ?> class="countdown"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['element']['3'])) ? $this->_run_mod_handler('countdown', true, $_tmp) : smarty_modifier_countdown($_tmp)); ?>
|
||||
</span> - <a href="<?php echo $this->_tpl_vars['menu']['chantierterrestre']; ?>
|
||||
&n=<?php echo $this->_tpl_vars['onglet']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['keyF']; ?>
|
||||
&b=<?php echo $this->_tpl_vars['keyE']; ?>
|
||||
">Annuler un</a> - <a href="<?php echo $this->_tpl_vars['menu']['chantierterrestre']; ?>
|
||||
&n=<?php echo $this->_tpl_vars['onglet']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['keyF']; ?>
|
||||
&b=<?php echo $this->_tpl_vars['keyE']; ?>
|
||||
&s=<?php echo $this->_tpl_vars['element']['1']; ?>
|
||||
">Annuler tous</a></li>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php $this->_smarty_vars['capture']['expFile'] = ob_get_contents(); ob_end_clean(); ?>
|
||||
<?php if ($this->_tpl_vars['files'] && $this->_smarty_vars['capture']['expFile']): ?>
|
||||
<?php echo $this->_smarty_vars['capture']['expFile']; ?>
|
||||
|
||||
<?php else: ?>
|
||||
<li>Aucune unité dans la file d'attente</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
|
||||
<h3><a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
||||
&q=chantierterrestre">Arbre des technologies</a></h3><br />
|
||||
<h2><?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)); ?>
|
||||
</h2>
|
||||
<?php if ($this->_tpl_vars['unites']): ?>
|
||||
<div id="constructions">
|
||||
<?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']):
|
||||
?>
|
||||
<dl>
|
||||
<dt><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['terrestre']['noms_sing'][$this->_tpl_vars['unite']['id']])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
<?php if ($this->_tpl_vars['unite']['nombre'] > 0): ?> (<?php echo $this->_tpl_vars['unite']['nombre']; ?>
|
||||
unité<?php if ($this->_tpl_vars['unite']['nombre'] > 1): ?>s<?php endif; ?>)<?php endif; ?></dt>
|
||||
<dd class="description"><a href="?p=description&d=<?php echo $this->_tpl_vars['unite']['id']; ?>
|
||||
#body"><img src="<?php echo $this->_tpl_vars['url_images']; ?>
|
||||
images/terrestre/<?php echo $this->_tpl_vars['unite']['image']; ?>
|
||||
" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['terrestre']['noms_sing'][$this->_tpl_vars['unite']['id']])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
" /></a><p><?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['terrestre']['descriptions'][$this->_tpl_vars['unite']['id']]; ?>
|
||||
</p></dd>
|
||||
<dd>
|
||||
<?php if ($this->_tpl_vars['unite']['nombre'] > 0): ?><strong>Nombre actuel :</strong> <?php echo $this->_tpl_vars['unite']['nombre']; ?>
|
||||
<br /><br /><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['unite']['nec_metal'] > 0): ?><strong>Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['metal']; ?>
|
||||
:</strong> <?php echo ((is_array($_tmp=$this->_tpl_vars['unite']['nec_metal'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['unite']['nec_cristal'] > 0): ?><strong>Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['cristal']; ?>
|
||||
:</strong> <?php echo ((is_array($_tmp=$this->_tpl_vars['unite']['nec_cristal'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['unite']['nec_hydrogene'] > 0): ?><strong>Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['hydrogene']; ?>
|
||||
:</strong> <?php echo ((is_array($_tmp=$this->_tpl_vars['unite']['nec_hydrogene'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
<br /><?php endif; ?>
|
||||
<strong>Temps de construction :</strong> <?php echo $this->_tpl_vars['unite']['temps']; ?>
|
||||
<br />
|
||||
<br />
|
||||
<?php if ($this->_tpl_vars['unite']['nec_hydrogene'] > $this->_tpl_vars['planete']->hydrogene || $this->_tpl_vars['unite']['nec_cristal'] > $this->_tpl_vars['planete']->cristal || $this->_tpl_vars['unite']['nec_metal'] > $this->_tpl_vars['planete']->metal): ?><span class="lack">Ressources insuffisantes</span>
|
||||
<?php else: ?><form action="<?php echo $this->_tpl_vars['menu']['chantierterrestre']; ?>
|
||||
&n=<?php echo $this->_tpl_vars['onglet']; ?>
|
||||
&v=<?php echo $this->_tpl_vars['unite']['id']; ?>
|
||||
" method="post"><fieldset>
|
||||
<label for="terr<?php echo $this->_tpl_vars['unite']['id']; ?>
|
||||
">Nombre : <input type="text" class="text" name="terr<?php echo $this->_tpl_vars['unite']['id']; ?>
|
||||
" id="terr<?php echo $this->_tpl_vars['unite']['id']; ?>
|
||||
" value="0" /></label>
|
||||
<input type="submit" class="submit" value="OK" />
|
||||
</fieldset></form><?php endif; ?>
|
||||
</dd>
|
||||
</dl>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</div>
|
||||
<?php else: ?> <div id="erreur">Aucune unité ou défense ne peut être entraînée actuellement.</div><?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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 21:24:02
|
||||
compiled from game/marche.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'ucfirst', 'game/marche.tpl', 7, false),array('modifier', 'separerNombres', 'game/marche.tpl', 12, 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>Bourse des ressources</h2>
|
||||
<h3>Les prix sont donnés en milliers de crédits</h3>
|
||||
<h3>Les achats et les ventes se font par paquet de 1000 actions (le prix est recalculé chaque 1000 actions)</h3>
|
||||
<?php $_from = $this->_tpl_vars['bourse']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['action']):
|
||||
?>
|
||||
<dl class="bourse">
|
||||
<dt><strong><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms'][$this->_tpl_vars['action']['id']])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</strong> <a href="<?php echo $this->_tpl_vars['menu']['marche']; ?>
|
||||
&d=<?php echo $this->_tpl_vars['action']['id']; ?>
|
||||
"><img src="bourser.php?a=<?php echo $this->_tpl_vars['action']['id']; ?>
|
||||
&r=<?php echo $this->_tpl_vars['planete']->race; ?>
|
||||
" class="imglink" alt="<?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms'][$this->_tpl_vars['action']['id']]; ?>
|
||||
" /></a></dt>
|
||||
<dd>
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['marche']; ?>
|
||||
" method="post">
|
||||
<fieldset>
|
||||
<input type="hidden" name="ressource" value="<?php echo $this->_tpl_vars['action']['id']; ?>
|
||||
" />
|
||||
<div><strong>Total :</strong> <em><?php echo ((is_array($_tmp=$this->_tpl_vars['action']['dispo'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</em></div>
|
||||
<label for="buy<?php echo $this->_tpl_vars['action']['id']; ?>
|
||||
">Acheter pour <em><?php echo ((is_array($_tmp=$this->_tpl_vars['action']['prixA'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</em> : <input type="text" class="text" id="buy<?php echo $this->_tpl_vars['action']['id']; ?>
|
||||
" name="nbb" value="0" /></label>
|
||||
<input type="submit" class="submit" value="OK" name="buy" /><br />
|
||||
<label for="sell<?php echo $this->_tpl_vars['action']['id']; ?>
|
||||
">Vendre pour <em><?php echo ((is_array($_tmp=$this->_tpl_vars['action']['prixV'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</em> : <input type="text" class="text" id="sell<?php echo $this->_tpl_vars['action']['id']; ?>
|
||||
" name="nbs" value="0" /></label>
|
||||
<input type="submit" class="submit" value="OK" name="sell" />
|
||||
</fieldset>
|
||||
</form>
|
||||
</dd>
|
||||
</dl>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?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,89 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 21:33:14
|
||||
compiled from game/description.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'ucfirst', 'game/description.tpl', 4, false),array('modifier', 'separerNombres', 'game/description.tpl', 7, false),array('modifier', 'temps', 'game/description.tpl', 10, 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>Détails <?php echo $this->_tpl_vars['type']; ?>
|
||||
</h2>
|
||||
<dl id="description">
|
||||
<dt><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['raceAff']][$this->_tpl_vars['type']]['noms_sing'][$this->_tpl_vars['id']])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</dt>
|
||||
<dd><img src="<?php echo $this->_tpl_vars['url_images']; ?>
|
||||
images/<?php echo $this->_tpl_vars['type']; ?>
|
||||
/<?php echo $this->_tpl_vars['image']; ?>
|
||||
" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['type'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
" /><p><?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['raceAff']][$this->_tpl_vars['type']]['descriptions'][$this->_tpl_vars['id']]; ?>
|
||||
</p>
|
||||
<div><h5>Actuellement : </h5><?php if ($this->_tpl_vars['type'] == 'caserne'): ?><?php echo $this->_tpl_vars['planete']->casernes[$this->_tpl_vars['id']]; ?>
|
||||
unité(s)<?php elseif ($this->_tpl_vars['type'] == 'terrestre'): ?><?php echo $this->_tpl_vars['planete']->terrestres[$this->_tpl_vars['id']]; ?>
|
||||
unité(s)<?php elseif ($this->_tpl_vars['type'] == 'vaisseaux'): ?><?php echo $this->_tpl_vars['planete']->{(($_var=$this->_tpl_vars['type']) && substr($_var,0,2)!='__') ? $_var : $this->trigger_error("cannot access property \"$_var\"")}[$this->_tpl_vars['id']]; ?>
|
||||
vaisseau(x)<?php else: ?>niveau <?php echo $this->_tpl_vars['planete']->{(($_var=$this->_tpl_vars['type']) && substr($_var,0,2)!='__') ? $_var : $this->trigger_error("cannot access property \"$_var\"")}[$this->_tpl_vars['id']]; ?>
|
||||
<?php endif; ?></div>
|
||||
<?php if ($this->_tpl_vars['ressourcesNext']['0']): ?><div><h5>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['raceAff']]['ressources']['noms']['metal'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
: </h5><?php echo ((is_array($_tmp=$this->_tpl_vars['ressourcesNext']['0'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</div><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['ressourcesNext']['1']): ?><div><h5>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['raceAff']]['ressources']['noms']['cristal'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
: </h5><?php echo ((is_array($_tmp=$this->_tpl_vars['ressourcesNext']['1'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</div><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['ressourcesNext']['2']): ?><div><h5>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['raceAff']]['ressources']['noms']['hydrogene'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
: </h5><?php echo ((is_array($_tmp=$this->_tpl_vars['ressourcesNext']['2'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</div><?php endif; ?>
|
||||
<div><h5>Temps de construction : </h5><?php echo ((is_array($_tmp=$this->_tpl_vars['ressourcesNext']['3'])) ? $this->_run_mod_handler('temps', true, $_tmp) : smarty_modifier_temps($_tmp)); ?>
|
||||
</div>
|
||||
<?php if ($this->_tpl_vars['caract']): ?>
|
||||
<div><h5>Attaque : </h5><?php echo ((is_array($_tmp=$this->_tpl_vars['caract']['0'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</div>
|
||||
<div><h5>Bouclier : </h5><?php echo ((is_array($_tmp=$this->_tpl_vars['caract']['1'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</div>
|
||||
<div><h5>Point de vie : </h5><?php echo ((is_array($_tmp=$this->_tpl_vars['caract']['2'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</div>
|
||||
<div><h5>Capacité de transpost : </h5><?php echo ((is_array($_tmp=$this->_tpl_vars['caract']['3'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div><h5>Nécessite : </h5><?php echo $this->_tpl_vars['etat']; ?>
|
||||
</div>
|
||||
<?php if ($this->_tpl_vars['tableau_prod']): ?>
|
||||
<br /><br /><table style="margin: auto; width: 100%;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="5">Production et consomation théoriques</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Niveau</th>
|
||||
<th>Production</th>
|
||||
<th>Consomation</th>
|
||||
<th>Différence prod.</th>
|
||||
<th>Différence conso.</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['tableau_prod']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['ligne']):
|
||||
?>
|
||||
<?php if ($this->_tpl_vars['ligne']['0'] == $this->_tpl_vars['planete']->{(($_var=$this->_tpl_vars['type']) && substr($_var,0,2)!='__') ? $_var : $this->trigger_error("cannot access property \"$_var\"")}[$this->_tpl_vars['id']]): ?><tr style="color: #F0F0F0;"><?php else: ?><tr><?php endif; ?>
|
||||
<td style="font-weight: bold;"><?php echo $this->_tpl_vars['ligne']['0']; ?>
|
||||
</td>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['ligne']['1'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</td>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['ligne']['2'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['ligne']['3'] > 0): ?>+<?php endif; ?><?php echo ((is_array($_tmp=$this->_tpl_vars['ligne']['3'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['ligne']['4'] > 0): ?>+<?php endif; ?><?php echo ((is_array($_tmp=$this->_tpl_vars['ligne']['4'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
</dl>
|
||||
<?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,113 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 21:04:41
|
||||
compiled from game/arbre.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'ucfirst', 'game/arbre.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;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<h2>Arbre Technologique <?php echo $this->_tpl_vars['raceAff']; ?>
|
||||
</h2>
|
||||
Race : <a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
||||
&r=humain">Humains</a> - <a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
||||
&r=covenant">Covenants</a>
|
||||
<div class="techno">
|
||||
<div<?php if ($this->_tpl_vars['defaut'] == 'batiments'): ?> class="hightlight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
||||
&q=batiments&r=<?php echo $this->_tpl_vars['raceAff']; ?>
|
||||
">Bâtiments</a>
|
||||
<div><table><thead>
|
||||
<tr><th>Batiments (niveau)</th><th>Technologies nécessaires (niveau actuel)</th></tr>
|
||||
</thead><tbody>
|
||||
<?php if (SURFACE == 'planete'): ?>
|
||||
<?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['key'] => $this->_tpl_vars['batiment']):
|
||||
?>
|
||||
<tr><td><a href="?p=description&b=<?php echo $this->_tpl_vars['key']; ?>
|
||||
&r=<?php echo $this->_tpl_vars['raceAff']; ?>
|
||||
#menu"><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['raceAff']]['batiments']['noms_sing'][$this->_tpl_vars['key']])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</a> (<?php echo $this->_tpl_vars['batiment']['niveau']; ?>
|
||||
) :</td><td><?php echo $this->_tpl_vars['batiment']['etat']; ?>
|
||||
</td></tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php else: ?>
|
||||
<?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['key'] => $this->_tpl_vars['batiment']):
|
||||
?>
|
||||
<tr><td><a href="?p=description&a=<?php echo $this->_tpl_vars['key']; ?>
|
||||
&r=<?php echo $this->_tpl_vars['raceAff']; ?>
|
||||
#menu"><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['raceAff']]['alli_batiments']['noms_sing'][$this->_tpl_vars['key']])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</a> (<?php echo $this->_tpl_vars['batiment']['niveau']; ?>
|
||||
) :</td><td><?php echo $this->_tpl_vars['batiment']['etat']; ?>
|
||||
</td></tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php endif; ?>
|
||||
</tbody></table></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div<?php if ($this->_tpl_vars['defaut'] == 'caserne'): ?> class="hightlight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
||||
&q=caserne&r=<?php echo $this->_tpl_vars['raceAff']; ?>
|
||||
"><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['raceAff']]['batiments']['noms_sing']['9'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</a>
|
||||
<div><table><thead>
|
||||
<tr><th>Unité</th><th>Technologies nécessaires</th></tr>
|
||||
</thead><tbody>
|
||||
<?php $_from = $this->_tpl_vars['caserne']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['unite']):
|
||||
?>
|
||||
<tr><td><a href="?p=description&c=<?php echo $this->_tpl_vars['key']; ?>
|
||||
&r=<?php echo $this->_tpl_vars['raceAff']; ?>
|
||||
#menu"><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['raceAff']]['caserne']['noms_sing'][$this->_tpl_vars['key']])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</a> (<?php echo $this->_tpl_vars['unite']['niveau']; ?>
|
||||
) :</td><td><?php echo ((is_array($_tmp=$this->_tpl_vars['unite']['etat'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</td></tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody></table></div>
|
||||
</div>
|
||||
|
||||
<div<?php if ($this->_tpl_vars['defaut'] == 'chantierterrestre'): ?> class="hightlight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
||||
&q=chantierterrestre&r=<?php echo $this->_tpl_vars['raceAff']; ?>
|
||||
"><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['raceAff']]['batiments']['noms_sing']['7'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</a>
|
||||
<div><table><thead>
|
||||
<tr><th>Véhicules/Défenses</th><th>Technologies nécessaires (niveau actuel)</th></tr>
|
||||
</thead><tbody>
|
||||
<?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['key'] => $this->_tpl_vars['unite']):
|
||||
?>
|
||||
<tr><td><a href="?p=description&d=<?php echo $this->_tpl_vars['key']; ?>
|
||||
&r=<?php echo $this->_tpl_vars['raceAff']; ?>
|
||||
#menu"><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['raceAff']]['terrestre']['noms_sing'][$this->_tpl_vars['key']])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</a> (<?php echo $this->_tpl_vars['unite']['niveau']; ?>
|
||||
) :</td><td><?php echo $this->_tpl_vars['unite']['etat']; ?>
|
||||
</td></tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody></table></div>
|
||||
</div>
|
||||
|
||||
<div<?php if ($this->_tpl_vars['defaut'] == 'vaisseaux'): ?> class="hightlight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
||||
&q=vaisseaux&r=<?php echo $this->_tpl_vars['raceAff']; ?>
|
||||
"><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['raceAff']]['batiments']['noms_sing']['8'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</a>
|
||||
<div><table><thead>
|
||||
<tr><th>Vaisseaux</th><th>Technologies nécessaires (niveau actuel)</th></tr>
|
||||
</thead><tbody>
|
||||
<?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['key'] => $this->_tpl_vars['vaisseau']):
|
||||
?>
|
||||
<tr><td><a href="?p=description&v=<?php echo $this->_tpl_vars['key']; ?>
|
||||
&r=<?php echo $this->_tpl_vars['raceAff']; ?>
|
||||
#menu"><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['raceAff']]['vaisseaux']['noms_sing'][$this->_tpl_vars['key']])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</a> (<?php echo $this->_tpl_vars['vaisseau']['niveau']; ?>
|
||||
) :</td><td><?php echo $this->_tpl_vars['vaisseau']['etat']; ?>
|
||||
</td></tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody></table></div>
|
||||
</div>
|
||||
</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,62 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 21:02:45
|
||||
compiled from game/laboratoire.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'ucfirst', 'game/laboratoire.tpl', 16, false),array('modifier', 'countdown', 'game/laboratoire.tpl', 16, 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);
|
||||
?>
|
||||
<ul class="onglets">
|
||||
<li<?php if ($this->_tpl_vars['onglet'] == 0): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['laboratoire']; ?>
|
||||
">Industrie</a></li>
|
||||
<li<?php if ($this->_tpl_vars['onglet'] == 1 || $this->_tpl_vars['onglet'] == 2): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['laboratoire']; ?>
|
||||
&n=1">Ingénierie</a></li>
|
||||
<li<?php if ($this->_tpl_vars['onglet'] == 3): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['laboratoire']; ?>
|
||||
&n=3">Politique</a></li>
|
||||
<li<?php if ($this->_tpl_vars['onglet'] == 4): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['laboratoire']; ?>
|
||||
&n=4">Armement</a></li>
|
||||
<li<?php if ($this->_tpl_vars['onglet'] == 5 || $this->_tpl_vars['onglet'] == 6): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['laboratoire']; ?>
|
||||
&n=5">Défense</a></li>
|
||||
<li<?php if ($this->_tpl_vars['onglet'] == 7): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['laboratoire']; ?>
|
||||
&n=7">Projets expérimentaux</a></li>
|
||||
</ul>
|
||||
<h2>File d'attente</h2>
|
||||
<div class="file">
|
||||
<ul id="file">
|
||||
<?php ob_start(); ?>
|
||||
<?php $_from = $this->_tpl_vars['files']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['keyF'] => $this->_tpl_vars['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['keyE'] => $this->_tpl_vars['element']):
|
||||
?>
|
||||
<li><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['technologies']['noms_sing'][$this->_tpl_vars['element']['0']][$this->_tpl_vars['element']['1']])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
- <span<?php if ($this->_tpl_vars['element']['3']): ?> class="countdown"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['element']['2'])) ? $this->_run_mod_handler('countdown', true, $_tmp) : smarty_modifier_countdown($_tmp)); ?>
|
||||
</span> - <a href="<?php echo $this->_tpl_vars['menu']['laboratoire']; ?>
|
||||
&n=<?php echo $this->_tpl_vars['onglet']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['keyF']; ?>
|
||||
&b=<?php echo $this->_tpl_vars['keyE']; ?>
|
||||
">Annuler</a></li>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php $this->_smarty_vars['capture']['expFile'] = ob_get_contents(); ob_end_clean(); ?>
|
||||
<?php if ($this->_tpl_vars['files'] && $this->_smarty_vars['capture']['expFile']): ?>
|
||||
<?php echo $this->_smarty_vars['capture']['expFile']; ?>
|
||||
|
||||
<?php else: ?>
|
||||
<li>Aucune recherches dans la file d'attente</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<h2><?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)); ?>
|
||||
</h2>
|
||||
<?php if ($this->_tpl_vars['arbre']): ?>
|
||||
<?php echo $this->_tpl_vars['arbre']; ?>
|
||||
|
||||
<?php else: ?><div class="error" style="color: red;">Aucune technologie à développer actuellement</div><?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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-11-01 00:38:03
|
||||
compiled from game/footer.tpl */ ?>
|
||||
<span class="bottom"></span>
|
||||
</div>
|
||||
|
||||
<div id="footer">Réalisé par <a href="http://www.anomaly-concepts.com/">Anomaly Concepts</a><br />Design de <a href="http://www.nothing-arts.com" class="external">nothingarts</a><br />Actuellement en ligne : <?php echo $this->_tpl_vars['header']['count']['3']; ?>
|
||||
joueurs<br /><br /><br /><a href="<?php echo $this->_tpl_vars['link']['accueil']; ?>
|
||||
">Accueil</a> | <a href="<?php echo $this->_tpl_vars['link']['blog']; ?>
|
||||
">Blog</a> | <a href="<?php echo $this->_tpl_vars['link']['forum']; ?>
|
||||
">Forum</a> | <a href="<?php echo $this->_tpl_vars['menu']['chat']; ?>
|
||||
">Chat</a> | <a href="<?php echo $this->_tpl_vars['menu']['faq']; ?>
|
||||
">F.A.Q.</a> | <a href="<?php echo $this->_tpl_vars['link']['operateur']; ?>
|
||||
">Nous contacter</a></div>
|
||||
</div>
|
||||
<div id="bottom"></div>
|
||||
<script src="<?php echo $this->_tpl_vars['url_images']; ?>
|
||||
js/game.js" type="text/javascript"></script>
|
||||
<?php if ($this->_tpl_vars['page'] != 'admin'): ?><?php echo $this->_tpl_vars['analyst']; ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->_tpl_vars['script']; ?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 14:55:27
|
||||
compiled from game/alliance/nm_fonder.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);
|
||||
?>
|
||||
<h2>Création d'une alliance</h2>
|
||||
<form method="post" action="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=fonder">
|
||||
<fieldset class="form">
|
||||
<p>Créer une alliance ne peut pas se faire seul. Une fois que vous aurez lancé la procédure, un lien vous sera donné. Pour finir la création, donnez ce lien à quatre personnes qui sont sans alliance afin qu'elles ratifient l'alliance.</p>
|
||||
<label for="nom">Nom : <input type="text" class="text" name="nom" id="nom" /></label><br />
|
||||
<label for="tag">Tag : <input type="text" class="text" name="tag" id="tag" maxlength="5" /></label><br />
|
||||
<input type="submit" class="submit" value="Créer " />
|
||||
</fieldset>
|
||||
</form>
|
||||
<?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,38 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-09-10 16:03:22
|
||||
compiled from admin/sanctionU_choix.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);
|
||||
?>
|
||||
<h2><?php echo $this->_tpl_vars['titre']; ?>
|
||||
</h2>
|
||||
<form action="admin.php" method="get">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<label for="temps">Temps de vacances forcées :</label> <input type="text" value="" id="temps" name="sanc" tabindex="1" /> jours<br />("d" pour définitif, -3 pour réactiver le compte tout de suite)<br /><br />
|
||||
<label for="raison">Raison :</label> <input type="text" id="raison" maxlength="255" name="raisonmv" tabindex="2" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label for="idUser">ID :</label> <input type="text" value="" id="idUser" name="id" tabindex="3" />
|
||||
<input type="submit" class="submit" value="GO" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label for="nomUser">Nom :</label> <input type="text" id="nomUser" name="name" tabindex="4" />
|
||||
<input type="hidden" value="<?php echo $this->_tpl_vars['linkpage']; ?>
|
||||
" name="p" />
|
||||
<input type="submit" class="submit" value="GO" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?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,83 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 16:36:06
|
||||
compiled from game/alliance/gestion_membres.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'game/alliance/gestion_membres.tpl', 10, false),array('modifier', 'escape', 'game/alliance/gestion_membres.tpl', 34, false),array('modifier', 'nl2br', 'game/alliance/gestion_membres.tpl', 34, 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);
|
||||
?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/alliance/gestion_common.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<h2>Gestion des membres</h2>
|
||||
<table>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['membres']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['membre']):
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['membre']['pseudo']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['membre']['race']; ?>
|
||||
</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><form action="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
||||
&g=membres&i=<?php echo $this->_tpl_vars['membre']['id']; ?>
|
||||
" method="post"><p><select name="grade" onchange="this.form.submit();"><option label="Aucun" value="0">Aucun</option><?php $_from = $this->_tpl_vars['grades']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['grade']):
|
||||
?><option label="<?php echo $this->_tpl_vars['grade']['nom']; ?>
|
||||
" value="<?php echo $this->_tpl_vars['grade']['id']; ?>
|
||||
"<?php if ($this->_tpl_vars['grade']['id'] == $this->_tpl_vars['membre']['id_grade_alliance']): ?> selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['grade']['nom']; ?>
|
||||
</option><?php endforeach; endif; unset($_from); ?></select><noscript> <input type="submit" class="submit" value="GO" /></noscript></p></form></td>
|
||||
<td><a href="<?php echo $this->_tpl_vars['menu']['messages']; ?>
|
||||
&n=envoyer&d=<?php echo $this->_tpl_vars['membre']['pseudo']; ?>
|
||||
" class="msg"><span>Message</span></a></td>
|
||||
<td><a href="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
||||
&g=membres&u=<?php echo $this->_tpl_vars['membre']['id']; ?>
|
||||
"><em>Exclure</em></a></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Pseudo</th>
|
||||
<th>Race</th>
|
||||
<th>Dernière connexion </th>
|
||||
<th>Grade</th>
|
||||
<th>MP</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
<h2>Gestion des postulants</h2>
|
||||
<?php if ($this->_tpl_vars['postulants']): ?>
|
||||
<div id="messagerie">
|
||||
<?php $_from = $this->_tpl_vars['postulants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['postulant']):
|
||||
?>
|
||||
<dl class="new">
|
||||
<dt><a href="?p=...&i=<?php echo $this->_tpl_vars['postulant']['id_user']; ?>
|
||||
"><?php echo $this->_tpl_vars['postulant']['pseudo']; ?>
|
||||
</a> le <?php echo ((is_array($_tmp=$this->_tpl_vars['postulant']['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")); ?>
|
||||
</dt>
|
||||
<dd><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['postulant']['message'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
|
||||
<br /><div style="text-align: right;"><a href="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
||||
&g=membres&pa=<?php echo $this->_tpl_vars['postulant']['id']; ?>
|
||||
"><em>Accepter</em></a> | <a href="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
||||
&g=membres&pr=<?php echo $this->_tpl_vars['postulant']['id']; ?>
|
||||
"><em>Refuser</em></a></div></dd>
|
||||
</dl>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div id="erreur">Aucun postulant actuellement</div>
|
||||
<?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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-07-31 20:13:14
|
||||
compiled from game/alliance/nm_signer.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'capitalize', 'game/alliance/nm_signer.tpl', 2, false),array('modifier', 'escape', 'game/alliance/nm_signer.tpl', 2, false),array('modifier', 'upper', 'game/alliance/nm_signer.tpl', 4, 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>Ratifier l'alliance : <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['alliance']['nom_alliance'])) ? $this->_run_mod_handler('capitalize', true, $_tmp) : smarty_modifier_capitalize($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
</h2>
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&signer=<?php echo $this->_tpl_vars['alliance']['id']; ?>
|
||||
" method="post">
|
||||
<div><strong>Vous êtes sur le point de ratifier l'alliance [<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['alliance']['tag'])) ? $this->_run_mod_handler('upper', true, $_tmp) : smarty_modifier_upper($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
] <?php echo ((is_array($_tmp=$this->_tpl_vars['alliance']['nom_alliance'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
.<br />Actuellement, <?php echo $this->_tpl_vars['alliance']['nbsignatures']; ?>
|
||||
personnes(s) ont ratifier cette alliance.<br /><?php if ($this->_tpl_vars['ratifier']): ?><br />En ratifiant cette alliance, vous annulez votre signature pour l'alliance [<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['ratifier']['tag'])) ? $this->_run_mod_handler('upper', true, $_tmp) : smarty_modifier_upper($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
] <?php echo ((is_array($_tmp=$this->_tpl_vars['ratifier']['nom_alliance'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
<br /><?php endif; ?><br />Voulez-vous signer ?</strong></div>
|
||||
<fieldset class="form">
|
||||
<input type="submit" class="submit" value="Oui " name="sign" /> - <input type="submit" class="submit" value="Non " name="sign" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<?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,33 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 21:09:27
|
||||
compiled from admin/accueil.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'admin/accueil.tpl', 3, false),array('modifier', 'escape', 'admin/accueil.tpl', 6, false),array('modifier', 'nl2br', 'admin/accueil.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;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<h2>Evénements</h2>
|
||||
<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>
|
||||
<h4>Version du serveur : <a href="./?p=version"><?php echo $this->_tpl_vars['version']; ?>
|
||||
</a></h4>
|
||||
<?php $_from = $this->_tpl_vars['news']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['new']):
|
||||
?>
|
||||
<h1><strong><?php echo $this->_tpl_vars['new']['titre']; ?>
|
||||
</strong> : <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['new']['contenu'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
|
||||
</h1>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<h2>Infos</h2>
|
||||
<h4><a href="<?php echo $this->_tpl_vars['menu']['courrier']; ?>
|
||||
">Messagerie :</a> <?php echo $this->_tpl_vars['nbMail']; ?>
|
||||
message<?php if ($this->_tpl_vars['nbMail'] > 1): ?>s<?php endif; ?> en attente</h4>
|
||||
<h4><a href="./<?php echo $this->_tpl_vars['menu']['pilori']; ?>
|
||||
">Pilori :</a> <?php echo $this->_tpl_vars['nbPilori']; ?>
|
||||
joueur<?php if ($this->_tpl_vars['nbPilori'] > 1): ?>s<?php endif; ?> dans le pilori de la galaxie</h4>
|
||||
<?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,87 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 16:46:21
|
||||
compiled from game/diplomatie/general.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'game/diplomatie/general.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;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/diplomatie/common.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<h2>Demandes de pactes</h2>
|
||||
<?php if ($this->_tpl_vars['demandes']): ?>
|
||||
<?php $_from = $this->_tpl_vars['demandes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['demande']):
|
||||
?>
|
||||
<h4><strong><?php echo ((is_array($_tmp=$this->_tpl_vars['demande']['time_creation'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y %H:%M") : smarty_modifier_date_format($_tmp, "%d/%m/%y %H:%M")); ?>
|
||||
::</strong> L'alliance <a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&v=<?php echo $this->_tpl_vars['demande']['alliance_id']; ?>
|
||||
">[<?php echo $this->_tpl_vars['demande']['tag']; ?>
|
||||
] <?php echo $this->_tpl_vars['demande']['nom_alliance']; ?>
|
||||
</a> veut <?php if ($this->_tpl_vars['demande']['type'] == 0): ?>engager un cesser le feu<?php else: ?>passer un pacte <?php if ($this->_tpl_vars['demande']['type'] == 1): ?>de non-agression<?php elseif ($this->_tpl_vars['demande']['type'] == 2): ?>commercial<?php else: ?>militaire<?php endif; ?><?php endif; ?>.<?php if ($this->_tpl_vars['planete']->permissions_alliance & 8): ?> <a href="<?php echo $this->_tpl_vars['menu']['diplomatie']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['demande']['id']; ?>
|
||||
">Accepter</a> - <a href="<?php echo $this->_tpl_vars['menu']['diplomatie']; ?>
|
||||
&r=<?php echo $this->_tpl_vars['demande']['id']; ?>
|
||||
">Rejeter</a><?php endif; ?></h4>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php else: ?>
|
||||
<h3>Aucune demande en cours</h3>
|
||||
<?php endif; ?>
|
||||
<br />
|
||||
<h2>Actualités des pactes et des guerres</h2>
|
||||
<?php if ($this->_tpl_vars['actus_alli']): ?>
|
||||
<?php $_from = $this->_tpl_vars['actus_alli']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['actu_alli']):
|
||||
?>
|
||||
<?php if ($this->_tpl_vars['actu_alli']['time_fin'] && $this->_tpl_vars['actu_alli']['type'] != 0): ?><h3><?php echo ((is_array($_tmp=$this->_tpl_vars['actu_alli']['time_fin'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y %H:%M") : smarty_modifier_date_format($_tmp, "%d/%m/%y %H:%M")); ?>
|
||||
:: Le pacte <?php if ($this->_tpl_vars['actu_alli']['type'] == 1): ?>de non-agression<?php elseif ($this->_tpl_vars['actu_alli']['type'] == 2): ?>commercial<?php else: ?>militaire<?php endif; ?> avec l'alliance <a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&v=<?php echo $this->_tpl_vars['actu_alli']['alliance_id']; ?>
|
||||
">[<?php echo $this->_tpl_vars['actu_alli']['tag']; ?>
|
||||
] <?php echo $this->_tpl_vars['actu_alli']['nom_alliance']; ?>
|
||||
</a> a été abrogé</h3>
|
||||
<?php else: ?><?php if (( $this->_tpl_vars['planete']->id == $this->_tpl_vars['actu_alli']['id_alliance1'] && $this->_tpl_vars['actu_alli']['type'] != 0 ) || ( $this->_tpl_vars['planete']->id == $this->_tpl_vars['actu_alli']['id_alliance2'] && $this->_tpl_vars['actu_alli']['type'] == 0 && $this->_tpl_vars['actu_alli']['accepter'] == 1 ) || ( $this->_tpl_vars['planete']->id == $this->_tpl_vars['actu_alli']['id_alliance1'] && $this->_tpl_vars['actu_alli']['type'] == 0 && $this->_tpl_vars['actu_alli']['time_demand'] != ((is_array($_tmp=$this->_tpl_vars['actu_alli']['time_creation'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M:%S")) )): ?><h3><strong><?php echo ((is_array($_tmp=$this->_tpl_vars['actu_alli']['time_creation'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y %H:%M") : smarty_modifier_date_format($_tmp, "%d/%m/%y %H:%M")); ?>
|
||||
::</strong> L'alliance <a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&v=<?php echo $this->_tpl_vars['actu_alli']['alliance_id']; ?>
|
||||
">[<?php echo $this->_tpl_vars['actu_alli']['tag']; ?>
|
||||
] <?php echo $this->_tpl_vars['actu_alli']['nom_alliance']; ?>
|
||||
</a> <?php if ($this->_tpl_vars['actu_alli']['type'] == 0 && $this->_tpl_vars['actu_alli']['time_demand'] == ((is_array($_tmp=$this->_tpl_vars['actu_alli']['time_creation'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M:%S"))): ?>nous a déclaré la guerre<?php else: ?><?php if ($this->_tpl_vars['actu_alli']['accepte'] == 2): ?>a refusé notre<?php elseif ($this->_tpl_vars['actu_alli']['accepte'] == 1): ?>a accepté notre<?php else: ?>n'a pas encore répondu à notre demande de<?php endif; ?> <?php if ($this->_tpl_vars['actu_alli']['type'] == 0): ?>cesser le feu<?php else: ?>pacte <?php if ($this->_tpl_vars['actu_alli']['type'] == 1): ?>de non-agression<?php elseif ($this->_tpl_vars['actu_alli']['type'] == 2): ?>commercial<?php else: ?>militaire<?php endif; ?><?php endif; ?><?php endif; ?>.</h3>
|
||||
<?php else: ?><h3><strong><?php echo ((is_array($_tmp=$this->_tpl_vars['actu_alli']['time_creation'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y %H:%M") : smarty_modifier_date_format($_tmp, "%d/%m/%y %H:%M")); ?>
|
||||
::</strong> Nous avons <?php if ($this->_tpl_vars['actu_alli']['type'] == 0 && $this->_tpl_vars['actu_alli']['time_demand'] == ((is_array($_tmp=$this->_tpl_vars['actu_alli']['time_creation'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M:%S"))): ?>déclaré la guerre à<?php else: ?><?php if ($this->_tpl_vars['actu_alli']['accepte'] == 1): ?>accepté<?php else: ?>refusé<?php endif; ?> le <?php if ($this->_tpl_vars['actu_alli']['type'] == 0): ?>cesser le feu<?php else: ?>pacte <?php if ($this->_tpl_vars['actu_alli']['type'] == 1): ?>de non-agression<?php elseif ($this->_tpl_vars['actu_alli']['type'] == 2): ?>commercial<?php else: ?>militaire<?php endif; ?><?php endif; ?> proposé par<?php endif; ?> l'alliance <a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&v=<?php echo $this->_tpl_vars['actu_alli']['alliance_id']; ?>
|
||||
">[<?php echo $this->_tpl_vars['actu_alli']['tag']; ?>
|
||||
] <?php echo $this->_tpl_vars['actu_alli']['nom_alliance']; ?>
|
||||
</a></h3>
|
||||
<?php endif; ?><?php endif; ?>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php else: ?>
|
||||
<h3>Aucune actualité disponible</h3>
|
||||
<?php endif; ?>
|
||||
<br />
|
||||
<h2>Actualités de la galaxie</h2>
|
||||
<?php if ($this->_tpl_vars['actus_world']): ?>
|
||||
<?php $_from = $this->_tpl_vars['actus_world']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['actu_world']):
|
||||
?>
|
||||
<h3><strong><?php echo ((is_array($_tmp=$this->_tpl_vars['actu_world']['time_creation'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y %H:%M") : smarty_modifier_date_format($_tmp, "%d/%m/%y %H:%M")); ?>
|
||||
::</strong> L'alliance <a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&v=<?php echo $this->_tpl_vars['actu_world']['alliance1_id']; ?>
|
||||
">[<?php echo $this->_tpl_vars['actu_world']['tag1']; ?>
|
||||
] <?php echo $this->_tpl_vars['actu_world']['nom_alliance1']; ?>
|
||||
</a> <?php if ($this->_tpl_vars['actu_world']['type'] == 0): ?>a déclaré la guerre à<?php else: ?>a engagé un pacte <?php if ($this->_tpl_vars['actu_world']['type'] == 1): ?>de non-agression<?php elseif ($this->_tpl_vars['actu_world']['type'] == 2): ?>commercial<?php else: ?>militaire<?php endif; ?> avec<?php endif; ?> l'alliance <a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&v=<?php echo $this->_tpl_vars['actu_world']['alliance2_id']; ?>
|
||||
">[<?php echo $this->_tpl_vars['actu_world']['tag2']; ?>
|
||||
] <?php echo $this->_tpl_vars['actu_world']['nom_alliance2']; ?>
|
||||
</a>.</h3>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php else: ?>
|
||||
<h3>Aucune actualité disponible</h3>
|
||||
<?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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,45 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-03 15:11:29
|
||||
compiled from game/envoyer.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'game/envoyer.tpl', 14, false),array('modifier', 'escape', 'game/envoyer.tpl', 17, 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>Messagerie</h2>
|
||||
<ul class="onglets">
|
||||
<li<?php if ($this->_tpl_vars['onglet'] != 'rapports' && $this->_tpl_vars['onglet'] != 'send' && $this->_tpl_vars['onglet'] != 'envoyer'): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['messages']; ?>
|
||||
&n=recus">Reçus</a><?php if ($this->_tpl_vars['alertMail']['0']): ?> (<?php echo $this->_tpl_vars['alertMail']['0']; ?>
|
||||
)<?php endif; ?></li>
|
||||
<li<?php if ($this->_tpl_vars['onglet'] == 'rapports'): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['messages']; ?>
|
||||
&n=rapports">Rapports</a><?php if ($this->_tpl_vars['alertMail']['1']): ?> (<?php echo $this->_tpl_vars['alertMail']['1']; ?>
|
||||
)<?php endif; ?></li>
|
||||
<li<?php if ($this->_tpl_vars['onglet'] == 'send'): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['messages']; ?>
|
||||
&n=send">Envoyés</a></li>
|
||||
<li<?php if ($this->_tpl_vars['onglet'] == 'envoyer'): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['messages']; ?>
|
||||
&n=envoyer">Ecrire</a></li>
|
||||
</ul><br /><br />
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['messages']; ?>
|
||||
&n=envoyer" method="post">
|
||||
<fieldset id="envoyer">
|
||||
<label for="amis">Amis :
|
||||
<select name="amis" id="amis">
|
||||
<option value="">--</option>
|
||||
<?php echo smarty_function_html_options(array('output' => $this->_tpl_vars['amis'],'values' => $this->_tpl_vars['amis']), $this);?>
|
||||
|
||||
</select>
|
||||
</label><br />
|
||||
<label for="destinataire">Destinataire(s) : <input type="text" class="text" name="destinataire" id="destinataire" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['destinataire'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
" /></label><br />
|
||||
<label for="objet">Objet : <input type="text" class="text" name="objet" id="objet" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['objet'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
" /></label><br />
|
||||
<textarea name="message" cols="40" rows="10"></textarea><br />
|
||||
<input type="submit" class="submit" value="OK" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<?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,70 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 23:38:50
|
||||
compiled from cms/header.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'cms/header.tpl', 18, false),array('modifier', 'sprintf', 'cms/header.tpl', 27, 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">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<meta http-equiv="Content-Language" content="fr" />
|
||||
|
||||
<title> ::Halo-Battle:: - <?php echo $this->_tpl_vars['titre']; ?>
|
||||
</title>
|
||||
<link rel="stylesheet" href="<?php echo $this->_tpl_vars['url_images']; ?>
|
||||
templates/cms/default.css" type="text/css" media="all" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="<?php echo $this->_tpl_vars['url_images']; ?>
|
||||
favicon.ico" />
|
||||
<script src="<?php echo $this->_tpl_vars['url_images']; ?>
|
||||
js/game.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="cornertop"></div>
|
||||
<div id="all">
|
||||
<div id="header">
|
||||
<div id="header_link"><span id="date"><?php echo ((is_array($_tmp=time())) ? $this->_run_mod_handler('date_format', true, $_tmp, "%A %e %B %Y %H:%M") : smarty_modifier_date_format($_tmp, "%A %e %B %Y %H:%M")); ?>
|
||||
</span> | <a href="<?php echo $this->_tpl_vars['link']['lastNews']; ?>
|
||||
"><?php echo $this->_tpl_vars['lastNews']; ?>
|
||||
</a> | <a href="<?php echo $this->_tpl_vars['link']['lastTopic']; ?>
|
||||
"><?php echo $this->_tpl_vars['lastTopic']; ?>
|
||||
</a> | <a href="<?php echo $this->_tpl_vars['link']['lastUser']; ?>
|
||||
"><?php echo $this->_tpl_vars['lastUser']; ?>
|
||||
</a> | <a href="<?php echo $this->_tpl_vars['link']['lastDownload']; ?>
|
||||
"><?php echo $this->_tpl_vars['lastDownload']; ?>
|
||||
</a> | <a href="<?php echo $this->_tpl_vars['link']['lastLink']; ?>
|
||||
"><?php echo $this->_tpl_vars['lastLink']; ?>
|
||||
</a></div><a href="<?php echo $this->_tpl_vars['link']['RSS']; ?>
|
||||
" id="rss"><?php echo $this->_tpl_vars['LANG']['hd_menu']['rss']; ?>
|
||||
</a>
|
||||
<a href="<?php echo $this->_tpl_vars['link']['self']; ?>
|
||||
" id="img"><span></span>Halo Battle</a>
|
||||
<div id="buttons"><div><a href="<?php echo $this->_tpl_vars['link']['accueil']; ?>
|
||||
"><?php echo $this->_tpl_vars['LANG']['hd_menu']['accueil']; ?>
|
||||
</a></div> <div><a href="<?php echo $this->_tpl_vars['link']['jeu']; ?>
|
||||
"><?php echo $this->_tpl_vars['LANG']['hd_menu']['jeu']; ?>
|
||||
</a></div> <div><a href="<?php echo $this->_tpl_vars['link']['inscription']; ?>
|
||||
"><?php echo $this->_tpl_vars['LANG']['hd_menu']['inscrire']; ?>
|
||||
</a></div> <div><a href="<?php echo $this->_tpl_vars['link']['forum']; ?>
|
||||
"><?php echo $this->_tpl_vars['LANG']['hd_menu']['forum']; ?>
|
||||
</a></div> <div><a href="<?php echo $this->_tpl_vars['link']['blog']; ?>
|
||||
"><?php echo $this->_tpl_vars['LANG']['hd_menu']['blog']; ?>
|
||||
</a></div> <div><a href="http://www.halo.fr/"><?php echo $this->_tpl_vars['LANG']['hd_menu']['hfr']; ?>
|
||||
</a></div></div>
|
||||
<form action="#" method="post"><fieldset id="recherche"><input class="text" type="text" name="recherche" value="<?php echo $this->_tpl_vars['LANG']['hd_menu']['search']; ?>
|
||||
" maxlength="128" tabindex="10" onfocus="this.value = this.value!='<?php echo $this->_tpl_vars['LANG']['hd_menu']['search']; ?>
|
||||
'?this.value:''" onblur="this.value=this.value==''?'<?php echo $this->_tpl_vars['LANG']['hd_menu']['search']; ?>
|
||||
':this.value" /><input value="OK" class="submit" type="submit" tabindex="11" /><br /><a href="#" tabindex="12"><?php echo $this->_tpl_vars['LANG']['hd_menu']['advSearch']; ?>
|
||||
</a></fieldset></form>
|
||||
</div>
|
||||
<div id="banner">
|
||||
<?php $_from = $this->_tpl_vars['header']['infos']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['info']):
|
||||
?>
|
||||
<div class="bannerleft"<?php if ($this->_tpl_vars['info']['color']): ?> style="color: <?php echo $this->_tpl_vars['info']['color']; ?>
|
||||
;"<?php endif; ?>><?php echo $this->_tpl_vars['info']['texte']; ?>
|
||||
</div>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<span id="bannerright"><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG']['cntRaces'])) ? $this->_run_mod_handler('sprintf', true, $_tmp, $this->_tpl_vars['header']['count']['1'], $this->_tpl_vars['header']['count']['0'], $this->_tpl_vars['header']['count']['2']) : smarty_modifier_sprintf($_tmp, $this->_tpl_vars['header']['count']['1'], $this->_tpl_vars['header']['count']['0'], $this->_tpl_vars['header']['count']['2'])); ?>
|
||||
</span></div>
|
||||
<div id="corps">
|
||||
|
|
@ -0,0 +1,98 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 14:50:24
|
||||
compiled from game/chantierspatial.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'countdown', 'game/chantierspatial.tpl', 7, false),array('modifier', 'ucfirst', 'game/chantierspatial.tpl', 19, false),array('modifier', 'separerNombres', 'game/chantierspatial.tpl', 28, 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>File d'attente</h2>
|
||||
<ul id="file">
|
||||
<?php ob_start(); ?>
|
||||
<?php $_from = $this->_tpl_vars['files']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['keyF'] => $this->_tpl_vars['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['keyE'] => $this->_tpl_vars['element']):
|
||||
?>
|
||||
<?php if ($this->_tpl_vars['element']['5']): ?><li><strong>Prochain vaisseau </strong> : <span class="countdown"><?php echo ((is_array($_tmp=$this->_tpl_vars['element']['4'])) ? $this->_run_mod_handler('countdown', true, $_tmp) : smarty_modifier_countdown($_tmp)); ?>
|
||||
</span></li><?php endif; ?>
|
||||
<li><?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émolition)<?php endif; ?> - <span<?php if ($this->_tpl_vars['element']['5']): ?> class="countdown"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['element']['3'])) ? $this->_run_mod_handler('countdown', true, $_tmp) : smarty_modifier_countdown($_tmp)); ?>
|
||||
</span> - <a href="<?php echo $this->_tpl_vars['menu']['chantierspatial']; ?>
|
||||
&n=<?php echo $this->_tpl_vars['onglet']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['keyF']; ?>
|
||||
&b=<?php echo $this->_tpl_vars['keyE']; ?>
|
||||
">Annuler un</a> - <a href="<?php echo $this->_tpl_vars['menu']['chantierspatial']; ?>
|
||||
&n=<?php echo $this->_tpl_vars['onglet']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['keyF']; ?>
|
||||
&b=<?php echo $this->_tpl_vars['keyE']; ?>
|
||||
&s=<?php echo $this->_tpl_vars['element']['1']; ?>
|
||||
">Annuler tous</a></li>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php $this->_smarty_vars['capture']['expFile'] = ob_get_contents(); ob_end_clean(); ?>
|
||||
<?php if ($this->_tpl_vars['files'] && $this->_smarty_vars['capture']['expFile']): ?>
|
||||
<?php echo $this->_smarty_vars['capture']['expFile']; ?>
|
||||
|
||||
<?php else: ?>
|
||||
<li>Aucun vaisseau dans la file d'attente</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
<h3><a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
||||
&q=vaisseaux">Arbre des technologies</a></h3><br />
|
||||
<h2><?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)); ?>
|
||||
</h2>
|
||||
<?php if ($this->_tpl_vars['vaisseaux']): ?>
|
||||
<div id="constructions">
|
||||
<?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']):
|
||||
?>
|
||||
<dl>
|
||||
<dt><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['vaisseaux']['noms_sing'][$this->_tpl_vars['vaisseau']['id']])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
<?php if ($this->_tpl_vars['vaisseau']['nombre'] > 0): ?> (<?php echo $this->_tpl_vars['vaisseau']['nombre']; ?>
|
||||
unité<?php if ($this->_tpl_vars['vaisseau']['nombre'] > 1): ?>s<?php endif; ?>)<?php endif; ?></dt>
|
||||
<dd class="description"><a href="?p=description&v=<?php echo $this->_tpl_vars['vaisseau']['id']; ?>
|
||||
#body"><img src="<?php echo $this->_tpl_vars['url_images']; ?>
|
||||
images/vaisseaux/<?php echo $this->_tpl_vars['vaisseau']['image']; ?>
|
||||
" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['vaisseaux']['noms_sing'][$this->_tpl_vars['vaisseau']['id']])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
" /></a><p><?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['vaisseaux']['descriptions'][$this->_tpl_vars['vaisseau']['id']]; ?>
|
||||
</p></dd>
|
||||
<dd>
|
||||
<?php if ($this->_tpl_vars['vaisseau']['nombre'] > 0): ?><strong>Nombre actuel :</strong> <?php echo $this->_tpl_vars['vaisseau']['nombre']; ?>
|
||||
<br /><br /><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['vaisseau']['nec_metal'] > 0): ?><strong>Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['metal']; ?>
|
||||
:</strong> <?php echo ((is_array($_tmp=$this->_tpl_vars['vaisseau']['nec_metal'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['vaisseau']['nec_cristal'] > 0): ?><strong>Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['cristal']; ?>
|
||||
:</strong> <?php echo ((is_array($_tmp=$this->_tpl_vars['vaisseau']['nec_cristal'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['vaisseau']['nec_hydrogene'] > 0): ?><strong>Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['hydrogene']; ?>
|
||||
:</strong> <?php echo ((is_array($_tmp=$this->_tpl_vars['vaisseau']['nec_hydrogene'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
<br /><?php endif; ?>
|
||||
<strong>Temps de construction :</strong> <?php echo $this->_tpl_vars['vaisseau']['temps']; ?>
|
||||
<br />
|
||||
<br />
|
||||
<?php if ($this->_tpl_vars['vaisseau']['nec_hydrogene'] > $this->_tpl_vars['planete']->hydrogene || $this->_tpl_vars['vaisseau']['nec_cristal'] > $this->_tpl_vars['planete']->cristal || $this->_tpl_vars['vaisseau']['nec_metal'] > $this->_tpl_vars['planete']->metal): ?><span class="lack">Ressources insuffisantes</span>
|
||||
<?php else: ?><form action="<?php echo $this->_tpl_vars['menu']['chantierspatial']; ?>
|
||||
&v=<?php echo $this->_tpl_vars['vaisseau']['id']; ?>
|
||||
" method="post"><fieldset>
|
||||
<label for="vais<?php echo $this->_tpl_vars['vaisseau']['id']; ?>
|
||||
">Nombre : <input type="text" class="text" name="vais<?php echo $this->_tpl_vars['vaisseau']['id']; ?>
|
||||
" id="vais<?php echo $this->_tpl_vars['vaisseau']['id']; ?>
|
||||
" value="0" /></label>
|
||||
<input type="submit" class="submit" value="OK" />
|
||||
</fieldset></form><?php endif; ?>
|
||||
</dd>
|
||||
</dl>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</div>
|
||||
<?php else: ?> <div id="erreur">Aucun vaisseau à construire actuellement.</div><?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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,102 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 16:46:58
|
||||
compiled from game/diplomatie/encours.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'game/diplomatie/encours.tpl', 7, 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);
|
||||
?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/diplomatie/common.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<h2>Déclarations de guerre</h2>
|
||||
<?php if ($this->_tpl_vars['guerres']): ?>
|
||||
<ul>
|
||||
<?php $_from = $this->_tpl_vars['guerres']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['pacte']):
|
||||
?>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&v=<?php echo $this->_tpl_vars['pacte']['alliance_id']; ?>
|
||||
">[<?php echo $this->_tpl_vars['pacte']['tag']; ?>
|
||||
] <?php echo $this->_tpl_vars['pacte']['nom_alliance']; ?>
|
||||
</a> depuis le <?php echo ((is_array($_tmp=$this->_tpl_vars['pacte']['time_creation'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y") : smarty_modifier_date_format($_tmp, "%d/%m/%y")); ?>
|
||||
<?php if (( $this->_tpl_vars['planete']->id == $this->_tpl_vars['pacte']['id_alliance1'] && $this->_tpl_vars['pacte']['accepte'] != 2 ) || ( $this->_tpl_vars['planete']->id == $this->_tpl_vars['pacte']['id_alliance2'] && $this->_tpl_vars['pacte']['accepte'] == 2 )): ?><?php if ($this->_tpl_vars['pacte']['accepte'] == 0): ?> - Une demande de cesser le feu est en cours<?php else: ?><?php if ($this->_tpl_vars['planete']->permissions_alliance & 8): ?> - <em><a href="<?php echo $this->_tpl_vars['menu']['diplomatie']; ?>
|
||||
&o=new&c=<?php echo $this->_tpl_vars['pacte']['id']; ?>
|
||||
">Demander un cesser le feu</a></em><?php else: ?> - Nous pouvons demander le cesser le feu<?php endif; ?><?php endif; ?><?php elseif ($this->_tpl_vars['pacte']['accepte'] == 0): ?><?php if ($this->_tpl_vars['planete']->permissions_alliance & 8): ?> - <em><a href="<?php echo $this->_tpl_vars['menu']['diplomatie']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['pacte']['id']; ?>
|
||||
">Accepter le cesser le feu</a></em> - <em><a href="<?php echo $this->_tpl_vars['menu']['diplomatie']; ?>
|
||||
&r=<?php echo $this->_tpl_vars['pacte']['id']; ?>
|
||||
">Refuser le cesser le feu</a></em><?php else: ?> - Nos adversaires nous propose un cesser le feu<?php endif; ?><?php else: ?> - Nous ne pouvons pas demander de cesser le feu.<?php endif; ?></li>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</ul>
|
||||
<?php else: ?>
|
||||
<h3>Aucune guerre n'est actuellement déclarée</h3>
|
||||
<?php endif; ?>
|
||||
<br />
|
||||
<h2>Pactes de non agression</h2>
|
||||
<?php if ($this->_tpl_vars['pnas']): ?>
|
||||
<ul>
|
||||
<?php $_from = $this->_tpl_vars['pnas']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['pacte']):
|
||||
?>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&v=<?php echo $this->_tpl_vars['pacte']['alliance_id']; ?>
|
||||
">[<?php echo $this->_tpl_vars['pacte']['tag']; ?>
|
||||
] <?php echo $this->_tpl_vars['pacte']['nom_alliance']; ?>
|
||||
</a> depuis le <?php echo ((is_array($_tmp=$this->_tpl_vars['pacte']['time_creation'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y") : smarty_modifier_date_format($_tmp, "%d/%m/%y")); ?>
|
||||
<?php if ($this->_tpl_vars['planete']->permissions_alliance & 8): ?> - <em><a href="<?php echo $this->_tpl_vars['menu']['diplomatie']; ?>
|
||||
&s=<?php echo $this->_tpl_vars['pacte']['id']; ?>
|
||||
">Abroger le pacte</a></em><?php endif; ?></li>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</ul>
|
||||
<?php else: ?>
|
||||
<h3>Aucun pacte de ce type n'est actuellement en vigueur</h3>
|
||||
<?php endif; ?>
|
||||
<br />
|
||||
<h2>Pactes commerciaux</h2>
|
||||
<?php if ($this->_tpl_vars['pcs']): ?>
|
||||
<ul>
|
||||
<?php $_from = $this->_tpl_vars['pcs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['pacte']):
|
||||
?>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&v=<?php echo $this->_tpl_vars['pacte']['alliance_id']; ?>
|
||||
">[<?php echo $this->_tpl_vars['pacte']['tag']; ?>
|
||||
] <?php echo $this->_tpl_vars['pacte']['nom_alliance']; ?>
|
||||
</a> depuis le <?php echo ((is_array($_tmp=$this->_tpl_vars['pacte']['time_creation'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y") : smarty_modifier_date_format($_tmp, "%d/%m/%y")); ?>
|
||||
<?php if ($this->_tpl_vars['planete']->permissions_alliance & 8): ?> - <em><a href="<?php echo $this->_tpl_vars['menu']['diplomatie']; ?>
|
||||
&s=<?php echo $this->_tpl_vars['pacte']['id']; ?>
|
||||
">Abroger le pacte</a></em><?php endif; ?></li>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</ul>
|
||||
<?php else: ?>
|
||||
<h3>Aucun pacte de ce type n'est actuellement en vigueur</h3>
|
||||
<?php endif; ?>
|
||||
<br />
|
||||
<h2>Pactes militaires</h2>
|
||||
<?php if ($this->_tpl_vars['pms']): ?>
|
||||
<ul>
|
||||
<?php $_from = $this->_tpl_vars['pms']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['pacte']):
|
||||
?>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&v=<?php echo $this->_tpl_vars['pacte']['alliance_id']; ?>
|
||||
">[<?php echo $this->_tpl_vars['pacte']['tag']; ?>
|
||||
] <?php echo $this->_tpl_vars['pacte']['nom_alliance']; ?>
|
||||
</a> depuis le <?php echo ((is_array($_tmp=$this->_tpl_vars['pacte']['time_creation'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y") : smarty_modifier_date_format($_tmp, "%d/%m/%y")); ?>
|
||||
<?php if ($this->_tpl_vars['planete']->permissions_alliance & 8): ?> - <em><a href="<?php echo $this->_tpl_vars['menu']['diplomatie']; ?>
|
||||
&s=<?php echo $this->_tpl_vars['pacte']['id']; ?>
|
||||
">Abroger le pacte</a></em><?php endif; ?></li>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</ul>
|
||||
<?php else: ?>
|
||||
<h3>Aucun pacte de ce type n'est actuellement en vigueur</h3>
|
||||
<?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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,97 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-11-01 00:37:40
|
||||
compiled from game/batiments.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'ucfirst', 'game/batiments.tpl', 14, false),array('modifier', 'countdown', 'game/batiments.tpl', 14, false),array('modifier', 'separerNombres', 'game/batiments.tpl', 33, 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);
|
||||
?>
|
||||
<ul class="onglets">
|
||||
<li<?php if ($this->_tpl_vars['onglet'] == 0): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
||||
">Tous</a></li>
|
||||
<li<?php if ($this->_tpl_vars['onglet'] & 1): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
||||
&n=1">Mines/centrales</a></li>
|
||||
<li<?php if ($this->_tpl_vars['onglet'] & 2): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
||||
&n=2">Civils</a></li>
|
||||
<li<?php if ($this->_tpl_vars['onglet'] & 4): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
||||
&n=4">Militaires</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>File d'attente</h2>
|
||||
<ul id="file">
|
||||
<?php ob_start(); ?>
|
||||
<?php $_from = $this->_tpl_vars['files']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['keyF'] => $this->_tpl_vars['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['keyE'] => $this->_tpl_vars['element']):
|
||||
?>
|
||||
<li><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['batiments']['noms_sing'][$this->_tpl_vars['element']['0']])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
<?php if ($this->_tpl_vars['element']['1']): ?> (démolition)<?php endif; ?> - <span<?php if ($this->_tpl_vars['element']['3']): ?> class="countdown"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['element']['2'])) ? $this->_run_mod_handler('countdown', true, $_tmp) : smarty_modifier_countdown($_tmp)); ?>
|
||||
</span> - <a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['keyF']; ?>
|
||||
&b=<?php echo $this->_tpl_vars['keyE']; ?>
|
||||
">Annuler</a></li>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php $this->_smarty_vars['capture']['expFile'] = ob_get_contents(); ob_end_clean(); ?>
|
||||
<?php if ($this->_tpl_vars['files'] && $this->_smarty_vars['capture']['expFile']): ?>
|
||||
<?php echo $this->_smarty_vars['capture']['expFile']; ?>
|
||||
|
||||
<?php else: ?>
|
||||
<li>Aucun bâtiment dans la file d'attente</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
<h3><a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
||||
&q=batiments">Arbre des technologies</a></h3><br />
|
||||
<h2>Bâtiments</h2>
|
||||
<div id="constructions">
|
||||
<?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']):
|
||||
?>
|
||||
<dl>
|
||||
<dt><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['batiments']['noms_sing'][$this->_tpl_vars['batiment']['id']])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
<?php if ($this->_tpl_vars['batiment']['niveau'] > 0): ?> (Niveau <?php echo $this->_tpl_vars['batiment']['niveau']; ?>
|
||||
)<?php endif; ?></dt>
|
||||
<dd class="description"><a href="?p=description&b=<?php echo $this->_tpl_vars['batiment']['id']; ?>
|
||||
#body"><img src="<?php echo $this->_tpl_vars['url_images']; ?>
|
||||
images/batiments/<?php echo $this->_tpl_vars['batiment']['image']; ?>
|
||||
" alt="<?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['batiments']['noms_sing'][$this->_tpl_vars['batiment']['id']]; ?>
|
||||
" /></a><p><?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['batiments']['descriptions'][$this->_tpl_vars['batiment']['id']]; ?>
|
||||
</p></dd>
|
||||
<dd>
|
||||
<?php if ($this->_tpl_vars['batiment']['niveau'] > 0): ?>Niveau actuel : <em><?php echo $this->_tpl_vars['batiment']['niveau']; ?>
|
||||
</em><br /><br /><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['batiment']['nec_metal'] > 0): ?>Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['metal']; ?>
|
||||
: <em<?php if ($this->_tpl_vars['batiment']['nec_metal'] > $this->_tpl_vars['planete']->metal): ?> class="lack"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['batiment']['nec_metal'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</em><br /><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['batiment']['nec_cristal'] > 0): ?>Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['cristal']; ?>
|
||||
: <em<?php if ($this->_tpl_vars['batiment']['nec_cristal'] > $this->_tpl_vars['planete']->cristal): ?> class="lack"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['batiment']['nec_cristal'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</em><br /><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['batiment']['nec_hydrogene'] > 0): ?>Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['hydrogene']; ?>
|
||||
: <em<?php if ($this->_tpl_vars['batiment']['nec_hydrogene'] > $this->_tpl_vars['planete']->hydrogene): ?> class="lack"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['batiment']['nec_hydrogene'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</em><br /><?php endif; ?>
|
||||
Temps de construction : <em><?php echo $this->_tpl_vars['batiment']['temps']; ?>
|
||||
</em><br />
|
||||
<br />
|
||||
<?php if ($this->_tpl_vars['batiment']['nec_hydrogene'] > $this->_tpl_vars['planete']->hydrogene || $this->_tpl_vars['batiment']['nec_cristal'] > $this->_tpl_vars['planete']->cristal || $this->_tpl_vars['batiment']['nec_metal'] > $this->_tpl_vars['planete']->metal): ?><span class="lack" title="Rassemblez les ressources manquantes avant de lancer la construction de ce batiment">Ressources insuffisantes</span>
|
||||
<?php else: ?><?php if ($this->_tpl_vars['planete']->casesRest >= 1): ?><a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
||||
&c=<?php echo $this->_tpl_vars['batiment']['id']; ?>
|
||||
">Construire</a><?php endif; ?><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['batiment']['enfile'] !== false): ?><a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['batiment']['enfile']['0']; ?>
|
||||
&b=<?php echo $this->_tpl_vars['batiment']['enfile']['1']; ?>
|
||||
">Arrêter</a><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['batiment']['niveau'] > 0): ?> <a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
||||
&d=<?php echo $this->_tpl_vars['batiment']['id']; ?>
|
||||
">Démolir un niveau</a><?php endif; ?>
|
||||
</dd>
|
||||
</dl>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</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,15 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 19:26:57
|
||||
compiled from cms/erreur.tpl */ ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'cms/header.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<div class="error"<?php if ($this->_tpl_vars['couleur']): ?> style="color: <?php echo $this->_tpl_vars['couleur']; ?>
|
||||
;"<?php endif; ?>><?php echo $this->_tpl_vars['message']; ?>
|
||||
</div>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'cms/footer.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 16:47:17
|
||||
compiled from game/diplomatie/nouveau.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);
|
||||
?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/diplomatie/common.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<h2>Nouvelle déclaration de guerre</h2>
|
||||
<form method="post" action="<?php echo $this->_tpl_vars['menu']['diplomatie']; ?>
|
||||
&o=new">
|
||||
<fieldset class="option">
|
||||
<label for="type">Type de pacte :</label> Déclaration de guerre<input type="hidden" name="type" value="0" /><br /><br />
|
||||
<label for="nom_alli">Nom de l'alliance cible :</label> <input type="text" class="text" name="nom_alli" id="nom_alli" maxlength="64" /><br /><br />
|
||||
<input class="submit" type="submit" value="Go" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<br /><br />
|
||||
<h2>Nouveau pacte</h2>
|
||||
<form method="post" action="<?php echo $this->_tpl_vars['menu']['diplomatie']; ?>
|
||||
&o=new">
|
||||
<fieldset class="option">
|
||||
<label for="type">Type de pacte :</label> <select name="type" id="type"><option value="1">Pacte de non agression</option><option value="2">Pacte commercial</option><option value="3">Pacte militaire</option></select><br /><br />
|
||||
<label for="nom_alli">Nom de l'alliance cible :</label> <input type="text" class="text" name="nom_alli" id="nom_alli" maxlength="64" /><br /><br />
|
||||
<input class="submit" type="submit" value="Go" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<?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,12 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 16:36:07
|
||||
compiled from game/alliance/gestion_common.tpl */ ?>
|
||||
<ul class="onglets">
|
||||
<?php if ($this->_tpl_vars['planete']->permissions_alliance & 32): ?><li<?php if ($this->_tpl_vars['onglet'] == 'membres'): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
||||
&g=membres">Membres</a></li><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['planete']->permissions_alliance & 128): ?><li<?php if ($this->_tpl_vars['onglet'] == 'grades'): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
||||
&g=grades">Grades</a></li><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['planete']->permissions_alliance & 64): ?><li<?php if ($this->_tpl_vars['onglet'] == 'wings' || ( $this->_tpl_vars['onglet'] == 'alliance' && $this->_tpl_vars['planete']->wing )): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
||||
&g=wings">Wings</a></li><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['planete']->permissions_alliance & 128 && ! $this->_tpl_vars['planete']->wing): ?><li<?php if ($this->_tpl_vars['onglet'] == 'alliance'): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
||||
&g=alliance">Alliance</a></li><?php endif; ?>
|
||||
</ul>
|
||||
|
|
@ -0,0 +1,98 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 17:50:35
|
||||
compiled from game/caserne.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'countdown', 'game/caserne.tpl', 7, false),array('modifier', 'ucfirst', 'game/caserne.tpl', 19, false),array('modifier', 'separerNombres', 'game/caserne.tpl', 28, 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>File d'attente</h2>
|
||||
<ul id="file">
|
||||
<?php ob_start(); ?>
|
||||
<?php $_from = $this->_tpl_vars['files']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['keyF'] => $this->_tpl_vars['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['keyE'] => $this->_tpl_vars['element']):
|
||||
?>
|
||||
<?php if ($this->_tpl_vars['element']['5']): ?><li><strong>Prochaine unité </strong> : <span class="countdown"><?php echo ((is_array($_tmp=$this->_tpl_vars['element']['4'])) ? $this->_run_mod_handler('countdown', true, $_tmp) : smarty_modifier_countdown($_tmp)); ?>
|
||||
</span></li><?php endif; ?>
|
||||
<li><?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émolition)<?php endif; ?> - <span<?php if ($this->_tpl_vars['element']['5']): ?> class="countdown"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['element']['3'])) ? $this->_run_mod_handler('countdown', true, $_tmp) : smarty_modifier_countdown($_tmp)); ?>
|
||||
</span> - <a href="<?php echo $this->_tpl_vars['menu']['caserne']; ?>
|
||||
&n=<?php echo $this->_tpl_vars['onglet']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['keyF']; ?>
|
||||
&b=<?php echo $this->_tpl_vars['keyE']; ?>
|
||||
">Annuler un</a> - <a href="<?php echo $this->_tpl_vars['menu']['caserne']; ?>
|
||||
&n=<?php echo $this->_tpl_vars['onglet']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['keyF']; ?>
|
||||
&b=<?php echo $this->_tpl_vars['keyE']; ?>
|
||||
&s=<?php echo $this->_tpl_vars['element']['1']; ?>
|
||||
">Annuler tous</a></li>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php $this->_smarty_vars['capture']['expFile'] = ob_get_contents(); ob_end_clean(); ?>
|
||||
<?php if ($this->_tpl_vars['files'] && $this->_smarty_vars['capture']['expFile']): ?>
|
||||
<?php echo $this->_smarty_vars['capture']['expFile']; ?>
|
||||
|
||||
<?php else: ?>
|
||||
<li>Aucune unité dans la file d'attente</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
<h3><a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
||||
&q=caserne">Arbre des technologies</a></h3><br />
|
||||
<h2><?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)); ?>
|
||||
</h2>
|
||||
<?php if ($this->_tpl_vars['unites']): ?>
|
||||
<div id="constructions">
|
||||
<?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']):
|
||||
?>
|
||||
<dl>
|
||||
<dt><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['caserne']['noms_sing'][$this->_tpl_vars['unite']['id']])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
<?php if ($this->_tpl_vars['unite']['nombre'] > 0): ?> (<?php echo $this->_tpl_vars['unite']['nombre']; ?>
|
||||
unité<?php if ($this->_tpl_vars['unite']['nombre'] > 1): ?>s<?php endif; ?>)<?php endif; ?></dt>
|
||||
<dd class="description"><a href="?p=description&c=<?php echo $this->_tpl_vars['unite']['id']; ?>
|
||||
#body"><img src="<?php echo $this->_tpl_vars['url_images']; ?>
|
||||
images/caserne/<?php echo $this->_tpl_vars['unite']['image']; ?>
|
||||
" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['caserne']['noms_sing'][$this->_tpl_vars['unite']['id']])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
" /></a><p><?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['caserne']['descriptions'][$this->_tpl_vars['unite']['id']]; ?>
|
||||
</p></dd>
|
||||
<dd>
|
||||
<?php if ($this->_tpl_vars['unite']['nombre'] > 0): ?><strong>Nombre actuel :</strong> <?php echo $this->_tpl_vars['unite']['nombre']; ?>
|
||||
<br /><br /><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['unite']['nec_metal'] > 0): ?><strong>Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['metal']; ?>
|
||||
:</strong> <?php echo ((is_array($_tmp=$this->_tpl_vars['unite']['nec_metal'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['unite']['nec_cristal'] > 0): ?><strong>Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['cristal']; ?>
|
||||
:</strong> <?php echo ((is_array($_tmp=$this->_tpl_vars['unite']['nec_cristal'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
<br /><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['unite']['nec_hydrogene'] > 0): ?><strong>Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['hydrogene']; ?>
|
||||
:</strong> <?php echo ((is_array($_tmp=$this->_tpl_vars['unite']['nec_hydrogene'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
<br /><?php endif; ?>
|
||||
<strong>Temps de construction :</strong> <?php echo $this->_tpl_vars['unite']['temps']; ?>
|
||||
<br />
|
||||
<br />
|
||||
<?php if ($this->_tpl_vars['unite']['nec_hydrogene'] > $this->_tpl_vars['planete']->hydrogene || $this->_tpl_vars['unite']['nec_cristal'] > $this->_tpl_vars['planete']->cristal || $this->_tpl_vars['unite']['nec_metal'] > $this->_tpl_vars['planete']->metal): ?><span class="lack">Ressources insuffisantes</span>
|
||||
<?php else: ?><form action="<?php echo $this->_tpl_vars['menu']['caserne']; ?>
|
||||
&c=<?php echo $this->_tpl_vars['unite']['id']; ?>
|
||||
" method="post"><fieldset>
|
||||
<label for="cas<?php echo $this->_tpl_vars['unite']['id']; ?>
|
||||
">Nombre : <input type="text" class="text" name="cas<?php echo $this->_tpl_vars['unite']['id']; ?>
|
||||
" id="cas<?php echo $this->_tpl_vars['unite']['id']; ?>
|
||||
" value="0" /></label>
|
||||
<input type="submit" class="submit" value="OK" />
|
||||
</fieldset></form><?php endif; ?>
|
||||
</dd>
|
||||
</dl>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</div>
|
||||
<?php else: ?> <div id="erreur">Aucune unité à entraîner actuellement.</div><?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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,49 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-09-10 16:04:31
|
||||
compiled from admin/mail_liste.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'admin/mail_liste.tpl', 18, false),array('modifier', 'truncate', 'admin/mail_liste.tpl', 18, false),array('modifier', 'date_format', 'admin/mail_liste.tpl', 19, 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);
|
||||
?>
|
||||
<table style="width: 80%;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Action</th>
|
||||
<th>Statut</th>
|
||||
<th>Emetteur</th>
|
||||
<th>Sujet</th>
|
||||
<th>Date</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['mails']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['ligne']):
|
||||
?>
|
||||
<tr<?php if ($this->_tpl_vars['ligne']['statut'] >= 1): ?> style="background: #<?php if ($this->_tpl_vars['ligne']['statut'] == 1): ?>770000<?php elseif ($this->_tpl_vars['ligne']['statut'] == 2): ?>007700<?php elseif ($this->_tpl_vars['ligne']['statut'] == 3): ?>000077<?php elseif ($this->_tpl_vars['ligne']['statut'] == 4): ?>770077<?php elseif ($this->_tpl_vars['ligne']['statut'] == 5): ?>007777<?php elseif ($this->_tpl_vars['ligne']['statut'] == 6): ?>777700<?php endif; ?>;"<?php endif; ?>>
|
||||
<td><a href="?p=<?php echo $this->_tpl_vars['linkpage']; ?>
|
||||
&w=<?php echo $this->_tpl_vars['ligne']['id']; ?>
|
||||
">STAT</a><br /><a href="?p=<?php echo $this->_tpl_vars['linkpage']; ?>
|
||||
&v=<?php echo $this->_tpl_vars['ligne']['id']; ?>
|
||||
">LIRE</a><br /><a href="?p=<?php echo $this->_tpl_vars['linkpage']; ?>
|
||||
&d=<?php echo $this->_tpl_vars['ligne']['id']; ?>
|
||||
" onclick="return confirm('Supprimer ce message ?');">SUPPR</a></td>
|
||||
<td><?php echo $this->_tpl_vars['ligne']['statut']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['ligne']['pseudo']; ?>
|
||||
</td>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['ligne']['titre'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
<br /><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['ligne']['contenu'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('truncate', true, $_tmp, 50) : smarty_modifier_truncate($_tmp, 50)); ?>
|
||||
</td>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['ligne']['time'])) ? $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>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?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,26 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 19:30:39
|
||||
compiled from game/options/4.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);
|
||||
?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/options/common.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<h2>Recevoir des notifications par mail</h2>
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['options']; ?>
|
||||
&n=notif" method="post">
|
||||
<fieldset class="form">
|
||||
<label for="rapport">Nouveau rapport <input type="checkbox" name="rapport" id="rapport" value="1" class="text" <?php if ($this->_tpl_vars['planete']->envoyerMail & 1): ?>checked="checked" <?php endif; ?>/></label><br />
|
||||
<label for="mp">Nouveau message privé <input type="checkbox" name="mp" id="mp" value="1" class="text" <?php if ($this->_tpl_vars['planete']->envoyerMail & 2): ?>checked="checked" <?php endif; ?>/></label><br />
|
||||
<br /><br /><input class="submit" type="submit" name="notif" value="OK" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<?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,12 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 19:30:41
|
||||
compiled from game/options/common.tpl */ ?>
|
||||
<ul class="onglets">
|
||||
<li<?php if ($this->_tpl_vars['onglet'] == 'ext'): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['options']; ?>
|
||||
&n=ext">Extérieures</a></li>
|
||||
<li<?php if ($this->_tpl_vars['onglet'] == 'compte'): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['options']; ?>
|
||||
&n=compte">Compte</a></li>
|
||||
<li<?php if ($this->_tpl_vars['onglet'] == 'jeu'): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['options']; ?>
|
||||
&n=jeu">Jeu</a></li>
|
||||
<li<?php if ($this->_tpl_vars['onglet'] == 'notif'): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['options']; ?>
|
||||
&n=notif">Notifications</a></li>
|
||||
</ul>
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 21:47:04
|
||||
compiled from game/rename.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'game/rename.tpl', 7, 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>Abandonner la planète</h2>
|
||||
<?php if ($this->_tpl_vars['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=<?php echo $this->_tpl_vars['abandonH']; ?>
|
||||
&i=<?php echo $this->_tpl_vars['planete']->id; ?>
|
||||
" onclick="return confirm('Êtes-vous sûr de vouloir abandonner cette planète ?');">cliquez sur ce lien</a>.<br /><br />
|
||||
<?php else: ?>Vous ne pouvez pas abandonner cette planète car vous n'en avez pas d'autre.<br /><br /><?php endif; ?>
|
||||
<h2>Renommer la planète</h2>
|
||||
<dl id="about">
|
||||
<dt><img src="<?php echo $this->_tpl_vars['url_images']; ?>
|
||||
images/planetes/<?php echo $this->_tpl_vars['planete']->image; ?>
|
||||
.jpg" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['planete']->nom_planete)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
" /></dt>
|
||||
<dd>
|
||||
<form action="?p=rename" method="post"><fieldset class="form">
|
||||
<label for="rename">Nom de la planète (<?php echo $this->_tpl_vars['planete']->galaxie; ?>
|
||||
:<?php echo $this->_tpl_vars['planete']->ss; ?>
|
||||
:<?php echo $this->_tpl_vars['planete']->position; ?>
|
||||
) : <input type="text" class="text" name="planete" id="rename" maxlength="18" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['planete']->nom_planete)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
" /></label><br />
|
||||
<input type="submit" class="submit" value="OK" />
|
||||
</fieldset></form>
|
||||
</dd>
|
||||
</dl>
|
||||
<?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,26 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 16:26:01
|
||||
compiled from game/alliance/nm_postuler.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'capitalize', 'game/alliance/nm_postuler.tpl', 2, false),array('modifier', 'escape', 'game/alliance/nm_postuler.tpl', 2, false),array('modifier', 'bbcode', 'game/alliance/nm_postuler.tpl', 5, false),array('modifier', 'nl2br', 'game/alliance/nm_postuler.tpl', 5, 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>Postuler pour l'alliance : <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['alliance']['nom_alliance'])) ? $this->_run_mod_handler('capitalize', true, $_tmp) : smarty_modifier_capitalize($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
</h2>
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&postuler=<?php echo $this->_tpl_vars['alliance']['id']; ?>
|
||||
" method="post">
|
||||
<fieldset class="form">
|
||||
<p><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['alliance']['message_inscription'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('bbcode', true, $_tmp) : smarty_modifier_bbcode($_tmp)))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
|
||||
</p>
|
||||
<label for="motivation">Message de motivation : <textarea name="motivation" id="motivation"></textarea></label><br />
|
||||
<input type="submit" class="submit" value="Ok" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<?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,38 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-09-10 19:03:46
|
||||
compiled from game/envoyer_alli.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'game/envoyer_alli.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;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<h2>Messagerie</h2>
|
||||
<ul class="onglets">
|
||||
<li<?php if ($this->_tpl_vars['onglet'] != 'rapports' && $this->_tpl_vars['onglet'] != 'send' && $this->_tpl_vars['onglet'] != 'envoyer'): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['messages']; ?>
|
||||
&n=recus">Reçus</a><?php if ($this->_tpl_vars['alertMail']['0']): ?> (<?php echo $this->_tpl_vars['alertMail']['0']; ?>
|
||||
)<?php endif; ?></li>
|
||||
<li<?php if ($this->_tpl_vars['onglet'] == 'rapports'): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['messages']; ?>
|
||||
&n=rapports">Rapports</a><?php if ($this->_tpl_vars['alertMail']['1']): ?> (<?php echo $this->_tpl_vars['alertMail']['1']; ?>
|
||||
)<?php endif; ?></li>
|
||||
<li<?php if ($this->_tpl_vars['onglet'] == 'send'): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['messages']; ?>
|
||||
&n=send">Envoyés</a></li>
|
||||
<li<?php if ($this->_tpl_vars['onglet'] == 'envoyer'): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['messages']; ?>
|
||||
&n=envoyer">Ecrire</a></li>
|
||||
</ul><br /><br />
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['messages']; ?>
|
||||
&n=envoyer" method="post">
|
||||
<fieldset id="envoyer">
|
||||
<label for="destinataire">Destinataire(s) : <input type="text" class="text" name="destinataire" id="destinataire" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['destinataire'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
" /></label><br />
|
||||
<label for="objet">Objet : <input type="text" class="text" name="objet" id="objet" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['objet'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
" /></label><br />
|
||||
<textarea name="message" id="message" cols="40" rows="10"></textarea><br />
|
||||
<input type="submit" class="submit" value="OK" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<?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,233 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-11-01 00:38:02
|
||||
compiled from game/accueil.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'game/accueil.tpl', 2, false),array('modifier', 'upper', 'game/accueil.tpl', 2, false),array('modifier', 'date_format', 'game/accueil.tpl', 3, false),array('modifier', 'separerNombres', 'game/accueil.tpl', 25, false),array('modifier', 'ucfirst', 'game/accueil.tpl', 56, 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);
|
||||
?>
|
||||
<h3><a href="?p=rename"><?php if (( @SURFACE == 'planete' && ! $this->_tpl_vars['planete']->nom_planete ) || ( @SURFACE == 'asteroide' && ! $this->_tpl_vars['planete']->nom_asteroide )): ?>Sans nom<?php endif; ?><?php if (@SURFACE == 'planete'): ?><?php echo ((is_array($_tmp=$this->_tpl_vars['planete']->nom_planete)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
<?php else: ?><?php echo ((is_array($_tmp=$this->_tpl_vars['planete']->nom_asteroide)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
<?php endif; ?></a> (<span><?php if (@SURFACE == 'planete'): ?><?php echo $this->_tpl_vars['planete']->pseudo; ?>
|
||||
<?php else: ?>[<?php echo ((is_array($_tmp=$this->_tpl_vars['planete']->tag)) ? $this->_run_mod_handler('upper', true, $_tmp) : smarty_modifier_upper($_tmp)); ?>
|
||||
] <?php echo $this->_tpl_vars['planete']->nom_alliance; ?>
|
||||
<?php endif; ?></span>)</h3>
|
||||
<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>
|
||||
<h2>Événements</h2>
|
||||
<?php ob_start(); ?>
|
||||
<?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; ?>
|
||||
<?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&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; ?>
|
||||
<?php $this->_smarty_vars['capture']['events'] = ob_get_contents(); ob_end_clean(); ?>
|
||||
<?php if ($this->_smarty_vars['capture']['events']): ?>
|
||||
<?php echo $this->_smarty_vars['capture']['events']; ?>
|
||||
|
||||
<?php else: ?>
|
||||
<h4>Rien à signaler !</h4>
|
||||
<?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&galaxie=<?php echo $this->_tpl_vars['planete']->galaxie; ?>
|
||||
&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>
|
||||
<h4>Classement: <a href="?p=classement&j=<?php echo $this->_tpl_vars['planete']->id; ?>
|
||||
&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['planete']->points)) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
points)</a></h4>
|
||||
<?php else: ?>
|
||||
<h4>nombre de membres: <?php echo ((is_array($_tmp=$this->_tpl_vars['planete']->details['nb_membres'])) ? $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>
|
||||
<h4>Classement: <a href="?p=classement&j=<?php echo $this->_tpl_vars['planete']->id; ?>
|
||||
&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['planete']->points_alliance)) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
points)</a></h4>
|
||||
<?php endif; ?>
|
||||
<?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'): ?>
|
||||
<?php ob_start(); ?>
|
||||
<?php $this->assign('i', false); ?>
|
||||
<?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['keyF'] => $this->_tpl_vars['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['keyE'] => $this->_tpl_vars['element']):
|
||||
?>
|
||||
<?php if ($this->_tpl_vars['keyE'] < 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['keyE'] == 3): ?>...<?php endif; ?>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</h4>
|
||||
<?php endif; ?>
|
||||
<?php $this->assign('i', false); ?>
|
||||
<?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['keyF'] => $this->_tpl_vars['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['keyE'] => $this->_tpl_vars['element']):
|
||||
?>
|
||||
<?php if ($this->_tpl_vars['keyE'] < 3): ?><?php if ($this->_tpl_vars['i'] == true): ?> - <?php else: ?><?php $this->assign('i', 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 elseif ($this->_tpl_vars['keyE'] == 3): ?>...<?php endif; ?>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</h4>
|
||||
<?php endif; ?>
|
||||
<?php $this->assign('i', false); ?>
|
||||
<?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['keyF'] => $this->_tpl_vars['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['keyE'] => $this->_tpl_vars['element']):
|
||||
?>
|
||||
<?php if ($this->_tpl_vars['keyE'] < 3): ?><?php if ($this->_tpl_vars['i'] == true): ?> - <?php else: ?><?php $this->assign('i', 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 elseif ($this->_tpl_vars['keyE'] == 3): ?>...<?php endif; ?>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</h4>
|
||||
<?php endif; ?>
|
||||
<?php $this->assign('i', false); ?>
|
||||
<?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['keyF'] => $this->_tpl_vars['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['keyE'] => $this->_tpl_vars['element']):
|
||||
?>
|
||||
<?php if ($this->_tpl_vars['keyE'] < 3): ?><?php if ($this->_tpl_vars['i'] == true): ?> - <?php else: ?><?php $this->assign('i', 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 elseif ($this->_tpl_vars['keyE'] == 3): ?>...<?php endif; ?>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</h4>
|
||||
<?php endif; ?>
|
||||
<?php $this->assign('i', false); ?>
|
||||
<?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['keyF'] => $this->_tpl_vars['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['keyE'] => $this->_tpl_vars['element']):
|
||||
?>
|
||||
<?php if ($this->_tpl_vars['keyE'] < 3): ?><?php if ($this->_tpl_vars['i'] == true): ?> - <?php else: ?><?php $this->assign('i', 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 elseif ($this->_tpl_vars['keyE'] == 3): ?>...<?php endif; ?>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</h4>
|
||||
<?php endif; ?>
|
||||
<?php $this->_smarty_vars['capture']['expFile'] = ob_get_contents(); ob_end_clean(); ?>
|
||||
<h2>En cours sur la planète</h2>
|
||||
<?php if ($this->_smarty_vars['capture']['expFile']): ?>
|
||||
<?php echo $this->_smarty_vars['capture']['expFile']; ?>
|
||||
|
||||
<?php else: ?>
|
||||
<h4>Tous les chantiers sont terminés !</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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-09-19 23:46:11
|
||||
compiled from admin/bdd.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'admin/bdd.tpl', 4, 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);
|
||||
?>
|
||||
<?php if ($_POST['req'] || $_GET['req']): ?>
|
||||
<h2>Réponse de la base de données - <a href="#req">Aller à la requête</a></h2>
|
||||
<h3><strong>Requête :</strong> <em><?php echo ((is_array($_tmp=$_POST['req'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
</em></h3>
|
||||
<?php if ($this->_tpl_vars['affected']): ?>
|
||||
<h3><strong>Enregistrement(s) affecté(s) :</strong> <?php echo $this->_tpl_vars['affected']; ?>
|
||||
</h3>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['erreur']): ?>
|
||||
<h3 style="color: #FF0000;"><strong>Erreur :</strong> <em><?php echo $this->_tpl_vars['erreur']; ?>
|
||||
</em></h3>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['reponses']): ?>
|
||||
<div id="gestion">
|
||||
<table style="empty-cells:show;">
|
||||
<tr>
|
||||
<?php $_from = $this->_tpl_vars['reponses']['0']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['reponse']):
|
||||
?>
|
||||
<th><?php echo $this->_tpl_vars['key']; ?>
|
||||
</th>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tr>
|
||||
<?php $_from = $this->_tpl_vars['reponses']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['reponse']):
|
||||
?>
|
||||
<tr>
|
||||
<?php $_from = $this->_tpl_vars['reponse']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['ligne']):
|
||||
?>
|
||||
<td><?php if ($this->_tpl_vars['lien']): ?><a href="?p=bdd&req=<?php echo $this->_tpl_vars['lien']; ?>
|
||||
<?php echo $this->_tpl_vars['ligne']; ?>
|
||||
"><?php endif; ?><?php echo $this->_tpl_vars['ligne']; ?>
|
||||
</td>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</table>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<h2>Administration de la base de données</h2>
|
||||
<form action="?p=bdd" method="post">
|
||||
<fieldset class="options">
|
||||
<label for="req">Requête :</label><br /><textarea name="req" id="req" rows="5" cols="15" tabindex="2"><?php if ($_GET['req']): ?><?php echo $_GET['req']; ?>
|
||||
<?php endif; ?><?php echo ((is_array($_tmp=$_POST['req'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
</textarea><br />
|
||||
<input type="submit" class="submit" value="GO" tabindex="3" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<?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,68 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 21:06:14
|
||||
compiled from game/ressources.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'ucfirst', 'game/ressources.tpl', 5, false),array('modifier', 'separerNombres', 'game/ressources.tpl', 7, 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>Ressources : Tableau récapitulatif des productions par heure</h2>
|
||||
<form method="post" action="<?php echo $this->_tpl_vars['menu']['ressources']; ?>
|
||||
"><fieldset id="ressources">
|
||||
<table>
|
||||
<thead><tr><th> </th><th>Coefficient</th><th><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['metal'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</th><th><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['cristal'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</th><th><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['hydrogene'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</th><th><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['energie'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</th></tr></thead>
|
||||
<tbody>
|
||||
<tr><td><?php echo $this->_tpl_vars['planete']->batiments['0']; ?>
|
||||
<?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['batiments']['noms_sing']['0'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</td><td><input type="text" name="coeff_metal" class="text" value="<?php echo $this->_tpl_vars['ressources_coef']['0']; ?>
|
||||
" maxlength="3" size="3" />%</td><td><?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_prod']['0'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</td><td>0</td><td>0</td><td class="lack">-<?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_conso']['0'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</td></tr>
|
||||
<?php if ($this->_tpl_vars['planete']->batiments['1']): ?><tr><td><?php echo $this->_tpl_vars['planete']->batiments['1']; ?>
|
||||
<?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['batiments']['noms_sing']['1'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</td><td><input type="text" name="coeff_cristal" class="text" value="<?php echo $this->_tpl_vars['ressources_coef']['1']; ?>
|
||||
" maxlength="3" size="3" />%</td><td>0</td><td><?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_prod']['1'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</td><td>0</td><td class="lack">-<?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_conso']['1'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</td></tr><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['planete']->batiments['2']): ?><tr><td><?php echo $this->_tpl_vars['planete']->batiments['2']; ?>
|
||||
<?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['batiments']['noms_sing']['2'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</td><td><input type="text" name="coeff_hydrogene" class="text" value="<?php echo $this->_tpl_vars['ressources_coef']['2']; ?>
|
||||
" maxlength="3" size="3" />%</td><td>0</td><td>0</td><td><?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_prod']['2'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</td><td class="lack">-<?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_conso']['2'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</td></tr><?php endif; ?>
|
||||
<tr><td><?php echo $this->_tpl_vars['planete']->batiments['3']; ?>
|
||||
<?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['batiments']['noms_sing']['3'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</td><td><input type="text" name="coeff_cs" class="text" value="<?php echo $this->_tpl_vars['ressources_coef']['3']; ?>
|
||||
" maxlength="3" size="3" />%</td><td>0</td><td>0</td><td>0</td><td><?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_prod']['3'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</td></tr>
|
||||
<?php if ($this->_tpl_vars['planete']->batiments['4']): ?><tr><td><?php echo $this->_tpl_vars['planete']->batiments['4']; ?>
|
||||
<?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['batiments']['noms_sing']['4'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</td><td><input type="text" name="coeff_ce" class="text" value="<?php echo $this->_tpl_vars['ressources_coef']['4']; ?>
|
||||
" maxlength="3" size="3" />%</td><td>0</td><td>0</td><td class="lack">-<?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_conso']['3'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</td><td><?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_prod']['4'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</td></tr><?php endif; ?>
|
||||
<tr><td><?php echo $this->_tpl_vars['planete']->batiments['10']; ?>
|
||||
<?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['batiments']['noms_sing']['10'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</td><td>-</td><td><?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_silo']['1'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</td><td><?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_silo']['1'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</td><td><?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_silo']['1'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</td><td>0</td></tr>
|
||||
<tr><th>Total</th><td>-</td><td><?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_prod']['0'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</td><td><?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_prod']['1'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</td><td><?php if ($this->_tpl_vars['planete']->batiments['3']): ?><?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_toto']['0'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
<?php else: ?>0<?php endif; ?></td><td<?php if ($this->_tpl_vars['planete']->energieConso >= $this->_tpl_vars['planete']->energie): ?> class="lack"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_conso']['4'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<input type="submit" class="submit" value="GO" />
|
||||
</fieldset></form>
|
||||
<?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,45 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 23:38:50
|
||||
compiled from cms/mini.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'sprintf', 'cms/mini.tpl', 21, false),)), $this); ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'cms/header.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<div id="connexion" class="block">
|
||||
<div class="header"><?php echo $this->_tpl_vars['LANG']['accueil']['login']['titre']; ?>
|
||||
</div>
|
||||
<div class="corps">
|
||||
<form action="?p=connexion" method="post">
|
||||
<fieldset>
|
||||
<span>
|
||||
<input type="text" class="text" name="HB_login" id="HB_login" maxlength="32" tabindex="1" />
|
||||
<input type="password" class="password" name="HB_password" id="HB_password" maxlength="32" tabindex="2" />
|
||||
<input type="submit" class="submit" value="GO" tabindex="3" />
|
||||
</span>
|
||||
<span>
|
||||
<label for="galaxie"><?php echo $this->_tpl_vars['LANG']['accueil']['login']['galaxie']; ?>
|
||||
:</label> <?php echo $this->_tpl_vars['serveur_name']; ?>
|
||||
|
||||
<a href="<?php echo $this->_tpl_vars['link']['oubliemdp']; ?>
|
||||
" tabindex="4"><?php echo $this->_tpl_vars['LANG']['accueil']['login']['forgotMdp']; ?>
|
||||
</a>
|
||||
</span>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="inscription" class="block"><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG']['accueil']['inscription']['texte'])) ? $this->_run_mod_handler('sprintf', true, $_tmp, $this->_tpl_vars['link']['inscription'], $this->_tpl_vars['link']['inscription'], $this->_tpl_vars['link']['inscription']) : smarty_modifier_sprintf($_tmp, $this->_tpl_vars['link']['inscription'], $this->_tpl_vars['link']['inscription'], $this->_tpl_vars['link']['inscription'])); ?>
|
||||
</div>
|
||||
<div id="dernierminute" class="block">
|
||||
<a href="http://www.halo.fr/" onclick="window.open(this.href); return false;"><img src="<?php echo $this->_tpl_vars['url_images']; ?>
|
||||
images/hfr.jpg" alt="Halo.fr" /></a>
|
||||
</div>
|
||||
<script type="text/javascript">document.getElementById("HB_login").focus();</script>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'cms/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.22, created on 2009-10-31 16:47:07
|
||||
compiled from game/diplomatie/archives.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'game/diplomatie/archives.tpl', 7, 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);
|
||||
?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/diplomatie/common.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<h2>Déclarations de guerre</h2>
|
||||
<?php if ($this->_tpl_vars['guerres']): ?>
|
||||
<ul>
|
||||
<?php $_from = $this->_tpl_vars['guerres']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['pacte']):
|
||||
?>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&v=<?php echo $this->_tpl_vars['pacte']['alliance_id']; ?>
|
||||
">[<?php echo $this->_tpl_vars['pacte']['tag']; ?>
|
||||
] <?php echo $this->_tpl_vars['pacte']['nom_alliance']; ?>
|
||||
</a> déclarée le <?php echo ((is_array($_tmp=$this->_tpl_vars['pacte']['time_creation'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y") : smarty_modifier_date_format($_tmp, "%d/%m/%y")); ?>
|
||||
et terminiée le <?php echo ((is_array($_tmp=$this->_tpl_vars['pacte']['time_fin'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y") : smarty_modifier_date_format($_tmp, "%d/%m/%y")); ?>
|
||||
</li>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</ul>
|
||||
<?php else: ?>
|
||||
<h3>Aucune guerre n'a été déclarée</h3>
|
||||
<?php endif; ?>
|
||||
<br />
|
||||
<h2>Pactes de non agression</h2>
|
||||
<?php if ($this->_tpl_vars['pnas']): ?>
|
||||
<ul>
|
||||
<?php $_from = $this->_tpl_vars['pnas']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['pacte']):
|
||||
?>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&v=<?php echo $this->_tpl_vars['pacte']['alliance_id']; ?>
|
||||
">[<?php echo $this->_tpl_vars['pacte']['tag']; ?>
|
||||
] <?php echo $this->_tpl_vars['pacte']['nom_alliance']; ?>
|
||||
</a> créé le <?php echo ((is_array($_tmp=$this->_tpl_vars['pacte']['time_creation'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y") : smarty_modifier_date_format($_tmp, "%d/%m/%y")); ?>
|
||||
et abrogé le <?php echo ((is_array($_tmp=$this->_tpl_vars['pacte']['time_fin'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y") : smarty_modifier_date_format($_tmp, "%d/%m/%y")); ?>
|
||||
</li>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</ul>
|
||||
<?php else: ?>
|
||||
<h3>Aucun pacte de ce type n'a encore été signé</h3>
|
||||
<?php endif; ?>
|
||||
<br />
|
||||
<h2>Pactes commerciaux</h2>
|
||||
<?php if ($this->_tpl_vars['pcs']): ?>
|
||||
<ul>
|
||||
<?php $_from = $this->_tpl_vars['pcs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['pacte']):
|
||||
?>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&v=<?php echo $this->_tpl_vars['pacte']['alliance_id']; ?>
|
||||
">[<?php echo $this->_tpl_vars['pacte']['tag']; ?>
|
||||
] <?php echo $this->_tpl_vars['pacte']['nom_alliance']; ?>
|
||||
</a> créé le <?php echo ((is_array($_tmp=$this->_tpl_vars['pacte']['time_creation'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y") : smarty_modifier_date_format($_tmp, "%d/%m/%y")); ?>
|
||||
et abrogé le <?php echo ((is_array($_tmp=$this->_tpl_vars['pacte']['time_fin'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y") : smarty_modifier_date_format($_tmp, "%d/%m/%y")); ?>
|
||||
</li>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</ul>
|
||||
<?php else: ?>
|
||||
<h3>Aucun pacte de ce type n'a encore été signé</h3>
|
||||
<?php endif; ?>
|
||||
<br />
|
||||
<h2>Pactes militaires</h2>
|
||||
<?php if ($this->_tpl_vars['pms']): ?>
|
||||
<ul>
|
||||
<?php $_from = $this->_tpl_vars['pms']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['pacte']):
|
||||
?>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&v=<?php echo $this->_tpl_vars['pacte']['alliance_id']; ?>
|
||||
">[<?php echo $this->_tpl_vars['pacte']['tag']; ?>
|
||||
] <?php echo $this->_tpl_vars['pacte']['nom_alliance']; ?>
|
||||
</a> créé le <?php echo ((is_array($_tmp=$this->_tpl_vars['pacte']['time_creation'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y") : smarty_modifier_date_format($_tmp, "%d/%m/%y")); ?>
|
||||
et abrogé le <?php echo ((is_array($_tmp=$this->_tpl_vars['pacte']['time_fin'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y") : smarty_modifier_date_format($_tmp, "%d/%m/%y")); ?>
|
||||
</li>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</ul>
|
||||
<?php else: ?>
|
||||
<h3>Aucun pacte de ce type n'a encore été signé</h3>
|
||||
<?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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,55 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-07-31 21:54:07
|
||||
compiled from admin/bandeau.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'admin/bandeau.tpl', 14, 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>Informations visibles</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Action</th>
|
||||
<th>Texte</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['tableau']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['ligne']):
|
||||
?>
|
||||
<tr>
|
||||
<td><a href="<?php echo $this->_tpl_vars['menu']['bandeau']; ?>
|
||||
&i=<?php echo $this->_tpl_vars['ligne']['id']; ?>
|
||||
">EDIT</a> | <a href="<?php echo $this->_tpl_vars['menu']['bandeau']; ?>
|
||||
&d=<?php echo $this->_tpl_vars['ligne']['id']; ?>
|
||||
">SUPPR</a></td>
|
||||
<td<?php if ($this->_tpl_vars['ligne']['color']): ?> style="color: <?php echo $this->_tpl_vars['ligne']['color']; ?>
|
||||
;"<?php endif; ?>><b><?php echo ((is_array($_tmp=$this->_tpl_vars['ligne']['texte'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
</b></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<h2><?php if ($this->_tpl_vars['id'] == 'add'): ?>Ajouter<?php else: ?>Modifier<?php endif; ?> une information<?php if ($this->_tpl_vars['id'] != 'add'): ?> : <?php echo $this->_tpl_vars['id']; ?>
|
||||
<?php endif; ?></h2>
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['bandeau']; ?>
|
||||
&i=<?php echo $this->_tpl_vars['id']; ?>
|
||||
" method="post">
|
||||
<fieldset class="options">
|
||||
<label for="texte">Texte :</label> <input type="text" name="texte" id="texte" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['mod']['texte'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
" size="40" maxlength="255" tabindex="1" /><br /><br />
|
||||
<label for="color">Couleur :</label> <input type="text" name="color" id="color" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['mod']['color'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
" size="25" maxlength="255" tabindex="2" /><br /><br />
|
||||
<input type="submit" class="submit" value="GO" tabindex="3" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<h2>Gestion du cache</h2>
|
||||
<a href="<?php echo $this->_tpl_vars['menu']['bandeau']; ?>
|
||||
&actuCache">Mettre à jour le cache</a>
|
||||
<?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,100 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-04 15:37:29
|
||||
compiled from game/alliance/gestion_alliance.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'game/alliance/gestion_alliance.tpl', 17, 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);
|
||||
?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/alliance/gestion_common.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<h2>Designation de l'alliance</h2><br />
|
||||
<label>Nom de l'alliance :</label> <?php echo $this->_tpl_vars['planete']->nom_alliance; ?>
|
||||
<br />
|
||||
<label>Tag de l'alliance :</label> <?php echo $this->_tpl_vars['planete']->tag; ?>
|
||||
<br />
|
||||
<label>Race de l'alliance :</label> <?php echo $this->_tpl_vars['planete']->race; ?>
|
||||
<br /><br />
|
||||
<em>Pour changer le tag ou le nom de votre alliance, veuillez contacter un opérateur.</em><br /><br /><br />
|
||||
<form method="post" action="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
||||
&g=alliance">
|
||||
<fieldset class="options">
|
||||
<label for="asteroide_name">Nom de l'astéroïde : <input type="text" class="text" name="asteroide_name" id="asteroide_name" value="<?php echo $this->_tpl_vars['planete']->nom_asteroide; ?>
|
||||
" maxlength="32" /></label><br /><br />
|
||||
<input type="submit" class="submit" value="Go" /><br /><br />
|
||||
</fieldset>
|
||||
</form>
|
||||
<h2>Communication et défense de l'alliance</h2><br />
|
||||
<form method="post" action="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
||||
&g=alliance">
|
||||
<fieldset class="options">
|
||||
<label for="texte_interne">Message interne :<br /><textarea name="texte_interne" id="texte_interne"><?php echo ((is_array($_tmp=$this->_tpl_vars['planete']->details['texte_interne'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
</textarea></label><br /><br />
|
||||
<label for="defcon">Defcon : <select name="defcon" id="defcon"><option value="1"<?php if ($this->_tpl_vars['planete']->details['defcon'] == 1): ?> selected="selected"<?php endif; ?>>Niveau 1</option><option value="2"<?php if ($this->_tpl_vars['planete']->details['defcon'] == 2): ?> selected="selected"<?php endif; ?>>Niveau 2</option><option value="3"<?php if ($this->_tpl_vars['planete']->details['defcon'] == 3): ?> selected="selected"<?php endif; ?>>Niveau 3</option><option value="4"<?php if ($this->_tpl_vars['planete']->details['defcon'] == 4): ?> selected="selected"<?php endif; ?>>Niveau 4</option><option value="5"<?php if ($this->_tpl_vars['planete']->details['defcon'] == 5): ?> selected="selected"<?php endif; ?>>Niveau 5</option></select></label><br />
|
||||
<label for="defcon_txt"><textarea name="defcon_txt" id="defcon_txt"><?php echo ((is_array($_tmp=$this->_tpl_vars['planete']->details['defcon_txt'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
</textarea></label><br /><br />
|
||||
<input type="submit" class="submit" value="Go" /><br /><br />
|
||||
</fieldset>
|
||||
</form>
|
||||
<h2>Paramètres des moyens de communication</h2><br />
|
||||
<form method="post" action="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
||||
&g=alliance">
|
||||
<fieldset class="options">
|
||||
<label for="url_forum">URL du forum de l'alliance : <input name="url_forum" id="url_forum" maxlength="64" class="text" type="text" value="<?php echo $this->_tpl_vars['planete']->url_forum; ?>
|
||||
" /></label><br />
|
||||
<br />
|
||||
<label for="url_chat">Adresse sur serveur IRC de l'alliance : <input name="url_chat" id="url_chat" maxlength="64" class="text" type="text" value="<?php echo $this->_tpl_vars['planete']->url_chat; ?>
|
||||
" /></label><br />
|
||||
<label for="port_chat">Port du serveur IRC : <input name="port_chat" id="port_chat" maxlength="64" class="text" type="text" value="<?php echo $this->_tpl_vars['planete']->details['port_chat']; ?>
|
||||
" /></label><br />
|
||||
<label for="pass_chat">Mot de passe du serveur sur le serveur : <input name="pass_chat" id="pass_chat" maxlength="64" class="text" type="password" value="<?php echo $this->_tpl_vars['planete']->details['pass_chat']; ?>
|
||||
" /></label><br />
|
||||
<label for="chan_chat">Channel de l'alliance sur le serveur : <input name="chan_chat" id="chan_chat" maxlength="64" class="text" type="text" value="<?php echo $this->_tpl_vars['planete']->details['chan_chat']; ?>
|
||||
" /></label><br />
|
||||
<em>Laissez l'adresse du serveur IRC vide pour utiliser le chat par défaut du jeu.</em><br /><br /><br />
|
||||
<input type="submit" class="submit" value="Go" /><br /><br />
|
||||
</fieldset>
|
||||
</form>
|
||||
<h2>Réglages des inscriptions</h2><br />
|
||||
<form method="post" action="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
||||
&g=alliance">
|
||||
<fieldset class="options">
|
||||
<label for="etatinscriptions"><input type="checkbox" name="etatinscriptions" id="etatinscriptions" <?php if ($this->_tpl_vars['planete']->details['etat_inscription']): ?> checked="checked"<?php endif; ?> /> Ouvrir les inscriptions</label><br /><br />
|
||||
<label for="message_inscription">Message affiché pour les inscriptions (activées ou désactivées) :<br /><textarea name="message_inscription" id="message_inscription"><?php echo ((is_array($_tmp=$this->_tpl_vars['planete']->details['message_inscription'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
</textarea></label><br /><br />
|
||||
<br />
|
||||
<label for="presentation">Texte de présentation de l'alliance :<br /><textarea name="presentation" id="presentation"><?php echo ((is_array($_tmp=$this->_tpl_vars['planete']->details['presentation'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
</textarea></label><br /><br />
|
||||
<br />
|
||||
<input type="submit" class="submit" value="Go" /><br /><br />
|
||||
</fieldset>
|
||||
</form>
|
||||
<?php if ($this->_tpl_vars['planete']->fondateur == $this->_tpl_vars['planete']->id_user): ?>
|
||||
<h2>Changer de fondateur</h2><br />
|
||||
<form method="post" action="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
||||
&g=alliance">
|
||||
<fieldset class="options">
|
||||
Vous êtres actuellement le fondateur de l'alliance.<br /><br />
|
||||
<label for="newfondateur">Nouveau fondateur :</label> <select id="newfondateur" name="newfondateur">
|
||||
<?php $_from = $this->_tpl_vars['membres']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['membre']):
|
||||
?>
|
||||
<option value="<?php echo $this->_tpl_vars['membre']['id']; ?>
|
||||
"><?php echo $this->_tpl_vars['membre']['pseudo']; ?>
|
||||
</option>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</select>
|
||||
<br />
|
||||
<input type="submit" class="submit" value="Go" /><br /><br />
|
||||
</fieldset>
|
||||
</form>
|
||||
<?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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 21:11:14
|
||||
compiled from admin/print_choixU.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);
|
||||
?>
|
||||
<h2><?php echo $this->_tpl_vars['titre']; ?>
|
||||
</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<form action="admin.php" method="get">
|
||||
<fieldset class="options" style="margin: 0;">
|
||||
<label for="iduser">ID :</label> <input type="text" value="" id="iduser" name="id" tabindex="1" /><br />
|
||||
<input type="hidden" value="<?php echo $this->_tpl_vars['linkpage']; ?>
|
||||
" name="p" /><br />
|
||||
<input type="submit" class="submit" value="GO" />
|
||||
</fieldset>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<form action="admin.php" method="get">
|
||||
<fieldset class="options" style="margin: 0;">
|
||||
<label for="nameU">Nom :</label> <input type="text" id="nameU" name="name" tabindex="2" /><br />
|
||||
<input type="hidden" value="<?php echo $this->_tpl_vars['linkpage']; ?>
|
||||
" name="p" /><br />
|
||||
<input type="submit" class="submit" value="GO" />
|
||||
</fieldset>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?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,40 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-08-21 23:05:02
|
||||
compiled from cms/pilori.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'cms/pilori.tpl', 15, false),array('modifier', 'date_format', 'cms/pilori.tpl', 16, false),array('function', 'mailto', 'cms/pilori.tpl', 17, false),)), $this); ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'cms/header.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<table style="width: 85%; margin: auto;" id="pilori">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Utilisateur</th>
|
||||
<th>Raison</th>
|
||||
<th>Fin du banissement</th>
|
||||
<th>Opérateur</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['joueurs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['joueur']):
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['joueur']['pseudo']; ?>
|
||||
</td>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['joueur']['raisonmv'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['joueur']['mv'] == 3 || $this->_tpl_vars['joueur']['last_visite'] == 2147483647): ?>Définitif<?php else: ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['joueur']['last_visite']+259200)) ? $this->_run_mod_handler('date_format', true, $_tmp, "%a %d %B %Y %H:%M") : smarty_modifier_date_format($_tmp, "%a %d %B %Y %H:%M")))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
<?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['joueur']['operateurmv']): ?><?php echo smarty_function_mailto(array('address' => $this->_tpl_vars['joueur']['mail'],'encode' => 'hex','text' => $this->_tpl_vars['joueur']['operateurmv']), $this);?>
|
||||
<?php else: ?>Inconnu<?php endif; ?></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'cms/footer.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
|
|
@ -0,0 +1,86 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 16:45:50
|
||||
compiled from game/carte.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'game/carte.tpl', 32, 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>Navigation</h2>
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['carte']; ?>
|
||||
" method="get"><fieldset id="navigation">
|
||||
<input type="hidden" value="carte" name="p" />
|
||||
<label for="amas">Amas : <input type="text" class="text" name="amas" id="amas" value="<?php echo $this->_tpl_vars['position']['0']; ?>
|
||||
" /></label>
|
||||
<label for="systeme">Système solaire : <input type="text" class="text" name="systeme" id="systeme" value="<?php echo $this->_tpl_vars['position']['1']; ?>
|
||||
" /></label>
|
||||
<input type="submit" class="submit" value="GO" /><br />
|
||||
<a href="<?php echo $this->_tpl_vars['menu']['carte']; ?>
|
||||
&amas=<?php echo $this->_tpl_vars['position']['4']; ?>
|
||||
&systeme=<?php echo $this->_tpl_vars['position']['5']; ?>
|
||||
" class="button" title="système solaire précédent">précédent</a>
|
||||
<a href="<?php echo $this->_tpl_vars['menu']['carte']; ?>
|
||||
&amas=<?php echo $this->_tpl_vars['position']['2']; ?>
|
||||
&systeme=<?php echo $this->_tpl_vars['position']['3']; ?>
|
||||
" class="button" title="système solaire suivant">suivant</a>
|
||||
</fieldset></form>
|
||||
|
||||
<h2>Système Solaire</h2>
|
||||
<table id="carte">
|
||||
<thead>
|
||||
<tr>
|
||||
<td colspan="7">Système: <?php echo $this->_tpl_vars['position']['0']; ?>
|
||||
:<?php echo $this->_tpl_vars['position']['1']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Position</th>
|
||||
<th></th>
|
||||
<th>Nom planète<br />Alliance<br />Joueur</th>
|
||||
<th>Race</th>
|
||||
<th>Gouvernement</th>
|
||||
<th>Débris <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['metal']; ?>
|
||||
| <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['cristal']; ?>
|
||||
</th>
|
||||
<th>Fonctions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['carte']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['plan']):
|
||||
?>
|
||||
<tr<?php if ($this->_tpl_vars['plan']['4']): ?> class="<?php echo $this->_tpl_vars['plan']['4']; ?>
|
||||
"<?php endif; ?>>
|
||||
<td><?php echo $this->_tpl_vars['plan']['0']; ?>
|
||||
</td>
|
||||
<td style="width: 45px;"><?php if ($this->_tpl_vars['plan']['7']): ?><img src="<?php echo $this->_tpl_vars['url_images']; ?>
|
||||
images/planetes/<?php echo $this->_tpl_vars['plan']['7']; ?>
|
||||
.jpg" width="45" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['plan']['1'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
" /><?php else: ?> <?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['plan']['1']): ?><?php echo ((is_array($_tmp=$this->_tpl_vars['plan']['1'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
<br /><?php if ($this->_tpl_vars['plan']['6']): ?>[<?php echo $this->_tpl_vars['plan']['6']; ?>
|
||||
]<br /><?php endif; ?><?php echo $this->_tpl_vars['plan']['5']; ?>
|
||||
<?php else: ?> <?php endif; ?></td>
|
||||
<td style="width: 45px;"><?php if ($this->_tpl_vars['plan']['4']): ?><img src="<?php echo $this->_tpl_vars['url_images']; ?>
|
||||
images/carte/<?php echo $this->_tpl_vars['plan']['4']; ?>
|
||||
.jpg" width="45" alt="<?php echo $this->_tpl_vars['plan']['4']; ?>
|
||||
" /><?php else: ?> <?php endif; ?></td>
|
||||
<td style="width: 45px;"><?php if ($this->_tpl_vars['plan']['4']): ?><img src="<?php echo $this->_tpl_vars['url_images']; ?>
|
||||
images/carte/<?php echo $this->_tpl_vars['plan']['6']; ?>
|
||||
.jpg" width="45" alt="<?php echo $this->_tpl_vars['plan']['6']; ?>
|
||||
" /><?php else: ?> <?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['plan']['2']): ?><?php echo $this->_tpl_vars['plan']['2']; ?>
|
||||
<?php else: ?>0<?php endif; ?> | <?php if ($this->_tpl_vars['plan']['3']): ?><?php echo $this->_tpl_vars['plan']['3']; ?>
|
||||
<?php else: ?>0<?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['plan']['5']): ?><a href="?p=envoyer&d=<?php echo $this->_tpl_vars['plan']['5']; ?>
|
||||
" class="msg"><span>Message</span></a><?php else: ?> <?php endif; ?></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?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,15 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-11-01 00:37:59
|
||||
compiled from game/vp.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 id="erreur">... veuillez patienter ...</div>
|
||||
<?php if ($this->_tpl_vars['contenu']): ?><?php echo $this->_tpl_vars['contenu']; ?>
|
||||
<?php else: ?><meta http-equiv="refresh" content="0"/><?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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 16:47:17
|
||||
compiled from game/diplomatie/common.tpl */ ?>
|
||||
<ul class="onglets">
|
||||
<li<?php if ($this->_tpl_vars['onglet'] == 'actus'): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['diplomatie']; ?>
|
||||
&o=actus">Actualités</a></li>
|
||||
<li<?php if ($this->_tpl_vars['onglet'] == 'encours'): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['diplomatie']; ?>
|
||||
&o=encours">En place</a></li>
|
||||
<li<?php if ($this->_tpl_vars['onglet'] == 'archives'): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['diplomatie']; ?>
|
||||
&o=archives">Résiliés/annulés</a></li>
|
||||
<?php if ($this->_tpl_vars['planete']->permissions_alliance & 8): ?><li<?php if ($this->_tpl_vars['onglet'] == 'new'): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['diplomatie']; ?>
|
||||
&o=new">Nouveau</a></li><?php endif; ?>
|
||||
</ul>
|
||||
|
|
@ -0,0 +1,122 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 21:05:06
|
||||
compiled from game/gestion.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'game/gestion.tpl', 6, false),array('modifier', 'date_format', 'game/gestion.tpl', 7, false),array('modifier', 'escape', 'game/gestion.tpl', 26, false),array('modifier', 'ucfirst', 'game/gestion.tpl', 32, false),array('modifier', 'separerNombres', 'game/gestion.tpl', 35, 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);
|
||||
?>
|
||||
<?php if (SURFACE == 'planete'): ?>
|
||||
<h2>Politique</h2>
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
||||
" method="post">
|
||||
<fieldset class="form">
|
||||
<label for="politique">Politique actuelle : <select name="politique" id="politique"><?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['politiques'],'selected' => $this->_tpl_vars['planete']->politique), $this);?>
|
||||
</select></label><br /><br />
|
||||
<label>Dernier changement de régime : <em><?php echo ((is_array($_tmp=$this->_tpl_vars['planete']->politique_lastchange)) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y") : smarty_modifier_date_format($_tmp, "%d/%m/%y")); ?>
|
||||
</em></label><br /><br />
|
||||
<label>Moral global de la population : <em><?php echo $this->_tpl_vars['planete']->moral*100; ?>
|
||||
%</em></label><br /><br />
|
||||
<input class="submit" type="submit" value="Ok" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
<h2>Gestion</h2>
|
||||
<div id="gestion">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<?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']):
|
||||
?>
|
||||
<td><img src="<?php echo $this->_tpl_vars['url_images']; ?>
|
||||
images/planetes/<?php echo $this->_tpl_vars['plan']['image']; ?>
|
||||
.jpg" alt="<?php echo $this->_tpl_vars['plan']['image']; ?>
|
||||
" title="<?php echo $this->_tpl_vars['plan']['nom_planete']; ?>
|
||||
" width="80" height="80" /></td>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tr>
|
||||
<tr>
|
||||
<th></th>
|
||||
<?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']):
|
||||
?>
|
||||
<th><?php echo ((is_array($_tmp=$this->_tpl_vars['plan']['nom_planete'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
</th>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['metal'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</th>
|
||||
<?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']):
|
||||
?>
|
||||
<?php if ($this->_tpl_vars['plan']['id'] == $this->_tpl_vars['planeteEC']['id']): ?><?php $this->assign('plan', $this->_tpl_vars['planeteEC']); ?><?php endif; ?>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['plan']['metal'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</td>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['cristal'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</th>
|
||||
<?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']):
|
||||
?>
|
||||
<?php if ($this->_tpl_vars['plan']['id'] == $this->_tpl_vars['planeteEC']['id']): ?><?php $this->assign('plan', $this->_tpl_vars['planeteEC']); ?><?php endif; ?>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['plan']['cristal'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</td>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['hydrogene'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</th>
|
||||
<?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']):
|
||||
?>
|
||||
<?php if ($this->_tpl_vars['plan']['id'] == $this->_tpl_vars['planeteEC']['id']): ?><?php $this->assign('plan', $this->_tpl_vars['planeteEC']); ?><?php endif; ?>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['plan']['hydrogene'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</td>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['energie'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</th>
|
||||
<?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']):
|
||||
?>
|
||||
<?php if ($this->_tpl_vars['plan']['id'] == $this->_tpl_vars['planeteEC']['id']): ?><?php $this->assign('plan', $this->_tpl_vars['planeteEC']); ?><?php endif; ?>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['plan']['energie'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</td>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Population</th>
|
||||
<?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']):
|
||||
?>
|
||||
<?php if ($this->_tpl_vars['plan']['id'] == $this->_tpl_vars['planeteEC']['id']): ?><?php $this->assign('plan', $this->_tpl_vars['planeteEC']); ?><?php endif; ?>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['plan']['population'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</td>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Moral</th>
|
||||
<?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']):
|
||||
?>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['plan']['moral']*100)) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
%</td>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</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,59 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-04 16:03:31
|
||||
compiled from game/operateur.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);
|
||||
?>
|
||||
<h2>Opérateurs de cette galaxie</h2>
|
||||
<ul>
|
||||
<?php $_from = $this->_tpl_vars['operateurs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['operateur']):
|
||||
?>
|
||||
<li><?php echo $this->_tpl_vars['operateur']['pseudo']; ?>
|
||||
<i>(<?php if ($this->_tpl_vars['operateur']['auth_level'] == 2): ?>Modérateur<?php elseif ($this->_tpl_vars['operateur']['auth_level'] == 3): ?>Maître de la bourse<?php elseif ($this->_tpl_vars['operateur']['auth_level'] == 4): ?>Opérateur en formation<?php elseif ($this->_tpl_vars['operateur']['auth_level'] == 5): ?>Opérateur<?php elseif ($this->_tpl_vars['operateur']['auth_level'] == 6): ?>Super-opérateur<?php elseif ($this->_tpl_vars['operateur']['auth_level'] == 7): ?>Administrateur<?php elseif ($this->_tpl_vars['operateur']['auth_level'] == 8): ?>Codeur<?php endif; ?>)</i></li>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</ul>
|
||||
<h2>Problèmes connus</h2>
|
||||
<strong>Lisez les questions/réponses ci-dessous. Ne contactez un opérateur que si vous ne pouvez pas résoudre votre problème/demande.</strong><br />
|
||||
<strong>N'oubliez pas de contacter les opérateurs pour les raisons indiquées dans les <a href="?p=regles">règles du jeu</a>.</strong>
|
||||
<div id="messagerie">
|
||||
<?php $_from = $this->_tpl_vars['questions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['question']):
|
||||
?>
|
||||
<dl>
|
||||
<dt><?php echo $this->_tpl_vars['question']['0']; ?>
|
||||
</dt>
|
||||
<dd><?php echo $this->_tpl_vars['question']['1']; ?>
|
||||
<?php if ($this->_tpl_vars['auth_level'] > 4): ?><div style="text-align: right"><a href="<?php echo $this->_tpl_vars['menu']['operateur']; ?>
|
||||
&a=top&i=<?php echo $this->_tpl_vars['question']['2']; ?>
|
||||
"><i>Haut</i></a> - <a href="<?php echo $this->_tpl_vars['menu']['operateur']; ?>
|
||||
&a=bas&i=<?php echo $this->_tpl_vars['question']['2']; ?>
|
||||
"><i>Bas</i></a> - <a href="<?php echo $this->_tpl_vars['menu']['operateur']; ?>
|
||||
&a=del&i=<?php echo $this->_tpl_vars['question']['2']; ?>
|
||||
"><i>Supprimer</i></a></div><?php endif; ?></dd>
|
||||
</dl>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</div>
|
||||
<?php if ($this->_tpl_vars['auth_level'] >= 5): ?>
|
||||
<h2>Ajouter un problème connu</h2>
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['operateur']; ?>
|
||||
&post" method="post"><fieldset class="form">
|
||||
<label for="O_titre">Problème : <input class="text" type="text" name="O_titre" id="O_titre" /></label>
|
||||
<label for="O_desc">Solution :
|
||||
<textarea id="O_desc" name="O_description" cols="40" rows="10"></textarea></label>
|
||||
<input class="submit" type="submit" value="OK" />
|
||||
</fieldset></form>
|
||||
<?php else: ?><h2>Prendre contact avec les opérateurs de la galaxie</h2>
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['operateur']; ?>
|
||||
&post" method="post"><fieldset class="form">
|
||||
<label for="titre">Titre/objet : <input class="text" type="text" name="titre" id="titre" /></label>
|
||||
<label for="desc">Corps :
|
||||
<textarea id="desc" name="description" cols="40" rows="10"></textarea></label>
|
||||
<input class="submit" type="submit" value="OK" />
|
||||
</fieldset></form><?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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 21:47:16
|
||||
compiled from game/erreur.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 id="erreur"<?php if ($this->_tpl_vars['couleur']): ?> style="color: <?php echo $this->_tpl_vars['couleur']; ?>
|
||||
;"<?php endif; ?>><?php echo $this->_tpl_vars['message']; ?>
|
||||
</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,24 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 16:47:52
|
||||
compiled from game/ressources_alli.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'ucfirst', 'game/ressources_alli.tpl', 5, false),array('modifier', 'separerNombres', 'game/ressources_alli.tpl', 5, 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>Donner des crédits à l'alliance</h2>
|
||||
<form method="post" action="<?php echo $this->_tpl_vars['menu']['ressources']; ?>
|
||||
">
|
||||
<fieldset class="options">
|
||||
<label for="credits"><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['credits'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
(maximum : <?php echo ((is_array($_tmp=$this->_tpl_vars['planete']->credits)) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
) :</label><input type="text" class="text" id="credits" name="credits" maxlength="5" /><br />
|
||||
<br /><input type="submit" class="submit" value="Donner" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<?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,43 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-09-27 14:49:36
|
||||
compiled from cms/oubliemdp.tpl */ ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'cms/header.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<div id="dernierminute" class="block">
|
||||
<div class="header">Informations</div>
|
||||
<div class="corps" id="description"><b>Oublie de mot de passe</b><br /><br /><p>Complétez le formualaire ci-contre avec votre nom d'utilisateur et votre adresse électronique. Un nouveau mot de passe sera envoyé à votre adresse, vous permettant ainsi d'avoir de nouveau accès à votre compte.<br /><br />Pensez à changer ce nouveau mot de passe que vous ne retiendrez pas facilement, via la page option du jeu.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="statistiques" class="block">
|
||||
<div class="header">Formulaire de réinitialisation de mot de passe</div>
|
||||
<div class="corpsi">
|
||||
<form action="<?php echo $this->_tpl_vars['link']['oubliemdp']; ?>
|
||||
" method="post">
|
||||
<span><label for="HB_pseudo">Pseudo :</label> <input class="text" name="HB_pseudo" id="pseudo" type="text"<?php if ($_POST['HB_pseudo']): ?> value="<?php echo $_POST['HB_pseudo']; ?>
|
||||
"<?php endif; ?> />
|
||||
<br /><label for="HB_mail">Adresse électronique :</label> <input class="text" name="HB_mail" id="mail" type="text"<?php if ($_POST['HB_mail']): ?> value="<?php echo $_POST['HB_mail']; ?>
|
||||
"<?php endif; ?> />
|
||||
<br /><br /><label for="HB_captcha">Recopiez ce texte :</label> <input class="text" name="HB_captcha" id="captcha" type="text" /> <a href="javascript:document.getElementById('gen').src = 'captcha/image.php?a='+Math.random();"><img src="captcha/image.php" alt="Génération ..." id="gen" /></a>
|
||||
<br /><br /><input class="submit" value="OK" type="submit">
|
||||
</span>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($this->_tpl_vars['erreurs']): ?>
|
||||
<div id="connexion" class="block">
|
||||
<div class="header"><b>Impossible de changer le mot de passe :</b></div>
|
||||
<div class="corps" id="description">
|
||||
<p>
|
||||
<?php echo $this->_tpl_vars['erreurs']; ?>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'cms/footer.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
|
|
@ -0,0 +1,68 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-04 15:37:48
|
||||
compiled from game/alliance/gestion_wing.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);
|
||||
?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/alliance/gestion_common.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<h2>Gestion des wings</h2>
|
||||
<?php if ($this->_tpl_vars['wings']): ?>
|
||||
<table>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['wings']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['wing']):
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['wing']['nom_alliance']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['wing']['race']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['wing']['nbMembres']; ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['wing']['pseudo_fondateur']): ?><?php echo $this->_tpl_vars['wing']['pseudo_fondateur']; ?>
|
||||
<?php else: ?>Attente de l'acceptation<?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['wing']['pseudo_fondateur']): ?><a href="<?php echo $this->_tpl_vars['menu']['messages']; ?>
|
||||
&n=envoyer&d=<?php echo $this->_tpl_vars['wing']['pseudo_fondateur']; ?>
|
||||
" class="msg"><span>Message</span></a><?php endif; ?></td>
|
||||
<td><a href="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
||||
&g=wing&u=<?php echo $this->_tpl_vars['membre']['id']; ?>
|
||||
"><em>supprimer</em></a></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom de la wing</th>
|
||||
<th>Race</th>
|
||||
<th>Nombre de membres</th>
|
||||
<th>Fondateur</th>
|
||||
<th>MP fondateur</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
<?php else: ?>
|
||||
<div id="erreur">L'alliance ne possède aucune wing.</div>
|
||||
<?php endif; ?>
|
||||
<h2>Créer une wing</h2>
|
||||
<form method="post" action="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
||||
&g=wings">
|
||||
<fieldset class="options">
|
||||
<label for="nom">Nom de la wing : <input type="text" class="text" name="nom" id="nom" maxlength="32" /></label><br />
|
||||
<label for="tag">Tag de la wing : <input type="text" class="text" name="tag" id="tag" maxlength="5" /></label><br />
|
||||
<label for="race">Race de la wing : <select name="race" id="race"><option value="humain">Humaine</option><option value="covenant">Covenante</option></select></label><br />
|
||||
<label for="fondateur">Membre fondateur : <input type="text" class="text" name="fondateur" id="fondateur" maxlength="64" /></label><br />
|
||||
<em>Le membre fondateur ne doit faire actuellement parti d'aucune alliance.<br />La wing sera créée une fois que le fondateur aura accepté votre demande.</em><br />
|
||||
<input type="submit" class="submit" value="Go" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<?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,20 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-07-31 21:44:29
|
||||
compiled from admin/mail_mass.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);
|
||||
?>
|
||||
<h2>Envoyer un courriel en masse à tous les joueurs de la galaxie</h2>
|
||||
<form action="?p=mail_mass" method="post">
|
||||
<fieldset class="options">
|
||||
<label for="sujet">Sujet :</label> <input type="text" name="sujet" id="sujet" tabindex="1" /><br /><br />
|
||||
<label for="message">Contenu du mail :</label><br /><textarea name="message" id="message" rows="10" cols="15" tabindex="2"></textarea><br />
|
||||
<input type="submit" class="submit" value="GO" tabindex="3" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<?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,39 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 17:11:12
|
||||
compiled from game/options/1.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);
|
||||
?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/options/common.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<h2>Signature pour forums</h2>
|
||||
<img src="http://<?php echo $this->_tpl_vars['url_serveur']; ?>
|
||||
/sign.php?i=<?php echo $this->_tpl_vars['planete']->id_user; ?>
|
||||
" alt="Signature" /><br /><a href="http://<?php echo $this->_tpl_vars['url_serveur']; ?>
|
||||
/sign.php?i=<?php echo $this->_tpl_vars['planete']->id_user; ?>
|
||||
">http://<?php echo $this->_tpl_vars['url_serveur']; ?>
|
||||
/sign.php?i=<?php echo $this->_tpl_vars['planete']->id_user; ?>
|
||||
</a><br /><br />
|
||||
<label>BBcode pour forums :</label><code>[url=http://www.halo-battle.fr][img]http://<?php echo $this->_tpl_vars['url_serveur']; ?>
|
||||
/sign.php?i=<?php echo $this->_tpl_vars['planete']->id_user; ?>
|
||||
[/img][/url]</code>
|
||||
<br /><br /><br />
|
||||
<img src="http://<?php echo $this->_tpl_vars['url_serveur']; ?>
|
||||
/sign.php?i=<?php echo $this->_tpl_vars['planete']->id_user; ?>
|
||||
&f=1" alt="Signature" /><br /><a href="http://<?php echo $this->_tpl_vars['url_serveur']; ?>
|
||||
/sign.php?i=<?php echo $this->_tpl_vars['planete']->id_user; ?>
|
||||
&f=1">http://<?php echo $this->_tpl_vars['url_serveur']; ?>
|
||||
/sign.php?i=<?php echo $this->_tpl_vars['planete']->id_user; ?>
|
||||
&f=1</a><br /><br />
|
||||
<label>BBcode pour forums :</label><code>[url=http://www.halo-battle.fr][img]http://<?php echo $this->_tpl_vars['url_serveur']; ?>
|
||||
/sign.php?i=<?php echo $this->_tpl_vars['planete']->id_user; ?>
|
||||
&f=1[/img][/url]</code>
|
||||
<?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,59 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 21:37:10
|
||||
compiled from game/flotte2.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'game/flotte2.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;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<form action="<?php echo $this->_tpl_vars['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" maxlength="24" value="<?php echo $this->_tpl_vars['restaure']['nom']; ?>
|
||||
" /><br />
|
||||
<label for="fav_dest">Destination rapide :</label><select name="destin" id="fav_dest"><option value="0">--</option><optgroup label="Colonies"><?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['favorisColonies']), $this);?>
|
||||
</optgroup><optgroup label="Favoris"><?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['favoris']), $this);?>
|
||||
</optgroup><option value="edit">Modifier la liste</option></select><br />
|
||||
<label for="amas">Destination :</label><span id="destination"><input class="dest" type="text" id="amas" name="amas" maxlength="2" value="<?php echo $this->_tpl_vars['restaure']['end_galaxie']; ?>
|
||||
" />:<input class="dest" type="text" id="ss" name="ss" maxlength="2" value="<?php echo $this->_tpl_vars['restaure']['end_systeme']; ?>
|
||||
" />:<input class="dest" type="text" id="plan" name="pos" maxlength="2" value="<?php echo $this->_tpl_vars['restaure']['end_position']; ?>
|
||||
" /></span><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>
|
||||
</fieldset>
|
||||
<h2>Mission et contenu</h2>
|
||||
<fieldset class="options">
|
||||
<label for="mission">Mission :</label>
|
||||
<select name="mission" id="mission" onchange="tempsFlotte();">
|
||||
<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['missions'],'selected' => $this->_tpl_vars['restaure']['mission']), $this);?>
|
||||
|
||||
</select><br />
|
||||
<span id="tactique"></span>
|
||||
<label for="metal">Embarquer <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['metal']; ?>
|
||||
:</label><input class="text" type="text" id="metal" name="metal" value="<?php echo $this->_tpl_vars['restaure']['embarquer']['0']; ?>
|
||||
" /><br />
|
||||
<label for="cristal">Embarquer <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['cristal']; ?>
|
||||
:</label><input class="text" type="text" id="cristal" name="cristal" value="<?php echo $this->_tpl_vars['restaure']['embarquer']['1']; ?>
|
||||
" /><br />
|
||||
<label for="hydrogene">Embarquer <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['hydrogene']; ?>
|
||||
:</label><input class="text" type="text" id="hydrogene" name="hydrogene" value="<?php echo $this->_tpl_vars['restaure']['embarquer']['2']; ?>
|
||||
" /><br />
|
||||
<label>Places restantes dans les cales :</label><span id="placesRest"></span><br />
|
||||
<br /><div id="aide2"></div>
|
||||
</fieldset>
|
||||
<h2>Envoyer</h2>
|
||||
<noscript><span style="color: #FF0000; font-weight: bolder;">Le JavaScript est nécessaire pour envoyer une flotte.</span><br /></noscript>
|
||||
<input type="submit" value="GO" class="submit" /><input type="hidden" name="cds" value="<?php echo $this->_tpl_vars['idPrep']; ?>
|
||||
" /><br />
|
||||
Temps de déplacement : <span id="temps">-</span><br />
|
||||
Consomation : <span id="conso">-</span><br />
|
||||
<span id="deblok"><b>Complètez les champs ci-dessus</b></span>
|
||||
<br /><span id="vp"></span>
|
||||
</form>
|
||||
<?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,7 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 21:11:00
|
||||
compiled from admin/erreur.tpl */ ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/erreur.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 21:11:06
|
||||
compiled from admin/print_choixP.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);
|
||||
?>
|
||||
<h2><?php echo $this->_tpl_vars['titre']; ?>
|
||||
</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<form action="admin.php" method="get">
|
||||
<fieldset class="options" style="margin: 0;">
|
||||
<label for="idplan">ID de la planète :</label> <input type="text" value="" id="idplan" name="id" tabindex="1" /><br />
|
||||
<input type="hidden" value="<?php echo $this->_tpl_vars['linkpage']; ?>
|
||||
" name="p" /><br />
|
||||
<input type="submit" class="submit" value="GO" />
|
||||
</fieldset>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<form action="admin.php" method="get">
|
||||
<fieldset class="options" style="margin: 0;">
|
||||
<label for="amas">Amas :</label> <input type="text" id="amas" name="amas" maxlength="2" tabindex="2" /><br /><br />
|
||||
<label for="ss">Système :</label> <input type="text" id="ss" name="ss" maxlength="3" tabindex="3" /><br /><br />
|
||||
<label for="pos">Position :</label> <input type="text" id="pos" name="pos" maxlength="2" tabindex="4" /><br /><br />
|
||||
<input type="hidden" value="<?php echo $this->_tpl_vars['linkpage']; ?>
|
||||
" name="p" /><br />
|
||||
<input type="submit" class="submit" value="GO" />
|
||||
</fieldset>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<form action="admin.php" method="get">
|
||||
<fieldset class="options" style="margin: 0;">
|
||||
<label for="format">Affichage ([a:s:p]) :</label> <input type="text" id="format" name="format" maxlength="10" tabindex="5" /><br />
|
||||
<input type="hidden" value="<?php echo $this->_tpl_vars['linkpage']; ?>
|
||||
" name="p" /><br />
|
||||
<input type="submit" class="submit" value="GO" />
|
||||
</fieldset>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?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,63 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-07-31 17:23:51
|
||||
compiled from admin/version.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'nl2br', 'admin/version.tpl', 28, false),array('modifier', 'date_format', 'admin/version.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);
|
||||
?>
|
||||
<h2>Gestion du cache</h2>
|
||||
<a href="<?php echo $this->_tpl_vars['menu']['versions']; ?>
|
||||
&actuCache">Mettre à jour le cache</a>
|
||||
<h2><?php if ($this->_tpl_vars['id'] == 'add'): ?>Ajouter<?php else: ?>Modifier<?php endif; ?> une version<?php if ($this->_tpl_vars['id'] != 'add'): ?> : <?php echo $this->_tpl_vars['id']; ?>
|
||||
<?php endif; ?></h2>
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['versions']; ?>
|
||||
&i=<?php echo $this->_tpl_vars['id']; ?>
|
||||
" method="post">
|
||||
<fieldset class="options">
|
||||
<label for="version">Version :</label> <input type="text" name="version" id="version" value="<?php echo $this->_tpl_vars['mod']['version']; ?>
|
||||
" tabindex="1" /><br />
|
||||
<label for="contenu">Contenu :</label><br /><textarea cols="10" rows="10" name="contenu" id="contenu" tabindex="2"><?php echo $this->_tpl_vars['mod']['contenu']; ?>
|
||||
</textarea><br />
|
||||
<input type="submit" class="submit" value="GO" tabindex="3" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<h2>Liste des versions</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Action</th>
|
||||
<th>Version</th>
|
||||
<th>Infos</th>
|
||||
<th>Date</th>
|
||||
<th>Par</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['tableau']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['ligne']):
|
||||
?>
|
||||
<tr>
|
||||
<td><a href="<?php echo $this->_tpl_vars['menu']['versions']; ?>
|
||||
&i=<?php echo $this->_tpl_vars['ligne']['id']; ?>
|
||||
">EDIT</a> | <a href="<?php echo $this->_tpl_vars['menu']['versions']; ?>
|
||||
&d=<?php echo $this->_tpl_vars['ligne']['id']; ?>
|
||||
">SUPPR</a></td>
|
||||
<td><?php echo $this->_tpl_vars['ligne']['version']; ?>
|
||||
</td>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['ligne']['contenu'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
|
||||
</td>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['ligne']['temps'])) ? $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['ligne']['pseudo']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?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,122 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 20:56:33
|
||||
compiled from game/menu_asteroide.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'ucfirst', 'game/menu_asteroide.tpl', 18, false),)), $this); ?>
|
||||
<ul>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['accueil']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == 'accueil'): ?> class="hilight"<?php endif; ?>>Accueil</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['alli_chat']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == "alliance/chat_ajax" || $this->_tpl_vars['page'] == "alliance/chat_irc"): ?> class="hilight"<?php endif; ?>>Chat de l'alliance</a></li>
|
||||
<?php if ($this->_tpl_vars['planete']->url_forum): ?><li><a href="<?php echo $this->_tpl_vars['planete']->url_forum; ?>
|
||||
" class="external">Forum de l'alliance</a></li><?php endif; ?>
|
||||
<li>
|
||||
<a href="<?php echo $this->_tpl_vars['menu']['alli_messagerie']; ?>
|
||||
"<?php if (ereg ( "Messagerie d'alliance" , $this->_tpl_vars['titre'] )): ?> class="hilight"<?php endif; ?>>Messagerie d'alliance</a>
|
||||
<ul>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['alli_messagerie']; ?>
|
||||
&n=recus"<?php if (ereg ( "Messagerie d'alliance" , $this->_tpl_vars['titre'] ) && $this->_tpl_vars['onglet'] != 'rapports' && $this->_tpl_vars['onglet'] != 'send' && $this->_tpl_vars['onglet'] != 'envoyer'): ?> class="hilight"<?php endif; ?>>Reçus<?php if ($this->_tpl_vars['alertMail']['0']): ?> (<?php echo $this->_tpl_vars['alertMail']['0']; ?>
|
||||
)<?php endif; ?></a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['alli_messagerie']; ?>
|
||||
&n=rapports"<?php if ($this->_tpl_vars['onglet'] == 'rapports' && ereg ( "Messagerie d'alliance" , $this->_tpl_vars['titre'] )): ?> class="hilight"<?php endif; ?>>Rapports<?php if ($this->_tpl_vars['alertMail']['1']): ?> (<?php echo $this->_tpl_vars['alertMail']['1']; ?>
|
||||
)<?php endif; ?></a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['alli_messagerie']; ?>
|
||||
&n=send"<?php if ($this->_tpl_vars['onglet'] == 'send' && ereg ( "Messagerie d'alliance" , $this->_tpl_vars['titre'] )): ?> class="hilight"<?php endif; ?>>Envoyés</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['alli_messagerie']; ?>
|
||||
&n=envoyer"<?php if ($this->_tpl_vars['onglet'] == 'envoyer'): ?> class="hilight"<?php endif; ?>>Ecrire</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<?php if ($this->_tpl_vars['planete']->permissions_alliance & 1 || $this->_tpl_vars['planete']->permissions_alliance & 2): ?>
|
||||
<ul>
|
||||
<?php if ($this->_tpl_vars['planete']->permissions_alliance & 1): ?><li><a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == 'batiments_alli'): ?> class="hilight"<?php endif; ?>>Bâtiments</a></li><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['planete']->permissions_alliance & 2): ?><li><a href="<?php echo $this->_tpl_vars['menu']['chantierspatial']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == 'chantierspatial'): ?> class="hilight"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['alli_batiments']['noms_sing']['3'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</a></li><?php endif; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
<ul>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['ressources']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == 'ressources_alli'): ?> class="hilight"<?php endif; ?>>Ressources</a></li>
|
||||
<?php if ($this->_tpl_vars['planete']->permissions_alliance & 32 || $this->_tpl_vars['planete']->permissions_alliance & 64 || $this->_tpl_vars['planete']->permissions_alliance & 128): ?>
|
||||
<li>
|
||||
<a href="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
||||
"<?php if (ereg ( 'gestion' , $this->_tpl_vars['page'] )): ?> class="hilight"<?php endif; ?>>Gestion</a>
|
||||
<ul>
|
||||
<?php if ($this->_tpl_vars['planete']->permissions_alliance & 32): ?><li><a href="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
||||
&g=membres"<?php if ($this->_tpl_vars['onglet'] == 'membres' && ereg ( 'gestion' , $this->_tpl_vars['page'] )): ?> class="hilight"<?php endif; ?>>Membres</a></li><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['planete']->permissions_alliance & 128): ?><li><a href="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
||||
&g=grades"<?php if ($this->_tpl_vars['onglet'] == 'grades' && ereg ( 'gestion' , $this->_tpl_vars['page'] )): ?> class="hilight"<?php endif; ?>>Grades</a></li><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['planete']->permissions_alliance & 64): ?><li><a href="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
||||
&g=wings"<?php if ($this->_tpl_vars['onglet'] == 'wings' && ereg ( 'gestion' , $this->_tpl_vars['page'] )): ?> class="hilight"<?php endif; ?>>Wings</a></li><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['planete']->permissions_alliance & 128 && ! $this->_tpl_vars['planete']->wing): ?><li><a href="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
||||
&g=alliance"<?php if ($this->_tpl_vars['onglet'] == 'alliance' && ereg ( 'gestion' , $this->_tpl_vars['page'] )): ?> class="hilight"<?php endif; ?>>Alliance</a></li><?php endif; ?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<li>
|
||||
<a href="<?php echo $this->_tpl_vars['menu']['diplomatie']; ?>
|
||||
"<?php if (ereg ( "diplomatie/" , $this->_tpl_vars['page'] )): ?> class="hilight"<?php endif; ?>>Diplomatie</a>
|
||||
<ul>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['diplomatie']; ?>
|
||||
&o=actus"<?php if ($this->_tpl_vars['onglet'] == 'actus' && ereg ( "diplomatie/" , $this->_tpl_vars['page'] )): ?> class="hilight"<?php endif; ?>>Actualités</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['diplomatie']; ?>
|
||||
&o=encours"<?php if ($this->_tpl_vars['onglet'] == 'encours' && ereg ( "diplomatie/" , $this->_tpl_vars['page'] )): ?> class="hilight"<?php endif; ?>>En place</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['diplomatie']; ?>
|
||||
&o=archives"<?php if ($this->_tpl_vars['onglet'] == 'archives' && ereg ( "diplomatie/" , $this->_tpl_vars['page'] )): ?> class="hilight"<?php endif; ?>>Résiliés/annulés</a></li>
|
||||
<?php if ($this->_tpl_vars['planete']->permissions_alliance & 8): ?><li><a href="<?php echo $this->_tpl_vars['menu']['diplomatie']; ?>
|
||||
&o=new"<?php if ($this->_tpl_vars['onglet'] == 'new' && ereg ( "diplomatie/" , $this->_tpl_vars['page'] )): ?> class="hilight"<?php endif; ?>>Nouveau</a></li><?php endif; ?>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['flotte']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == 'flotte' || $this->_tpl_vars['page'] == 'flotte1' || $this->_tpl_vars['page'] == 'flotte2' || $this->_tpl_vars['page'] == 'flotten'): ?> class="hilight"<?php endif; ?>>Flottes</a></li>
|
||||
<!--<li><a href="?p=simulateur"<?php if ($this->_tpl_vars['page'] == 'simulateur_combat'): ?> class="hilight"<?php endif; ?>>Simulateur de combat</a></li>-->
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['carte']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == 'carte'): ?> class="hilight"<?php endif; ?>>Carte spatiale</a></li>
|
||||
<li>
|
||||
<a href="<?php echo $this->_tpl_vars['menu']['options']; ?>
|
||||
"<?php if (ereg ( "options/" , $this->_tpl_vars['page'] )): ?> class="hilight"<?php endif; ?>>Options</a>
|
||||
<ul>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['options']; ?>
|
||||
&n=ext"<?php if ($this->_tpl_vars['onglet'] == 'ext' && ereg ( "options/" , $this->_tpl_vars['page'] )): ?> class="hilight"<?php endif; ?>>Extérieures</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['options']; ?>
|
||||
&n=compte"<?php if ($this->_tpl_vars['onglet'] == 'compte' && ereg ( "options/" , $this->_tpl_vars['page'] )): ?> class="hilight"<?php endif; ?>>Compte</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['options']; ?>
|
||||
&n=jeu"<?php if ($this->_tpl_vars['onglet'] == 'jeu' && ereg ( "options/" , $this->_tpl_vars['page'] )): ?> class="hilight"<?php endif; ?>>Jeu</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['options']; ?>
|
||||
&n=notif"<?php if ($this->_tpl_vars['onglet'] == 'notif' && ereg ( "options/" , $this->_tpl_vars['page'] )): ?> class="hilight"<?php endif; ?>>Notifications</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['messages']; ?>
|
||||
"<?php if (ereg ( "Messagerie - " , $this->_tpl_vars['titre'] ) || $this->_tpl_vars['page'] == 'envoyer'): ?> class="hilight"<?php endif; ?>>
|
||||
<?php if ($this->_tpl_vars['alertMail']['0'] + $this->_tpl_vars['alertMail']['1'] >= 1): ?><b>Messages <?php if ($this->_tpl_vars['alertMail']['0']): ?>(<?php echo $this->_tpl_vars['alertMail']['0']; ?>
|
||||
) <?php endif; ?>et rapports<?php if ($this->_tpl_vars['alertMail']['1']): ?> (<?php echo $this->_tpl_vars['alertMail']['1']; ?>
|
||||
)<?php endif; ?></b><?php else: ?>Messages et rapports<?php endif; ?></a>
|
||||
<ul>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['messages']; ?>
|
||||
&n=recus"<?php if (ereg ( "Messagerie - " , $this->_tpl_vars['titre'] ) && $this->_tpl_vars['onglet'] != 'rapports' && $this->_tpl_vars['onglet'] != 'send' && $this->_tpl_vars['onglet'] != 'envoyer'): ?> class="hilight"<?php endif; ?>>Reçus<?php if ($this->_tpl_vars['alertMail']['0']): ?> (<?php echo $this->_tpl_vars['alertMail']['0']; ?>
|
||||
)<?php endif; ?></a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['messages']; ?>
|
||||
&n=rapports"<?php if ($this->_tpl_vars['onglet'] == 'rapports' && ereg ( "Messagerie - " , $this->_tpl_vars['titre'] )): ?> class="hilight"<?php endif; ?>>Rapports<?php if ($this->_tpl_vars['alertMail']['1']): ?> (<?php echo $this->_tpl_vars['alertMail']['1']; ?>
|
||||
)<?php endif; ?></a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['messages']; ?>
|
||||
&n=send"<?php if ($this->_tpl_vars['onglet'] == 'send' && ereg ( "Messagerie - " , $this->_tpl_vars['titre'] )): ?> class="hilight"<?php endif; ?>>Envoyés</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['messages']; ?>
|
||||
&n=envoyer"<?php if ($this->_tpl_vars['onglet'] == 'envoyer'): ?> class="hilight"<?php endif; ?>>Ecrire</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['classement']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == 'classement'): ?> class="hilight"<?php endif; ?>>Classement</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['chat']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == 'chat'): ?> class="hilight"<?php else: ?> class="external"<?php endif; ?>>Chat</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['forums']; ?>
|
||||
" class="external">Forums</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['bugs']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == 'bugs'): ?> class="hilight"<?php endif; ?>>Rapports de bug</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['faq']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == 'faq' || ereg ( '/aide/' , $this->_tpl_vars['page'] )): ?> class="hilight"<?php endif; ?>>F.A.Q.</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['deconnexion']; ?>
|
||||
">Déconnexion</a></li>
|
||||
</ul>
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 21:11:59
|
||||
compiled from admin/print.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'admin/print.tpl', 7, false),array('modifier', 'truncate', 'admin/print.tpl', 7, 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);
|
||||
?>
|
||||
<?php if ($this->_tpl_vars['linkpage'] == 'vplanetes'): ?><a href="?p=<?php echo $this->_tpl_vars['linkpage']; ?>
|
||||
&id=<?php echo $this->_tpl_vars['idPlan']; ?>
|
||||
&key=hash_planete">Recalculer le hash (après déplacement d'une planète)</a><?php endif; ?>
|
||||
<table>
|
||||
<?php $_from = $this->_tpl_vars['tableau']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['ligne']):
|
||||
?>
|
||||
<tr>
|
||||
<td><a href="?p=<?php echo $this->_tpl_vars['linkpage']; ?>
|
||||
&id=<?php echo $this->_tpl_vars['idPlan']; ?>
|
||||
&key=<?php echo $this->_tpl_vars['key']; ?>
|
||||
"><?php echo $this->_tpl_vars['key']; ?>
|
||||
</a></td>
|
||||
<td><?php if ($this->_tpl_vars['ligne'] > 0 && ( ereg ( "^time" , $this->_tpl_vars['key'] ) || $this->_tpl_vars['key'] == 'last_visite' || $this->_tpl_vars['key'] == 'politique_lastchange' )): ?><?php echo ((is_array($_tmp=$this->_tpl_vars['ligne'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "timestamp : %d/%m/%y %H:%M:%S") : smarty_modifier_date_format($_tmp, "timestamp : %d/%m/%y %H:%M:%S")); ?>
|
||||
<?php else: ?><?php echo ((is_array($_tmp=$this->_tpl_vars['ligne'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 82) : smarty_modifier_truncate($_tmp, 82)); ?>
|
||||
<?php endif; ?></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</table>
|
||||
<?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,59 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-07-31 21:50:18
|
||||
compiled from admin/demarrage.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'admin/demarrage.tpl', 16, false),array('modifier', 'date_format', 'admin/demarrage.tpl', 17, 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>Pages de démarrage</h2>
|
||||
<h3>La première news est celle qui sera affichée à la connexion des joueurs</h3>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Action</th>
|
||||
<th>Titre</th>
|
||||
<th>Date de visibilité</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['tableau']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['ligne']):
|
||||
?>
|
||||
<tr>
|
||||
<td><a href="<?php echo $this->_tpl_vars['menu']['demarrage']; ?>
|
||||
&i=<?php echo $this->_tpl_vars['ligne']['id']; ?>
|
||||
">EDIT</a> | <a href="<?php echo $this->_tpl_vars['menu']['demarrage']; ?>
|
||||
&d=<?php echo $this->_tpl_vars['ligne']['id']; ?>
|
||||
">SUPPR</a></td>
|
||||
<td><b><?php echo ((is_array($_tmp=$this->_tpl_vars['ligne']['titre'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
</b></td>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['ligne']['time'])) ? $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>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<h2>Gestion du cache</h2>
|
||||
<a href="<?php echo $this->_tpl_vars['menu']['demarrage']; ?>
|
||||
&actuCache">Mettre à jour le cache</a>
|
||||
<h2><?php if ($this->_tpl_vars['id'] == 'add'): ?>Ajouter<?php else: ?>Modifier<?php endif; ?> une page de démarrage<?php if ($this->_tpl_vars['id'] != 'add'): ?> : <?php echo $this->_tpl_vars['id']; ?>
|
||||
<?php endif; ?></h2>
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['demarrage']; ?>
|
||||
&i=<?php echo $this->_tpl_vars['id']; ?>
|
||||
" method="post">
|
||||
<fieldset class="options">
|
||||
<label for="titre">Titre :</label> <input type="text" name="titre" id="titre" value="<?php echo $this->_tpl_vars['mod']['titre']; ?>
|
||||
" tabindex="1" /><br />
|
||||
<label for="contenu">Texte :</label><br /><textarea name="contenu" id="contenu" rows="10" cols="10" tabindex="2"><?php echo $this->_tpl_vars['mod']['contenu']; ?>
|
||||
</textarea><br />
|
||||
<?php if ($this->_tpl_vars['mod']['titre']): ?><input type="checkbox" name="reset" id="reset" value="1" tabindex="3" /><label for="reset"> Actualiser la date et l'heure d'écriture</label> <i>Les utilisateurs ayant déjà vu la page la revéront de nouveau.</i><br /><br /><br /><?php endif; ?>
|
||||
<input type="submit" class="submit" value="GO" tabindex="4" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<?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,29 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 23:38:50
|
||||
compiled from cms/footer.tpl */ ?>
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
<?php echo $this->_tpl_vars['LANG']['footer']['realise']; ?>
|
||||
Anomaly Concepts<br />
|
||||
<?php echo $this->_tpl_vars['LANG']['footer']['design']; ?>
|
||||
<a href="http://www.nothing-arts.com" onclick="window.open(this.href); return false;"><ins>nothingarts</ins></a><br /><br />
|
||||
<!--Site visité 514200 fois depuis sa création<br />-->
|
||||
<a href="<?php echo $this->_tpl_vars['link']['accueil']; ?>
|
||||
"><?php echo $this->_tpl_vars['LANG']['footer']['accueil']; ?>
|
||||
</a> | <a href="<?php echo $this->_tpl_vars['link']['inscription']; ?>
|
||||
"><?php echo $this->_tpl_vars['LANG']['footer']['inscrire']; ?>
|
||||
</a> | <a href="<?php echo $this->_tpl_vars['link']['forum']; ?>
|
||||
"><?php echo $this->_tpl_vars['LANG']['footer']['forum']; ?>
|
||||
</a> | <a href="<?php echo $this->_tpl_vars['link']['staff']; ?>
|
||||
"><?php echo $this->_tpl_vars['LANG']['footer']['staff']; ?>
|
||||
</a> | <a href="<?php echo $this->_tpl_vars['link']['faq']; ?>
|
||||
"><?php echo $this->_tpl_vars['LANG']['footer']['faq']; ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div id="cornerbt"></div>
|
||||
<?php echo $this->_tpl_vars['script']; ?>
|
||||
|
||||
<!-- \\******* By Phantom *******// Halo-Battle, Tous droits réservés -->
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 16:25:32
|
||||
compiled from game/alliance/nm_accueil.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);
|
||||
?>
|
||||
<h2>Rechercher une alliance</h2>
|
||||
<form method="post" action="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
">
|
||||
<fieldset class="form">
|
||||
<label for="tag">Tag : <input type="text" class="text" name="search_tag" id="tag" maxlength="5" /></label><br />
|
||||
<label for="nom">Nom : <input type="text" class="text" name="search_nom" id="nom" /></label><br />
|
||||
<input type="submit" class="submit" value="Ok" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<br />
|
||||
<h2>Créer une alliance</h2>
|
||||
<h3><a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&q=fonder"><?php if ($this->_tpl_vars['fondation']): ?>Consulter le statut de votre alliance<?php else: ?>Fonder une alliance<?php endif; ?></a></h3>
|
||||
<?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,38 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 20:55:23
|
||||
compiled from game/alliance/chat_ajax.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);
|
||||
?>
|
||||
<h2>Chat</h2>
|
||||
<noscript><div id="erreur" style="color: red;">Vous devez activer le JavaScript pour pouvoir utiliser le chat !</div></noscript>
|
||||
<?php if ($this->_tpl_vars['planete']->permissions_alliance & 256): ?>
|
||||
<form method="post" action="<?php echo $this->_tpl_vars['menu']['chat_alli']; ?>
|
||||
" onsubmit="return chat_sendMessage();">
|
||||
<label for="msg">Réponse :</label> <input name="msg" id="msg" type="text" size="50" maxlength="250" /> <input value="GO" class="submit" type="submit" /> <input value="MAJ" onclick="chat_MAJ();" class="submit" type="button" />
|
||||
</form>
|
||||
<br />
|
||||
<?php endif; ?>
|
||||
<div style="height: 550px; overflow: auto; width: 99%;">
|
||||
<table style="width: 100%; margin: 0px;">
|
||||
<tbody id="chat">
|
||||
<tr>
|
||||
<td colspan="2">Vous vous connectez au chat</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 172px;">[pseudo] heure</td>
|
||||
<th style="width: 536px;">Message</td>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
<script type="text/javascript" src="js/prototype.js"></script>
|
||||
<script type="text/javascript" src="js/chat.js"></script>
|
||||
<?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,35 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 21:11:56
|
||||
compiled from admin/print_key.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);
|
||||
?>
|
||||
<table>
|
||||
<tr>
|
||||
<td><a href="?p=<?php echo $this->_tpl_vars['linkpage']; ?>
|
||||
&id=<?php echo $this->_tpl_vars['idPlan']; ?>
|
||||
"><?php echo $this->_tpl_vars['key']; ?>
|
||||
</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<form action="?p=<?php echo $this->_tpl_vars['linkpage']; ?>
|
||||
&id=<?php echo $this->_tpl_vars['idPlan']; ?>
|
||||
&" method="post">
|
||||
<?php if ($this->_tpl_vars['type']['0'] == 'text' || $this->_tpl_vars['type']['0'] == 'longtext'): ?><textarea cols="10" rows="10" name="mod" tabindex="1"><?php echo $this->_tpl_vars['tableau'][$this->_tpl_vars['key']]; ?>
|
||||
</textarea><br />
|
||||
<?php else: ?><input type="text" value="<?php echo $this->_tpl_vars['tableau'][$this->_tpl_vars['key']]; ?>
|
||||
" name="mod" tabindex="1" /><?php endif; ?>
|
||||
<input type="hidden" value="<?php echo $this->_tpl_vars['key']; ?>
|
||||
" name="key" />
|
||||
<input type="submit" class="submit" value="GO" tabindex="2" />
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?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,31 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 19:30:33
|
||||
compiled from game/options/3.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);
|
||||
?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/options/common.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<h2>Recevoir des notifications par mail</h2>
|
||||
<h3 style="color: red;">Attention : page non fonctionnelle pour le moment !</h3>
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['options']; ?>
|
||||
&n=jeu" method="post">
|
||||
<fieldset class="form">
|
||||
<label for="recmail">Recevoir des notifications par mail <input type="checkbox" name="recmail" id="recmail" value="1" class="text" /></label>
|
||||
<label for="rappdef">Afficher la page des rapports par défaut au lieu de la page des messages privés reçus <input type="checkbox" name="rappdef" id="rappdef" value="1" class="text" /></label>
|
||||
<label for="fl_safe">Empêcher l'envoie de flotte à un multi-compte <input type="checkbox" name="fl_safe" id="fl_safe" value="1" class="text" /></label>
|
||||
<label for="res_auto">Autogérer mes productions de ressources au rendement maximal <input type="checkbox" name="res_auto" id="res_auto" value="1" class="text" /></label>
|
||||
<label for="fileacc">Afficher les files d'attentes de la planète sur la page d'accueil <input type="checkbox" name="fileacc" id="fileacc" value="1" class="text" /></label>
|
||||
<label for="fileref">Rafraîchir automatiquement les pages à la fin de la construction/entraînement <input type="checkbox" name="fileref" id="fileref" value="1" class="text" /></label>
|
||||
<input type="submit" class="submit" value="Ok" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<?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,67 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-09-10 16:03:12
|
||||
compiled from admin/vip.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'admin/vip.tpl', 19, 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>Vérification des IP</h2>
|
||||
<a href="<?php echo $this->_tpl_vars['menu']['vip']; ?>
|
||||
&v=<?php echo $this->_tpl_vars['numpage']-1; ?>
|
||||
"><<<</a> page <?php echo $this->_tpl_vars['numpage']; ?>
|
||||
/<?php echo $this->_tpl_vars['nbpage']; ?>
|
||||
<a href="<?php echo $this->_tpl_vars['menu']['vip']; ?>
|
||||
&v=<?php echo $this->_tpl_vars['numpage']+1; ?>
|
||||
">>>></a>
|
||||
<table style="text-align: center; margin: auto;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Adresses IP</th>
|
||||
<th>Nom d'utilisateur</th>
|
||||
<th>Date & heure</th>
|
||||
<th>Traçage IP</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['ips']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['ip']):
|
||||
?>
|
||||
<tr<?php if ($this->_tpl_vars['ip']['6']): ?> style="background-color: #<?php echo $this->_tpl_vars['ip']['6']; ?>
|
||||
;"<?php endif; ?>>
|
||||
<td><a href="<?php echo $this->_tpl_vars['menu']['vip']; ?>
|
||||
&ip=<?php echo $this->_tpl_vars['ip']['0']; ?>
|
||||
"><?php echo $this->_tpl_vars['ip']['0']; ?>
|
||||
</a></td>
|
||||
<td><a href="<?php echo $this->_tpl_vars['menu']['vip']; ?>
|
||||
&util=<?php echo $this->_tpl_vars['ip']['2']; ?>
|
||||
"><?php echo $this->_tpl_vars['ip']['3']; ?>
|
||||
(<?php echo $this->_tpl_vars['ip']['2']; ?>
|
||||
)</a></td>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['ip']['4'])) ? $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['ip']['1']; ?>
|
||||
</td>
|
||||
<td><a href="<?php echo $this->_tpl_vars['menu']['vip']; ?>
|
||||
&util=<?php echo $this->_tpl_vars['ip']['2']; ?>
|
||||
&act=multiok">Déclaré</a><br /><a href="<?php echo $this->_tpl_vars['menu']['sjoueurs']; ?>
|
||||
&id=<?php echo $this->_tpl_vars['ip']['2']; ?>
|
||||
&sanc=d&raisonmv=Multi-compte">Définitivement</a></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<a href="<?php echo $this->_tpl_vars['menu']['vip']; ?>
|
||||
&v=<?php echo $this->_tpl_vars['numpage']-1; ?>
|
||||
"><<<</a> page <?php echo $this->_tpl_vars['numpage']; ?>
|
||||
/<?php echo $this->_tpl_vars['nbpage']; ?>
|
||||
<a href="<?php echo $this->_tpl_vars['menu']['vip']; ?>
|
||||
&v=<?php echo $this->_tpl_vars['numpage']+1; ?>
|
||||
">>>></a>
|
||||
<?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,123 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-11-01 00:38:03
|
||||
compiled from game/menu_joueurs.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'ucfirst', 'game/menu_joueurs.tpl', 12, false),)), $this); ?>
|
||||
<ul>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['accueil']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == 'accueil'): ?> class="hilight"<?php endif; ?>>Accueil</a></li>
|
||||
<li>
|
||||
<a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == 'batiments'): ?> class="hilight"<?php endif; ?>>Bâtiments</a>
|
||||
<ul>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == 'batiments' && $this->_tpl_vars['onglet'] == 0): ?> class="hilight"<?php endif; ?>>Tous</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
||||
&n=1"<?php if ($this->_tpl_vars['page'] == 'batiments' && $this->_tpl_vars['onglet'] & 1): ?> class="hilight"<?php endif; ?>>Mines/centrales</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
||||
&n=2"<?php if ($this->_tpl_vars['page'] == 'batiments' && $this->_tpl_vars['onglet'] & 2): ?> class="hilight"<?php endif; ?>>Civils</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
||||
&n=4"<?php if ($this->_tpl_vars['page'] == 'batiments' && $this->_tpl_vars['onglet'] & 4): ?> class="hilight"<?php endif; ?>>Militaires</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['caserne']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == 'caserne'): ?> class="hilight"<?php endif; ?>><?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></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['chantierspatial']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == 'chantierspatial'): ?> class="hilight"<?php endif; ?>><?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></li>
|
||||
<li>
|
||||
<a href="<?php echo $this->_tpl_vars['menu']['chantierterrestre']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == 'chantierterrestre'): ?> class="hilight"<?php endif; ?>><?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>
|
||||
<ul>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['chantierterrestre']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == 'chantierterrestre' && $this->_tpl_vars['onglet'] != 'defenses'): ?> class="hilight"<?php endif; ?>>Unités</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['chantierterrestre']; ?>
|
||||
&n=defenses"<?php if ($this->_tpl_vars['page'] == 'chantierterrestre' && $this->_tpl_vars['onglet'] == 'defenses'): ?> class="hilight"<?php endif; ?>>Défenses</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<?php if ($this->_tpl_vars['planetes']['0']['id'] == $this->_tpl_vars['planete']->id): ?><li>
|
||||
<a href="<?php echo $this->_tpl_vars['menu']['laboratoire']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == 'laboratoire'): ?> class="hilight"<?php endif; ?>><?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>
|
||||
<ul>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['laboratoire']; ?>
|
||||
&n=0"<?php if ($this->_tpl_vars['page'] == 'laboratoire' && $this->_tpl_vars['onglet'] == 0): ?> class="hilight"<?php endif; ?>>Industrie</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['laboratoire']; ?>
|
||||
&n=1"<?php if ($this->_tpl_vars['page'] == 'laboratoire' && ( $this->_tpl_vars['onglet'] == 1 || $this->_tpl_vars['onglet'] == 2 )): ?> class="hilight"<?php endif; ?>>Ingénierie</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['laboratoire']; ?>
|
||||
&n=3"<?php if ($this->_tpl_vars['page'] == 'laboratoire' && $this->_tpl_vars['onglet'] == 3): ?> class="hilight"<?php endif; ?>>Politique</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['laboratoire']; ?>
|
||||
&n=4"<?php if ($this->_tpl_vars['page'] == 'laboratoire' && $this->_tpl_vars['onglet'] == 4): ?> class="hilight"<?php endif; ?>>Armement</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['laboratoire']; ?>
|
||||
&n=5"<?php if ($this->_tpl_vars['page'] == 'laboratoire' && ( $this->_tpl_vars['onglet'] == 5 || $this->_tpl_vars['onglet'] == 6 )): ?> class="hilight"<?php endif; ?>>Défenses</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['laboratoire']; ?>
|
||||
&n=7"<?php if ($this->_tpl_vars['page'] == 'laboratoire' && $this->_tpl_vars['onglet'] == 7): ?> class="hilight"<?php endif; ?>>Projets expérimentaux</a></li>
|
||||
</ul>
|
||||
</li><?php endif; ?>
|
||||
<li>
|
||||
<a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == 'arbre' || $this->_tpl_vars['page'] == 'description'): ?> class="hilight"<?php endif; ?>>Arbre technologique</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['ressources']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == 'ressources'): ?> class="hilight"<?php endif; ?>>Ressources</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == 'gestion' || $this->_tpl_vars['page'] == 'rename'): ?> class="hilight"<?php endif; ?>>Gestion</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['marche']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == 'marche' || $this->_tpl_vars['page'] == 'bourse_ressources' || $this->_tpl_vars['page'] == 'bourseDetails'): ?> class="hilight"<?php endif; ?>>Marché</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['flotte']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == 'flotte' || $this->_tpl_vars['page'] == 'flotte1' || $this->_tpl_vars['page'] == 'flotte2' || $this->_tpl_vars['page'] == 'flotten'): ?> class="hilight"<?php endif; ?>>Flottes</a></li>
|
||||
<!--<li><a href="?p=simulateur"<?php if ($this->_tpl_vars['page'] == 'simulateur_combat'): ?> class="hilight"<?php endif; ?>>Simulateur de combat</a></li>-->
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['carte']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == 'carte'): ?> class="hilight"<?php endif; ?>>Carte spatiale</a></li>
|
||||
<li>
|
||||
<a href="<?php echo $this->_tpl_vars['menu']['options']; ?>
|
||||
"<?php if (ereg ( "options/" , $this->_tpl_vars['page'] )): ?> class="hilight"<?php endif; ?>>Options</a>
|
||||
<ul>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['options']; ?>
|
||||
&n=ext"<?php if ($this->_tpl_vars['onglet'] == 'ext' && ereg ( "options/" , $this->_tpl_vars['page'] )): ?> class="hilight"<?php endif; ?>>Extérieures</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['options']; ?>
|
||||
&n=compte"<?php if ($this->_tpl_vars['onglet'] == 'compte' && ereg ( "options/" , $this->_tpl_vars['page'] )): ?> class="hilight"<?php endif; ?>>Compte</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['options']; ?>
|
||||
&n=jeu"<?php if ($this->_tpl_vars['onglet'] == 'jeu' && ereg ( "options/" , $this->_tpl_vars['page'] )): ?> class="hilight"<?php endif; ?>>Jeu</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['options']; ?>
|
||||
&n=notif"<?php if ($this->_tpl_vars['onglet'] == 'notif' && ereg ( "options/" , $this->_tpl_vars['page'] )): ?> class="hilight"<?php endif; ?>>Notifications</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['messages']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == 'messagerie' || $this->_tpl_vars['page'] == 'envoyer'): ?> class="hilight"<?php endif; ?>>
|
||||
<?php if ($this->_tpl_vars['alertMail']['0'] + $this->_tpl_vars['alertMail']['1'] >= 1): ?><b>Messages <?php if ($this->_tpl_vars['alertMail']['0']): ?>(<?php echo $this->_tpl_vars['alertMail']['0']; ?>
|
||||
) <?php endif; ?>et rapports<?php if ($this->_tpl_vars['alertMail']['1']): ?> (<?php echo $this->_tpl_vars['alertMail']['1']; ?>
|
||||
)<?php endif; ?></b><?php else: ?>Messages et rapports<?php endif; ?></a>
|
||||
<ul>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['messages']; ?>
|
||||
&n=recus"<?php if ($this->_tpl_vars['page'] == 'messagerie' && $this->_tpl_vars['onglet'] != 'rapports' && $this->_tpl_vars['onglet'] != 'send' && $this->_tpl_vars['onglet'] != 'envoyer'): ?> class="hilight"<?php endif; ?>>Reçus</a><?php if ($this->_tpl_vars['alertMail']['0']): ?> (<?php echo $this->_tpl_vars['alertMail']['0']; ?>
|
||||
)<?php endif; ?></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['messages']; ?>
|
||||
&n=rapports"<?php if ($this->_tpl_vars['onglet'] == 'rapports' && $this->_tpl_vars['page'] == 'messagerie'): ?> class="hilight"<?php endif; ?>>Rapports</a><?php if ($this->_tpl_vars['alertMail']['1']): ?> (<?php echo $this->_tpl_vars['alertMail']['1']; ?>
|
||||
)<?php endif; ?></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['messages']; ?>
|
||||
&n=send"<?php if ($this->_tpl_vars['onglet'] == 'send' && $this->_tpl_vars['page'] == 'messagerie'): ?> class="hilight"<?php endif; ?>>Envoyés</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['messages']; ?>
|
||||
&n=envoyer"<?php if ($this->_tpl_vars['onglet'] == 'envoyer'): ?> class="hilight"<?php endif; ?>>Ecrire</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
"<?php if (ereg ( "alliance/" , $this->_tpl_vars['page'] )): ?> class="hilight"<?php endif; ?>>Alliance</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['classement']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == 'classement'): ?> class="hilight"<?php endif; ?>>Classement</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['chat']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == 'chat'): ?> class="hilight"<?php else: ?> class="external"<?php endif; ?>>Chat</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['forums']; ?>
|
||||
" class="external">Forums</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['bugs']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == 'bugs'): ?> class="hilight"<?php endif; ?>>Rapports de bug</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['faq']; ?>
|
||||
"<?php if ($this->_tpl_vars['page'] == 'faq' || ereg ( '/aide/' , $this->_tpl_vars['page'] )): ?> class="hilight"<?php endif; ?>>F.A.Q.</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['deconnexion']; ?>
|
||||
">Déconnexion</a></li>
|
||||
</ul>
|
||||
|
|
@ -0,0 +1,179 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-11-01 00:38:02
|
||||
compiled from game/header.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'game/header.tpl', 15, false),array('modifier', 'sprintf', 'game/header.tpl', 44, false),array('modifier', 'escape', 'game/header.tpl', 62, false),array('modifier', 'ucfirst', 'game/header.tpl', 77, false),array('modifier', 'separerNombres', 'game/header.tpl', 77, 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" lang="fr">
|
||||
<head>
|
||||
<title><?php if ($this->_tpl_vars['titre']): ?>.: <?php echo $this->_tpl_vars['titre']; ?>
|
||||
- Halo-Battle :.<?php else: ?>.: Halo-Battle :.<?php endif; ?></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<?php if ($this->_tpl_vars['race'] == 'covenant'): ?><link rel="stylesheet" href="<?php echo $this->_tpl_vars['url_images']; ?>
|
||||
css/covenant/covenant.css" type="text/css" media="all" title="Covenants" /><?php elseif ($this->_tpl_vars['auth_level'] >= 3): ?><link rel="alternate stylesheet" href="<?php echo $this->_tpl_vars['url_images']; ?>
|
||||
css/covenant/covenant.css" type="text/css" media="all" title="Covenants" /><?php endif; ?>
|
||||
<?php if ($this->_tpl_vars['race'] == 'humain'): ?><link rel="stylesheet" href="<?php echo $this->_tpl_vars['url_images']; ?>
|
||||
css/csnu/csnu.css" type="text/css" media="all" title="CSNU" /><?php elseif ($this->_tpl_vars['auth_level'] >= 3): ?><link rel="alternate stylesheet" href="<?php echo $this->_tpl_vars['url_images']; ?>
|
||||
css/csnu/csnu.css" type="text/css" media="all" title="CSNU" /><?php endif; ?>
|
||||
<link rel="shortcut icon" type="image/x-icon" href="<?php echo $this->_tpl_vars['url_images']; ?>
|
||||
favicon.ico" />
|
||||
<?php echo $this->_tpl_vars['scripth']; ?>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"></div>
|
||||
<div id="all">
|
||||
<div id="header">
|
||||
<div><span id="date"><?php echo ((is_array($_tmp=time())) ? $this->_run_mod_handler('date_format', true, $_tmp, "/%e%m%y/%H%M%S") : smarty_modifier_date_format($_tmp, "/%e%m%y/%H%M%S")); ?>
|
||||
</span> | <?php echo $this->_tpl_vars['LANG']['hd_sup']['tempsDeJeu']; ?>
|
||||
<?php echo $this->_tpl_vars['tpsdejeu']; ?>
|
||||
| <a href="?p=version">Version <?php echo $this->_tpl_vars['version']; ?>
|
||||
</a><?php if ($this->_tpl_vars['multi']): ?> | <a href="?p=avertmulti" style="color: #FF0000;">! MULTICOMPTE !</a><?php endif; ?><?php if ($this->_tpl_vars['header']['messagedemarrage']): ?> | <a href="?p=demarrage"><?php echo $this->_tpl_vars['header']['messagedemarrage']; ?>
|
||||
</a><?php endif; ?><?php if ($this->_tpl_vars['planete']->mv < 0): ?> | <a href="?p=accueil" style="color: #FF0000;">Votre compte sera supprimé d'ici 48h</a><?php endif; ?><?php if ($this->_tpl_vars['alertMail']['0'] + $this->_tpl_vars['alertMail']['1'] >= 1): ?> | <a href="<?php echo $this->_tpl_vars['menu']['messages']; ?>
|
||||
" style="color: #FF0000;">Vous avez des messages non lu !</a><?php endif; ?></div><a href="<?php echo $this->_tpl_vars['link']['RSS']; ?>
|
||||
" id="rss">RSS :: s'abonner</a>
|
||||
<h1><a href="<?php echo $this->_tpl_vars['link']['self']; ?>
|
||||
<?php echo $this->_tpl_vars['first_page']; ?>
|
||||
"><span></span>Halo Battle</a></h1>
|
||||
<?php if ($this->_tpl_vars['page'] == 'admin'): ?>
|
||||
<ul>
|
||||
<li><a href="<?php echo $this->_tpl_vars['link']['self']; ?>
|
||||
<?php echo $this->_tpl_vars['first_page']; ?>
|
||||
">RETOUR AU JEU</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['webmail']; ?>
|
||||
">WEBMAIL</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['cjoueurs']; ?>
|
||||
">CONTROLE JOU.</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['vjoueurs']; ?>
|
||||
">VERIFIER JOUEUR</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['vplanetes']; ?>
|
||||
">VERIFIER PLANETE</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['link']['self']; ?>
|
||||
<?php echo $this->_tpl_vars['link']['operateur']; ?>
|
||||
"><?php echo $this->_tpl_vars['LANG']['hd_menu']['Operateurs']; ?>
|
||||
</a></li>
|
||||
<li><a href="?p=bdd">ADMIN. BDD</a></li>
|
||||
<li><a href="?p=mail_mass">MAILLING MASSE</a></li>
|
||||
</ul>
|
||||
<?php else: ?>
|
||||
<ul>
|
||||
<li><a href="<?php echo $this->_tpl_vars['link']['accueil']; ?>
|
||||
"><?php echo $this->_tpl_vars['LANG']['hd_menu']['accueil']; ?>
|
||||
</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['link']['blog']; ?>
|
||||
"><?php echo $this->_tpl_vars['LANG']['hd_menu']['blog']; ?>
|
||||
</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['link']['forum']; ?>
|
||||
"><?php echo $this->_tpl_vars['LANG']['hd_menu']['forum']; ?>
|
||||
</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['chat']; ?>
|
||||
"><?php echo $this->_tpl_vars['LANG']['hd_menu']['chat']; ?>
|
||||
</a></li>
|
||||
<li><?php if ($this->_tpl_vars['auth_level'] >= 4): ?><a href="admin.php">CONTROLES</a><?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['faq']; ?>
|
||||
"><?php echo $this->_tpl_vars['LANG']['hd_menu']['faq']; ?>
|
||||
</a><?php endif; ?></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['messages']; ?>
|
||||
"<?php if ($this->_tpl_vars['alertMail']['0'] + $this->_tpl_vars['alertMail']['1'] >= 1): ?> style="color:#FF0000;"<?php endif; ?>><?php echo $this->_tpl_vars['LANG']['hd_menu']['messagerie']; ?>
|
||||
</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['link']['operateur']; ?>
|
||||
"><?php echo $this->_tpl_vars['LANG']['hd_menu']['operateurs']; ?>
|
||||
</a></li>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div id="banner">
|
||||
<?php $_from = $this->_tpl_vars['header']['infos']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['info']):
|
||||
?>
|
||||
<div class="bannerleft"<?php if ($this->_tpl_vars['info']['color']): ?> style="color: <?php echo $this->_tpl_vars['info']['color']; ?>
|
||||
;"<?php endif; ?>><?php echo $this->_tpl_vars['info']['texte']; ?>
|
||||
</div>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<div id="bannerright"><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG']['cntRaces'])) ? $this->_run_mod_handler('sprintf', true, $_tmp, $this->_tpl_vars['header']['count']['1'], $this->_tpl_vars['header']['count']['0'], $this->_tpl_vars['header']['count']['2']) : smarty_modifier_sprintf($_tmp, $this->_tpl_vars['header']['count']['1'], $this->_tpl_vars['header']['count']['0'], $this->_tpl_vars['header']['count']['2'])); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="corps">
|
||||
<div id="menu"><span class="top"></span>
|
||||
<?php if ($this->_tpl_vars['page'] == 'admin'): ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'admin/menu.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<?php elseif (@SURFACE == 'asteroide'): ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/menu_asteroide.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<?php else: ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/menu_joueurs.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<?php endif; ?>
|
||||
<span class="bottom"></span></div>
|
||||
</div>
|
||||
|
||||
<?php if ($this->_tpl_vars['page'] != 'admin' && $this->_tpl_vars['page'] != 'vide' && $this->_tpl_vars['page'] != 'amis' && $this->_tpl_vars['page'] != 'flotten' && $this->_tpl_vars['page'] != 'messagerie' && $this->_tpl_vars['page'] != 'pilori' && $this->_tpl_vars['page'] != 'envoyer' && $this->_tpl_vars['page'] != 'bugs' && $this->_tpl_vars['page'] != 'carte' && $this->_tpl_vars['page'] != 'classement' && $this->_tpl_vars['page'] != 'options' && $this->_tpl_vars['page'] != 'simulation' && $this->_tpl_vars['page'] != 'vp' && $this->_tpl_vars['page'] != 'operateur' && ! ereg ( "alliance/" , $this->_tpl_vars['page'] ) && ! ereg ( "diplomatie/" , $this->_tpl_vars['page'] )): ?>
|
||||
<div id="head">
|
||||
<span class="top"></span>
|
||||
|
||||
<a href="?p=rename" class="imglink"><img src="<?php echo $this->_tpl_vars['url_images']; ?>
|
||||
images/<?php if (@SURFACE == 'planete'): ?>planetes<?php else: ?>asteroides<?php endif; ?>/<?php echo $this->_tpl_vars['planete']->image; ?>
|
||||
.jpg" width="70" height="70" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['planete']->nom_planete)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
" /></a>
|
||||
<form action="<?php echo $this->_tpl_vars['link']['changeplanete']; ?>
|
||||
" method="post">
|
||||
<p>Bonjour, <span><?php echo $this->_tpl_vars['planete']->pseudo; ?>
|
||||
.</span><br />Votre position actuelle :</p>
|
||||
<fieldset>
|
||||
<select name="planete">
|
||||
<optgroup label="Planètes"><?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 (@SURFACE == 'planete' && $this->_tpl_vars['plan']['id'] == $this->_tpl_vars['planete']->id): ?>selected="selected" <?php endif; ?>value="<?php echo $this->_tpl_vars['plan']['id']; ?>
|
||||
"><?php echo ((is_array($_tmp=$this->_tpl_vars['plan']['nom_planete'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
[<?php echo $this->_tpl_vars['plan']['galaxie']; ?>
|
||||
:<?php echo $this->_tpl_vars['plan']['ss']; ?>
|
||||
:<?php echo $this->_tpl_vars['plan']['position']; ?>
|
||||
]</option>
|
||||
<?php endforeach; endif; unset($_from); ?></optgroup>
|
||||
<?php if ($this->_tpl_vars['planete']->alliance): ?><optgroup label="Astéroïdes">
|
||||
<option value="A<?php echo $this->_tpl_vars['planete']->id_alliance; ?>
|
||||
" <?php if (@SURFACE == 'asteroide'): ?>selected="selected" <?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['planete']->alliance->nom_asteroide)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
[<?php echo $this->_tpl_vars['planete']->alliance->galaxie; ?>
|
||||
:<?php echo $this->_tpl_vars['planete']->alliance->ss; ?>
|
||||
:A]</option>
|
||||
</optgroup><?php endif; ?>
|
||||
</select>
|
||||
<noscript><fieldset><input class="submit" type="submit" value="GO" /></fieldset></noscript>
|
||||
</fieldset></form>
|
||||
<div>
|
||||
<div><strong><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['metal'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</strong><br /><span<?php if ($this->_tpl_vars['planete']->metal >= $this->_tpl_vars['planete']->cap): ?> class="lack"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['planete']->metal)) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</span></div>
|
||||
<div><strong><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['cristal'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</strong><br /><span<?php if ($this->_tpl_vars['planete']->cristal >= $this->_tpl_vars['planete']->cap): ?> class="lack"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['planete']->cristal)) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</span></div>
|
||||
<div><strong><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['hydrogene'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</strong><br /><span<?php if ($this->_tpl_vars['planete']->hydrogene >= $this->_tpl_vars['planete']->cap): ?> class="lack"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['planete']->hydrogene)) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</span></div>
|
||||
<?php if (@SURFACE == 'asteroide'): ?><div><strong><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['credits'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</strong><br /><?php echo ((is_array($_tmp=$this->_tpl_vars['planete']->credits_alliance)) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</div>
|
||||
<?php else: ?><div><strong><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['energie'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</strong><br /><span<?php if ($this->_tpl_vars['planete']->energieConso >= $this->_tpl_vars['planete']->energie): ?> class="lack"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['planete']->energieConso)) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
/<?php echo ((is_array($_tmp=$this->_tpl_vars['planete']->energie)) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
</span></div><?php endif; ?>
|
||||
</div>
|
||||
|
||||
<span class="bottom"></span>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->_tpl_vars['page'] != 'admin' && $this->_tpl_vars['page'] != 'operateur'): ?><div id="pub"><?php echo $this->_tpl_vars['pub']; ?>
|
||||
</div><?php endif; ?>
|
||||
|
||||
<div id="body">
|
||||
<span class="top"></span>
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 21:11:59
|
||||
compiled from admin/menu.tpl */ ?>
|
||||
<ul>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['accueil']; ?>
|
||||
"<?php if ($this->_tpl_vars['pagea'] == 'accueil'): ?> class="hilight"<?php endif; ?>>Accueil</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['courrier']; ?>
|
||||
"<?php if ($this->_tpl_vars['pagea'] == 'mail'): ?> class="hilight"<?php endif; ?>>Courrier</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['webmail']; ?>
|
||||
" class="external">Webmail</a></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['vip']; ?>
|
||||
"<?php if ($this->_tpl_vars['pagea'] == 'vip'): ?> class="hilight"<?php endif; ?>>Vérifier IP</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['vflottes']; ?>
|
||||
"<?php if ($this->_tpl_vars['pagea'] == 'vflotte'): ?> class="hilight"<?php endif; ?>>Vérifier flottes</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['vplanetes']; ?>
|
||||
"<?php if ($this->_tpl_vars['pagea'] == 'print_choixP'): ?> class="hilight"<?php endif; ?>>Vérifier planètes</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['vjoueurs']; ?>
|
||||
"<?php if ($this->_tpl_vars['pagea'] == 'vjoueurs'): ?> class="hilight"<?php endif; ?>>Vérifier joueurs</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['vrapports']; ?>
|
||||
"<?php if ($this->_tpl_vars['pagea'] == 'vrapports'): ?> class="hilight"<?php endif; ?>>Afficher rapports</a></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><a href="?p=snalliances"<?php if ($this->_tpl_vars['pagea'] == 'snalliances'): ?> class="hilight"<?php endif; ?>>Voir les futurs alliances</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['valliances']; ?>
|
||||
"<?php if ($this->_tpl_vars['pagea'] == 'valliances'): ?> class="hilight"<?php endif; ?>>Vérifier alliances</a></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['sjoueurs']; ?>
|
||||
"<?php if ($this->_tpl_vars['pagea'] == 'sanctionU_choix'): ?> class="hilight"<?php endif; ?>>Sanctions joueur</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['cjoueurs']; ?>
|
||||
"<?php if ($this->_tpl_vars['pagea'] == 'controle'): ?> class="hilight"<?php endif; ?>>Prendre le contrôle</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['djoueurs']; ?>
|
||||
"<?php if ($this->_tpl_vars['pagea'] == 'sjoueurs'): ?> class="hilight"<?php endif; ?>>Supprimer joueurs</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['inscription']; ?>
|
||||
"<?php if ($this->_tpl_vars['pagea'] == 'inscription'): ?> class="hilight"<?php endif; ?>>Créer lien d'inscription</a></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['bandeau']; ?>
|
||||
"<?php if ($this->_tpl_vars['pagea'] == 'bandeau'): ?> class="hilight"<?php endif; ?>>Bandeau d'informations</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['demarrage']; ?>
|
||||
"<?php if ($this->_tpl_vars['pagea'] == 'demarrage'): ?> class="hilight"<?php endif; ?>>Message démarrage</a></li>
|
||||
<li><a href="<?php echo $this->_tpl_vars['menu']['versions']; ?>
|
||||
"<?php if ($this->_tpl_vars['pagea'] == 'version'): ?> class="hilight"<?php endif; ?>>Versions</a></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><a href="./arbre.php">Arbre des technologies</a></li>
|
||||
<li><a href="./integrite.php">Vérifier l'intégrité</a></li>
|
||||
<li><a href="./lectlog.php">Lecteur de logs</a></li>
|
||||
</ul>
|
||||
|
|
@ -0,0 +1,135 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 21:37:48
|
||||
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),array('modifier', 'date_format', 'game/flotte1.tpl', 15, false),array('modifier', 'ucfirst', 'game/flotte1.tpl', 62, false),array('modifier', 'separerNombres', 'game/flotte1.tpl', 63, 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>Flottes en action</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>Nom</th><th>Mission</th><th>Nb.vaisseau(x)</th><th>Destination</th><th>Heure d'arrivée</th><th>Retour</th><th>Heure de retour</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if ($this->_tpl_vars['flottesEC']): ?>
|
||||
<?php $_from = $this->_tpl_vars['flottesEC']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['flotteEC']):
|
||||
?>
|
||||
<tr>
|
||||
<td><a href="<?php echo $this->_tpl_vars['menu']['flotte']; ?>
|
||||
&n=<?php echo $this->_tpl_vars['flotteEC']->id; ?>
|
||||
"><?php echo ((is_array($_tmp=$this->_tpl_vars['flotteEC']->nom)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
</a></td>
|
||||
<td><?php echo $this->_tpl_vars['flotteEC']->txtMission($this->_tpl_vars['flotteEC']->mission); ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['flotteEC']->nb_vais; ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['flotteEC']->end_type == '2'): ?><?php echo $this->_tpl_vars['flotteEC']->end_planete->nom_alliance; ?>
|
||||
[<?php echo $this->_tpl_vars['flotteEC']->end_planete->galaxie; ?>
|
||||
:<?php echo $this->_tpl_vars['flotteEC']->end_planete->ss; ?>
|
||||
:A]<?php elseif ($this->_tpl_vars['flotteEC']->end_type == '1'): ?>[<?php echo $this->_tpl_vars['flotteEC']->end_planete; ?>
|
||||
]<?php elseif ($this->_tpl_vars['flotteEC']->end_type == '3'): ?>[<?php echo $this->_tpl_vars['flotteEC']->end_planete; ?>
|
||||
:A]<?php else: ?><?php echo $this->_tpl_vars['flotteEC']->end_planete->nom_planete; ?>
|
||||
[<?php echo $this->_tpl_vars['flotteEC']->end_planete->galaxie; ?>
|
||||
:<?php echo $this->_tpl_vars['flotteEC']->end_planete->ss; ?>
|
||||
:<?php echo $this->_tpl_vars['flotteEC']->end_planete->position; ?>
|
||||
]<?php endif; ?></td>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['flotteEC']->printTime_end())) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m %H:%M:%S") : smarty_modifier_date_format($_tmp, "%d/%m %H:%M:%S")); ?>
|
||||
</td>
|
||||
<?php if ($this->_tpl_vars['flotteEC']->printTime_ret()): ?><td><?php if ($this->_tpl_vars['flotteEC']->start_type == '2'): ?><?php echo $this->_tpl_vars['flotteEC']->start_planete->nom_alliance; ?>
|
||||
[<?php echo $this->_tpl_vars['flotteEC']->start_planete->galaxie; ?>
|
||||
:<?php echo $this->_tpl_vars['flotteEC']->start_planete->ss; ?>
|
||||
:A]<?php elseif ($this->_tpl_vars['flotteEC']->start_type == '1'): ?>[<?php echo $this->_tpl_vars['flotteEC']->start_planete; ?>
|
||||
]<?php elseif ($this->_tpl_vars['flotteEC']->start_type == '3'): ?>[<?php echo $this->_tpl_vars['flotteEC']->start_planete; ?>
|
||||
:A]<?php else: ?><?php echo $this->_tpl_vars['flotteEC']->start_planete->nom_planete; ?>
|
||||
[<?php echo $this->_tpl_vars['flotteEC']->start_planete->galaxie; ?>
|
||||
:<?php echo $this->_tpl_vars['flotteEC']->start_planete->ss; ?>
|
||||
:<?php echo $this->_tpl_vars['flotteEC']->start_planete->position; ?>
|
||||
]<?php endif; ?></td>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['flotteEC']->printTime_ret())) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m %H:%M:%S") : smarty_modifier_date_format($_tmp, "%d/%m %H:%M:%S")); ?>
|
||||
</td>
|
||||
<?php else: ?><td>-</td><td>-</td><?php endif; ?>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php else: ?>
|
||||
<tr>
|
||||
<td colspan="7">Aucune flotte en action</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if ($this->_tpl_vars['flottesEP']): ?>
|
||||
<h2>Flottes en préparation</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>Statut</th><th>Nom</th><th>Mission</th><th>Nb.vaisseau(x)</th><th>Destination</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['flottesEP']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['flotteEP']):
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $this->_tpl_vars['flotteEP']['statut']; ?>
|
||||
</td>
|
||||
<td><a href="<?php echo $this->_tpl_vars['menu']['flotte']; ?>
|
||||
&c=<?php echo $this->_tpl_vars['key']; ?>
|
||||
"><?php if ($this->_tpl_vars['flotteEP']['nom']): ?><?php echo ((is_array($_tmp=$this->_tpl_vars['flotteEP']['nom'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
<?php else: ?>Sans nom<?php endif; ?></a></td>
|
||||
<td><?php echo $this->_tpl_vars['flotteEP']['mission']; ?>
|
||||
</td>
|
||||
<td><?php echo $this->_tpl_vars['flotteEP']['nbVaisseaux']; ?>
|
||||
</td>
|
||||
<td><?php if ($this->_tpl_vars['flotteEP']['end_position']): ?>[<?php echo $this->_tpl_vars['flotteEP']['end_galaxie']; ?>
|
||||
:<?php echo $this->_tpl_vars['flotteEP']['end_systeme']; ?>
|
||||
:<?php echo $this->_tpl_vars['flotteEP']['end_position']; ?>
|
||||
]<?php else: ?>Indéterminé<?php endif; ?></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>Cette liste sera perdue après votre déconnexion</p>
|
||||
<?php endif; ?>
|
||||
<h2>Vaisseaux disponibles sur cette planète</h2>
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['flotte']; ?>
|
||||
" method="post">
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>Vaisseaux</th><th>Nombre disponible</th><th>Max</th><th>A envoyer<br />Flottes : <?php echo $this->_tpl_vars['nbflotte']; ?>
|
||||
/<?php echo $this->_tpl_vars['nbflottemax']; ?>
|
||||
</th></tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr><td colspan="4"><input class="button" type="button" value="Tous les vaisseaux" onclick="vaisseaux(true)" /> <input class="button" type="button" value="Aucun vaisseau" onclick="vaisseaux(false)" /></td></tr>
|
||||
<tr><td colspan="4"><?php echo $this->_tpl_vars['action']; ?>
|
||||
</td></tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['planete']->vaisseaux; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['vaisseau']):
|
||||
?>
|
||||
<?php if ($this->_tpl_vars['vaisseau'] > 0): ?>
|
||||
<tr>
|
||||
<td><?php if ($this->_tpl_vars['vaisseau'] > 1): ?><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['vaisseaux']['noms_pluriel'][$this->_tpl_vars['key']])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
<?php else: ?><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['vaisseaux']['noms_sing'][$this->_tpl_vars['key']])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
<?php endif; ?></td>
|
||||
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['vaisseau'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
||||
<span id="v_<?php echo $this->_tpl_vars['key']; ?>
|
||||
" style="display: none;"><?php echo $this->_tpl_vars['vaisseau']; ?>
|
||||
</span></td>
|
||||
<td><input class="button" type="button" value="Max" onclick="max('<?php echo $this->_tpl_vars['key']; ?>
|
||||
')" /></td>
|
||||
<td><input class="text" type="text" name="v<?php echo $this->_tpl_vars['key']; ?>
|
||||
" value="0" /></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
<?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,28 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-08-21 23:04:55
|
||||
compiled from cms/maj.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'sprintf', 'cms/maj.tpl', 11, false),)), $this); ?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'cms/header.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<div id="connexion" class="block">
|
||||
<div class="header"><?php echo $this->_tpl_vars['titre']; ?>
|
||||
</div>
|
||||
<div class="corps">
|
||||
<?php echo $this->_tpl_vars['texte']; ?>
|
||||
|
||||
<br /><br />
|
||||
<?php echo $this->_tpl_vars['LANG']['modules']['fermerServeur']['thanks']; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="inscription" class="block"><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG']['accueil']['inscription']['texte'])) ? $this->_run_mod_handler('sprintf', true, $_tmp, $this->_tpl_vars['link']['inscription'], $this->_tpl_vars['link']['inscription'], $this->_tpl_vars['link']['inscription']) : smarty_modifier_sprintf($_tmp, $this->_tpl_vars['link']['inscription'], $this->_tpl_vars['link']['inscription'], $this->_tpl_vars['link']['inscription'])); ?>
|
||||
</div>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'cms/footer.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 19:30:29
|
||||
compiled from game/options/2.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);
|
||||
?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/options/common.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<h2>Changer de mot de passe</h2>
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['options']; ?>
|
||||
&n=compte" method="post"><fieldset class="form">
|
||||
<label for="ancien">Ancien mot de passe : <input class="text" type="password" id="ancien" name="mdp_anc" /></label><br />
|
||||
<label for="nouveau">Nouveau mot de passe : <input class="text" type="password" id="nouveau" name="mdp_nouv" /></label><br />
|
||||
<label for="confirm">Confirmez le mot de passe : <input class="text" type="password" id="confirm" name="mdp_conf" /></label><br />
|
||||
<p>Le nouveau mot de passe sera modifié après validation par mail. Veuillez vous assurez que votre adresse actuelle est toujours valide.</p><br />
|
||||
<input class="submit" type="submit" name="chgmdp" value="OK" />
|
||||
</fieldset></form>
|
||||
<h2>Changer d'adresse électronique</h2>
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['options']; ?>
|
||||
&n=compte" method="post"><fieldset class="form">
|
||||
<label>Adresse actuelle : <em><?php echo $this->_tpl_vars['planete']->mail; ?>
|
||||
</em></label><br />
|
||||
<label for="mail">Nouveau mail : <input class="text" type="text" id="mail" name="mail" /></label><br />
|
||||
<label for="mdp_mail">Mot de passe actuel : <input class="text" type="password" id="mdp_mail" name="mdp_mail" /></label><br /><br />
|
||||
<p>L'adresse électronique sera modifiée une fois validée depuis votre nouvelle adresse.</p><br />
|
||||
<input class="submit" type="submit" name="chgmail" value="OK" />
|
||||
</fieldset></form>
|
||||
<h2>Mode vacances</h2>
|
||||
Si vous devez vous absenter de votre compte pour une durée supérieure à 3 jours, vous pouvez mettre votre compte en mode vacances.<br />Vous ne pouvez pas vous faire attaquer (les attaques déjà lancées ne seront pas annulées !) durant cette période, mais vous ne produirez pas de resources sur vos planètes. Vous retrouverez vos files d'attentes dans l'état dans lequel vous les avez laissées.<br />
|
||||
<br /><a href="<?php echo $this->_tpl_vars['menu']['options']; ?>
|
||||
&n=compte&a=mv&c=<?php echo $this->_tpl_vars['idvac']; ?>
|
||||
" onclick="return confirm('Êtes-vous sûr de vouloir passer votre compte en mode vacances ?\nIl ne sera plus accessible durant les trois prochains jours !');">Activer le mode vacances maintenant</a>
|
||||
<h2>Supprimer son compte</h2>
|
||||
<?php if ($this->_tpl_vars['planete']->mv < 0): ?><span style="color: #FF0000;">Vous avez demandé la suppression de votre compte. Il sera supprimé sous 48h.</span>
|
||||
<?php else: ?><br /><a href="<?php echo $this->_tpl_vars['menu']['options']; ?>
|
||||
&n=compte&a=dl&c=<?php echo $this->_tpl_vars['idvac']; ?>
|
||||
" onclick="return confirm('Êtes-vous sûr de vouloir supprimer votre compte ?');">Supprimer mon compte</a><?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);
|
||||
?>
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 20:44:02
|
||||
compiled from game/vide.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);
|
||||
?>
|
||||
<h2><?php if ($this->_tpl_vars['titreP']): ?><?php echo $this->_tpl_vars['titreP']; ?>
|
||||
<?php else: ?><?php echo $this->_tpl_vars['titre']; ?>
|
||||
<?php endif; ?></h2>
|
||||
<?php echo $this->_tpl_vars['contenu']; ?>
|
||||
|
||||
<?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,59 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 20:54:22
|
||||
compiled from game/messagerie.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'game/messagerie.tpl', 13, false),array('modifier', 'nl2br', 'game/messagerie.tpl', 14, false),array('modifier', 'escape', 'game/messagerie.tpl', 14, false),array('modifier', 'bbcode', 'game/messagerie.tpl', 14, 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><?php echo $this->_tpl_vars['titreR']; ?>
|
||||
</h2>
|
||||
<ul class="onglets">
|
||||
<li<?php if ($this->_tpl_vars['onglet'] != 'rapports' && $this->_tpl_vars['onglet'] != 'send' && $this->_tpl_vars['onglet'] != 'envoyer'): ?> class="hilight"<?php endif; ?>><a href="?p=<?php echo $this->_tpl_vars['link_P']; ?>
|
||||
&n=recus">Reçus<?php if ($this->_tpl_vars['alertMail']['0']): ?> (<?php echo $this->_tpl_vars['alertMail']['0']; ?>
|
||||
)<?php endif; ?></a></li>
|
||||
<li<?php if ($this->_tpl_vars['onglet'] == 'rapports'): ?> class="hilight"<?php endif; ?>><a href="?p=<?php echo $this->_tpl_vars['link_P']; ?>
|
||||
&n=rapports">Rapports<?php if ($this->_tpl_vars['alertMail']['1']): ?> (<?php echo $this->_tpl_vars['alertMail']['1']; ?>
|
||||
)<?php endif; ?></a></li>
|
||||
<li<?php if ($this->_tpl_vars['onglet'] == 'send'): ?> class="hilight"<?php endif; ?>><a href="?p=<?php echo $this->_tpl_vars['link_P']; ?>
|
||||
&n=send">Envoyés</a></li>
|
||||
<li<?php if ($this->_tpl_vars['onglet'] == 'envoyer'): ?> class="hilight"<?php endif; ?>><a href="?p=<?php echo $this->_tpl_vars['link_P']; ?>
|
||||
&n=envoyer">Ecrire</a></li>
|
||||
</ul><br /><br />
|
||||
<?php echo $this->_tpl_vars['avertissement']; ?>
|
||||
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['messagerie']; ?>
|
||||
" method="post" id="messagerie"><fieldset>
|
||||
<?php $_from = $this->_tpl_vars['messages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['message']):
|
||||
?>
|
||||
<dl<?php if ($this->_tpl_vars['onglet'] != 'send' && $this->_tpl_vars['message']['vu']): ?> class="new"<?php endif; ?>>
|
||||
<dt><input type="checkbox" class="checkbox" name="m<?php echo $this->_tpl_vars['key']; ?>
|
||||
" value="<?php echo $this->_tpl_vars['message']['id']; ?>
|
||||
" /> <?php if ($this->_tpl_vars['onglet'] != 'rapports'): ?><a href="?p=<?php echo $this->_tpl_vars['link_P']; ?>
|
||||
&n=envoyer&d=<?php if ($this->_tpl_vars['onglet'] == 'send'): ?><?php echo $this->_tpl_vars['message']['destinataire']; ?>
|
||||
&o=Fwd<?php else: ?><?php echo $this->_tpl_vars['message']['expediteur']; ?>
|
||||
&o=Re<?php endif; ?>:%20<?php echo $this->_tpl_vars['message']['sujet']; ?>
|
||||
"><?php endif; ?><?php echo $this->_tpl_vars['message']['sujet']; ?>
|
||||
<?php if ($this->_tpl_vars['onglet'] != 'rapports'): ?></a><?php endif; ?><?php if (! empty ( $this->_tpl_vars['message']['expediteur'] )): ?> <?php if ($this->_tpl_vars['onglet'] == 'send'): ?>vers <?php echo $this->_tpl_vars['message']['destinataire']; ?>
|
||||
<?php else: ?>de <?php echo $this->_tpl_vars['message']['expediteur']; ?>
|
||||
<?php endif; ?><?php endif; ?> le <?php echo ((is_array($_tmp=$this->_tpl_vars['message']['temps'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y à %H:%M") : smarty_modifier_date_format($_tmp, "%d/%m/%y à %H:%M")); ?>
|
||||
</dt>
|
||||
<dd><?php if ($this->_tpl_vars['onglet'] == 'rapports'): ?><?php echo ((is_array($_tmp=$this->_tpl_vars['message']['contenu'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
|
||||
<?php else: ?><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['message']['contenu'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('bbcode', true, $_tmp) : smarty_modifier_bbcode($_tmp)))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
|
||||
<?php endif; ?><?php if ($this->_tpl_vars['onglet'] != 'send' && $this->_tpl_vars['onglet'] != 'rapports'): ?><div style="text-align: right;"><a href="?p=<?php echo $this->_tpl_vars['link_P']; ?>
|
||||
&n=envoyer&d=<?php echo $this->_tpl_vars['message']['expediteur']; ?>
|
||||
&o=Re:%20<?php echo $this->_tpl_vars['message']['sujet']; ?>
|
||||
"><i>Répondre</i></a> | <a href="?p=messagerie&avertir=<?php echo $this->_tpl_vars['message']['4']; ?>
|
||||
"><i>Avertir un opérateur</i></a></div><?php endif; ?></dd>
|
||||
</dl>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php if ($this->_tpl_vars['onglet'] != 'send' && $this->_tpl_vars['messages']): ?><strong>Supprimer le sélection : <input class="submit" type="submit" value="OK" /></strong>
|
||||
<?php elseif (! $this->_tpl_vars['messages']): ?><div id="erreur">Aucun <?php if ($this->_tpl_vars['onglet'] == 'rapports'): ?>rapport<?php else: ?>message<?php endif; ?></div><?php endif; ?>
|
||||
</fieldset></form>
|
||||
<?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,46 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 12:58:19
|
||||
compiled from admin/inscription.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="corpsi">
|
||||
<form action="" method="post">
|
||||
<p><label for="pseudo">Pseudo :</label> <input class="text" name="HB_pseudo" id="pseudo" type="text" maxlength="16" value="<?php echo $_POST['HB_pseudo']; ?>
|
||||
" tabindex="1" />
|
||||
<br /><label for="mdp">Mot de passe :</label> <input class="text" name="HB_mdp" id="mdp" type="password" maxlength="32" tabindex="2" /> <em>Laisser vide pour en générer un mot de passe aléatoire</em>
|
||||
<br /><label for="conf">Confirmation :</label> <input class="text" name="HB_conf" id="conf" type="password" maxlength="32" tabindex="3" />
|
||||
<br /><label for="mail">Adresse électronique :</label> <input class="text" name="HB_mail" id="mail" type="text" value="<?php echo $_POST['HB_mail']; ?>
|
||||
" maxlength="64" tabindex="4" />
|
||||
<br /><br />Race :<br />
|
||||
</p>
|
||||
<table style="margin-left: auto; margin-right: auto; width: 75%;">
|
||||
<tr>
|
||||
<td>
|
||||
<label id="humain" for="humaini">
|
||||
<img src="images/humain.jpg" alt="Humain"/><br />
|
||||
<input type="radio" name="race" id="humaini" value="humain"<?php if ($_POST['race'] == 'humain'): ?> selected="selected"<?php endif; ?> tabindex="4" /> Humain
|
||||
</label>
|
||||
</td>
|
||||
<td>
|
||||
<label id="covenant" for="covenanti">
|
||||
<img src="images/covenant.jpg" alt="Covenant"/><br />
|
||||
<input type="radio" name="race" id="covenanti" value="covenant"<?php if ($_POST['race'] == 'covenant'): ?> selected="selected"<?php endif; ?> tabindex="5" /> Covenant
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>
|
||||
<br /><label for="servers">Galaxie :</label> <select name="servers" id="servers" tabindex="6"><option value="1"> Alpha</option></select>
|
||||
<br /><label for="placement">Placement préférentiel :</label> <input class="text" name="HB_placement" id="placement" type="text" tabindex="7" value="<?php echo $_POST['HB_placement']; ?>
|
||||
" />
|
||||
<br /><br /><input class="submit" value="OK" type="submit" tabindex="8" />
|
||||
</p>
|
||||
</form>
|
||||
</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,53 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 16:26:18
|
||||
compiled from game/alliance/view.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'upper', 'game/alliance/view.tpl', 2, false),array('modifier', 'escape', 'game/alliance/view.tpl', 2, false),array('modifier', 'capitalize', 'game/alliance/view.tpl', 2, false),array('modifier', 'nl2br', 'game/alliance/view.tpl', 28, 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>[<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['alliance']['tag'])) ? $this->_run_mod_handler('upper', true, $_tmp) : smarty_modifier_upper($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
] <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['alliance']['nom_alliance'])) ? $this->_run_mod_handler('capitalize', true, $_tmp) : smarty_modifier_capitalize($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
</h2>
|
||||
<table cellpadding="2" cellspacing="0" style="text-align: center; width: 100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="2"><img src="<?php echo $this->_tpl_vars['alliance']['image']; ?>
|
||||
" alt="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right; vertical-align: middle;"><strong>Nom : </strong></td>
|
||||
<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=((is_array($_tmp=$this->_tpl_vars['alliance']['tag'])) ? $this->_run_mod_handler('upper', true, $_tmp) : smarty_modifier_upper($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right;"><strong>Membres : </strong></td>
|
||||
<td><?php echo $this->_tpl_vars['nbmembres']; ?>
|
||||
(<a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&m=<?php echo $this->_tpl_vars['alliance']['id']; ?>
|
||||
">Liste des membres</a>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right;"><strong>Votre grade :</strong></td>
|
||||
<td><?php echo $this->_tpl_vars['grade']; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right;"><strong>Status des inscriptions :</strong></td>
|
||||
<td><?php if ($this->_tpl_vars['alliance']['etat_inscription']): ?>Ouvertes<?php if (! $this->_tpl_vars['planete']->id_alliance): ?> - <a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
|
||||
&postuler=<?php echo $this->_tpl_vars['alliance']['id']; ?>
|
||||
">Postuler</a><?php endif; ?><?php else: ?>Fermée<?php endif; ?></td>
|
||||
</tr>
|
||||
</tr>
|
||||
</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 $_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,25 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 20:44:44
|
||||
compiled from game/version.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'nl2br', 'game/version.tpl', 5, 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>Historique des mises à jour</h2>
|
||||
<table><thead><tr><th>Versions</th><th>Détails</th></tr></thead><tbody>
|
||||
<?php $_from = $this->_tpl_vars['versions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['version']):
|
||||
?>
|
||||
<tr><td><strong><?php echo $this->_tpl_vars['version']['numero']; ?>
|
||||
</strong><br /><?php echo $this->_tpl_vars['version']['date']; ?>
|
||||
</td><td><?php echo ((is_array($_tmp=$this->_tpl_vars['version']['description'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
|
||||
</td></tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody></table>
|
||||
<?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,83 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 16:35:53
|
||||
compiled from game/alliance/gestion_grades.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'game/alliance/gestion_grades.tpl', 8, 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);
|
||||
?>
|
||||
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
||||
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/alliance/gestion_common.tpl', 'smarty_include_vars' => array()));
|
||||
$this->_tpl_vars = $_smarty_tpl_vars;
|
||||
unset($_smarty_tpl_vars);
|
||||
?>
|
||||
<h2>Gestion des grades existants</h2>
|
||||
<table>
|
||||
<tbody>
|
||||
<?php $_from = $this->_tpl_vars['grades']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['grade']):
|
||||
?>
|
||||
<tr>
|
||||
<td><a href="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
||||
&g=grades&i=<?php echo $this->_tpl_vars['grade']['id']; ?>
|
||||
"><?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 if ($this->_tpl_vars['grade']['auth'] & 1): ?>Oui<?php else: ?>Non<?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['grade']['auth'] & 2): ?>Oui<?php else: ?>Non<?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['grade']['auth'] & 4): ?>Oui<?php else: ?>Non<?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['grade']['auth'] & 8): ?>Oui<?php else: ?>Non<?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['grade']['auth'] & 16): ?>Oui<?php else: ?>Non<?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['grade']['auth'] & 32): ?>Oui<?php else: ?>Non<?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['grade']['auth'] & 64): ?>Oui<?php else: ?>Non<?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['grade']['auth'] & 128): ?>Oui<?php else: ?>Non<?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['grade']['auth'] & 256): ?>Oui<?php else: ?>Non<?php endif; ?></td>
|
||||
<td><?php if ($this->_tpl_vars['grade']['auth'] & 512): ?>Oui<?php else: ?>Non<?php endif; ?></td>
|
||||
<td><a href="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
||||
&g=grades&d=<?php echo $this->_tpl_vars['grade']['id']; ?>
|
||||
" onclick="return confirm('Êtes-vous sûr de vouloir supprimer ce grade ?');">Supprimer</a></td>
|
||||
</tr>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
</tbody>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<th>Bâtiments</th>
|
||||
<th>Vaisseaux</th>
|
||||
<th>Flottes</th>
|
||||
<th>Diplomatie</th>
|
||||
<th>Crédits</th>
|
||||
<th>Membres</th>
|
||||
<th>Wings</th>
|
||||
<th>Alliance</th>
|
||||
<th>Chat</th>
|
||||
<th>Messagerie</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
<h2><?php if ($this->_tpl_vars['grade_mod']): ?>Modifier<?php else: ?>Créer<?php endif; ?> un grade</h2><br />
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
||||
&g=grades<?php if ($this->_tpl_vars['grade_mod']): ?>&i=<?php echo $this->_tpl_vars['grade_mod']['id']; ?>
|
||||
<?php endif; ?>" method="post">
|
||||
<fieldset class="options">
|
||||
<label for="nom">Nom :</label> <input type="text" name="nom" id="nom" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['grade_mod']['nom'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||||
" size="30" maxlength="32" tabindex="1" /><br /><br />
|
||||
<input type="checkbox" name="gbats" id="gbats" value="1"<?php if ($this->_tpl_vars['grade_mod']['auth'] & 1): ?> checked="checked"<?php endif; ?> /> <label for="gbats">Gestion des bâtiments</label><br />
|
||||
<input type="checkbox" name="gvais" id="gvais" value="1"<?php if ($this->_tpl_vars['grade_mod']['auth'] & 2): ?> checked="checked"<?php endif; ?> /> <label for="gvais">Gestion des vaisseaux</label><br />
|
||||
<input type="checkbox" name="gflot" id="gflot" value="1"<?php if ($this->_tpl_vars['grade_mod']['auth'] & 4): ?> checked="checked"<?php endif; ?> /> <label for="gflot">Gestion des flottes</label><br />
|
||||
<input type="checkbox" name="gdipl" id="gdipl" value="1"<?php if ($this->_tpl_vars['grade_mod']['auth'] & 8): ?> checked="checked"<?php endif; ?> /> <label for="gdipl">Gestion de la diplomatie</label><br />
|
||||
<input type="checkbox" name="gcred" id="gcred" value="1"<?php if ($this->_tpl_vars['grade_mod']['auth'] & 16): ?> checked="checked"<?php endif; ?> /> <label for="gcred">Gestion des crédits</label><br /><br />
|
||||
<input type="checkbox" name="gmemb" id="gmemb" value="1"<?php if ($this->_tpl_vars['grade_mod']['auth'] & 32): ?> checked="checked"<?php endif; ?> /> <label for="gmemb">Gestion des membres</label><br />
|
||||
<input type="checkbox" name="gwing" id="gwing" value="1"<?php if ($this->_tpl_vars['grade_mod']['auth'] & 64): ?> checked="checked"<?php endif; ?> /> <label for="gwing">Gestion des wings</label><br />
|
||||
<input type="checkbox" name="galli" id="galli" value="1"<?php if ($this->_tpl_vars['grade_mod']['auth'] & 128): ?> checked="checked"<?php endif; ?> /> <label for="galli">Gestion de l'alliance</label><br />
|
||||
<input type="checkbox" name="gchat" id="gchat" value="1"<?php if ($this->_tpl_vars['grade_mod']['auth'] & 256): ?> checked="checked"<?php endif; ?> /> <label for="gchat">Participe au chat</label><br />
|
||||
<input type="checkbox" name="gmess" id="gmess" value="1"<?php if ($this->_tpl_vars['grade_mod']['auth'] & 512): ?> checked="checked"<?php endif; ?> /> <label for="gmess">Utilisation de la messagerie d'alliance</label><br />
|
||||
<br /><input type="submit" class="submit" value="GO" tabindex="3" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<?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,37 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-10-31 16:02:37
|
||||
compiled from game/alliance/nm_statut.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'upper', 'game/alliance/nm_statut.tpl', 4, 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>Alliance en fondation</h2>
|
||||
<h3><strong>Nom :</strong> <?php echo $this->_tpl_vars['alliance']['nom_alliance']; ?>
|
||||
</h3>
|
||||
<h3><strong>Tag :</strong> <?php echo ((is_array($_tmp=$this->_tpl_vars['alliance']['tag'])) ? $this->_run_mod_handler('upper', true, $_tmp) : smarty_modifier_upper($_tmp)); ?>
|
||||
</h3><br />
|
||||
<h2>Signatures</h2>
|
||||
<h3><strong>Actuellement :</strong> <?php echo $this->_tpl_vars['nbSignatures']; ?>
|
||||
</h3>
|
||||
<h3><strong>Nécessaire :</strong> <?php echo @nb_signatures; ?>
|
||||
</h3>
|
||||
<h3><strong>Signataires :</strong> <?php $_from = $this->_tpl_vars['pseudos']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['pseudo']):
|
||||
?><?php if ($this->_tpl_vars['k'] != 0): ?>, <?php endif; ?><?php echo $this->_tpl_vars['pseudo']['pseudo']; ?>
|
||||
<?php endforeach; endif; unset($_from); ?></h3><br />
|
||||
<h2>Autre</h2>
|
||||
<h3><a href="?p=alliances&q=fonder&r=quit">Quitter l'alliance</a></h3>
|
||||
<h3><strong>Lien de signature :</strong> <a href="http://<?php echo $this->_tpl_vars['url_serveur']; ?>
|
||||
/<?php echo $this->_tpl_vars['first_page']; ?>
|
||||
?p=alliances&signer=<?php echo $this->_tpl_vars['alliance']['lien']; ?>
|
||||
">http://<?php echo $this->_tpl_vars['url_serveur']; ?>
|
||||
/<?php echo $this->_tpl_vars['first_page']; ?>
|
||||
?p=alliances&signer=<?php echo $this->_tpl_vars['alliance']['lien']; ?>
|
||||
</a></h3>
|
||||
<?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);
|
||||
?>
|
||||
25
onyx2/modules/templates_anc/main.php
Normal file
25
onyx2/modules/templates_anc/main.php
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
if(!defined('ONYX')) exit;
|
||||
|
||||
define('SMARTY_DIR',ONYX.'modules/templates/smarty/');
|
||||
|
||||
require_once(SMARTY_DIR."Smarty.class.php");
|
||||
|
||||
define('_TEMPLATE_DIR',ONYX.'tpl/'.$OPT['tpl'].'/');
|
||||
define('_TEMPLATE_COMPILE',ONYX.$OPT['compile']);
|
||||
define('_TEMPLATE_CONFIG',ONYX.$OPT['config']);
|
||||
define('_TEMPLATE_CACHE',ONYX.$OPT['cache']);
|
||||
|
||||
class Template extends Smarty
|
||||
{
|
||||
var $template_dir = _TEMPLATE_DIR;
|
||||
var $compile_dir = _TEMPLATE_COMPILE;
|
||||
var $config_dir = _TEMPLATE_CONFIG;
|
||||
var $cache_dir = _TEMPLATE_CACHE;
|
||||
|
||||
var $compile_check = false;
|
||||
var $force_compile = true;
|
||||
}
|
||||
|
||||
?>
|
||||
393
onyx2/modules/templates_anc/smarty/Config_File.class.php
Normal file
393
onyx2/modules/templates_anc/smarty/Config_File.class.php
Normal file
|
|
@ -0,0 +1,393 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Config_File class.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*
|
||||
* For questions, help, comments, discussion, etc., please join the
|
||||
* Smarty mailing list. Send a blank e-mail to
|
||||
* smarty-discussion-subscribe@googlegroups.com
|
||||
*
|
||||
* @link http://www.smarty.net/
|
||||
* @version 2.6.22
|
||||
* @copyright Copyright: 2001-2005 New Digital Group, Inc.
|
||||
* @author Andrei Zmievski <andrei@php.net>
|
||||
* @access public
|
||||
* @package Smarty
|
||||
*/
|
||||
|
||||
/* $Id: Config_File.class.php 2786 2008-09-18 21:04:38Z Uwe.Tews $ */
|
||||
|
||||
/**
|
||||
* Config file reading class
|
||||
* @package Smarty
|
||||
*/
|
||||
class Config_File {
|
||||
/**#@+
|
||||
* Options
|
||||
* @var boolean
|
||||
*/
|
||||
/**
|
||||
* Controls whether variables with the same name overwrite each other.
|
||||
*/
|
||||
var $overwrite = true;
|
||||
|
||||
/**
|
||||
* Controls whether config values of on/true/yes and off/false/no get
|
||||
* converted to boolean values automatically.
|
||||
*/
|
||||
var $booleanize = true;
|
||||
|
||||
/**
|
||||
* Controls whether hidden config sections/vars are read from the file.
|
||||
*/
|
||||
var $read_hidden = true;
|
||||
|
||||
/**
|
||||
* Controls whether or not to fix mac or dos formatted newlines.
|
||||
* If set to true, \r or \r\n will be changed to \n.
|
||||
*/
|
||||
var $fix_newlines = true;
|
||||
/**#@-*/
|
||||
|
||||
/** @access private */
|
||||
var $_config_path = "";
|
||||
var $_config_data = array();
|
||||
/**#@-*/
|
||||
|
||||
/**
|
||||
* Constructs a new config file class.
|
||||
*
|
||||
* @param string $config_path (optional) path to the config files
|
||||
*/
|
||||
function Config_File($config_path = NULL)
|
||||
{
|
||||
if (isset($config_path))
|
||||
$this->set_path($config_path);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set the path where configuration files can be found.
|
||||
*
|
||||
* @param string $config_path path to the config files
|
||||
*/
|
||||
function set_path($config_path)
|
||||
{
|
||||
if (!empty($config_path)) {
|
||||
if (!is_string($config_path) || !file_exists($config_path) || !is_dir($config_path)) {
|
||||
$this->_trigger_error_msg("Bad config file path '$config_path'");
|
||||
return;
|
||||
}
|
||||
if(substr($config_path, -1) != DIRECTORY_SEPARATOR) {
|
||||
$config_path .= DIRECTORY_SEPARATOR;
|
||||
}
|
||||
|
||||
$this->_config_path = $config_path;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Retrieves config info based on the file, section, and variable name.
|
||||
*
|
||||
* @param string $file_name config file to get info for
|
||||
* @param string $section_name (optional) section to get info for
|
||||
* @param string $var_name (optional) variable to get info for
|
||||
* @return string|array a value or array of values
|
||||
*/
|
||||
function get($file_name, $section_name = NULL, $var_name = NULL)
|
||||
{
|
||||
if (empty($file_name)) {
|
||||
$this->_trigger_error_msg('Empty config file name');
|
||||
return;
|
||||
} else {
|
||||
$file_name = $this->_config_path . $file_name;
|
||||
if (!isset($this->_config_data[$file_name]))
|
||||
$this->load_file($file_name, false);
|
||||
}
|
||||
|
||||
if (!empty($var_name)) {
|
||||
if (empty($section_name)) {
|
||||
return $this->_config_data[$file_name]["vars"][$var_name];
|
||||
} else {
|
||||
if(isset($this->_config_data[$file_name]["sections"][$section_name]["vars"][$var_name]))
|
||||
return $this->_config_data[$file_name]["sections"][$section_name]["vars"][$var_name];
|
||||
else
|
||||
return array();
|
||||
}
|
||||
} else {
|
||||
if (empty($section_name)) {
|
||||
return (array)$this->_config_data[$file_name]["vars"];
|
||||
} else {
|
||||
if(isset($this->_config_data[$file_name]["sections"][$section_name]["vars"]))
|
||||
return (array)$this->_config_data[$file_name]["sections"][$section_name]["vars"];
|
||||
else
|
||||
return array();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Retrieves config info based on the key.
|
||||
*
|
||||
* @param $file_name string config key (filename/section/var)
|
||||
* @return string|array same as get()
|
||||
* @uses get() retrieves information from config file and returns it
|
||||
*/
|
||||
function &get_key($config_key)
|
||||
{
|
||||
list($file_name, $section_name, $var_name) = explode('/', $config_key, 3);
|
||||
$result = &$this->get($file_name, $section_name, $var_name);
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all loaded config file names.
|
||||
*
|
||||
* @return array an array of loaded config file names
|
||||
*/
|
||||
function get_file_names()
|
||||
{
|
||||
return array_keys($this->_config_data);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get all section names from a loaded file.
|
||||
*
|
||||
* @param string $file_name config file to get section names from
|
||||
* @return array an array of section names from the specified file
|
||||
*/
|
||||
function get_section_names($file_name)
|
||||
{
|
||||
$file_name = $this->_config_path . $file_name;
|
||||
if (!isset($this->_config_data[$file_name])) {
|
||||
$this->_trigger_error_msg("Unknown config file '$file_name'");
|
||||
return;
|
||||
}
|
||||
|
||||
return array_keys($this->_config_data[$file_name]["sections"]);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get all global or section variable names.
|
||||
*
|
||||
* @param string $file_name config file to get info for
|
||||
* @param string $section_name (optional) section to get info for
|
||||
* @return array an array of variables names from the specified file/section
|
||||
*/
|
||||
function get_var_names($file_name, $section = NULL)
|
||||
{
|
||||
if (empty($file_name)) {
|
||||
$this->_trigger_error_msg('Empty config file name');
|
||||
return;
|
||||
} else if (!isset($this->_config_data[$file_name])) {
|
||||
$this->_trigger_error_msg("Unknown config file '$file_name'");
|
||||
return;
|
||||
}
|
||||
|
||||
if (empty($section))
|
||||
return array_keys($this->_config_data[$file_name]["vars"]);
|
||||
else
|
||||
return array_keys($this->_config_data[$file_name]["sections"][$section]["vars"]);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Clear loaded config data for a certain file or all files.
|
||||
*
|
||||
* @param string $file_name file to clear config data for
|
||||
*/
|
||||
function clear($file_name = NULL)
|
||||
{
|
||||
if ($file_name === NULL)
|
||||
$this->_config_data = array();
|
||||
else if (isset($this->_config_data[$file_name]))
|
||||
$this->_config_data[$file_name] = array();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Load a configuration file manually.
|
||||
*
|
||||
* @param string $file_name file name to load
|
||||
* @param boolean $prepend_path whether current config path should be
|
||||
* prepended to the filename
|
||||
*/
|
||||
function load_file($file_name, $prepend_path = true)
|
||||
{
|
||||
if ($prepend_path && $this->_config_path != "")
|
||||
$config_file = $this->_config_path . $file_name;
|
||||
else
|
||||
$config_file = $file_name;
|
||||
|
||||
ini_set('track_errors', true);
|
||||
$fp = @fopen($config_file, "r");
|
||||
if (!is_resource($fp)) {
|
||||
$this->_trigger_error_msg("Could not open config file '$config_file'");
|
||||
return false;
|
||||
}
|
||||
|
||||
$contents = ($size = filesize($config_file)) ? fread($fp, $size) : '';
|
||||
fclose($fp);
|
||||
|
||||
$this->_config_data[$config_file] = $this->parse_contents($contents);
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Store the contents of a file manually.
|
||||
*
|
||||
* @param string $config_file file name of the related contents
|
||||
* @param string $contents the file-contents to parse
|
||||
*/
|
||||
function set_file_contents($config_file, $contents)
|
||||
{
|
||||
$this->_config_data[$config_file] = $this->parse_contents($contents);
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* parse the source of a configuration file manually.
|
||||
*
|
||||
* @param string $contents the file-contents to parse
|
||||
*/
|
||||
function parse_contents($contents)
|
||||
{
|
||||
if($this->fix_newlines) {
|
||||
// fix mac/dos formatted newlines
|
||||
$contents = preg_replace('!\r\n?!', "\n", $contents);
|
||||
}
|
||||
|
||||
$config_data = array();
|
||||
$config_data['sections'] = array();
|
||||
$config_data['vars'] = array();
|
||||
|
||||
/* reference to fill with data */
|
||||
$vars =& $config_data['vars'];
|
||||
|
||||
/* parse file line by line */
|
||||
preg_match_all('!^.*\r?\n?!m', $contents, $match);
|
||||
$lines = $match[0];
|
||||
for ($i=0, $count=count($lines); $i<$count; $i++) {
|
||||
$line = $lines[$i];
|
||||
if (empty($line)) continue;
|
||||
|
||||
if ( substr($line, 0, 1) == '[' && preg_match('!^\[(.*?)\]!', $line, $match) ) {
|
||||
/* section found */
|
||||
if (substr($match[1], 0, 1) == '.') {
|
||||
/* hidden section */
|
||||
if ($this->read_hidden) {
|
||||
$section_name = substr($match[1], 1);
|
||||
} else {
|
||||
/* break reference to $vars to ignore hidden section */
|
||||
unset($vars);
|
||||
$vars = array();
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
$section_name = $match[1];
|
||||
}
|
||||
if (!isset($config_data['sections'][$section_name]))
|
||||
$config_data['sections'][$section_name] = array('vars' => array());
|
||||
$vars =& $config_data['sections'][$section_name]['vars'];
|
||||
continue;
|
||||
}
|
||||
|
||||
if (preg_match('/^\s*(\.?\w+)\s*=\s*(.*)/s', $line, $match)) {
|
||||
/* variable found */
|
||||
$var_name = rtrim($match[1]);
|
||||
if (strpos($match[2], '"""') === 0) {
|
||||
/* handle multiline-value */
|
||||
$lines[$i] = substr($match[2], 3);
|
||||
$var_value = '';
|
||||
while ($i<$count) {
|
||||
if (($pos = strpos($lines[$i], '"""')) === false) {
|
||||
$var_value .= $lines[$i++];
|
||||
} else {
|
||||
/* end of multiline-value */
|
||||
$var_value .= substr($lines[$i], 0, $pos);
|
||||
break;
|
||||
}
|
||||
}
|
||||
$booleanize = false;
|
||||
|
||||
} else {
|
||||
/* handle simple value */
|
||||
$var_value = preg_replace('/^([\'"])(.*)\1$/', '\2', rtrim($match[2]));
|
||||
$booleanize = $this->booleanize;
|
||||
|
||||
}
|
||||
$this->_set_config_var($vars, $var_name, $var_value, $booleanize);
|
||||
}
|
||||
/* else unparsable line / means it is a comment / means ignore it */
|
||||
}
|
||||
return $config_data;
|
||||
}
|
||||
|
||||
/**#@+ @access private */
|
||||
/**
|
||||
* @param array &$container
|
||||
* @param string $var_name
|
||||
* @param mixed $var_value
|
||||
* @param boolean $booleanize determines whether $var_value is converted to
|
||||
* to true/false
|
||||
*/
|
||||
function _set_config_var(&$container, $var_name, $var_value, $booleanize)
|
||||
{
|
||||
if (substr($var_name, 0, 1) == '.') {
|
||||
if (!$this->read_hidden)
|
||||
return;
|
||||
else
|
||||
$var_name = substr($var_name, 1);
|
||||
}
|
||||
|
||||
if (!preg_match("/^[a-zA-Z_]\w*$/", $var_name)) {
|
||||
$this->_trigger_error_msg("Bad variable name '$var_name'");
|
||||
return;
|
||||
}
|
||||
|
||||
if ($booleanize) {
|
||||
if (preg_match("/^(on|true|yes)$/i", $var_value))
|
||||
$var_value = true;
|
||||
else if (preg_match("/^(off|false|no)$/i", $var_value))
|
||||
$var_value = false;
|
||||
}
|
||||
|
||||
if (!isset($container[$var_name]) || $this->overwrite)
|
||||
$container[$var_name] = $var_value;
|
||||
else {
|
||||
settype($container[$var_name], 'array');
|
||||
$container[$var_name][] = $var_value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @uses trigger_error() creates a PHP warning/error
|
||||
* @param string $error_msg
|
||||
* @param integer $error_type one of
|
||||
*/
|
||||
function _trigger_error_msg($error_msg, $error_type = E_USER_WARNING)
|
||||
{
|
||||
trigger_error("Config_File error: $error_msg", $error_type);
|
||||
}
|
||||
/**#@-*/
|
||||
}
|
||||
|
||||
?>
|
||||
1960
onyx2/modules/templates_anc/smarty/Smarty.class.php
Normal file
1960
onyx2/modules/templates_anc/smarty/Smarty.class.php
Normal file
File diff suppressed because it is too large
Load diff
2351
onyx2/modules/templates_anc/smarty/Smarty_Compiler.class.php
Normal file
2351
onyx2/modules/templates_anc/smarty/Smarty_Compiler.class.php
Normal file
File diff suppressed because it is too large
Load diff
157
onyx2/modules/templates_anc/smarty/debug.tpl
Normal file
157
onyx2/modules/templates_anc/smarty/debug.tpl
Normal file
|
|
@ -0,0 +1,157 @@
|
|||
{* Smarty *}
|
||||
{* debug.tpl, last updated version 2.1.0 *}
|
||||
{assign_debug_info}
|
||||
{capture assign=debug_output}
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
||||
<head>
|
||||
<title>Smarty Debug Console</title>
|
||||
{literal}
|
||||
<style type="text/css">
|
||||
/* <![CDATA[ */
|
||||
body, h1, h2, td, th, p {
|
||||
font-family: sans-serif;
|
||||
font-weight: normal;
|
||||
font-size: 0.9em;
|
||||
margin: 1px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0;
|
||||
text-align: left;
|
||||
padding: 2px;
|
||||
background-color: #f0c040;
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
h2 {
|
||||
background-color: #9B410E;
|
||||
color: white;
|
||||
text-align: left;
|
||||
font-weight: bold;
|
||||
padding: 2px;
|
||||
border-top: 1px solid black;
|
||||
}
|
||||
|
||||
body {
|
||||
background: black;
|
||||
}
|
||||
|
||||
p, table, div {
|
||||
background: #f0ead8;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
font-style: italic;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
th, td {
|
||||
font-family: monospace;
|
||||
vertical-align: top;
|
||||
text-align: left;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
td {
|
||||
color: green;
|
||||
}
|
||||
|
||||
.odd {
|
||||
background-color: #eeeeee;
|
||||
}
|
||||
|
||||
.even {
|
||||
background-color: #fafafa;
|
||||
}
|
||||
|
||||
.exectime {
|
||||
font-size: 0.8em;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
#table_assigned_vars th {
|
||||
color: blue;
|
||||
}
|
||||
|
||||
#table_config_vars th {
|
||||
color: maroon;
|
||||
}
|
||||
/* ]]> */
|
||||
</style>
|
||||
{/literal}
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>Smarty Debug Console</h1>
|
||||
|
||||
<h2>included templates & config files (load time in seconds)</h2>
|
||||
|
||||
<div>
|
||||
{section name=templates loop=$_debug_tpls}
|
||||
{section name=indent loop=$_debug_tpls[templates].depth} {/section}
|
||||
<font color={if $_debug_tpls[templates].type eq "template"}brown{elseif $_debug_tpls[templates].type eq "insert"}black{else}green{/if}>
|
||||
{$_debug_tpls[templates].filename|escape:html}</font>
|
||||
{if isset($_debug_tpls[templates].exec_time)}
|
||||
<span class="exectime">
|
||||
({$_debug_tpls[templates].exec_time|string_format:"%.5f"})
|
||||
{if %templates.index% eq 0}(total){/if}
|
||||
</span>
|
||||
{/if}
|
||||
<br />
|
||||
{sectionelse}
|
||||
<p>no templates included</p>
|
||||
{/section}
|
||||
</div>
|
||||
|
||||
<h2>assigned template variables</h2>
|
||||
|
||||
<table id="table_assigned_vars">
|
||||
{section name=vars loop=$_debug_keys}
|
||||
<tr class="{cycle values="odd,even"}">
|
||||
<th>{ldelim}${$_debug_keys[vars]|escape:'html'}{rdelim}</th>
|
||||
<td>{$_debug_vals[vars]|@debug_print_var}</td></tr>
|
||||
{sectionelse}
|
||||
<tr><td><p>no template variables assigned</p></td></tr>
|
||||
{/section}
|
||||
</table>
|
||||
|
||||
<h2>assigned config file variables (outer template scope)</h2>
|
||||
|
||||
<table id="table_config_vars">
|
||||
{section name=config_vars loop=$_debug_config_keys}
|
||||
<tr class="{cycle values="odd,even"}">
|
||||
<th>{ldelim}#{$_debug_config_keys[config_vars]|escape:'html'}#{rdelim}</th>
|
||||
<td>{$_debug_config_vals[config_vars]|@debug_print_var}</td></tr>
|
||||
{sectionelse}
|
||||
<tr><td><p>no config vars assigned</p></td></tr>
|
||||
{/section}
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
{/capture}
|
||||
{if isset($_smarty_debug_output) and $_smarty_debug_output eq "html"}
|
||||
{$debug_output}
|
||||
{else}
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
if ( self.name == '' ) {ldelim}
|
||||
var title = 'Console';
|
||||
{rdelim}
|
||||
else {ldelim}
|
||||
var title = 'Console_' + self.name;
|
||||
{rdelim}
|
||||
_smarty_console = window.open("",title.value,"width=680,height=600,resizable,scrollbars=yes");
|
||||
_smarty_console.document.write('{$debug_output|escape:'javascript'}');
|
||||
_smarty_console.document.close();
|
||||
// ]]>
|
||||
</script>
|
||||
{/if}
|
||||
|
|
@ -0,0 +1,67 @@
|
|||
<?php
|
||||
/**
|
||||
* Smarty plugin
|
||||
* @package Smarty
|
||||
* @subpackage plugins
|
||||
*/
|
||||
|
||||
/**
|
||||
* assemble filepath of requested plugin
|
||||
*
|
||||
* @param string $type
|
||||
* @param string $name
|
||||
* @return string|false
|
||||
*/
|
||||
function smarty_core_assemble_plugin_filepath($params, &$smarty)
|
||||
{
|
||||
static $_filepaths_cache = array();
|
||||
|
||||
$_plugin_filename = $params['type'] . '.' . $params['name'] . '.php';
|
||||
if (isset($_filepaths_cache[$_plugin_filename])) {
|
||||
return $_filepaths_cache[$_plugin_filename];
|
||||
}
|
||||
$_return = false;
|
||||
|
||||
foreach ((array)$smarty->plugins_dir as $_plugin_dir) {
|
||||
|
||||
$_plugin_filepath = $_plugin_dir . DIRECTORY_SEPARATOR . $_plugin_filename;
|
||||
|
||||
// see if path is relative
|
||||
if (!preg_match("/^([\/\\\\]|[a-zA-Z]:[\/\\\\])/", $_plugin_dir)) {
|
||||
$_relative_paths[] = $_plugin_dir;
|
||||
// relative path, see if it is in the SMARTY_DIR
|
||||
if (@is_readable(SMARTY_DIR . $_plugin_filepath)) {
|
||||
$_return = SMARTY_DIR . $_plugin_filepath;
|
||||
break;
|
||||
}
|
||||
}
|
||||
// try relative to cwd (or absolute)
|
||||
if (@is_readable($_plugin_filepath)) {
|
||||
$_return = $_plugin_filepath;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if($_return === false) {
|
||||
// still not found, try PHP include_path
|
||||
if(isset($_relative_paths)) {
|
||||
foreach ((array)$_relative_paths as $_plugin_dir) {
|
||||
|
||||
$_plugin_filepath = $_plugin_dir . DIRECTORY_SEPARATOR . $_plugin_filename;
|
||||
|
||||
$_params = array('file_path' => $_plugin_filepath);
|
||||
require_once(SMARTY_CORE_DIR . 'core.get_include_path.php');
|
||||
if(smarty_core_get_include_path($_params, $smarty)) {
|
||||
$_return = $_params['new_file_path'];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$_filepaths_cache[$_plugin_filename] = $_return;
|
||||
return $_return;
|
||||
}
|
||||
|
||||
/* vim: set expandtab: */
|
||||
|
||||
?>
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
<?php
|
||||
/**
|
||||
* Smarty plugin
|
||||
* @package Smarty
|
||||
* @subpackage plugins
|
||||
*/
|
||||
|
||||
/**
|
||||
* Smarty assign_smarty_interface core plugin
|
||||
*
|
||||
* Type: core<br>
|
||||
* Name: assign_smarty_interface<br>
|
||||
* Purpose: assign the $smarty interface variable
|
||||
* @param array Format: null
|
||||
* @param Smarty
|
||||
*/
|
||||
function smarty_core_assign_smarty_interface($params, &$smarty)
|
||||
{
|
||||
if (isset($smarty->_smarty_vars) && isset($smarty->_smarty_vars['request'])) {
|
||||
return;
|
||||
}
|
||||
|
||||
$_globals_map = array('g' => 'HTTP_GET_VARS',
|
||||
'p' => 'HTTP_POST_VARS',
|
||||
'c' => 'HTTP_COOKIE_VARS',
|
||||
's' => 'HTTP_SERVER_VARS',
|
||||
'e' => 'HTTP_ENV_VARS');
|
||||
|
||||
$_smarty_vars_request = array();
|
||||
|
||||
foreach (preg_split('!!', strtolower($smarty->request_vars_order)) as $_c) {
|
||||
if (isset($_globals_map[$_c])) {
|
||||
$_smarty_vars_request = array_merge($_smarty_vars_request, $GLOBALS[$_globals_map[$_c]]);
|
||||
}
|
||||
}
|
||||
$_smarty_vars_request = @array_merge($_smarty_vars_request, $GLOBALS['HTTP_SESSION_VARS']);
|
||||
|
||||
$smarty->_smarty_vars['request'] = $_smarty_vars_request;
|
||||
}
|
||||
|
||||
/* vim: set expandtab: */
|
||||
|
||||
?>
|
||||
|
|
@ -0,0 +1,79 @@
|
|||
<?php
|
||||
/**
|
||||
* Smarty plugin
|
||||
* @package Smarty
|
||||
* @subpackage plugins
|
||||
*/
|
||||
|
||||
/**
|
||||
* create full directory structure
|
||||
*
|
||||
* @param string $dir
|
||||
*/
|
||||
|
||||
// $dir
|
||||
|
||||
function smarty_core_create_dir_structure($params, &$smarty)
|
||||
{
|
||||
if (!file_exists($params['dir'])) {
|
||||
$_open_basedir_ini = ini_get('open_basedir');
|
||||
|
||||
if (DIRECTORY_SEPARATOR=='/') {
|
||||
/* unix-style paths */
|
||||
$_dir = $params['dir'];
|
||||
$_dir_parts = preg_split('!/+!', $_dir, -1, PREG_SPLIT_NO_EMPTY);
|
||||
$_new_dir = (substr($_dir, 0, 1)=='/') ? '/' : getcwd().'/';
|
||||
if($_use_open_basedir = !empty($_open_basedir_ini)) {
|
||||
$_open_basedirs = explode(':', $_open_basedir_ini);
|
||||
}
|
||||
|
||||
} else {
|
||||
/* other-style paths */
|
||||
$_dir = str_replace('\\','/', $params['dir']);
|
||||
$_dir_parts = preg_split('!/+!', $_dir, -1, PREG_SPLIT_NO_EMPTY);
|
||||
if (preg_match('!^((//)|([a-zA-Z]:/))!', $_dir, $_root_dir)) {
|
||||
/* leading "//" for network volume, or "[letter]:/" for full path */
|
||||
$_new_dir = $_root_dir[1];
|
||||
/* remove drive-letter from _dir_parts */
|
||||
if (isset($_root_dir[3])) array_shift($_dir_parts);
|
||||
|
||||
} else {
|
||||
$_new_dir = str_replace('\\', '/', getcwd()).'/';
|
||||
|
||||
}
|
||||
|
||||
if($_use_open_basedir = !empty($_open_basedir_ini)) {
|
||||
$_open_basedirs = explode(';', str_replace('\\', '/', $_open_basedir_ini));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* all paths use "/" only from here */
|
||||
foreach ($_dir_parts as $_dir_part) {
|
||||
$_new_dir .= $_dir_part;
|
||||
|
||||
if ($_use_open_basedir) {
|
||||
// do not attempt to test or make directories outside of open_basedir
|
||||
$_make_new_dir = false;
|
||||
foreach ($_open_basedirs as $_open_basedir) {
|
||||
if (substr($_new_dir, 0, strlen($_open_basedir)) == $_open_basedir) {
|
||||
$_make_new_dir = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$_make_new_dir = true;
|
||||
}
|
||||
|
||||
if ($_make_new_dir && !file_exists($_new_dir) && !@mkdir($_new_dir, $smarty->_dir_perms) && !is_dir($_new_dir)) {
|
||||
$smarty->trigger_error("problem creating directory '" . $_new_dir . "'");
|
||||
return false;
|
||||
}
|
||||
$_new_dir .= '/';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* vim: set expandtab: */
|
||||
|
||||
?>
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
<?php
|
||||
/**
|
||||
* Smarty plugin
|
||||
* @package Smarty
|
||||
* @subpackage plugins
|
||||
*/
|
||||
|
||||
/**
|
||||
* Smarty debug_console function plugin
|
||||
*
|
||||
* Type: core<br>
|
||||
* Name: display_debug_console<br>
|
||||
* Purpose: display the javascript debug console window
|
||||
* @param array Format: null
|
||||
* @param Smarty
|
||||
*/
|
||||
function smarty_core_display_debug_console($params, &$smarty)
|
||||
{
|
||||
// we must force compile the debug template in case the environment
|
||||
// changed between separate applications.
|
||||
|
||||
if(empty($smarty->debug_tpl)) {
|
||||
// set path to debug template from SMARTY_DIR
|
||||
$smarty->debug_tpl = SMARTY_DIR . 'debug.tpl';
|
||||
if($smarty->security && is_file($smarty->debug_tpl)) {
|
||||
$smarty->secure_dir[] = realpath($smarty->debug_tpl);
|
||||
}
|
||||
$smarty->debug_tpl = 'file:' . SMARTY_DIR . 'debug.tpl';
|
||||
}
|
||||
|
||||
$_ldelim_orig = $smarty->left_delimiter;
|
||||
$_rdelim_orig = $smarty->right_delimiter;
|
||||
|
||||
$smarty->left_delimiter = '{';
|
||||
$smarty->right_delimiter = '}';
|
||||
|
||||
$_compile_id_orig = $smarty->_compile_id;
|
||||
$smarty->_compile_id = null;
|
||||
|
||||
$_compile_path = $smarty->_get_compile_path($smarty->debug_tpl);
|
||||
if ($smarty->_compile_resource($smarty->debug_tpl, $_compile_path))
|
||||
{
|
||||
ob_start();
|
||||
$smarty->_include($_compile_path);
|
||||
$_results = ob_get_contents();
|
||||
ob_end_clean();
|
||||
} else {
|
||||
$_results = '';
|
||||
}
|
||||
|
||||
$smarty->_compile_id = $_compile_id_orig;
|
||||
|
||||
$smarty->left_delimiter = $_ldelim_orig;
|
||||
$smarty->right_delimiter = $_rdelim_orig;
|
||||
|
||||
return $_results;
|
||||
}
|
||||
|
||||
/* vim: set expandtab: */
|
||||
|
||||
?>
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
<?php
|
||||
/**
|
||||
* Smarty plugin
|
||||
* @package Smarty
|
||||
* @subpackage plugins
|
||||
*/
|
||||
|
||||
/**
|
||||
* Get path to file from include_path
|
||||
*
|
||||
* @param string $file_path
|
||||
* @param string $new_file_path
|
||||
* @return boolean
|
||||
* @staticvar array|null
|
||||
*/
|
||||
|
||||
// $file_path, &$new_file_path
|
||||
|
||||
function smarty_core_get_include_path(&$params, &$smarty)
|
||||
{
|
||||
static $_path_array = null;
|
||||
|
||||
if(!isset($_path_array)) {
|
||||
$_ini_include_path = ini_get('include_path');
|
||||
|
||||
if(strstr($_ini_include_path,';')) {
|
||||
// windows pathnames
|
||||
$_path_array = explode(';',$_ini_include_path);
|
||||
} else {
|
||||
$_path_array = explode(':',$_ini_include_path);
|
||||
}
|
||||
}
|
||||
foreach ($_path_array as $_include_path) {
|
||||
if (@is_readable($_include_path . DIRECTORY_SEPARATOR . $params['file_path'])) {
|
||||
$params['new_file_path'] = $_include_path . DIRECTORY_SEPARATOR . $params['file_path'];
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/* vim: set expandtab: */
|
||||
|
||||
?>
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
/**
|
||||
* Smarty plugin
|
||||
* @package Smarty
|
||||
* @subpackage plugins
|
||||
*/
|
||||
|
||||
/**
|
||||
* Get seconds and microseconds
|
||||
* @return double
|
||||
*/
|
||||
function smarty_core_get_microtime($params, &$smarty)
|
||||
{
|
||||
$mtime = microtime();
|
||||
$mtime = explode(" ", $mtime);
|
||||
$mtime = (double)($mtime[1]) + (double)($mtime[0]);
|
||||
return ($mtime);
|
||||
}
|
||||
|
||||
|
||||
/* vim: set expandtab: */
|
||||
|
||||
?>
|
||||
|
|
@ -0,0 +1,80 @@
|
|||
<?php
|
||||
/**
|
||||
* Smarty plugin
|
||||
* @package Smarty
|
||||
* @subpackage plugins
|
||||
*/
|
||||
|
||||
/**
|
||||
* Retrieves PHP script resource
|
||||
*
|
||||
* sets $php_resource to the returned resource
|
||||
* @param string $resource
|
||||
* @param string $resource_type
|
||||
* @param $php_resource
|
||||
* @return boolean
|
||||
*/
|
||||
|
||||
function smarty_core_get_php_resource(&$params, &$smarty)
|
||||
{
|
||||
|
||||
$params['resource_base_path'] = $smarty->trusted_dir;
|
||||
$smarty->_parse_resource_name($params, $smarty);
|
||||
|
||||
/*
|
||||
* Find out if the resource exists.
|
||||
*/
|
||||
|
||||
if ($params['resource_type'] == 'file') {
|
||||
$_readable = false;
|
||||
if(file_exists($params['resource_name']) && is_readable($params['resource_name'])) {
|
||||
$_readable = true;
|
||||
} else {
|
||||
// test for file in include_path
|
||||
$_params = array('file_path' => $params['resource_name']);
|
||||
require_once(SMARTY_CORE_DIR . 'core.get_include_path.php');
|
||||
if(smarty_core_get_include_path($_params, $smarty)) {
|
||||
$_include_path = $_params['new_file_path'];
|
||||
$_readable = true;
|
||||
}
|
||||
}
|
||||
} else if ($params['resource_type'] != 'file') {
|
||||
$_template_source = null;
|
||||
$_readable = is_callable($smarty->_plugins['resource'][$params['resource_type']][0][0])
|
||||
&& call_user_func_array($smarty->_plugins['resource'][$params['resource_type']][0][0],
|
||||
array($params['resource_name'], &$_template_source, &$smarty));
|
||||
}
|
||||
|
||||
/*
|
||||
* Set the error function, depending on which class calls us.
|
||||
*/
|
||||
if (method_exists($smarty, '_syntax_error')) {
|
||||
$_error_funcc = '_syntax_error';
|
||||
} else {
|
||||
$_error_funcc = 'trigger_error';
|
||||
}
|
||||
|
||||
if ($_readable) {
|
||||
if ($smarty->security) {
|
||||
require_once(SMARTY_CORE_DIR . 'core.is_trusted.php');
|
||||
if (!smarty_core_is_trusted($params, $smarty)) {
|
||||
$smarty->$_error_funcc('(secure mode) ' . $params['resource_type'] . ':' . $params['resource_name'] . ' is not trusted');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$smarty->$_error_funcc($params['resource_type'] . ':' . $params['resource_name'] . ' is not readable');
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($params['resource_type'] == 'file') {
|
||||
$params['php_resource'] = $params['resource_name'];
|
||||
} else {
|
||||
$params['php_resource'] = $_template_source;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/* vim: set expandtab: */
|
||||
|
||||
?>
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
<?php
|
||||
/**
|
||||
* Smarty plugin
|
||||
* @package Smarty
|
||||
* @subpackage plugins
|
||||
*/
|
||||
|
||||
/**
|
||||
* determines if a resource is secure or not.
|
||||
*
|
||||
* @param string $resource_type
|
||||
* @param string $resource_name
|
||||
* @return boolean
|
||||
*/
|
||||
|
||||
// $resource_type, $resource_name
|
||||
|
||||
function smarty_core_is_secure($params, &$smarty)
|
||||
{
|
||||
if (!$smarty->security || $smarty->security_settings['INCLUDE_ANY']) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if ($params['resource_type'] == 'file') {
|
||||
$_rp = realpath($params['resource_name']);
|
||||
if (isset($params['resource_base_path'])) {
|
||||
foreach ((array)$params['resource_base_path'] as $curr_dir) {
|
||||
if ( ($_cd = realpath($curr_dir)) !== false &&
|
||||
strncmp($_rp, $_cd, strlen($_cd)) == 0 &&
|
||||
substr($_rp, strlen($_cd), 1) == DIRECTORY_SEPARATOR ) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!empty($smarty->secure_dir)) {
|
||||
foreach ((array)$smarty->secure_dir as $curr_dir) {
|
||||
if ( ($_cd = realpath($curr_dir)) !== false) {
|
||||
if($_cd == $_rp) {
|
||||
return true;
|
||||
} elseif (strncmp($_rp, $_cd, strlen($_cd)) == 0 &&
|
||||
substr($_rp, strlen($_cd), 1) == DIRECTORY_SEPARATOR) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// resource is not on local file system
|
||||
return call_user_func_array(
|
||||
$smarty->_plugins['resource'][$params['resource_type']][0][2],
|
||||
array($params['resource_name'], &$smarty));
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/* vim: set expandtab: */
|
||||
|
||||
?>
|
||||
|
|
@ -0,0 +1,47 @@
|
|||
<?php
|
||||
/**
|
||||
* Smarty plugin
|
||||
* @package Smarty
|
||||
* @subpackage plugins
|
||||
*/
|
||||
|
||||
/**
|
||||
* determines if a resource is trusted or not
|
||||
*
|
||||
* @param string $resource_type
|
||||
* @param string $resource_name
|
||||
* @return boolean
|
||||
*/
|
||||
|
||||
// $resource_type, $resource_name
|
||||
|
||||
function smarty_core_is_trusted($params, &$smarty)
|
||||
{
|
||||
$_smarty_trusted = false;
|
||||
if ($params['resource_type'] == 'file') {
|
||||
if (!empty($smarty->trusted_dir)) {
|
||||
$_rp = realpath($params['resource_name']);
|
||||
foreach ((array)$smarty->trusted_dir as $curr_dir) {
|
||||
if (!empty($curr_dir) && is_readable ($curr_dir)) {
|
||||
$_cd = realpath($curr_dir);
|
||||
if (strncmp($_rp, $_cd, strlen($_cd)) == 0
|
||||
&& substr($_rp, strlen($_cd), 1) == DIRECTORY_SEPARATOR ) {
|
||||
$_smarty_trusted = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
// resource is not on local file system
|
||||
$_smarty_trusted = call_user_func_array($smarty->_plugins['resource'][$params['resource_type']][0][3],
|
||||
array($params['resource_name'], $smarty));
|
||||
}
|
||||
|
||||
return $_smarty_trusted;
|
||||
}
|
||||
|
||||
/* vim: set expandtab: */
|
||||
|
||||
?>
|
||||
|
|
@ -0,0 +1,125 @@
|
|||
<?php
|
||||
/**
|
||||
* Smarty plugin
|
||||
* @package Smarty
|
||||
* @subpackage plugins
|
||||
*/
|
||||
|
||||
/**
|
||||
* Load requested plugins
|
||||
*
|
||||
* @param array $plugins
|
||||
*/
|
||||
|
||||
// $plugins
|
||||
|
||||
function smarty_core_load_plugins($params, &$smarty)
|
||||
{
|
||||
|
||||
foreach ($params['plugins'] as $_plugin_info) {
|
||||
list($_type, $_name, $_tpl_file, $_tpl_line, $_delayed_loading) = $_plugin_info;
|
||||
$_plugin = &$smarty->_plugins[$_type][$_name];
|
||||
|
||||
/*
|
||||
* We do not load plugin more than once for each instance of Smarty.
|
||||
* The following code checks for that. The plugin can also be
|
||||
* registered dynamically at runtime, in which case template file
|
||||
* and line number will be unknown, so we fill them in.
|
||||
*
|
||||
* The final element of the info array is a flag that indicates
|
||||
* whether the dynamically registered plugin function has been
|
||||
* checked for existence yet or not.
|
||||
*/
|
||||
if (isset($_plugin)) {
|
||||
if (empty($_plugin[3])) {
|
||||
if (!is_callable($_plugin[0])) {
|
||||
$smarty->_trigger_fatal_error("[plugin] $_type '$_name' is not implemented", $_tpl_file, $_tpl_line, __FILE__, __LINE__);
|
||||
} else {
|
||||
$_plugin[1] = $_tpl_file;
|
||||
$_plugin[2] = $_tpl_line;
|
||||
$_plugin[3] = true;
|
||||
if (!isset($_plugin[4])) $_plugin[4] = true; /* cacheable */
|
||||
}
|
||||
}
|
||||
continue;
|
||||
} else if ($_type == 'insert') {
|
||||
/*
|
||||
* For backwards compatibility, we check for insert functions in
|
||||
* the symbol table before trying to load them as a plugin.
|
||||
*/
|
||||
$_plugin_func = 'insert_' . $_name;
|
||||
if (function_exists($_plugin_func)) {
|
||||
$_plugin = array($_plugin_func, $_tpl_file, $_tpl_line, true, false);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
$_plugin_file = $smarty->_get_plugin_filepath($_type, $_name);
|
||||
|
||||
if (! $_found = ($_plugin_file != false)) {
|
||||
$_message = "could not load plugin file '$_type.$_name.php'\n";
|
||||
}
|
||||
|
||||
/*
|
||||
* If plugin file is found, it -must- provide the properly named
|
||||
* plugin function. In case it doesn't, simply output the error and
|
||||
* do not fall back on any other method.
|
||||
*/
|
||||
if ($_found) {
|
||||
include_once $_plugin_file;
|
||||
|
||||
$_plugin_func = 'smarty_' . $_type . '_' . $_name;
|
||||
if (!function_exists($_plugin_func)) {
|
||||
$smarty->_trigger_fatal_error("[plugin] function $_plugin_func() not found in $_plugin_file", $_tpl_file, $_tpl_line, __FILE__, __LINE__);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* In case of insert plugins, their code may be loaded later via
|
||||
* 'script' attribute.
|
||||
*/
|
||||
else if ($_type == 'insert' && $_delayed_loading) {
|
||||
$_plugin_func = 'smarty_' . $_type . '_' . $_name;
|
||||
$_found = true;
|
||||
}
|
||||
|
||||
/*
|
||||
* Plugin specific processing and error checking.
|
||||
*/
|
||||
if (!$_found) {
|
||||
if ($_type == 'modifier') {
|
||||
/*
|
||||
* In case modifier falls back on using PHP functions
|
||||
* directly, we only allow those specified in the security
|
||||
* context.
|
||||
*/
|
||||
if ($smarty->security && !in_array($_name, $smarty->security_settings['MODIFIER_FUNCS'])) {
|
||||
$_message = "(secure mode) modifier '$_name' is not allowed";
|
||||
} else {
|
||||
if (!function_exists($_name)) {
|
||||
$_message = "modifier '$_name' is not implemented";
|
||||
} else {
|
||||
$_plugin_func = $_name;
|
||||
$_found = true;
|
||||
}
|
||||
}
|
||||
} else if ($_type == 'function') {
|
||||
/*
|
||||
* This is a catch-all situation.
|
||||
*/
|
||||
$_message = "unknown tag - '$_name'";
|
||||
}
|
||||
}
|
||||
|
||||
if ($_found) {
|
||||
$smarty->_plugins[$_type][$_name] = array($_plugin_func, $_tpl_file, $_tpl_line, true, true);
|
||||
} else {
|
||||
// output error
|
||||
$smarty->_trigger_fatal_error('[plugin] ' . $_message, $_tpl_file, $_tpl_line, __FILE__, __LINE__);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* vim: set expandtab: */
|
||||
|
||||
?>
|
||||
|
|
@ -0,0 +1,74 @@
|
|||
<?php
|
||||
/**
|
||||
* Smarty plugin
|
||||
* @package Smarty
|
||||
* @subpackage plugins
|
||||
*/
|
||||
|
||||
/**
|
||||
* load a resource plugin
|
||||
*
|
||||
* @param string $type
|
||||
*/
|
||||
|
||||
// $type
|
||||
|
||||
function smarty_core_load_resource_plugin($params, &$smarty)
|
||||
{
|
||||
/*
|
||||
* Resource plugins are not quite like the other ones, so they are
|
||||
* handled differently. The first element of plugin info is the array of
|
||||
* functions provided by the plugin, the second one indicates whether
|
||||
* all of them exist or not.
|
||||
*/
|
||||
|
||||
$_plugin = &$smarty->_plugins['resource'][$params['type']];
|
||||
if (isset($_plugin)) {
|
||||
if (!$_plugin[1] && count($_plugin[0])) {
|
||||
$_plugin[1] = true;
|
||||
foreach ($_plugin[0] as $_plugin_func) {
|
||||
if (!is_callable($_plugin_func)) {
|
||||
$_plugin[1] = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!$_plugin[1]) {
|
||||
$smarty->_trigger_fatal_error("[plugin] resource '" . $params['type'] . "' is not implemented", null, null, __FILE__, __LINE__);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
$_plugin_file = $smarty->_get_plugin_filepath('resource', $params['type']);
|
||||
$_found = ($_plugin_file != false);
|
||||
|
||||
if ($_found) { /*
|
||||
* If the plugin file is found, it -must- provide the properly named
|
||||
* plugin functions.
|
||||
*/
|
||||
include_once($_plugin_file);
|
||||
|
||||
/*
|
||||
* Locate functions that we require the plugin to provide.
|
||||
*/
|
||||
$_resource_ops = array('source', 'timestamp', 'secure', 'trusted');
|
||||
$_resource_funcs = array();
|
||||
foreach ($_resource_ops as $_op) {
|
||||
$_plugin_func = 'smarty_resource_' . $params['type'] . '_' . $_op;
|
||||
if (!function_exists($_plugin_func)) {
|
||||
$smarty->_trigger_fatal_error("[plugin] function $_plugin_func() not found in $_plugin_file", null, null, __FILE__, __LINE__);
|
||||
return;
|
||||
} else {
|
||||
$_resource_funcs[] = $_plugin_func;
|
||||
}
|
||||
}
|
||||
|
||||
$smarty->_plugins['resource'][$params['type']] = array($_resource_funcs, true);
|
||||
}
|
||||
}
|
||||
|
||||
/* vim: set expandtab: */
|
||||
|
||||
?>
|
||||
|
|
@ -0,0 +1,71 @@
|
|||
<?php
|
||||
/**
|
||||
* Smarty plugin
|
||||
* @package Smarty
|
||||
* @subpackage plugins
|
||||
*/
|
||||
|
||||
/**
|
||||
* Replace cached inserts with the actual results
|
||||
*
|
||||
* @param string $results
|
||||
* @return string
|
||||
*/
|
||||
function smarty_core_process_cached_inserts($params, &$smarty)
|
||||
{
|
||||
preg_match_all('!'.$smarty->_smarty_md5.'{insert_cache (.*)}'.$smarty->_smarty_md5.'!Uis',
|
||||
$params['results'], $match);
|
||||
list($cached_inserts, $insert_args) = $match;
|
||||
|
||||
for ($i = 0, $for_max = count($cached_inserts); $i < $for_max; $i++) {
|
||||
if ($smarty->debugging) {
|
||||
$_params = array();
|
||||
require_once(SMARTY_CORE_DIR . 'core.get_microtime.php');
|
||||
$debug_start_time = smarty_core_get_microtime($_params, $smarty);
|
||||
}
|
||||
|
||||
$args = unserialize($insert_args[$i]);
|
||||
$name = $args['name'];
|
||||
|
||||
if (isset($args['script'])) {
|
||||
$_params = array('resource_name' => $smarty->_dequote($args['script']));
|
||||
require_once(SMARTY_CORE_DIR . 'core.get_php_resource.php');
|
||||
if(!smarty_core_get_php_resource($_params, $smarty)) {
|
||||
return false;
|
||||
}
|
||||
$resource_type = $_params['resource_type'];
|
||||
$php_resource = $_params['php_resource'];
|
||||
|
||||
|
||||
if ($resource_type == 'file') {
|
||||
$smarty->_include($php_resource, true);
|
||||
} else {
|
||||
$smarty->_eval($php_resource);
|
||||
}
|
||||
}
|
||||
|
||||
$function_name = $smarty->_plugins['insert'][$name][0];
|
||||
if (empty($args['assign'])) {
|
||||
$replace = $function_name($args, $smarty);
|
||||
} else {
|
||||
$smarty->assign($args['assign'], $function_name($args, $smarty));
|
||||
$replace = '';
|
||||
}
|
||||
|
||||
$params['results'] = substr_replace($params['results'], $replace, strpos($params['results'], $cached_inserts[$i]), strlen($cached_inserts[$i]));
|
||||
if ($smarty->debugging) {
|
||||
$_params = array();
|
||||
require_once(SMARTY_CORE_DIR . 'core.get_microtime.php');
|
||||
$smarty->_smarty_debug_info[] = array('type' => 'insert',
|
||||
'filename' => 'insert_'.$name,
|
||||
'depth' => $smarty->_inclusion_depth,
|
||||
'exec_time' => smarty_core_get_microtime($_params, $smarty) - $debug_start_time);
|
||||
}
|
||||
}
|
||||
|
||||
return $params['results'];
|
||||
}
|
||||
|
||||
/* vim: set expandtab: */
|
||||
|
||||
?>
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
/**
|
||||
* Smarty plugin
|
||||
* @package Smarty
|
||||
* @subpackage plugins
|
||||
*/
|
||||
|
||||
/**
|
||||
* Replace nocache-tags by results of the corresponding non-cacheable
|
||||
* functions and return it
|
||||
*
|
||||
* @param string $compiled_tpl
|
||||
* @param string $cached_source
|
||||
* @return string
|
||||
*/
|
||||
|
||||
function smarty_core_process_compiled_include($params, &$smarty)
|
||||
{
|
||||
$_cache_including = $smarty->_cache_including;
|
||||
$smarty->_cache_including = true;
|
||||
|
||||
$_return = $params['results'];
|
||||
|
||||
foreach ($smarty->_cache_info['cache_serials'] as $_include_file_path=>$_cache_serial) {
|
||||
$smarty->_include($_include_file_path, true);
|
||||
}
|
||||
|
||||
foreach ($smarty->_cache_info['cache_serials'] as $_include_file_path=>$_cache_serial) {
|
||||
$_return = preg_replace_callback('!(\{nocache\:('.$_cache_serial.')#(\d+)\})!s',
|
||||
array(&$smarty, '_process_compiled_include_callback'),
|
||||
$_return);
|
||||
}
|
||||
$smarty->_cache_including = $_cache_including;
|
||||
return $_return;
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
@ -0,0 +1,101 @@
|
|||
<?php
|
||||
/**
|
||||
* Smarty plugin
|
||||
* @package Smarty
|
||||
* @subpackage plugins
|
||||
*/
|
||||
|
||||
/**
|
||||
* read a cache file, determine if it needs to be
|
||||
* regenerated or not
|
||||
*
|
||||
* @param string $tpl_file
|
||||
* @param string $cache_id
|
||||
* @param string $compile_id
|
||||
* @param string $results
|
||||
* @return boolean
|
||||
*/
|
||||
|
||||
// $tpl_file, $cache_id, $compile_id, &$results
|
||||
|
||||
function smarty_core_read_cache_file(&$params, &$smarty)
|
||||
{
|
||||
static $content_cache = array();
|
||||
|
||||
if ($smarty->force_compile) {
|
||||
// force compile enabled, always regenerate
|
||||
return false;
|
||||
}
|
||||
|
||||
if (isset($content_cache[$params['tpl_file'].','.$params['cache_id'].','.$params['compile_id']])) {
|
||||
list($params['results'], $smarty->_cache_info) = $content_cache[$params['tpl_file'].','.$params['cache_id'].','.$params['compile_id']];
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!empty($smarty->cache_handler_func)) {
|
||||
// use cache_handler function
|
||||
call_user_func_array($smarty->cache_handler_func,
|
||||
array('read', &$smarty, &$params['results'], $params['tpl_file'], $params['cache_id'], $params['compile_id'], null));
|
||||
} else {
|
||||
// use local cache file
|
||||
$_auto_id = $smarty->_get_auto_id($params['cache_id'], $params['compile_id']);
|
||||
$_cache_file = $smarty->_get_auto_filename($smarty->cache_dir, $params['tpl_file'], $_auto_id);
|
||||
$params['results'] = $smarty->_read_file($_cache_file);
|
||||
}
|
||||
|
||||
if (empty($params['results'])) {
|
||||
// nothing to parse (error?), regenerate cache
|
||||
return false;
|
||||
}
|
||||
|
||||
$_contents = $params['results'];
|
||||
$_info_start = strpos($_contents, "\n") + 1;
|
||||
$_info_len = (int)substr($_contents, 0, $_info_start - 1);
|
||||
$_cache_info = unserialize(substr($_contents, $_info_start, $_info_len));
|
||||
$params['results'] = substr($_contents, $_info_start + $_info_len);
|
||||
|
||||
if ($smarty->caching == 2 && isset ($_cache_info['expires'])){
|
||||
// caching by expiration time
|
||||
if ($_cache_info['expires'] > -1 && (time() > $_cache_info['expires'])) {
|
||||
// cache expired, regenerate
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
// caching by lifetime
|
||||
if ($smarty->cache_lifetime > -1 && (time() - $_cache_info['timestamp'] > $smarty->cache_lifetime)) {
|
||||
// cache expired, regenerate
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if ($smarty->compile_check) {
|
||||
$_params = array('get_source' => false, 'quiet'=>true);
|
||||
foreach (array_keys($_cache_info['template']) as $_template_dep) {
|
||||
$_params['resource_name'] = $_template_dep;
|
||||
if (!$smarty->_fetch_resource_info($_params) || $_cache_info['timestamp'] < $_params['resource_timestamp']) {
|
||||
// template file has changed, regenerate cache
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($_cache_info['config'])) {
|
||||
$_params = array('resource_base_path' => $smarty->config_dir, 'get_source' => false, 'quiet'=>true);
|
||||
foreach (array_keys($_cache_info['config']) as $_config_dep) {
|
||||
$_params['resource_name'] = $_config_dep;
|
||||
if (!$smarty->_fetch_resource_info($_params) || $_cache_info['timestamp'] < $_params['resource_timestamp']) {
|
||||
// config file has changed, regenerate cache
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$content_cache[$params['tpl_file'].','.$params['cache_id'].','.$params['compile_id']] = array($params['results'], $_cache_info);
|
||||
|
||||
$smarty->_cache_info = $_cache_info;
|
||||
return true;
|
||||
}
|
||||
|
||||
/* vim: set expandtab: */
|
||||
|
||||
?>
|
||||
|
|
@ -0,0 +1,71 @@
|
|||
<?php
|
||||
/**
|
||||
* Smarty plugin
|
||||
* @package Smarty
|
||||
* @subpackage plugins
|
||||
*/
|
||||
|
||||
/**
|
||||
* delete an automagically created file by name and id
|
||||
*
|
||||
* @param string $auto_base
|
||||
* @param string $auto_source
|
||||
* @param string $auto_id
|
||||
* @param integer $exp_time
|
||||
* @return boolean
|
||||
*/
|
||||
|
||||
// $auto_base, $auto_source = null, $auto_id = null, $exp_time = null
|
||||
|
||||
function smarty_core_rm_auto($params, &$smarty)
|
||||
{
|
||||
if (!@is_dir($params['auto_base']))
|
||||
return false;
|
||||
|
||||
if(!isset($params['auto_id']) && !isset($params['auto_source'])) {
|
||||
$_params = array(
|
||||
'dirname' => $params['auto_base'],
|
||||
'level' => 0,
|
||||
'exp_time' => $params['exp_time']
|
||||
);
|
||||
require_once(SMARTY_CORE_DIR . 'core.rmdir.php');
|
||||
$_res = smarty_core_rmdir($_params, $smarty);
|
||||
} else {
|
||||
$_tname = $smarty->_get_auto_filename($params['auto_base'], $params['auto_source'], $params['auto_id']);
|
||||
|
||||
if(isset($params['auto_source'])) {
|
||||
if (isset($params['extensions'])) {
|
||||
$_res = false;
|
||||
foreach ((array)$params['extensions'] as $_extension)
|
||||
$_res |= $smarty->_unlink($_tname.$_extension, $params['exp_time']);
|
||||
} else {
|
||||
$_res = $smarty->_unlink($_tname, $params['exp_time']);
|
||||
}
|
||||
} elseif ($smarty->use_sub_dirs) {
|
||||
$_params = array(
|
||||
'dirname' => $_tname,
|
||||
'level' => 1,
|
||||
'exp_time' => $params['exp_time']
|
||||
);
|
||||
require_once(SMARTY_CORE_DIR . 'core.rmdir.php');
|
||||
$_res = smarty_core_rmdir($_params, $smarty);
|
||||
} else {
|
||||
// remove matching file names
|
||||
$_handle = opendir($params['auto_base']);
|
||||
$_res = true;
|
||||
while (false !== ($_filename = readdir($_handle))) {
|
||||
if($_filename == '.' || $_filename == '..') {
|
||||
continue;
|
||||
} elseif (substr($params['auto_base'] . DIRECTORY_SEPARATOR . $_filename, 0, strlen($_tname)) == $_tname) {
|
||||
$_res &= (bool)$smarty->_unlink($params['auto_base'] . DIRECTORY_SEPARATOR . $_filename, $params['exp_time']);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $_res;
|
||||
}
|
||||
|
||||
/* vim: set expandtab: */
|
||||
|
||||
?>
|
||||
54
onyx2/modules/templates_anc/smarty/internals/core.rmdir.php
Normal file
54
onyx2/modules/templates_anc/smarty/internals/core.rmdir.php
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
<?php
|
||||
/**
|
||||
* Smarty plugin
|
||||
* @package Smarty
|
||||
* @subpackage plugins
|
||||
*/
|
||||
|
||||
/**
|
||||
* delete a dir recursively (level=0 -> keep root)
|
||||
* WARNING: no tests, it will try to remove what you tell it!
|
||||
*
|
||||
* @param string $dirname
|
||||
* @param integer $level
|
||||
* @param integer $exp_time
|
||||
* @return boolean
|
||||
*/
|
||||
|
||||
// $dirname, $level = 1, $exp_time = null
|
||||
|
||||
function smarty_core_rmdir($params, &$smarty)
|
||||
{
|
||||
if(!isset($params['level'])) { $params['level'] = 1; }
|
||||
if(!isset($params['exp_time'])) { $params['exp_time'] = null; }
|
||||
|
||||
if($_handle = @opendir($params['dirname'])) {
|
||||
|
||||
while (false !== ($_entry = readdir($_handle))) {
|
||||
if ($_entry != '.' && $_entry != '..') {
|
||||
if (@is_dir($params['dirname'] . DIRECTORY_SEPARATOR . $_entry)) {
|
||||
$_params = array(
|
||||
'dirname' => $params['dirname'] . DIRECTORY_SEPARATOR . $_entry,
|
||||
'level' => $params['level'] + 1,
|
||||
'exp_time' => $params['exp_time']
|
||||
);
|
||||
smarty_core_rmdir($_params, $smarty);
|
||||
}
|
||||
else {
|
||||
$smarty->_unlink($params['dirname'] . DIRECTORY_SEPARATOR . $_entry, $params['exp_time']);
|
||||
}
|
||||
}
|
||||
}
|
||||
closedir($_handle);
|
||||
}
|
||||
|
||||
if ($params['level']) {
|
||||
return @rmdir($params['dirname']);
|
||||
}
|
||||
return (bool)$_handle;
|
||||
|
||||
}
|
||||
|
||||
/* vim: set expandtab: */
|
||||
|
||||
?>
|
||||
|
|
@ -0,0 +1,71 @@
|
|||
<?php
|
||||
/**
|
||||
* Smarty plugin
|
||||
* @package Smarty
|
||||
* @subpackage plugins
|
||||
*/
|
||||
|
||||
/**
|
||||
* Handle insert tags
|
||||
*
|
||||
* @param array $args
|
||||
* @return string
|
||||
*/
|
||||
function smarty_core_run_insert_handler($params, &$smarty)
|
||||
{
|
||||
|
||||
require_once(SMARTY_CORE_DIR . 'core.get_microtime.php');
|
||||
if ($smarty->debugging) {
|
||||
$_params = array();
|
||||
$_debug_start_time = smarty_core_get_microtime($_params, $smarty);
|
||||
}
|
||||
|
||||
if ($smarty->caching) {
|
||||
$_arg_string = serialize($params['args']);
|
||||
$_name = $params['args']['name'];
|
||||
if (!isset($smarty->_cache_info['insert_tags'][$_name])) {
|
||||
$smarty->_cache_info['insert_tags'][$_name] = array('insert',
|
||||
$_name,
|
||||
$smarty->_plugins['insert'][$_name][1],
|
||||
$smarty->_plugins['insert'][$_name][2],
|
||||
!empty($params['args']['script']) ? true : false);
|
||||
}
|
||||
return $smarty->_smarty_md5."{insert_cache $_arg_string}".$smarty->_smarty_md5;
|
||||
} else {
|
||||
if (isset($params['args']['script'])) {
|
||||
$_params = array('resource_name' => $smarty->_dequote($params['args']['script']));
|
||||
require_once(SMARTY_CORE_DIR . 'core.get_php_resource.php');
|
||||
if(!smarty_core_get_php_resource($_params, $smarty)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($_params['resource_type'] == 'file') {
|
||||
$smarty->_include($_params['php_resource'], true);
|
||||
} else {
|
||||
$smarty->_eval($_params['php_resource']);
|
||||
}
|
||||
unset($params['args']['script']);
|
||||
}
|
||||
|
||||
$_funcname = $smarty->_plugins['insert'][$params['args']['name']][0];
|
||||
$_content = $_funcname($params['args'], $smarty);
|
||||
if ($smarty->debugging) {
|
||||
$_params = array();
|
||||
require_once(SMARTY_CORE_DIR . 'core.get_microtime.php');
|
||||
$smarty->_smarty_debug_info[] = array('type' => 'insert',
|
||||
'filename' => 'insert_'.$params['args']['name'],
|
||||
'depth' => $smarty->_inclusion_depth,
|
||||
'exec_time' => smarty_core_get_microtime($_params, $smarty) - $_debug_start_time);
|
||||
}
|
||||
|
||||
if (!empty($params['args']["assign"])) {
|
||||
$smarty->assign($params['args']["assign"], $_content);
|
||||
} else {
|
||||
return $_content;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* vim: set expandtab: */
|
||||
|
||||
?>
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
<?php
|
||||
/**
|
||||
* Smarty plugin
|
||||
* @package Smarty
|
||||
* @subpackage plugins
|
||||
*/
|
||||
|
||||
/**
|
||||
* called for included php files within templates
|
||||
*
|
||||
* @param string $smarty_file
|
||||
* @param string $smarty_assign variable to assign the included template's
|
||||
* output into
|
||||
* @param boolean $smarty_once uses include_once if this is true
|
||||
* @param array $smarty_include_vars associative array of vars from
|
||||
* {include file="blah" var=$var}
|
||||
*/
|
||||
|
||||
// $file, $assign, $once, $_smarty_include_vars
|
||||
|
||||
function smarty_core_smarty_include_php($params, &$smarty)
|
||||
{
|
||||
$_params = array('resource_name' => $params['smarty_file']);
|
||||
require_once(SMARTY_CORE_DIR . 'core.get_php_resource.php');
|
||||
smarty_core_get_php_resource($_params, $smarty);
|
||||
$_smarty_resource_type = $_params['resource_type'];
|
||||
$_smarty_php_resource = $_params['php_resource'];
|
||||
|
||||
if (!empty($params['smarty_assign'])) {
|
||||
ob_start();
|
||||
if ($_smarty_resource_type == 'file') {
|
||||
$smarty->_include($_smarty_php_resource, $params['smarty_once'], $params['smarty_include_vars']);
|
||||
} else {
|
||||
$smarty->_eval($_smarty_php_resource, $params['smarty_include_vars']);
|
||||
}
|
||||
$smarty->assign($params['smarty_assign'], ob_get_contents());
|
||||
ob_end_clean();
|
||||
} else {
|
||||
if ($_smarty_resource_type == 'file') {
|
||||
$smarty->_include($_smarty_php_resource, $params['smarty_once'], $params['smarty_include_vars']);
|
||||
} else {
|
||||
$smarty->_eval($_smarty_php_resource, $params['smarty_include_vars']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* vim: set expandtab: */
|
||||
|
||||
?>
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
<?php
|
||||
/**
|
||||
* Smarty plugin
|
||||
* @package Smarty
|
||||
* @subpackage plugins
|
||||
*/
|
||||
|
||||
/**
|
||||
* Prepend the cache information to the cache file
|
||||
* and write it
|
||||
*
|
||||
* @param string $tpl_file
|
||||
* @param string $cache_id
|
||||
* @param string $compile_id
|
||||
* @param string $results
|
||||
* @return true|null
|
||||
*/
|
||||
|
||||
// $tpl_file, $cache_id, $compile_id, $results
|
||||
|
||||
function smarty_core_write_cache_file($params, &$smarty)
|
||||
{
|
||||
|
||||
// put timestamp in cache header
|
||||
$smarty->_cache_info['timestamp'] = time();
|
||||
if ($smarty->cache_lifetime > -1){
|
||||
// expiration set
|
||||
$smarty->_cache_info['expires'] = $smarty->_cache_info['timestamp'] + $smarty->cache_lifetime;
|
||||
} else {
|
||||
// cache will never expire
|
||||
$smarty->_cache_info['expires'] = -1;
|
||||
}
|
||||
|
||||
// collapse nocache.../nocache-tags
|
||||
if (preg_match_all('!\{(/?)nocache\:[0-9a-f]{32}#\d+\}!', $params['results'], $match, PREG_PATTERN_ORDER)) {
|
||||
// remove everything between every pair of outermost noache.../nocache-tags
|
||||
// and replace it by a single nocache-tag
|
||||
// this new nocache-tag will be replaced by dynamic contents in
|
||||
// smarty_core_process_compiled_includes() on a cache-read
|
||||
|
||||
$match_count = count($match[0]);
|
||||
$results = preg_split('!(\{/?nocache\:[0-9a-f]{32}#\d+\})!', $params['results'], -1, PREG_SPLIT_DELIM_CAPTURE);
|
||||
|
||||
$level = 0;
|
||||
$j = 0;
|
||||
for ($i=0, $results_count = count($results); $i < $results_count && $j < $match_count; $i++) {
|
||||
if ($results[$i] == $match[0][$j]) {
|
||||
// nocache tag
|
||||
if ($match[1][$j]) { // closing tag
|
||||
$level--;
|
||||
unset($results[$i]);
|
||||
} else { // opening tag
|
||||
if ($level++ > 0) unset($results[$i]);
|
||||
}
|
||||
$j++;
|
||||
} elseif ($level > 0) {
|
||||
unset($results[$i]);
|
||||
}
|
||||
}
|
||||
$params['results'] = implode('', $results);
|
||||
}
|
||||
$smarty->_cache_info['cache_serials'] = $smarty->_cache_serials;
|
||||
|
||||
// prepend the cache header info into cache file
|
||||
$_cache_info = serialize($smarty->_cache_info);
|
||||
$params['results'] = strlen($_cache_info) . "\n" . $_cache_info . $params['results'];
|
||||
|
||||
if (!empty($smarty->cache_handler_func)) {
|
||||
// use cache_handler function
|
||||
call_user_func_array($smarty->cache_handler_func,
|
||||
array('write', &$smarty, &$params['results'], $params['tpl_file'], $params['cache_id'], $params['compile_id'], $smarty->_cache_info['expires']));
|
||||
} else {
|
||||
// use local cache file
|
||||
|
||||
if(!@is_writable($smarty->cache_dir)) {
|
||||
// cache_dir not writable, see if it exists
|
||||
if(!@is_dir($smarty->cache_dir)) {
|
||||
$smarty->trigger_error('the $cache_dir \'' . $smarty->cache_dir . '\' does not exist, or is not a directory.', E_USER_ERROR);
|
||||
return false;
|
||||
}
|
||||
$smarty->trigger_error('unable to write to $cache_dir \'' . realpath($smarty->cache_dir) . '\'. Be sure $cache_dir is writable by the web server user.', E_USER_ERROR);
|
||||
return false;
|
||||
}
|
||||
|
||||
$_auto_id = $smarty->_get_auto_id($params['cache_id'], $params['compile_id']);
|
||||
$_cache_file = $smarty->_get_auto_filename($smarty->cache_dir, $params['tpl_file'], $_auto_id);
|
||||
$_params = array('filename' => $_cache_file, 'contents' => $params['results'], 'create_dirs' => true);
|
||||
require_once(SMARTY_CORE_DIR . 'core.write_file.php');
|
||||
smarty_core_write_file($_params, $smarty);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/* vim: set expandtab: */
|
||||
|
||||
?>
|
||||
|
|
@ -0,0 +1,91 @@
|
|||
<?php
|
||||
/**
|
||||
* Smarty plugin
|
||||
* @package Smarty
|
||||
* @subpackage plugins
|
||||
*/
|
||||
|
||||
/**
|
||||
* Extract non-cacheable parts out of compiled template and write it
|
||||
*
|
||||
* @param string $compile_path
|
||||
* @param string $template_compiled
|
||||
* @return boolean
|
||||
*/
|
||||
|
||||
function smarty_core_write_compiled_include($params, &$smarty)
|
||||
{
|
||||
$_tag_start = 'if \(\$this->caching && \!\$this->_cache_including\)\: echo \'\{nocache\:('.$params['cache_serial'].')#(\d+)\}\'; endif;';
|
||||
$_tag_end = 'if \(\$this->caching && \!\$this->_cache_including\)\: echo \'\{/nocache\:(\\2)#(\\3)\}\'; endif;';
|
||||
|
||||
preg_match_all('!('.$_tag_start.'(.*)'.$_tag_end.')!Us',
|
||||
$params['compiled_content'], $_match_source, PREG_SET_ORDER);
|
||||
|
||||
// no nocache-parts found: done
|
||||
if (count($_match_source)==0) return;
|
||||
|
||||
// convert the matched php-code to functions
|
||||
$_include_compiled = "<?php /* Smarty version ".$smarty->_version.", created on ".strftime("%Y-%m-%d %H:%M:%S")."\n";
|
||||
$_include_compiled .= " compiled from " . strtr(urlencode($params['resource_name']), array('%2F'=>'/', '%3A'=>':')) . " */\n\n";
|
||||
|
||||
$_compile_path = $params['include_file_path'];
|
||||
|
||||
$smarty->_cache_serials[$_compile_path] = $params['cache_serial'];
|
||||
$_include_compiled .= "\$this->_cache_serials['".$_compile_path."'] = '".$params['cache_serial']."';\n\n?>";
|
||||
|
||||
$_include_compiled .= $params['plugins_code'];
|
||||
$_include_compiled .= "<?php";
|
||||
|
||||
$this_varname = ((double)phpversion() >= 5.0) ? '_smarty' : 'this';
|
||||
for ($_i = 0, $_for_max = count($_match_source); $_i < $_for_max; $_i++) {
|
||||
$_match =& $_match_source[$_i];
|
||||
$source = $_match[4];
|
||||
if ($this_varname == '_smarty') {
|
||||
/* rename $this to $_smarty in the sourcecode */
|
||||
$tokens = token_get_all('<?php ' . $_match[4]);
|
||||
|
||||
/* remove trailing <?php */
|
||||
$open_tag = '';
|
||||
while ($tokens) {
|
||||
$token = array_shift($tokens);
|
||||
if (is_array($token)) {
|
||||
$open_tag .= $token[1];
|
||||
} else {
|
||||
$open_tag .= $token;
|
||||
}
|
||||
if ($open_tag == '<?php ') break;
|
||||
}
|
||||
|
||||
for ($i=0, $count = count($tokens); $i < $count; $i++) {
|
||||
if (is_array($tokens[$i])) {
|
||||
if ($tokens[$i][0] == T_VARIABLE && $tokens[$i][1] == '$this') {
|
||||
$tokens[$i] = '$' . $this_varname;
|
||||
} else {
|
||||
$tokens[$i] = $tokens[$i][1];
|
||||
}
|
||||
}
|
||||
}
|
||||
$source = implode('', $tokens);
|
||||
}
|
||||
|
||||
/* add function to compiled include */
|
||||
$_include_compiled .= "
|
||||
function _smarty_tplfunc_$_match[2]_$_match[3](&\$$this_varname)
|
||||
{
|
||||
$source
|
||||
}
|
||||
|
||||
";
|
||||
}
|
||||
$_include_compiled .= "\n\n?>\n";
|
||||
|
||||
$_params = array('filename' => $_compile_path,
|
||||
'contents' => $_include_compiled, 'create_dirs' => true);
|
||||
|
||||
require_once(SMARTY_CORE_DIR . 'core.write_file.php');
|
||||
smarty_core_write_file($_params, $smarty);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
/**
|
||||
* Smarty plugin
|
||||
* @package Smarty
|
||||
* @subpackage plugins
|
||||
*/
|
||||
|
||||
/**
|
||||
* write the compiled resource
|
||||
*
|
||||
* @param string $compile_path
|
||||
* @param string $compiled_content
|
||||
* @return true
|
||||
*/
|
||||
function smarty_core_write_compiled_resource($params, &$smarty)
|
||||
{
|
||||
if(!@is_writable($smarty->compile_dir)) {
|
||||
// compile_dir not writable, see if it exists
|
||||
if(!@is_dir($smarty->compile_dir)) {
|
||||
$smarty->trigger_error('the $compile_dir \'' . $smarty->compile_dir . '\' does not exist, or is not a directory.', E_USER_ERROR);
|
||||
return false;
|
||||
}
|
||||
$smarty->trigger_error('unable to write to $compile_dir \'' . realpath($smarty->compile_dir) . '\'. Be sure $compile_dir is writable by the web server user.', E_USER_ERROR);
|
||||
return false;
|
||||
}
|
||||
|
||||
$_params = array('filename' => $params['compile_path'], 'contents' => $params['compiled_content'], 'create_dirs' => true);
|
||||
require_once(SMARTY_CORE_DIR . 'core.write_file.php');
|
||||
smarty_core_write_file($_params, $smarty);
|
||||
return true;
|
||||
}
|
||||
|
||||
/* vim: set expandtab: */
|
||||
|
||||
?>
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue