소스 검색

removing code that could be used with plugin in SM 1.4.x. After init
changes plugin is no longer compatible with sm 1.4.x

tokul 19 년 전
부모
커밋
d2954ac6da
2개의 변경된 파일0개의 추가작업 그리고 43개의 파일을 삭제
  1. 0 19
      plugins/change_password/options.php
  2. 0 24
      plugins/change_password/setup.php

+ 0 - 19
plugins/change_password/options.php

@@ -53,13 +53,6 @@ if (file_exists(SM_PATH . 'plugins/change_password/backend/'.$cpw_backend.'.php'
 
 
 /* the form was submitted, go for it */
 /* the form was submitted, go for it */
 if(sqgetGlobalVar('cpw_go', $cpw_go, SQ_POST)) {
 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 */
     /* perform basic checks */
     $Messages = cpw_check_input();
     $Messages = cpw_check_input();
 
 
@@ -67,22 +60,10 @@ if(sqgetGlobalVar('cpw_go', $cpw_go, SQ_POST)) {
     if(count($Messages) == 0) {
     if(count($Messages) == 0) {
         $Messages = cpw_do_change();
         $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');
 ?>
 ?>
 
 

+ 0 - 24
plugins/change_password/setup.php

@@ -29,24 +29,12 @@ function squirrelmail_plugin_init_change_password() {
 function change_password_optpage() {
 function change_password_optpage() {
     global $optpage_blocks;
     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(
     $optpage_blocks[] = array(
         'name' => _("Change Password"),
         'name' => _("Change Password"),
         'url' => '../plugins/change_password/options.php',
         'url' => '../plugins/change_password/options.php',
         'desc' => _("Use this to change your email password."),
         'desc' => _("Use this to change your email password."),
         'js' => FALSE
         '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');
-    }
 }
 }
 
 
 /**
 /**
@@ -56,20 +44,8 @@ function change_password_optpage() {
 function change_password_loadinfo() {
 function change_password_loadinfo() {
     global $optpage, $optpage_name;
     global $optpage, $optpage_name;
     if ($optpage=='change_password') {
     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:"
         // i18n: is displayed after "Successfully Saved Options:"
         $optpage_name=_("User's Password");
         $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');
-        }
     }
     }
 }
 }