Add X-Rslight-Posting-User to outgoing messages
This commit is contained in:
parent
6c4b8a07e1
commit
bb82443224
|
@ -265,6 +265,7 @@ function message_post($subject,$from,$newsgroups,$ref,$body,$encryptthis=null,$e
|
|||
fputs($ns,'Newsgroups: '.$newsgroups."\r\n");
|
||||
$sitekey=password_hash($CONFIG['thissitekey'].$msgid, PASSWORD_DEFAULT);
|
||||
fputs($ns,'X-Rslight-Site: '.$sitekey."\r\n");
|
||||
fputs($ns,'X-Rslight-Posting-User: '.hash('sha1', $from.$CONFIG['thissitekey'])."\r\n");
|
||||
if(isset($encryptthis)) {
|
||||
fputs($ns,'X-Rslight-To: '.$encryptto."\r\n");
|
||||
$CONFIG['postfooter']="";
|
||||
|
@ -367,6 +368,7 @@ function message_post_with_attachment($subject,$from,$newsgroups,$ref,$body,$enc
|
|||
}
|
||||
$sitekey=password_hash($CONFIG['thissitekey'].$msgid, PASSWORD_DEFAULT);
|
||||
fputs($ns,'X-Rslight-Site: '.$sitekey."\r\n");
|
||||
fputs($ns,'X-Rslight-Posting-User: '.hash('sha1', $from.$CONFIG['thissitekey'])."\r\n");
|
||||
if(isset($encryptthis))
|
||||
fputs($ns,'X-Rslight-To: '.$encryptto."\r\n");
|
||||
fputs($ns,'From: '.$from."\r\n");
|
||||
|
|
Loading…
Reference in New Issue