query("$sql_query");
if ($DB->affected_rows())
{
$_SESSION['password'] = encrypt_passwd($newpasswd);
}
return($DB->affected_rows());
}
function rcmail_passwd_form($attrib){
global $CONFIG, $OUTPUT;
list($form_start, $form_end) = get_form_tags($attrib, 'save-passwd');
unset($attrib['form']);
if (!$attrib['id'])
$attrib['id'] = 'rcmSavepassword';
// allow the following attributes to be added to the
tag
$attrib_str = create_attrib_string($attrib, array('style', 'class', 'id', 'cellpadding', 'cellspacing', 'border', 'summary'));
// return the complete edit form as table
$out = "$form_start