Skip to content

Commit

Permalink
Support for new DIGEST syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 18, 2002
1 parent 6b74b4c commit 3ea0cbd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions php_interface/IcculusNews.php
Expand Up @@ -148,9 +148,12 @@ function news_get_userinfo($sock, &$uid, &$qid)
// as...anonymous logins will only get approved, non-deleted items, for
// example.
//
function news_digest($sock, &$digestarray, $maxitems = 5)
function news_digest($sock, &$digestarray, $startpoint = false, $maxitems = 5)
{
fputs($sock, "DIGEST $maxitems\n");
if ($startpoint === false)
$startpoint = '-';

fputs($sock, "DIGEST $startpoint $maxitems\n");
$in = fgets($sock, 4096);
if ($in{0} != '+')
return(substr($in, 2));
Expand Down

0 comments on commit 3ea0cbd

Please sign in to comment.