forked from halo-battle/game
Version 1.14a
This commit is contained in:
parent
ba8f323879
commit
dc48225dc9
1094 changed files with 189052 additions and 13889 deletions
24
onyx2/include/server/version.php
Normal file
24
onyx2/include/server/version.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
if(!defined('INDEX')) { header('Location: ../'); exit; }
|
||||
$page = 'version';
|
||||
$titre = 'Historique des mises à jours';
|
||||
|
||||
$data = Cache::read('versionsDATA');
|
||||
if (empty($data))
|
||||
{
|
||||
$bdd->reconnexion();
|
||||
$data = $bdd->query("SELECT * FROM $table_version ORDER BY id DESC");
|
||||
$bdd->deconnexion();
|
||||
|
||||
Cache::set('versionsDATA', $data);
|
||||
}
|
||||
|
||||
$TEMP_versions = array();
|
||||
foreach($data as $version)
|
||||
{
|
||||
$TEMP_versions[] = array('numero' => $version['version'], 'date' => date("d/m/y", $version['temps']), 'description' => str_replace('<br />', '', $version['contenu']));
|
||||
}
|
||||
$template->assign('versions', $TEMP_versions);
|
||||
|
||||
unset($TEMP_versions, $data);
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue