if ($reader && $this->posting) {
$this->execLine('MODE READER');
$this->posting = ($this->lastresultcode == '200');
if ($reader && $this->posting) {
$this->execLine('MODE READER');
$this->posting = ($this->lastresultcode == '200');
- $line = str_replace(array("\r", "\n"), '', $line);
+ $line = str_replace(array("\r", "\n"), '', $line);
$this->lastresulttext = substr($result, 4);
if ($this->debug && $this->bt) {
$trace =& $this->bt[count($this->bt) - 1];
$this->lastresulttext = substr($result, 4);
if ($this->debug && $this->bt) {
$trace =& $this->bt[count($this->bt) - 1];
{
if ($this->execLine("AUTHINFO USER $user", false)) {
return $this->execline("AUTHINFO PASS $pass");
{
if ($this->execLine("AUTHINFO USER $user", false)) {
return $this->execline("AUTHINFO PASS $pass");
/** post a message
* if an error occur, false is returned
* @param $_message STRING message to post
/** post a message
* if an error occur, false is returned
* @param $_message STRING message to post
* @return ARRAY array : nb of articles in group, MSGNUM of first article, MSGNUM of last article, and group name
*/
* @return ARRAY array : nb of articles in group, MSGNUM of first article, MSGNUM of last article, and group name
*/
* same as list, but information are limited to newgroups created after $_since
* @param $_since INTEGER unix timestamp
* same as list, but information are limited to newgroups created after $_since
* @param $_since INTEGER unix timestamp
{
if (!($since = $this->formatDate($since))) {
return false;
}
if (!$this->execLine("NEWGROUPS $since $distributions")) {
return false;
{
if (!($since = $this->formatDate($since))) {
return false;
}
if (!$this->execLine("NEWGROUPS $since $distributions")) {
return false;
return $this->filterGroups();
}
/** gets a list of new articles
* @param $_since INTEGER unix timestamp
return $this->filterGroups();
}
/** gets a list of new articles
* @param $_since INTEGER unix timestamp
/** Tell the remote server that I am not a user client, but probably another news server
* @return BOOLEAN true if sucessful
*/
/** Tell the remote server that I am not a user client, but probably another news server
* @return BOOLEAN true if sucessful
*/
/** implements IHAVE method
* @param $_msgid STRING MSGID of article
* @param $_message STRING article
/** implements IHAVE method
* @param $_msgid STRING MSGID of article
* @param $_message STRING article
- list($group, $desc) = split("[ \t]", $result, 2);
+ @list($group, $desc) = preg_split('/[ \t]/', $result, 2);
/** obtain the header field $hdr for all the messages specified
* @param $_hdr STRING name of the header (eg: 'From')
/** obtain the header field $hdr for all the messages specified
* @param $_hdr STRING name of the header (eg: 'From')
/** obtain the header field $_hdr matching $_pat for all the messages specified
* @param $_hdr STRING name of the header (eg: 'From')
/** obtain the header field $_hdr matching $_pat for all the messages specified
* @param $_hdr STRING name of the header (eg: 'From')