Qual: More log
This commit is contained in:
parent
de9f100968
commit
f028cce39d
@ -25,22 +25,26 @@
|
|||||||
* \brief Script use to update mail status if destinaries read it (if images during mail read are display)
|
* \brief Script use to update mail status if destinaries read it (if images during mail read are display)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
define("NOLOGIN",1); // This means this output page does not require to be logged.
|
if (! defined('NOLOGIN')) define("NOLOGIN",1); // This means this output page does not require to be logged.
|
||||||
define("NOCSRFCHECK",1); // We accept to go on this page from external web site.
|
if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1');
|
||||||
|
if (! defined('NOCSRFCHECK')) define('NOCSRFCHECK','1'); // Do not check anti CSRF attack test
|
||||||
|
if (! defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL','1'); // Do not check anti POST attack test
|
||||||
|
if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU','1'); // If there is no need to load and show top and left menu
|
||||||
|
|
||||||
require '../../main.inc.php';
|
require '../../main.inc.php';
|
||||||
|
|
||||||
$tag=GETPOST('tag');
|
$tag=GETPOST('tag');
|
||||||
$securitykey=GETPOST('securitykey');
|
$securitykey=GETPOST('securitykey');
|
||||||
|
|
||||||
//if (empty($conf->global->MAILING_EMAIL_UNSUBSCRIBE)) accessforbidden('Option not enabled');
|
|
||||||
if ($securitykey != $conf->global->MAILING_EMAIL_UNSUBSCRIBE) accessforbidden('Bad security key value.');
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
dol_syslog("public/emailing/mailing-read.php : tag=".$tag." securitykey=".$securitykey, LOG_DEBUG);
|
||||||
|
|
||||||
|
if ($securitykey != $conf->global->MAILING_EMAIL_UNSUBSCRIBE) accessforbidden('Bad security key value.');
|
||||||
|
|
||||||
if (! empty($tag))
|
if (! empty($tag))
|
||||||
{
|
{
|
||||||
$statut='2';
|
$statut='2';
|
||||||
@ -64,4 +68,4 @@ if (! empty($tag))
|
|||||||
}
|
}
|
||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
?>
|
?>
|
||||||
@ -25,8 +25,9 @@
|
|||||||
* \brief Script use to update unsubcribe contact to prospect mailing list
|
* \brief Script use to update unsubcribe contact to prospect mailing list
|
||||||
*/
|
*/
|
||||||
|
|
||||||
define("NOLOGIN",1); // This means this output page does not require to be logged.
|
if (! defined('NOLOGIN')) define("NOLOGIN",1); // This means this output page does not require to be logged.
|
||||||
define("NOCSRFCHECK",1); // We accept to go on this page from external web site.
|
if (! defined('NOCSRFCHECK')) define('NOCSRFCHECK','1'); // Do not check anti CSRF attack test
|
||||||
|
if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU','1'); // If there is no need to load and show top and left menu
|
||||||
|
|
||||||
require '../../main.inc.php';
|
require '../../main.inc.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
|
||||||
@ -38,14 +39,18 @@ $langs->load("mails");
|
|||||||
|
|
||||||
$tag=GETPOST('tag');
|
$tag=GETPOST('tag');
|
||||||
$unsuscrib=GETPOST('unsuscrib');
|
$unsuscrib=GETPOST('unsuscrib');
|
||||||
|
$securitykey=GETPOST('securitykey');
|
||||||
if (empty($conf->global->MAILING_EMAIL_UNSUBSCRIBE)) accessforbidden('Option not enabled');
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
dol_syslog("public/emailing/mailing-read.php : tag=".$tag." securitykey=".$securitykey, LOG_DEBUG);
|
||||||
|
|
||||||
|
if ($securitykey != $conf->global->MAILING_EMAIL_UNSUBSCRIBE) accessforbidden('Bad security key value.');
|
||||||
|
|
||||||
|
|
||||||
if (($tag!='') && ($unsuscrib=='1'))
|
if (($tag!='') && ($unsuscrib=='1'))
|
||||||
{
|
{
|
||||||
//Udate status of mail in Destinaries maling list
|
//Udate status of mail in Destinaries maling list
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user