Is it possible to use this plug-in without cpanel?
I've been applying the patch without using cPanel, but I'm still working with the password plugin because I had some problems.
It's no so difficult to change the password, I removed the lines which refers to cPanel and added a query to my database (mysql) in password.inc file:
$cons =
"UPDATE " . $rcmail_config['mydb_table_users'] .
" SET password=. crypt($new_password).
"\" WHERE email=\"" . $_SESSION['username'] ."\";" ;
$link=mysql_connect('localhost',$rcmail_config['mydb_user'],$rcmail_config['mydb_password']);
mysql_select_db($rcmail_config['mydb_db_name'],$link) or die("Error al abrir la Base de Datos");
mysql_query($cons,$link);
mysql_close($link);It's also necessary to create a new file named mydb.inc.php into config folder and fill it with the info of your database, the variables will be similar to the db.inc.php ones. After that, include this file in the beginning of password.inc.
This updates the database perfectly but there's some problem after that, because user logs out. I think it's a problem of this line, [FONT="Courier New]$_SESSION['password'] = encrypt_password($new_password);[/FONT] , but I don't find the problem and I'm almost sure it is not related to the cPanel.
any idea?
Thanks