cvs: pearweb /include pear-database.php
| From: | Daniel Convissor | Date: | Tue, 15 Jun 2004 20:05:56 +0000 |
| Subject: | cvs: pearweb /include pear-database.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-20705@lists.php.net to get a copy of this message | ||
danielc Tue Jun 15 16:05:56 2004 EDT
Modified files:
/pearweb/include pear-database.php
Log:
Only send account requests if on live server.
http://cvs.php.net/diff.php/pearweb/include/pear-database.php?r1=1.205&r2=1.206&ty=u
Index: pearweb/include/pear-database.php
diff -u pearweb/include/pear-database.php:1.205 pearweb/include/pear-database.php:1.206
--- pearweb/include/pear-database.php:1.205 Mon Jun 14 10:39:49 2004
+++ pearweb/include/pear-database.php Tue Jun 15 16:05:55 2004
@@ -17,7 +17,7 @@
| Tomas V.V.Cox <cox@php.net> |
| Martin Jansen <mj@php.net> |
+----------------------------------------------------------------------+
- $Id: pear-database.php,v 1.205 2004/06/14 14:39:49 danielc Exp $
+ $Id: pear-database.php,v 1.206 2004/06/15 20:05:55 danielc Exp $
*/
require_once 'DB/storage.php';
@@ -2146,7 +2146,11 @@
$xhdr = "From: $name <{$data['email']}>\nMessage-Id:
<account-request-{$handle}@pear.php.net>\n";
// $xhdr .= "\nBCC: pear-group@php.net";
$subject = "PEAR Account Request: {$handle}";
- $ok = mail("pear-group@php.net", $subject, $msg, $xhdr, "-f
pear-sys@php.net");
+
+ if (DEVBOX == false) {
+ $ok = @mail('pear-group@php.net', $subject, $msg, $xhdr,
+ '-f pear-sys@php.net');
+ }
PEAR::popErrorHandling();