<?php
/*
* PHP popassd client.
*
* This class allow PHP communicate witha PopPass server and changes the password
* of mail users.
*
* The author disclaims the copyright over this class.
*
* Cesar D. Rodas
* saddor@gmail.com
*/
include("poppassd.php");
$c = new poppassd("crodas","actual_password","new_password", "server.url.or.ip.com");
$err = $c->changePasswd();
if ($err != PASS_CHANGED){
echo "Error: ".$c->errorMessage($err);
} else {
echo "Password changed!";
}
?>
|