js_goto("?page=download&op=admin"); } } elseif ($op == "admin") { /*** verification securite globale ***/ //verif_admin_general($s_joueur); if ($grade['a'] != 'a' && $grade['b'] != 'b' && $grade['d'] != 'd') { js_goto($PHP_SELF); } echo "<p class=title>.:: {$strAdminDownloads} ::.</p>"; $db->select("*"); $db->from("{$dbprefix}download"); $db->order_by("categorie, nom"); $res = $db->exec(); if ($db->num_rows($res) != 0) { echo "<table cellspacing=0 cellpadding=2 border=0>"; echo "<tr><td class=title>" . nb_downloads() . " {$strDownloads}</td></tr>"; echo "</table>"; echo "<table border=0 cellpadding=0 cellspacing=0 class=bordure1><tr><td>"; echo "<table cellspacing=1 cellpadding=2 border=0>"; echo "<tr><td class=header>{$strCategorie}</td><td class=header>{$strNom}</td><td class=header>{$strTaille}</td><td class=header>{$strHits}</td><td class=header>{$strUrl}</td></tr>"; while ($download = $db->fetch($res)) { $cat = stripslashes($download->categorie); echo "<tr>"; echo "<td class=text align=center>{$cat}</td>"; echo "<td class=text>"; echo "<div style=\"clear: both\"><div style=\"float: left\"><a href=?page=download&id={$download->id}><b>" . stripslashes($download->nom) . "</b></a></div>"; echo "<div style=\"float: right\"> <a href=\"?page=download&op=modify&id={$download->id}\">[{$strE}]</a> <a href=?page=download&op=delete&id={$download->id} onclick=\"return confirm('{$strConfirmEffacerDownload}');\">[{$strS}]</a></div>"; echo "</div></td>"; echo "<td class=text align=center>" . coolsize($download->taille) . "</td>"; echo "<td class=text align=center><b>{$download->hits}</b></td>"; echo "<td class=text><a target=_blank href=\"{$download->url}\">{$download->url}</a></td>";
| | +---------------------------------------------------------------------+ | Authors: Li0n <*****@*****.**> | | RV <*****@*****.**> | | Gougou | +---------------------------------------------------------------------+ */ if (eregi("block_stats.php", $_SERVER['PHP_SELF'])) { die("You cannot open this page directly"); } global $config, $s_joueur, $s_theme; global $strStatistiques, $strJoueurs, $strInscrits, $strTournois, $strNews, $strLiens, $strDownloads, $strPagesVues; global $compteur; theme_openblock("<img src=\"themes/{$s_theme}/images/icon_stats.gif\" align=\"absmiddle\" alt=\"stats\"> {$strStatistiques}"); $nbnews = nb_news(); $nbdownloads = nb_downloads(); $nbliens = nb_liens(); $nbjoueurs = nb_joueurs(); $nbplaces = $config['places']; $nbinscrits = nb_joueurs_inscrit(); $nbequipes = nb_equipes(); $nbtournois = nb_tournois(); echo "<dl><li class=\"lib\">{$strJoueurs} : {$nbjoueurs}</li>"; echo "<li class=\"lib\">{$strInscrits} : {$nbinscrits}/{$nbplaces}</li>"; affiche_bar($nbinscrits, $nbplaces, 100); echo "<li class=\"lib\">{$strTournois} : {$nbtournois}</li>"; echo "<li class=\"lib\">{$strEquipes} : {$nbequipes}</li>"; if ($config['news']) { echo "<li class=\"lib\">{$strNews} : {$nbnews}</li>"; } if ($config['liens']) {