Improve headers to make it easier to filter site or users.
This commit is contained in:
parent
1016318b76
commit
01bcdc9ef5
|
@ -500,9 +500,11 @@ function message_post($subject, $from, $newsgroups, $ref, $body, $encryptthis =
|
|||
fputs($ns, 'Followup-To: ' . $followupto . "\r\n");
|
||||
}
|
||||
fputs($ns, 'Newsgroups: ' . $newsgroups . "\r\n");
|
||||
$sitekey = password_hash($CONFIG['thissitekey'] . $msgid, PASSWORD_DEFAULT);
|
||||
$sitekey = hash('sha1', $CONFIG['thissitekey'] . $_SERVER['HTTP_HOST']);
|
||||
$posting_user = hash('sha1', $from . $CONFIG['thissitekey'] . $_SERVER['HTTP_HOST']);
|
||||
fputs($ns, 'X-Rslight-Site: ' . $sitekey . "\r\n");
|
||||
fputs($ns, 'X-Rslight-Posting-User: ' . hash('sha1', $from . $_SERVER['HTTP_HOST'] . $CONFIG['thissitekey']) . "\r\n");
|
||||
fputs($ns, 'X-Rslight-Posting-User: ' . $posting_user . "\r\n");
|
||||
fputs($ns, "X-How-To-Filter: Use 'X-Rslight-Site' to filter SITE or 'X-Rslight-Posting-User' to filter USER\r\n");
|
||||
if (isset($encryptthis)) {
|
||||
fputs($ns, 'X-Rslight-To: ' . $encryptto . "\r\n");
|
||||
$CONFIG['postfooter'] = "";
|
||||
|
|
Loading…
Reference in New Issue