|
|
@ -282,24 +282,23 @@ class password extends rcube_plugin
|
|
|
|
'class' => 'button mainaction submit',
|
|
|
|
'class' => 'button mainaction submit',
|
|
|
|
'label' => 'save',
|
|
|
|
'label' => 'save',
|
|
|
|
));
|
|
|
|
));
|
|
|
|
$form_buttons = html::p(array('class' => 'formbuttons'), $submit_button);
|
|
|
|
$form_buttons = html::p(array('class' => 'formbuttons footerleft'), $submit_button);
|
|
|
|
|
|
|
|
|
|
|
|
$out = html::div(array('class' => 'box'),
|
|
|
|
|
|
|
|
html::div(array('id' => 'prefs-title', 'class' => 'boxtitle'), $this->gettext('changepasswd'))
|
|
|
|
|
|
|
|
. html::div(array('class' => 'boxcontent'),
|
|
|
|
|
|
|
|
$disabled_msg . $table->show() . $rules . $form_buttons));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$rcmail->output->add_gui_object('passform', 'password-form');
|
|
|
|
$rcmail->output->add_gui_object('passform', 'password-form');
|
|
|
|
|
|
|
|
|
|
|
|
$this->include_script('password.js');
|
|
|
|
$this->include_script('password.js');
|
|
|
|
|
|
|
|
|
|
|
|
return $rcmail->output->form_tag(array(
|
|
|
|
$form = $rcmail->output->form_tag(array(
|
|
|
|
'id' => 'password-form',
|
|
|
|
'id' => 'password-form',
|
|
|
|
'name' => 'password-form',
|
|
|
|
'name' => 'password-form',
|
|
|
|
'method' => 'post',
|
|
|
|
'method' => 'post',
|
|
|
|
'class' => 'formcontent',
|
|
|
|
|
|
|
|
'action' => './?_task=settings&_action=plugin.password-save',
|
|
|
|
'action' => './?_task=settings&_action=plugin.password-save',
|
|
|
|
), $out);
|
|
|
|
), $disabled_msg . $table->show() . $rules);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return html::div(array('id' => 'prefs-title', 'class' => 'boxtitle'), $this->gettext('changepasswd'))
|
|
|
|
|
|
|
|
. html::div(array('class' => 'box formcontainer scroller'),
|
|
|
|
|
|
|
|
html::div(array('class' => 'boxcontent formcontent'), $form)
|
|
|
|
|
|
|
|
. $form_buttons);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private function _save($curpass, $passwd)
|
|
|
|
private function _save($curpass, $passwd)
|
|
|
|