Skip to content

Commit

Permalink
Added news_createuser().
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 11, 2002
1 parent 0aa5b49 commit 0246520
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions php_interface/IcculusNews.php
Expand Up @@ -466,4 +466,15 @@ function news_parse_rdf($filename, &$digestarray, $max_items = 5)
return(NULL); // no error.
} // news_parse_rdf


function news_createuser($sock, $uname, $email, $pword)
{
fputs($sock, "CREATEUSER \"$uname\" \"$email\" \"$pword\"\n");
$in = fgets($sock, 4096);
if ($in{0} != '+')
return(substr($in, 2));

return(NULL); // no error.
} // news_noop

?>

0 comments on commit 0246520

Please sign in to comment.