cvs: pearweb /public_html account-request.php

From: Date: Mon, 16 Oct 2006 19:59:30 +0000
Subject: cvs: pearweb /public_html account-request.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-42592@lists.php.net to get a copy of this message
arnaud Mon Oct 16 19:59:30 2006 UTC Modified files: /pearweb/public_html account-request.php Log: do not send mail on devboxes http://cvs.php.net/viewvc.cgi/pearweb/public_html/account-request.php?r1=1.63&r2=1.64&diff_format=u Index: pearweb/public_html/account-request.php diff -u pearweb/public_html/account-request.php:1.63 pearweb/public_html/account-request.php:1.64 --- pearweb/public_html/account-request.php:1.63 Sat Oct 14 16:23:25 2006 +++ pearweb/public_html/account-request.php Mon Oct 16 19:59:30 2006 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: account-request.php,v 1.63 2006/10/14 16:23:25 arnaud Exp $ + $Id: account-request.php,v 1.64 2006/10/16 19:59:30 arnaud Exp $ */ define('HTML_FORM_TH_ATTR', 'class="form-label_left"'); @@ -96,9 +96,12 @@ 'firstname' => $stripped['firstname'], 'lastname' => $stripped['lastname'], ); - $mailer = Damblan_Mailer::create('pearweb_account_request', $mailData); - $additionalHeaders['To'] = '"Arnaud Limbourg" <arnaud@limbourg.com>'; - $mailer->send($additionalHeaders); + + if (!DEVBOX) { + $mailer = Damblan_Mailer::create('pearweb_account_request', $mailData); + $additionalHeaders['To'] = '"Arnaud Limbourg" <arnaud@limbourg.com>'; + $mailer->send($additionalHeaders); + } } elseif ($ok === false) { $msg = 'Your account request has been submitted, but there' . ' were problems mailing one or more administrators.'

« previous php.pear.cvs (#42592) next »