Example #1
0
         echo "</td></tr></table>";
         echo "</form>";
     }
 } else {
     if ($grade['a'] == 'a' || $grade['b'] == 'b' || $grade['n'] == 'n') {
         echo "<p class=title>.:: {$strAdminNews} ::.</p>";
     } else {
         echo "<p class=title>.:: {$strNews} ::.</p>";
     }
     /*** liste des toutes les news ***/
     if (empty($id)) {
         if (!isset($start) || !is_numeric($start)) {
             $start = 0;
         }
         $nb_max = $config['nb_news_max'];
         $nb_total = nb_news();
         $db->select("*");
         $db->from("{$dbprefix}news");
         $db->order_by("id DESC LIMIT {$start},{$nb_max}");
         $res = $db->exec();
         if ($db->num_rows($res) == 0) {
             echo "<table cellspacing=0 cellpadding=0 border=0>";
             echo "<tr><td class=title><div align=justify>{$strPasDeNews}</div></td></tr>";
             echo "</table><br>";
         } else {
             /*** Affichage des news ***/
             echo "<table align=center width=400 border=0 cellspacing=0 cellpadding=0>";
             echo "<tr><td>";
             $nbnews = 0;
             while ($news = $db->fetch($res)) {
                 $nbnews++;
Example #2
0
   | Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA       |
   |                                                                     |
   +---------------------------------------------------------------------+
   | 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>";
}