Re: [phpwiki-checkins] SF.net SVN: phpwiki:[6598] trunk/lib/MailNotify.php

Marc-Etienne Vargenau <[email protected]> Mon, 02 Mar 2009 15:04:11 +0100
Newsgroups gmane.comp.web.wiki.phpwiki.talk
Organization Alcatel-Lucent (CTO/RDEI/SRA)
Message-ID <[email protected]>
Reini Urban a écrit :
> 2009/2/27  <[email protected]>:
>> Revision: 6598
>>          http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6598&view=rev
>> Author:   vargenau
>> Date:     2009-02-27 12:54:19 +0000 (Fri, 27 Feb 2009)
>>
>> Log Message:
>> -----------
>> Disable verification of emails for corporate env.
> 
> Good.
> Sending emails should be disabled for certain environments.
> But we already have this key: ENABLE_MAILNOTIFY = false
> 
> Please use this instead.
> 
>> +        // Disable verification of emails for corporate env.
>> +        if (defined('GFORGE') and GFORGE) {
>> +            $doverify = false;
>> +        }

Hello Reini,

ENABLE_MAILNOTIFY controls the fact that mails are sent or not.

In Gforge, what my above code does is to disable the verification
of the fact that the e-mail address is correct. When a user
registers in Gforge, the e-mail address is verified, so it is
not necesssary to do the check once again in Phpwiki.

Best regards,

Marc-Etienne

-- 
Marc-Etienne Vargenau
Alcatel-Lucent France, Route de Villejust, 91620 NOZAY, FRANCE
+33 (0)1 30 77 28 33, [email protected]

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H