Skip to content

Commit

Permalink
Added news_changepassword().
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 12, 2002
1 parent 331ebb0 commit fa41122
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion php_interface/IcculusNews.php
Expand Up @@ -475,6 +475,17 @@ function news_createuser($sock, $uname, $email, $pword)
return(substr($in, 2));

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


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

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

?>

0 comments on commit fa41122

Please sign in to comment.