diff --git a/htdocs/admin/adherent.php b/htdocs/admin/adherent.php new file mode 100644 index 00000000000..c5bebff80f0 --- /dev/null +++ b/htdocs/admin/adherent.php @@ -0,0 +1,108 @@ + + * + * 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. + * + * $Id$ + * $Source$ + */ +require("./pre.inc.php"); + +llxHeader(); + +if (!$user->admin) +{ + print "Forbidden"; + llxfooter(); + exit; +} + +$db = new Db(); + +// positionne la variable pour le test d'affichage de l'icone + +$adh_use_mailman = ADH_USE_MAILMAN; + + +if ($action == 'setmailman') +{ + $sql = "REPLACE INTO llx_const SET name = 'ADH_USE_MAILMAN', value='".$value."', visible=0"; + + if ($db->query($sql)) + { + $adh_use_mailman = 1; + } +} + +if ($action == 'unsetmailman') +{ + $sql = "DELETE FROM llx_const WHERE name = 'ADH_USE_MAILMAN'"; + + if ($db->query($sql)) + { + $adh_use_mailman = 0; + } +} + + +/* + * PDF + */ + +print_titre("Gestion des adhérents"); + +print '
| Modules externes | |||
| Nom | '; +print 'Info | '; +print 'Activé | '; +print ''; +print " |
| Mailman | Système de mailing listes'; + +print ' | ';
+
+if ($adh_use_mailman == 1)
+{
+ print ' ';
+}
+else
+{
+ print " ";
+}
+
+print " | \n"; + +if ($adh_use_mailman == 0) +{ + print 'activer'; +} +else +{ + print 'désactiver'; +} +print ' |