Make displaying domain in footer optional
This commit is contained in:
parent
1d2c080577
commit
be5555a010
|
@ -263,7 +263,8 @@ function message_post($subject,$from,$newsgroups,$ref,$body,$encryptthis,$encryp
|
||||||
fputs($ns,'Organization: '.quoted_printable_encode($CONFIG['organization'])."\r\n");
|
fputs($ns,'Organization: '.quoted_printable_encode($CONFIG['organization'])."\r\n");
|
||||||
$body=trim($body);
|
$body=trim($body);
|
||||||
if ((isset($CONFIG['postfooter'])) && ($CONFIG['postfooter']!="")) {
|
if ((isset($CONFIG['postfooter'])) && ($CONFIG['postfooter']!="")) {
|
||||||
$body.="\n-- \n".$CONFIG['postfooter']."\n".$_SERVER['HTTP_HOST'];
|
$postfooter = preg_replace('/\{DOMAIN\}/', "\n".$_SERVER['HTTP_HOST'], $CONFIG['postfooter']);
|
||||||
|
$body.="\n-- \n".$postfooter;
|
||||||
}
|
}
|
||||||
fputs($ns,'Message-ID: '.$msgid."\r\n");
|
fputs($ns,'Message-ID: '.$msgid."\r\n");
|
||||||
$body=str_replace("\n.\r","\n..\r",$body);
|
$body=str_replace("\n.\r","\n..\r",$body);
|
||||||
|
|
Loading…
Reference in New Issue