I think the following code in include/email.php has a silly mistake. The strtoupper should include only the substr statement, not also the os platform. Maybe better to use Switch statement.
// Detect what linebreak we should use for the headers
if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN'))
$eol = "\r\n";
else if (strtoupper(substr(PHP_OS, 0, 3) == 'MAC'))
$eol = "\r";
else
$eol = "\n";
and one question in register.php:
I see this line of code in several places for writing the mail template.
$mail_subject = trim(substr($mail_tpl, 8, $first_crlf-8));
Why does it minus 8 with $first_crlf? I don't understand. Isn't it supposed to take the whole subject line minus 'Subject: '?
thanks.