mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-27 17:00:52 +01:00
Merge branch 'master' of github.com:vichan-devel/Tinyboard
This commit is contained in:
commit
3f38a6db97
@ -64,7 +64,9 @@ function gen_nntp($headers, $files) {
|
||||
}
|
||||
|
||||
function nntp_publish($msg, $id) {
|
||||
$s = fsockopen("tcp://localhost:1119");
|
||||
global $config;
|
||||
$server = $config["nntpchan"]["server"];
|
||||
$s = fsockopen("tcp://$server");
|
||||
fgets($s);
|
||||
fputs($s, "MODE STREAM\r\n");
|
||||
fgets($s);
|
||||
@ -72,6 +74,7 @@ function nntp_publish($msg, $id) {
|
||||
fputs($s, $msg);
|
||||
fputs($s, "\r\n.\r\n");
|
||||
fgets($s);
|
||||
fputs($s, "QUIT\r\n");
|
||||
fclose($s);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user