From 3918335bf7050acec2bf14f90c609e1e7e734785 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 28 Apr 2012 15:32:48 +0200 Subject: [PATCH] No new feature into a beta. Also this feature is a security hole for the moment, so it should not be enabled as a common default feautre but must be kept hidden. --- htdocs/admin/mailing.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/htdocs/admin/mailing.php b/htdocs/admin/mailing.php index 4aa0ea209f7..a66eb7509a8 100644 --- a/htdocs/admin/mailing.php +++ b/htdocs/admin/mailing.php @@ -41,17 +41,17 @@ $action = GETPOST('action','alpha'); if ($action == 'setvalue' && $user->admin) { $db->begin(); - + $mailfrom = GETPOST('MAILING_EMAIL_FROM','alpha'); $mailerror = GETPOST('MAILING_EMAIL_ERRORSTO','alpha'); - + $res=dolibarr_set_const($db, "MAILING_EMAIL_FROM",$mailfrom,'chaine',0,'',$conf->entity); if (! $res > 0) $error++; $res=dolibarr_set_const($db, "MAILING_EMAIL_ERRORSTO",$mailerror,'chaine',0,'',$conf->entity); if (! $res > 0) $error++; $res=dolibarr_set_const($db, "MAILING_EMAIL_UNSUBSCRIBE",$checkread,'chaine',0,'',$conf->entity); if (! $res > 0) $error++; - + if (! $error) { $db->commit(); @@ -103,6 +103,7 @@ print ''; +/* $var=!$var; print ''; print $langs->trans("ActivateCheckRead").''; @@ -119,14 +120,14 @@ else print ''; } print ''; - +*/ print ''; print ''; -$db->close(); llxFooter(); +$db->close(); ?>