summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4588f43)
changes plugin is no longer compatible with sm 1.4.x
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11076
7612ce4b-ef26-0410-bec9-
ea0150e637f0
/* the form was submitted, go for it */
if(sqgetGlobalVar('cpw_go', $cpw_go, SQ_POST)) {
/* the form was submitted, go for it */
if(sqgetGlobalVar('cpw_go', $cpw_go, SQ_POST)) {
-
- // SM14 code: use change_password gettext domain binding for 1.4.x
- if (! check_sm_version(1,5,0)) {
- bindtextdomain('change_password',SM_PATH . 'locale');
- textdomain('change_password');
- }
-
/* perform basic checks */
$Messages = cpw_check_input();
/* perform basic checks */
$Messages = cpw_check_input();
if(count($Messages) == 0) {
$Messages = cpw_do_change();
}
if(count($Messages) == 0) {
$Messages = cpw_do_change();
}
-
- // SM14 code: use change_password gettext domain binding for 1.4.x
- if (! check_sm_version(1,5,0)) {
- bindtextdomain('squirrelmail',SM_PATH . 'locale');
- textdomain('squirrelmail');
- }
}
displayPageHeader($color, 'None');
}
displayPageHeader($color, 'None');
-// SM14 code: use change_password gettext domain binding for 1.4.x
-if (! check_sm_version(1,5,0)) {
- bindtextdomain('change_password',SM_PATH . 'locale');
- textdomain('change_password');
-}
-
do_hook('change_password_init');
?>
do_hook('change_password_init');
?>
function change_password_optpage() {
global $optpage_blocks;
function change_password_optpage() {
global $optpage_blocks;
- // SM14 code: use change_password gettext domain binding for 1.4.x
- if (! check_sm_version(1,5,0)) {
- bindtextdomain('change_password',SM_PATH . 'locale');
- textdomain('change_password');
- }
-
$optpage_blocks[] = array(
'name' => _("Change Password"),
'url' => '../plugins/change_password/options.php',
'desc' => _("Use this to change your email password."),
'js' => FALSE
);
$optpage_blocks[] = array(
'name' => _("Change Password"),
'url' => '../plugins/change_password/options.php',
'desc' => _("Use this to change your email password."),
'js' => FALSE
);
-
- // SM14 code: revert to squirrelmail domain for 1.4.x
- if (! check_sm_version(1,5,0)) {
- bindtextdomain('squirrelmail',SM_PATH . 'locale');
- textdomain('squirrelmail');
- }
function change_password_loadinfo() {
global $optpage, $optpage_name;
if ($optpage=='change_password') {
function change_password_loadinfo() {
global $optpage, $optpage_name;
if ($optpage=='change_password') {
- // SM14 code: use change_password gettext domain binding for 1.4.x
- if (! check_sm_version(1,5,0)) {
- bindtextdomain('change_password',SM_PATH . 'locale');
- textdomain('change_password');
- }
-
// i18n: is displayed after "Successfully Saved Options:"
$optpage_name=_("User's Password");
// i18n: is displayed after "Successfully Saved Options:"
$optpage_name=_("User's Password");
-
- // SM14 code: revert to squirrelmail domain for 1.4.x
- if (! check_sm_version(1,5,0)) {
- bindtextdomain('squirrelmail',SM_PATH . 'locale');
- textdomain('squirrelmail');
- }