Current time: 11-22-2024, 03:47 PM Hello There, Guest! (LoginRegister)


Post Reply 
PWD Changer @RC7 and Rouncube 0.2 Stable
Author Message
Top44 Offline
Member
***

Posts: 271
Joined: Sep 2007
Reputation: 1
Post: #1
PWD Changer @RC7 and Rouncube 0.2 Stable
// 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..
(This post was last modified: 02-27-2009 11:28 PM by BeNe.)
02-24-2009 12:58 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
PWD Changer @RC7 and Rouncube 0.2 Stable - Top44 - 02-24-2009 12:58 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)