4 * $Id: setup.php,v 1.6 2007/06/09 22:55:25 indiri69 Exp $
6 function squirrelmail_plugin_init_change_pass() {
7 global $squirrelmail_plugin_hooks;
9 $squirrelmail_plugin_hooks['optpage_register_block']['change_pass'] = 'change_pass_opt';
10 $squirrelmail_plugin_hooks['options_save']['change_pass'] = 'change_pass_save_pref';
13 function change_pass_opt() {
14 global $optpage_blocks;
16 include_once(SM_PATH . 'functions/i18n.php');
17 bindtextdomain('change_pass', SM_PATH . 'plugins/change_pass/locale');
18 textdomain('change_pass');
20 $optpage_blocks[] = array(
21 'name' => _("Change Password"),
22 'url' => SM_PATH . 'plugins/change_pass/options.php',
23 'desc' => _("This connects to your local Password Server to change your email password."),
27 bindtextdomain('squirrelmail', SM_PATH . 'locale');
28 textdomain('squirrelmail');
31 function change_pass_save_pref() {
32 if(sqgetGlobalVar('plugin_change_pass', $plugin_change_pass)) {
33 include_once(SM_PATH . 'functions/i18n.php');
34 bindtextdomain('change_pass', SM_PATH . 'plugins/change_pass/locale');
35 textdomain('change_pass');
37 echo '<p align="center">' .
38 _("Password changed successfully.") .
41 bindtextdomain('squirrelmail', SM_PATH . 'locale');
42 textdomain('squirrelmail');
46 function change_pass_version() {