Mercurial > hg > pnewss
comparison reloadarticle.php @ 13:cccd73f72bf6 draft
Added filtering support and several bugfixes
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Thu, 10 Jul 2014 22:26:45 +0200 |
parents | 005339a1b2ce |
children |
comparison
equal
deleted
inserted
replaced
12:7917bd536187 | 13:cccd73f72bf6 |
---|---|
43 $code = strtok($line, " \t"); | 43 $code = strtok($line, " \t"); |
44 if ($code != 220) die("Error code $code\n"); | 44 if ($code != 220) die("Error code $code\n"); |
45 strtok(" \t"); //article number | 45 strtok(" \t"); //article number |
46 $lines = nntp_readlines($socket); | 46 $lines = nntp_readlines($socket); |
47 nntp_article_store($lines); | 47 nntp_article_store($lines); |
48 nntp_writeline($socket, 'QUIT'); | |
49 nntp_readline($socket); | |
50 fclose($socket); | |
48 | 51 |
49 function writelog($line) { | 52 function writelog($line) { |
50 print($line."\n"); | 53 print($line."\n"); |
51 } | 54 } |