View Single Post
  #6  
Old 14th October 2009, 12:46
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

Ok I tried this simple PHP script and is working:
Code:
<?php
$password = crypt('password' , '$1$my@email$');
print $password . " is the CRYPT-MD5 version of mypassword<br>";
?>
Basically I've copied the result of this script and paste into the dbispconfig database, and is working.
The problem now is to add this script to the Roundcube plugin.

I tried to add something like that:
Code:
$passwd = crypt(%p , %u);
$rcmail_config['password_query'] = 'UPDATE mail_user SET password=$passwd WHERE email=%u LIMIT 1';
but I've have an error (white screen).

Any suggestion?
Thanks
Michele
Reply With Quote