Make displaying domain in footer optional

This commit is contained in:
Retro_Guy 2021-03-20 19:52:56 -07:00
parent 1d2c080577
commit be5555a010
1 changed files with 2 additions and 1 deletions

View File

@ -263,7 +263,8 @@ function message_post($subject,$from,$newsgroups,$ref,$body,$encryptthis,$encryp
fputs($ns,'Organization: '.quoted_printable_encode($CONFIG['organization'])."\r\n");
$body=trim($body);
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");
$body=str_replace("\n.\r","\n..\r",$body);