/*********************************************************
** Class password reminder
**
** Author.: leapinglangoor [ leapinglangoor@yahoo.co.in ]
** Date...: 23rd June 2004
** Version: v2.3
**
** Descreption: Ok, all this class does is use the passed
** email, $email and send the passwd to the id
** afer checking it exists.
**
**********************************************************/
class reminder
{
var $mailer['from'] = 'someone@somwhere.tld';
var $db['host'] = 'localhost';
var $db['user'] = 'root';
var $db['pass'] = '';
var $db['db'] = 'users';
var $db['table'] = 'user_info';
var $db['field_passwd'] = 'password'; // Specify the name of the field in the table corresponding to the password field.
var $db['field_email'] = 'email'; // Same as above only for the email
function remind( $email )
{
@mysql_connect( $this->db['host'], $this->db['user'], $this->db['pass'] ) or die( 'Cant connect' );
@mysql_select_db( $this->db['db'] ) or die( 'No db' );
$sql = "SELECT `$this->db['field_passwd']` FROM `$this->db['table']` WHERE `$this->db['field_email']` = `$email`";
$result = mysql_query( $sql ) or die( 'Cant query' );