// EDIT
Please use the Wiki Version --> http://www.isp-control.net/documentation...or_webmail
BeNe
An installation of Roundcube is required.
First login to yout mysql :
Quote:mysql -u root -p
And do this :
Quote:GRANT SELECT (`mail_addr`), UPDATE (`mail_pass`, `status`) ON `ispcp`.`mail_users` TO 'roundcube'@'localhost';
FLUSH PRIVILEGES;
Then open save_prefs.inc
Quote:/webmail/program/steps/settings/save_prefs.inc
// Zeile 2 nach <?php einfügen :
// Line 2 after <?php add:
Quote:define('INCLUDEPATH', '../../include/');
require(INCLUDEPATH . '/ispcp-config.php');
require(INCLUDEPATH . '/ispcp-db-keys.php');
require(INCLUDEPATH . '/ispcp-functions.php');
and
// Zeile 34 nach 'prefer_html' => isset($_POST['_prefer_html']) ? TRUE : FALSE, einfügen :
// Line 34 after 'prefer_html' => isset($_POST['_prefer_html']) ? TRUE : FALSE, add :
Quote:'password' => isset($_POST['_password']) ? TRUE : FALSE,
and
// Zeile 60 nach $a_user_prefs[$p] = $CONFIG[$p]; einfügen :
// Line 60 after $a_user_prefs[$p] = $CONFIG[$p]; add:
Quote:if (isset($_POST['_password']) && $_POST['_password']!="")
{
$tmpPass = $_POST['_password'];
$tmpUser = $_SESSION['username'];
$encPass = encrypt_db_password($tmpPass);
mysql_query("UPDATE ispcp.mail_users SET mail_pass='$encPass', status='change' WHERE mail_addr='$tmpUser'")
or die(mysql_error());
send_request();
}
Done on this file.
Next open func.inc
Quote://webmail/programs/steps/settings/func.inc
// Zeile 158 nach $table->add(null, $input_skin->show($config['skin']));
// }
// } <--Auf die Beiden Klammern Aufpassen!
// einfügen :
// Line 158 after $table->add(null, $input_skin->show($config['skin']));
// }
// } <--make sure you Paste it behind the brackets !
// add :
Quote:$field_id = 'rcmfd_password';
$input_password = new html_inputfield(array('name' => '_password', 'id' => $field_id, 'size' => 20));
$table->add('title', html::label($field_id, /*Q(rcube_label('skin'))*/ 'Password'));
$table->add(null, $input_password->show());
// End Password MOD
I Hope that´s all and i dont miss anything..