[Trivialibre] r361 - trivialibre/trunk

trivialibre at enix.org trivialibre at enix.org
Mer 28 Juin 22:01:51 CEST 2006


Author: thomas
Date: Wed Jun 28 22:01:48 2006
New Revision: 361

Added:
   trivialibre/trunk/email-list.php

Log:

 * email-list.php:

  - Ajout d'une page réservée aux modérateurs permettant de récupérer
    la liste des adresse e-mails.



Added: trivialibre/trunk/email-list.php
==============================================================================
--- (empty file)
+++ trivialibre/trunk/email-list.php	Wed Jun 28 22:01:48 2006
@@ -0,0 +1,49 @@
+<?php
+
+/* Copyright 2006
+ * - 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.
+ */
+
+require('bd.inc.php');
+require('common.inc.php');
+require('session.inc.php');
+
+$db = new db();
+if (! user_identify($db))
+  exit;
+
+if (! isset ($_GET['id']))
+{
+  header_show();
+  echo "<h1>Suppression</h1>";
+  echo "<p>ID invalide</p>";
+  footer_show();
+  exit;
+}
+
+header_show();
+
+$result = $db->query ("select author_email from tvl_questions group by author_email");
+while ($item = mysql_fetch_object($result))
+{
+  echo $item->author_email . ",";
+}
+
+footer_show();
+
+?>
\ No newline at end of file


Plus d'informations sur la liste de diffusion Trivialibre