[geeklog-cvs] geeklog-1.3/plugins/spamx MailAdmin.Action.class.php,1.7,1.8
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Tue Mar 22 03:59:49 EST 2005
Update of /var/cvs/geeklog-1.3/plugins/spamx
In directory www:/tmp/cvs-serv887
Modified Files:
MailAdmin.Action.class.php
Log Message:
Add a list of request headers to the email notification
Index: MailAdmin.Action.class.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/plugins/spamx/MailAdmin.Action.class.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** MailAdmin.Action.class.php 26 Jan 2005 10:18:26 -0000 1.7
--- MailAdmin.Action.class.php 22 Mar 2005 08:59:47 -0000 1.8
***************
*** 41,53 ****
}
$uid .= '@' . $_SERVER['REMOTE_ADDR'];
! $msg = sprintf($LANG_SX00['emailmsg'], $_CONF['site_name'], $uid, $comment);
$subject = sprintf ($LANG_SX00['emailsubject'], $_CONF['site_name']);
! COM_mail($_SPX_CONF['notification_email'], $subject, $msg);
$result = 8;
! SPAMX_log('Mail Sent to Admin');
return 0;
! }
! }
?>
--- 41,68 ----
}
$uid .= '@' . $_SERVER['REMOTE_ADDR'];
! $msg = sprintf ($LANG_SX00['emailmsg'],
! $_CONF['site_name'], $uid, $comment);
!
! $msg .= "\n\nRequest headers:\n";
! if (function_exists ('getallheaders')) {
! $headers = getallheaders ();
! foreach ($headers as $key => $content) {
! $msg .= $key . ': ' . $content . "\n";
! }
! } else {
! foreach ($_SERVER as $key => $content) {
! if (substr ($key, 0, 4) == 'HTTP') {
! $msg .= $key . ': ' . $content . "\n";
! }
! }
! }
$subject = sprintf ($LANG_SX00['emailsubject'], $_CONF['site_name']);
! COM_mail ($_SPX_CONF['notification_email'], $subject, $msg);
$result = 8;
! SPAMX_log ('Mail Sent to Admin');
return 0;
! }
! }
?>
More information about the geeklog-cvs
mailing list