diff --git a/htdocs/admin/adherent.php b/htdocs/admin/adherent.php
index 41c21081277..f135aa8e6e7 100644
--- a/htdocs/admin/adherent.php
+++ b/htdocs/admin/adherent.php
@@ -40,12 +40,12 @@ $main_use_spip_auto = ADHERENT_USE_SPIP_AUTO;
$typeconst=array('yesno','texte','chaine');
$var=True;
-if ($HTTP_POST_VARS["action"] == 'update' || $HTTP_POST_VARS["action"] == 'add')
+if ($_POST["action"] == 'update' || $_POST["action"] == 'add')
{
- if (isset($HTTP_POST_VARS["consttype"]) && $HTTP_POST_VARS["consttype"] != ''){
- $sql = "REPLACE INTO ".MAIN_DB_PREFIX."const SET name='".$_POST["constname"]."', value = '".$HTTP_POST_VARS["constvalue"]."',note='".$HTTP_POST_VARS["constnote"]."', type='".$typeconst[$HTTP_POST_VARS["consttype"]]."',visible=0";
+ if (isset($_POST["consttype"]) && $_POST["consttype"] != ''){
+ $sql = "REPLACE INTO ".MAIN_DB_PREFIX."const SET name='".$_POST["constname"]."', value = '".$_POST["constvalue"]."',note='".$_POST["constnote"]."', type='".$typeconst[$_POST["consttype"]]."',visible=0";
}else{
- $sql = "REPLACE INTO ".MAIN_DB_PREFIX."const SET name='".$_POST["constname"]."', value = '".$HTTP_POST_VARS["constvalue"]."',note='".$HTTP_POST_VARS["constnote"]."',visible=0";
+ $sql = "REPLACE INTO ".MAIN_DB_PREFIX."const SET name='".$_POST["constname"]."', value = '".$_POST["constvalue"]."',note='".$_POST["constnote"]."',visible=0";
}
if ($db->query($sql))
@@ -89,21 +89,15 @@ llxHeader();
*/
print_titre("Gestion des adhérents : Configurations de parametres");
+print "
";
/*
* Mailman
*/
-print '
| Mailman | Système de mailing listes"; -print ' | ';
-
if (defined("ADHERENT_USE_MAILMAN") && ADHERENT_USE_MAILMAN == 1)
{
- print ' ';
- print " | \n"; - print 'désactiver'; - print ' |
';
+ $lien.='désactiver';
// Edition des varibales globales rattache au theme Mailman
$constantes=array('ADHERENT_MAILMAN_LISTS',
'ADHERENT_MAILMAN_LISTS_COTISANT',
@@ -112,65 +106,48 @@ if (defined("ADHERENT_USE_MAILMAN") && ADHERENT_USE_MAILMAN == 1)
'ADHERENT_MAILMAN_UNSUB_URL',
'ADHERENT_MAILMAN_URL'
);
+ print_fiche_titre("Mailman - Système de mailing listes",$lien);
form_constantes($constantes);
}
else
{
- print " ";
- print "| Gestion Banquaire | Gestion banquaire des adherents"; -print ' | ';
-
if (defined("ADHERENT_BANK_USE") && ADHERENT_BANK_USE == 1)
{
- print ' ';
- print " | \n"; - print 'désactiver'; - print ' |
';
+ $lien.='désactiver';
// Edition des varibales globales rattache au theme Mailman
$constantes=array('ADHERENT_BANK_USE_AUTO',
'ADHERENT_BANK_ACCOUNT',
'ADHERENT_BANK_CATEGORIE'
);
+ print_fiche_titre("Gestion banquaire des adherents",$lien);
form_constantes($constantes);
}
else
{
- print " ";
- print "| Spip | Système de publication en ligne"; -print ' | ';
-
if (defined("ADHERENT_USE_SPIP") && ADHERENT_USE_SPIP == 1)
{
- print ' ';
- print " | \n"; - print 'désactiver'; - print ' |
';
+ $lien.='désactiver';
// Edition des varibales globales rattache au theme Mailman
$constantes=array('ADHERENT_USE_SPIP_AUTO',
'ADHERENT_SPIP_SERVEUR',
@@ -178,59 +155,45 @@ if (defined("ADHERENT_USE_SPIP") && ADHERENT_USE_SPIP == 1)
'ADHERENT_SPIP_USER',
'ADHERENT_SPIP_PASS'
);
+ print_fiche_titre("SPIP - Système de publication en ligne",$lien);
form_constantes($constantes);
}
else
{
- print " ";
- print "| Glasnost | Système de vote en ligne"; -print ' | ';
-
if (defined("ADHERENT_USE_GLASNOST") && ADHERENT_USE_GLASNOST == 1)
{
- print ' ';
- print " | \n"; - print 'désactiver'; - print ' |
';
+ $lien.='désactiver';
// Edition des varibales globales rattache au theme Mailman
$constantes=array('ADHERENT_USE_GLASNOST_AUTO',
'ADHERENT_GLASNOST_SERVEUR',
'ADHERENT_GLASNOST_USER',
'ADHERENT_GLASNOST_PASS'
);
+ print_fiche_titre("Glasnost - Système de vote en ligne",$lien);
form_constantes($constantes);
}
else
{
- print " ";
- print "| Variables globales | Variables globales non rattachées a un thème"; -print ' |
Attention, pour la récupération des données au format RSS, les urls en https ne marchent pas pour l'instant.
-Exemples: -
Attention, pour la récupération des données au format RSS, les urls en https ne marchent pas pour l'instant.
+Exemples:Attention, pour la r