Accéder au contenu.
Menu Sympa

devel - [Devel] r130 - trunk

Objet : devel-adl

Archives de la liste

[Devel] r130 - trunk


Chronologique Discussions 
  • From: thomas AT lolut.utbm.info
  • To: devel AT agendadulibre.org
  • Subject: [Devel] r130 - trunk
  • Date: Sat, 14 Jan 2006 15:43:40 +0100 (CET)
  • List-archive: <http://lolut.utbm.info/pipermail/devel>
  • List-id: Developpement de l'Agenda du Libre <devel.agendadulibre.org>

Author: thomas
Date: 2006-01-14 15:43:39 +0100 (Sat, 14 Jan 2006)
New Revision: 130

Added:
trunk/stats.php
Log:
Ajout page de statistiques.

Added: trunk/stats.php
===================================================================
--- trunk/stats.php 2006-01-14 14:25:08 UTC (rev 129)
+++ trunk/stats.php 2006-01-14 14:43:39 UTC (rev 130)
@@ -0,0 +1,40 @@
+<?php
+
+/* Copyright 2004
+ * - M�lanie Bats <melanie POINT bats CHEZ utbm POINT fr>
+ * - Thomas Petazzoni <thomas POINT petazzoni CHEZ enix POINT org>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ * 02111-1307, USA.
+ */
+
+include("bd.inc.php");
+include("funcs.inc.php");
+
+$db = new db();
+
+put_header("Agenda du Libre - Statistiques");
+
+echo "<h2>Statistiques</h2>";
+
+$moderated = $db->query ("select count(*) from events where moderated=1");
+$unmoderated = $db->query ("select count(*) from events where moderated=0");
+
+print $moderated . "<br/>";
+print $unmoderated . "<br/>";
+
+put_footer();
+
+?>
\ No newline at end of file





  • [Devel] r130 - trunk, thomas, 14/01/2006

Archives gérées par MHonArc 2.6.16.

Haut de le page