[geeklog-cvs] Geeklog-1.x/public_html lib-common.php,1.683,1.684
Dirk Haun
dhaun at qs1489.pair.com
Sat Mar 8 11:53:00 EST 2008
Update of /cvsroot/geeklog/Geeklog-1.x/public_html
In directory qs1489.pair.com:/tmp/cvs-serv61033/public_html
Modified Files:
lib-common.php
Log Message:
Added an X-Originating-IP header to emails sent from Geeklog
Index: lib-common.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/lib-common.php,v
retrieving revision 1.683
retrieving revision 1.684
diff -C2 -d -r1.683 -r1.684
*** lib-common.php 5 Mar 2008 07:49:46 -0000 1.683
--- lib-common.php 8 Mar 2008 16:52:58 -0000 1.684
***************
*** 3249,3252 ****
--- 3249,3257 ----
$headers['X-Mailer'] = 'Geeklog ' . VERSION;
+ if (!empty($_SERVER['REMOTE_ADDR']) && !empty($_SERVER['SERVER_ADDR']) &&
+ ($_SERVER['REMOTE_ADDR'] != $_SERVER['SERVER_ADDR'])) {
+ $headers['X-Originating-IP'] = $_SERVER['REMOTE_ADDR'];
+ }
+
$retval = $mailobj->send( $to, $headers, $message );
if( $retval !== true )
More information about the geeklog-cvs
mailing list