From: Dragan Dosen Date: Thu, 28 May 2009 18:03:08 +0000 (+0200) Subject: Novi izvorni kod change_pass dodatka (inacica 3.0). X-Git-Tag: v3.0-2~6 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=squirrelmail-change-pass-cn.git;a=commitdiff_plain;h=83f37b8fd3d56064545b37748c3c511545eb9000 Novi izvorni kod change_pass dodatka (inacica 3.0). Paket spreman za Debian lenny. Modificirane datoteke debian/postinst i debian/prerm: + prilagodba novoj inacici change_pass dodatka. Datoteka debian/control: + dodana ovisnost o paketu squirrelmail-compatibility. Azurirana datoteka README.CARNet. --- diff --git a/change_pass/FAQ b/change_pass/FAQ deleted file mode 100644 index 631ef75..0000000 --- a/change_pass/FAQ +++ /dev/null @@ -1,10 +0,0 @@ -Q. I get an error saying "ERROR: Connection refused (111)" - -A. You don't have a poppass daemon running on the server you've selected. - Make certain you have configured settings.php properly and tested it - as stated in the INSTALL file. - -Q. The plugin does seem to work - -A. Make sure you can change the password manually. See the instructions in the - INSTALL file on how to test and make sure. diff --git a/change_pass/INSTALL b/change_pass/INSTALL deleted file mode 100644 index 470203d..0000000 --- a/change_pass/INSTALL +++ /dev/null @@ -1,37 +0,0 @@ -Installing change_pass -====================== -Extract the change_pass file into the plugins directory of your -SquirrelMail setup. - -If your poppass server isn't running on the same server as your IMAP server -or is running on a port other than 106 then you need to change the settings.php -file with the correct information. - -If you don't have a poppass server or don't know what one is, please read -the README file. - -Then go to your config directory and run conf.pl. Choose option -8 and add the plugin. Save and exit, then that should be all -if the plugin was made correctly. :) - - $ cd .. - $ ./configure - -Be sure to test and make certain your poppass daemon is working properly. -To test, try telneting into the daemon and changing a password: - -$ telnet localhost 106 -Trying 127.0.0.1... -Connected to localhost. -Escape character is '^]'. -200 poppassd v1.8.1 hello, who are you? -user -200 Your password please. -pass -200 Your new password please. -newpass -200 Password changed, thank-you. -quit -200 Bye. -Connection closed by foreign host. - diff --git a/change_pass/README b/change_pass/README index 1d7abab..dd0e567 100644 --- a/change_pass/README +++ b/change_pass/README @@ -1,28 +1 @@ -$Id: README,v 1.7 2007/06/09 23:08:17 indiri69 Exp $ -change_pass -- Version 2.7a-1.4.x -Ritchie Low -Seth Randall - -Description -=========== -This is a Squirrelmail plugin to change password using the Poppassd service -at port 106 - -You can get poppassd compliant services from the following: -Pawel Krawczyk http://echelon.pl/pubs/poppassd.html (Supports PAM) -Andrew Stevenson ftp://ftp.ugh.net.au/pub/unix/poppwd -NetWin http://netwinsite.com/poppassd/ (Changes /etc/passwd) -Kerberos http://kpoppassd.sourceforge.net (Thank to Michael G. Rozman this link) -HP-UX 11.x http://barney.gonzaga.edu/~awithers/poppassd/ (link from above site) -BSD users should try the one from the ports collection for their brand of BSD first. -Courier users should try courierpassd at http://www.arda.homeunix.net/store/ - -poppassd must be running on your whatever server handles the passwords for your -mail server for this to work. Other than that, you just need to add this plugin -to SquirrelMail (using the perl script or by editing config.php by hand), and -all should be fine. For full installation instructions, see the INSTALL file. - -To change the server or port poppassd listens on, change the options in -settings.php. - -If you experience problems, please see the INSTALL file and FAQ +See the documentation in the doc/ directory. diff --git a/change_pass/change_pass.po b/change_pass/change_pass.po deleted file mode 100644 index 035caaa..0000000 --- a/change_pass/change_pass.po +++ /dev/null @@ -1,76 +0,0 @@ -# LANGUAGE change_pass plugin translation. -# Copyright (C) 2003 The Squirrelmail Development Team. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: $Id: change_pass.po,v 1.2 2003/12/14 20:26:40 indiri69 Exp $\n" -"POT-Creation-Date: 2003-09-12 12:12-0600\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=CHARSET\n" -"Content-Transfer-Encoding: ENCODING\n" - -#: options.php:36 setup.php:18 -msgid "Change Password" -msgstr "" - -#: options.php:77 -msgid "Closing Connection" -msgstr "" - -#: options.php:137 -msgid "Connecting to Password Server" -msgstr "" - -#: options.php:141 -msgid "ERROR:" -msgstr "" - -#: options.php:52 -msgid "New Password" -msgstr "" - -#: options.php:51 -msgid "Old Password" -msgstr "" - -#: options.php:173 setup.php:35 -msgid "Password changed successfully." -msgstr "" - -#: options.php:64 -msgid "Submit" -msgstr "" - -#: setup.php:20 -msgid "" -"This connects to your local Password Server to change your email password." -msgstr "" - -#: options.php:53 -msgid "Verify New Password" -msgstr "" - -#: options.php:112 -msgid "You must also type in your new password in the verify box." -msgstr "" - -#: options.php:109 -msgid "You must type in a new password." -msgstr "" - -#: options.php:106 -msgid "You must type in your old password." -msgstr "" - -#: options.php:115 -msgid "Your new password doesn't match the verify password." -msgstr "" - -#: options.php:118 -msgid "Your old password is not correct." -msgstr "" diff --git a/change_pass/config_example.php b/change_pass/config_example.php new file mode 100644 index 0000000..ba9b67a --- /dev/null +++ b/change_pass/config_example.php @@ -0,0 +1,9 @@ + +- Code cleanups and changes +- Updated version number to 3.0 + +* Sat Jan 17 2009 Seth Randall +- Considerable rewrite + +* Sat Jun 23 2007 Seth Randall +- Added Bahasa Melayu translation by zamri * Sat Jun 9 2007 Seth Randall - Updated version to 2.7a-1.4.x diff --git a/change_pass/doc/FAQ b/change_pass/doc/FAQ new file mode 100644 index 0000000..8c5ec52 --- /dev/null +++ b/change_pass/doc/FAQ @@ -0,0 +1,26 @@ +Q. I get an error saying "ERROR: Connection refused (111)" + +A. You don't have a poppass daemon running on the server you've selected. + Make certain you have followed the installation steps in the INSTALL + document and tested it as shown below. + +Q. The plugin does not seem to work + +A. Make sure you can change the password manually. + To test, try telneting into the daemon and changing a password: + + $ telnet localhost 106 + Trying 127.0.0.1... + Connected to localhost. + Escape character is '^]'. + 200 poppassd v1.8.1 hello, who are you? + user + 200 Your password please. + pass + 200 Your new password please. + newpass + 200 Password changed, thank-you. + quit + 200 Bye. + Connection closed by foreign host. + diff --git a/change_pass/doc/INSTALL b/change_pass/doc/INSTALL new file mode 100644 index 0000000..53ef501 --- /dev/null +++ b/change_pass/doc/INSTALL @@ -0,0 +1,59 @@ +Installing change_pass +====================== +0) NOTE: This plugin is not needed for SquirrelMail 1.5.0 or above. + The functionality it provides is already included in the + change_password plugin that is part of 1.5.x. + +1) Start with untaring the file into the plugins directory. + Here is an example for the 3.0 version of the change_pass plugin. + + $ cd plugins + $ tar -zxf change_pass-3.0-1.4.0.tar.gz + +2) By default, the plugin will connect to the IMAP server configured + for SquirrelMail on port 106 to change passwords. + If you need to change any of the following: + IP address of your poppass server + poppass server port number (if not 106) + minimum or maximum password length + you will need to create a configuration file. + + Decide if you want to store the plugin configuration file + in the plugin directory or in the main SquirrelMail config + directory. + + A) To store the configuration file in the plugin directory, + change into the change_pass directory, copy config_example.php + to config.php and edit config.php, making adjustments as + you deem necessary. + + $ cd change_pass + $ cp config_example.php config.php + $ vi config.php + + B) To store the configuration file in the main SquirrelMail + config directory, change into the change_pass directory, + copy config_example.php to ../../config/config_change_pass.php + and edit ../../config/config_change_pass.php, making + adjustments as you deem necessary. + + $ cd change_pass + $ cp config_example.php ../../config/config_change_pass.php + $ vi ../../config/config_change_pass.php + +3) Go to your config directory and run conf.pl. Choose + option 8 and move the plugin from the "Available Plugins" + category to the "Installed Plugins" category. Save and + exit. + + $ cd ../../../../config/ + $ ./conf.pl + +4) If not being used with SquirrelMail 1.4.16+, + please verify that you have the "Compatibility" plugin + installed (but not necessarily activated). + +5) Translations are not included in this package. To get a + translation, download the language pack needed from: + + http://www.squirrelmail.org/download.php diff --git a/change_pass/doc/README b/change_pass/doc/README new file mode 100644 index 0000000..92d644c --- /dev/null +++ b/change_pass/doc/README @@ -0,0 +1,36 @@ +change_pass plugin for SquirrelMail +=================================== +Version 3.0, 2009/05/09 + +Ritchie Low +Tyler Akins +Seth Randall + +Description +=========== +This is a Squirrelmail plugin to change password using the Poppassd service + +You can get poppassd compliant services from the following places: +Pawel Krawczyk http://ipsec.pl/meta/pawel-krawczyk-projekty-open-source.html (Supports PAM) +Andrew Stevenson ftp://ftp.ugh.net.au/pub/unix/poppwd +NetWin http://netwinsite.com/poppassd/ (Changes /etc/passwd) +Kerberos http://kpoppassd.sourceforge.net (Thank to Michael G. Rozman this link) +HP-UX 11.x http://barney.gonzaga.edu/~awithers/poppassd/ (link from above site) +BSD users should try the one from the ports collection for their brand of BSD first. +Courier users should try courierpassd at http://www.arda.homeunix.net/store/ + +poppassd must be running on your whatever server handles the passwords for your +mail server for this plugin to work. Other than that, you just need to add +this plugin to SquirrelMail (using the perl script or by editing config.php +by hand), and all should be fine. For full installation instructions, +see the INSTALL file. + +To change the server or port poppassd listens on, see the INSTALL file. + +If you experience problems, please see the INSTALL file and FAQ + +License +======= + +This plugin is released under the GNU General Public +License (see COPYING for details). diff --git a/change_pass/doc/index.php b/change_pass/doc/index.php new file mode 100644 index 0000000..5fbde0d --- /dev/null +++ b/change_pass/doc/index.php @@ -0,0 +1,13 @@ + _("Change Password"), + 'url' => sqm_baseuri() . 'plugins/change_pass/options.php', + 'desc' => _("Use this to change your email password."), + 'js' => FALSE + ); + sq_change_text_domain('squirrelmail'); +} + +function change_pass_dochange($change_pass_old, $change_pass_new, $debug = false) { + global $username, $imapServerAddress; + $poppass_server = $imapServerAddress; + $poppass_port = 106; + + if(!@include(SM_PATH . 'config/config_change_pass.php')) { + @include(SM_PATH . 'plugins/change_pass/config.php'); + } + + $error_messages = array(); + + $pop_socket = @fsockopen($poppass_server, $poppass_port, $errno, $errstr); + if (!$pop_socket) { + sq_change_text_domain('change_pass'); + $error_messages[] = sprintf(_("Connection error: %s"), "$errstr ($errno)"); + sq_change_text_domain('squirrelmail'); + return $error_messages; + } + + // Look for a 2xx result to continue + $result = change_pass_readfb($pop_socket, $debug); + if(preg_match('/^2\d\d/', $result)) { + // Send the username whose password to change + if(fwrite($pop_socket, "user $username\r\n")) { + $result = change_pass_readfb($pop_socket, $debug); + if(preg_match('/^[23]\d\d/', $result)) { + // Send the users current password + if(fwrite($pop_socket, "pass $change_pass_old\r\n")) { + $result = change_pass_readfb($pop_socket, $debug); + if(preg_match('/^[23]\d\d/', $result)) { + // Send the new password + if(fwrite($pop_socket, "newpass $change_pass_new\r\n")) { + $result = change_pass_readfb($pop_socket, $debug); + if(!preg_match('/^2\d\d/', $result)) { + sq_change_text_domain('change_pass'); + $error_messages[] = _("Password change was not successful!"); + sq_change_text_domain('squirrelmail'); + } else { + change_pass_closeport($pop_socket, $debug); + sqauth_save_password($change_pass_new); + session_write_close(); + header('Location: ' . sqm_baseuri() . 'src/options.php?optmode=submit&optpage=change_pass&plugin_change_pass=1'); + exit; + } + } + } + } + } + } + } + change_pass_closeport($pop_socket, $debug); + return $error_messages; +} + +function change_pass_closeport($pop_socket, $debug = false) { + if ($debug) { + $messages[] = "Closing Connection"; + } + fputs($pop_socket, "quit\r\n"); + fclose($pop_socket); +} + +function change_pass_readfb($pop_socket, $debug = false) { + $strResp = ''; + $result = ''; + + if (!feof($pop_socket)) { + $strResp = fgets($pop_socket, 1024); + $result = substr(trim($strResp), 0, 3); // 200, 300, 500 + if($debug) { + $messages[] = "--> $strResp"; + } + } + return $result; +} + +function change_pass_info_real() { + return array( + 'english_name' => 'Change Password', + 'authors' => array( + 'Richie Low' => array(), + 'Tyler Akins' => array(), + 'Seth Randall' => array( + 'email' => 'indiri69@users.sourceforge.net', + 'sm_site_username' => 'randall', + ), + ), + 'version' => '3.0', + 'required_sm_version' => '1.4.0', + 'requires_configuration' => 0, + 'requires_source_patch' => 0, + 'required_plugins' => array(), + 'per_version_requirements' => array( + '1.5.0' => SQ_INCOMPATIBLE, + '1.4.16' => array( + 'required_plugins' => array() + ), + '1.4.0' => array( + 'required_plugins' => array( + 'compatibility' => array( + 'version' => '2.0.13', + 'activate' => FALSE + ) + ) + ) + ), + 'summary' => 'Change passwords using a poppass daemon', + 'details' => 'Works with a compatible poppass daemon to allow users to change their passwords.' + ); +} + +function change_pass_loadinfo_real() { + global $optpage, $optpage_name; + + if ($optpage == 'change_pass') { + // i18n: is displayed after "Successfully Saved Options:" + sq_change_text_domain('change_pass'); + $optpage_name = _("User's Password"); + sq_change_text_domain('squirrelmail'); + } +} diff --git a/change_pass/index.php b/change_pass/index.php index 185d0f3..5fbde0d 100644 --- a/change_pass/index.php +++ b/change_pass/index.php @@ -3,14 +3,11 @@ /** ** index.php -- Displays the main frameset ** - ** Copyright (c) 1999-2002 The SquirrelMail development team + ** Copyright (c) 1999-2009 The SquirrelMail development team ** Licensed under the GNU GPL. For full terms see the file COPYING. ** ** Redirects to the login page. ** **/ - header("Location:../../src/login.php\n\n"); - exit(); - -?> + header('Location:../index.php'); diff --git a/change_pass/locale/Makefile b/change_pass/locale/Makefile deleted file mode 100644 index d5bda08..0000000 --- a/change_pass/locale/Makefile +++ /dev/null @@ -1,12 +0,0 @@ -.SUFFIXES: -.SUFFIXES: .po .mo - -SUBDIR = $(wildcard */LC_MESSAGES/*.po) - -%.mo: %.po - msgfmt $? -o $@ - -all: $(foreach dir,$(SUBDIR),$(basename $(dir)).mo) - -clean: $(foreach dir,$(SUBDIR),$(basename $(dir)).mo) - rm $? diff --git a/change_pass/locale/bg_BG/LC_MESSAGES/change_pass.mo b/change_pass/locale/bg_BG/LC_MESSAGES/change_pass.mo deleted file mode 100644 index 441de0f..0000000 Binary files a/change_pass/locale/bg_BG/LC_MESSAGES/change_pass.mo and /dev/null differ diff --git a/change_pass/locale/bg_BG/LC_MESSAGES/change_pass.po b/change_pass/locale/bg_BG/LC_MESSAGES/change_pass.po deleted file mode 100644 index ed21c18..0000000 --- a/change_pass/locale/bg_BG/LC_MESSAGES/change_pass.po +++ /dev/null @@ -1,75 +0,0 @@ -# Bulgarian change_pass plugin translation. -# Copyright (C) 2003 The Squirrelmail Development Team. -# Marian Kalinov Popov , 2003. -# -msgid "" -msgstr "" -"Project-Id-Version: $Id: change_pass.po,v 1.2 2003/12/14 20:26:40 indiri69 Exp $\n" -"POT-Creation-Date: 2003-11-08 12:12-0600\n" -"PO-Revision-Date: 2003-11-25 20:20+0700\n" -"Last-Translator: Marian Popov \n" -"Language-Team: Bulgarian \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=cp1251\n" -"Content-Transfer-Encoding: 8bit\n" - -#: options.php:36 setup.php:18 -msgid "Change Password" -msgstr "Ñìÿíà íà Ïàðîëàòà" - -#: options.php:77 -msgid "Closing Connection" -msgstr "Ïðåêúñâàíå íà âðúçêàòà" - -#: options.php:137 -msgid "Connecting to Password Server" -msgstr "Ñâúðçâàíå êúì ñúðâúð çà ïàðîëè" - -#: options.php:141 -msgid "ERROR:" -msgstr "ÃÐÅØÊÀ:" - -#: options.php:52 -msgid "New Password" -msgstr "Íîâà Ïàðîëà" - -#: options.php:51 -msgid "Old Password" -msgstr "Ñòàðà Ïàðîëà" - -#: options.php:173 setup.php:35 -msgid "Password changed successfully." -msgstr "Ïàðîëàòà å ñìåíåíà óñïåøíî." - -#: options.php:64 -msgid "Submit" -msgstr "Âúâåäè" - -#: setup.php:20 -msgid "" -"This connects to your local Password Server to change your email password." -msgstr "Ñâúðçâàíå êúì ëîêàëíèÿ ñúðâúð çà ïàðîëè çà ñìÿíà ïàðîëàòà íà Âàøèÿ èìåèë." - -#: options.php:53 -msgid "Verify New Password" -msgstr "Ïðîâåðêà íà íîâàòà ïàðîëà" - -#: options.php:112 -msgid "You must also type in your new password in the verify box." -msgstr "Òðÿáâà äà âúâåäåòå íîâàòà ïàðîëà è â ïîëåòî çà ïðîâåðêà." - -#: options.php:109 -msgid "You must type in a new password." -msgstr "Òðÿáâà äà âúâåäåòå íîâà ïàðîëà." - -#: options.php:106 -msgid "You must type in your old password." -msgstr "Òðÿáâà íà âúâåäåòå ñòàðàòà ïàðîëà." - -#: options.php:115 -msgid "Your new password doesn't match the verify password." -msgstr "Âàøàòà íîâà ïàðîëà íå ñúâïàäà." - -#: options.php:118 -msgid "Your old password is not correct." -msgstr "Ñòàðàòà Âè ïàðîëà íå å ïðàâèëíà." diff --git a/change_pass/locale/cs_CZ/LC_MESSAGES/change_pass.mo b/change_pass/locale/cs_CZ/LC_MESSAGES/change_pass.mo deleted file mode 100644 index 291d51c..0000000 Binary files a/change_pass/locale/cs_CZ/LC_MESSAGES/change_pass.mo and /dev/null differ diff --git a/change_pass/locale/cs_CZ/LC_MESSAGES/change_pass.po b/change_pass/locale/cs_CZ/LC_MESSAGES/change_pass.po deleted file mode 100644 index bf8a988..0000000 --- a/change_pass/locale/cs_CZ/LC_MESSAGES/change_pass.po +++ /dev/null @@ -1,75 +0,0 @@ -# Czech (cs_CZ) change_pass plugin translation. -# Copyright (C) 2003-2005 The Squirrelmail Development Team. -# Martin Å louf 2005 -# -msgid "" -msgstr "" -"Project-Id-Version: $Id: change_pass.po,v 1.1 2005/11/20 06:42:00 indiri69 Exp $\n" -"POT-Creation-Date: 2003-09-12 12:12-0600\n" -"PO-Revision-Date: 2005-10-26 15:37-0700\n" -"Last-Translator: Martin Å louf \n" -"Language-Team: Czech \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" - -#: options.php:36 setup.php:18 -msgid "Change Password" -msgstr "Zmìna hesla" - -#: options.php:77 -msgid "Closing Connection" -msgstr "Konec spojení" - -#: options.php:137 -msgid "Connecting to Password Server" -msgstr "Pøipojování k serveru" - -#: options.php:141 -msgid "ERROR:" -msgstr "Chyba:" - -#: options.php:52 -msgid "New Password" -msgstr "Nové heslo" - -#: options.php:51 -msgid "Old Password" -msgstr "Staré heslo" - -#: options.php:173 setup.php:35 -msgid "Password changed successfully." -msgstr "Heslo bylo zmìnìno úspì¹nì" - -#: options.php:64 -msgid "Submit" -msgstr "Odeslat" - -#: setup.php:20 -msgid "" -"This connects to your local Password Server to change your email password." -msgstr "Tento plugin se pøipojí k serveru a pokusí se zmìnit va¹e heslo." - -#: options.php:53 -msgid "Verify New Password" -msgstr "Ovìø heslo" - -#: options.php:112 -msgid "You must also type in your new password in the verify box." -msgstr "Musíte zadat Va¹e nové heslo i do ovìøovacího políèka" - -#: options.php:109 -msgid "You must type in a new password." -msgstr "Musíte zadat nové heslo" - -#: options.php:106 -msgid "You must type in your old password." -msgstr "Musíte zadat Va¹e staré heslo" - -#: options.php:115 -msgid "Your new password doesn't match the verify password." -msgstr "Nezadal jste heslo správnì. Musíte zadat dvakrát stejné heslo." - -#: options.php:118 -msgid "Your old password is not correct." -msgstr "Va¹e staré heslo není správné." diff --git a/change_pass/locale/de_DE/LC_MESSAGES/change_pass.mo b/change_pass/locale/de_DE/LC_MESSAGES/change_pass.mo deleted file mode 100644 index 37a8c15..0000000 Binary files a/change_pass/locale/de_DE/LC_MESSAGES/change_pass.mo and /dev/null differ diff --git a/change_pass/locale/de_DE/LC_MESSAGES/change_pass.po b/change_pass/locale/de_DE/LC_MESSAGES/change_pass.po deleted file mode 100644 index ef2b37a..0000000 --- a/change_pass/locale/de_DE/LC_MESSAGES/change_pass.po +++ /dev/null @@ -1,75 +0,0 @@ -# German change_pass plugin translation. -# Copyright (C) 2003 The Squirrelmail Development Team. -# Steffen Beyer , 2003. -# -msgid "" -msgstr "" -"Project-Id-Version: $Id: change_pass.po,v 1.2 2003/12/14 20:26:40 indiri69 Exp $\n" -"POT-Creation-Date: 2003-09-12 12:12-0600\n" -"PO-Revision-Date: 2003-12-06 12:47+0100\n" -"Last-Translator: Steffen Beyer \n" -"Language-Team: German \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=iso-8859-1\n" -"Content-Transfer-Encoding: 8bit\n" - -#: options.php:36 setup.php:18 -msgid "Change Password" -msgstr "Passwort ändern" - -#: options.php:77 -msgid "Closing Connection" -msgstr "Verbindung wird beendet" - -#: options.php:137 -msgid "Connecting to Password Server" -msgstr "Verbinde mit Passwort-Server" - -#: options.php:141 -msgid "ERROR:" -msgstr "FEHLER:" - -#: options.php:52 -msgid "New Password" -msgstr "Neues Passwort" - -#: options.php:51 -msgid "Old Password" -msgstr "Altes Passwort" - -#: options.php:173 setup.php:35 -msgid "Password changed successfully." -msgstr "Passwort erfolgreich geändert." - -#: options.php:64 -msgid "Submit" -msgstr "Ändern" - -#: setup.php:20 -msgid "" -"This connects to your local Password Server to change your email password." -msgstr "Hier kann das zum Anmelden benötigte Passwort geändert werden." - -#: options.php:53 -msgid "Verify New Password" -msgstr "Neues Passwort wiederholen" - -#: options.php:112 -msgid "You must also type in your new password in the verify box." -msgstr "Bitte das neue Passwort zur Sicherheit wiederholen." - -#: options.php:109 -msgid "You must type in a new password." -msgstr "Bitte ein neues Passwort wählen." - -#: options.php:106 -msgid "You must type in your old password." -msgstr "Bitte das alte Passwort eingeben." - -#: options.php:115 -msgid "Your new password doesn't match the verify password." -msgstr "Die eingegebenen neuen Passwörter unterscheiden sich." - -#: options.php:118 -msgid "Your old password is not correct." -msgstr "Das alte Passwort ist nicht korrekt." diff --git a/change_pass/locale/es_ES/LC_MESSAGES/change_pass.mo b/change_pass/locale/es_ES/LC_MESSAGES/change_pass.mo deleted file mode 100644 index 4f52ccd..0000000 Binary files a/change_pass/locale/es_ES/LC_MESSAGES/change_pass.mo and /dev/null differ diff --git a/change_pass/locale/es_ES/LC_MESSAGES/change_pass.po b/change_pass/locale/es_ES/LC_MESSAGES/change_pass.po deleted file mode 100644 index 989d257..0000000 --- a/change_pass/locale/es_ES/LC_MESSAGES/change_pass.po +++ /dev/null @@ -1,75 +0,0 @@ -# Spanish change_pass plugin translation. -# Copyright (C) 2003 The Squirrelmail Development Team. -# grana canal10 , 2003. -# -msgid "" -msgstr "" -"Project-Id-Version: $Id: change_pass.po,v 1.2 2003/12/14 20:26:40 indiri69 Exp $\n" -"POT-Creation-Date: 2003-09-12 12:12-0600\n" -"PO-Revision-Date: 2003-09-25 20:20+0700\n" -"Last-Translator: grana canal10 \n" -"Language-Team: Spanish \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=iso-8859-1\n" -"Content-Transfer-Encoding: 8bit\n" - -#: options.php:36 setup.php:18 -msgid "Change Password" -msgstr "Cambiar contraseña" - -#: options.php:77 -msgid "Closing Connection" -msgstr "Cerrando la conexion" - -#: options.php:137 -msgid "Connecting to Password Server" -msgstr "Conectando al servidor de contraseñas" - -#: options.php:141 -msgid "ERROR:" -msgstr "ERROR:" - -#: options.php:52 -msgid "New Password" -msgstr "Nueva contraseña" - -#: options.php:51 -msgid "Old Password" -msgstr "Vieja contraseña" - -#: options.php:173 setup.php:35 -msgid "Password changed successfully." -msgstr "La contraseña fue cambiada correctamente." - -#: options.php:64 -msgid "Submit" -msgstr "Enviar" - -#: setup.php:20 -msgid "" -"This connects to your local Password Server to change your email password." -msgstr "Conecta con su servidor de Contraseñas local para cambiar su contraseña de mail." - -#: options.php:53 -msgid "Verify New Password" -msgstr "Verifica nueva contraseña" - -#: options.php:112 -msgid "You must also type in your new password in the verify box." -msgstr "Usted debe ingresar su nueva contraseña en la casilla de verificacion." - -#: options.php:109 -msgid "You must type in a new password." -msgstr "Usted debe ingresar una nueva contraseña." - -#: options.php:106 -msgid "You must type in your old password." -msgstr "Usted debe ingresar su vieja contraseña." - -#: options.php:115 -msgid "Your new password doesn't match the verify password." -msgstr "Su nueva contraseña y la de verificacion no coinciden." - -#: options.php:118 -msgid "Your old password is not correct." -msgstr "Su contraseña anterior no es correcta." diff --git a/change_pass/locale/fi_FI/LC_MESSAGES/change_pass.mo b/change_pass/locale/fi_FI/LC_MESSAGES/change_pass.mo deleted file mode 100644 index 6f0d2e4..0000000 Binary files a/change_pass/locale/fi_FI/LC_MESSAGES/change_pass.mo and /dev/null differ diff --git a/change_pass/locale/fi_FI/LC_MESSAGES/change_pass.po b/change_pass/locale/fi_FI/LC_MESSAGES/change_pass.po deleted file mode 100644 index d76f8e8..0000000 --- a/change_pass/locale/fi_FI/LC_MESSAGES/change_pass.po +++ /dev/null @@ -1,76 +0,0 @@ -# Finnish change_pass plugin translation. -# Copyright (C) 2003 The Squirrelmail Development Team. -# Kari Mattsson \n" -"Language-Team: LANGUAGE \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=iso-8859-15\n" -"Content-Transfer-Encoding: 8bit\n" - -#: options.php:36 setup.php:18 -msgid "Change Password" -msgstr "Vaihda salasana" - -#: options.php:77 -msgid "Closing Connection" -msgstr "Suljen yhteyden" - -#: options.php:137 -msgid "Connecting to Password Server" -msgstr "Ota yhteyden salasanapalvelimeen" - -#: options.php:141 -msgid "ERROR:" -msgstr "VIRHE:" - -#: options.php:52 -msgid "New Password" -msgstr "Uusi salasana" - -#: options.php:51 -msgid "Old Password" -msgstr "Vanha salasana" - -#: options.php:173 setup.php:35 -msgid "Password changed successfully." -msgstr "Salasana vaihdettiin onnistuneesti." - -#: options.php:64 -msgid "Submit" -msgstr "Lähetä" - -#: setup.php:20 -msgid "" -"This connects to your local Password Server to change your email password." -msgstr "Otetaan yhteys salasanapalvelimeen sähköpostin salasanan vaihtamiseksi." - -#: options.php:53 -msgid "Verify New Password" -msgstr "Vahvista kirjoittamalla uusi salasana" - -#: options.php:112 -msgid "You must also type in your new password in the verify box." -msgstr "Uusi salasana täytyy myös kirjoittaa vahvistuskehykseen." - -#: options.php:109 -msgid "You must type in a new password." -msgstr "Sinun täytyy kirjoittaa uusi salasana." - -#: options.php:106 -msgid "You must type in your old password." -msgstr "Sinun täytyy kirjoittaa vanha salasana." - -#: options.php:115 -msgid "Your new password doesn't match the verify password." -msgstr "Uusi salasana ei täsmää vahvistussalasanaan." - -#: options.php:118 -msgid "Your old password is not correct." -msgstr "Vanha salasanasi ei ole oikea." diff --git a/change_pass/locale/fr_FR/LC_MESSAGES/change_pass.mo b/change_pass/locale/fr_FR/LC_MESSAGES/change_pass.mo deleted file mode 100644 index 9fb264c..0000000 Binary files a/change_pass/locale/fr_FR/LC_MESSAGES/change_pass.mo and /dev/null differ diff --git a/change_pass/locale/fr_FR/LC_MESSAGES/change_pass.po b/change_pass/locale/fr_FR/LC_MESSAGES/change_pass.po deleted file mode 100644 index ad5a6fd..0000000 --- a/change_pass/locale/fr_FR/LC_MESSAGES/change_pass.po +++ /dev/null @@ -1,75 +0,0 @@ -# French (fr_FR) change_pass plugin translation. -# Copyright (C) 2003 The Squirrelmail Development Team. -# Ludovic Marcotte , 2003. -# -msgid "" -msgstr "" -"Project-Id-Version: $Id: change_pass.po,v 1.1 2003/12/17 22:41:13 indiri69 Exp $\n" -"POT-Creation-Date: 2003-09-12 12:12-0600\n" -"PO-Revision-Date: 2003-12-17 15:37-0700\n" -"Last-Translator: Ludovic Marcotte \n" -"Language-Team: French \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=iso-8859-1\n" -"Content-Transfer-Encoding: 8bit\n" - -#: options.php:36 setup.php:18 -msgid "Change Password" -msgstr "Changer le mot de passe" - -#: options.php:77 -msgid "Closing Connection" -msgstr "Fermeture de la connexion" - -#: options.php:137 -msgid "Connecting to Password Server" -msgstr "Connexion au serveur de mot de passe" - -#: options.php:141 -msgid "ERROR:" -msgstr "ERREUR:" - -#: options.php:52 -msgid "New Password" -msgstr "Nouveau mot de passe" - -#: options.php:51 -msgid "Old Password" -msgstr "Ancien mot de passe" - -#: options.php:173 setup.php:35 -msgid "Password changed successfully." -msgstr "Le mot de passe a été changé avec succès." - -#: options.php:64 -msgid "Submit" -msgstr "Soumettre" - -#: setup.php:20 -msgid "" -"This connects to your local Password Server to change your email password." -msgstr "Ceci se connecte à votre serveur de mot de passe afin de le changer." - -#: options.php:53 -msgid "Verify New Password" -msgstr "Vérifiez le nouveau mot de passe" - -#: options.php:112 -msgid "You must also type in your new password in the verify box." -msgstr "Vous devez aussi spécifiez le nouveau mot de passe dans le champ de vérification." - -#: options.php:109 -msgid "You must type in a new password." -msgstr "Vous devez spécifiez un nouveau mot de passe." - -#: options.php:106 -msgid "You must type in your old password." -msgstr "Vous devez spécifiez votre ancien mot de passe." - -#: options.php:115 -msgid "Your new password doesn't match the verify password." -msgstr "Votre nouveau mot de passe n'est pas identique à celui de vérification." - -#: options.php:118 -msgid "Your old password is not correct." -msgstr "Votre ancien mot de passe est incorrect." diff --git a/change_pass/locale/it_IT/LC_MESSAGES/change_pass.mo b/change_pass/locale/it_IT/LC_MESSAGES/change_pass.mo deleted file mode 100644 index f3917b9..0000000 Binary files a/change_pass/locale/it_IT/LC_MESSAGES/change_pass.mo and /dev/null differ diff --git a/change_pass/locale/it_IT/LC_MESSAGES/change_pass.po b/change_pass/locale/it_IT/LC_MESSAGES/change_pass.po deleted file mode 100644 index 892de7d..0000000 --- a/change_pass/locale/it_IT/LC_MESSAGES/change_pass.po +++ /dev/null @@ -1,74 +0,0 @@ -# Italian (it_IT) change_pass plugin translation. -# Salvatore Bocchetti -# -msgid "" -msgstr "" -"Project-Id-Version: $Id: change_pass.po,v 1.2 2005/11/20 06:42:00 indiri69 Exp $\n" -"POT-Creation-Date: 2004-11-01 12:12-0000\n" -"Last-Translator: Salvatore Bocchetti \n" -"Language-Team: French \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=iso-8859-1\n" -"Content-Transfer-Encoding: 8bit\n" - - -#: options.php:36 setup.php:18 -msgid "Change Password" -msgstr "Modifica Password" - -#: options.php:77 -msgid "Closing Connection" -msgstr "Chiusura della Connessione" - -#: options.php:137 -msgid "Connecting to Password Server" -msgstr "Connessione al server delle password" - -#: options.php:141 -msgid "ERROR:" -msgstr "ERRORE:" - -#: options.php:52 -msgid "New Password" -msgstr "Nuova Password" - -#: options.php:51 -msgid "Old Password" -msgstr "Vecchia Password" - -#: options.php:173 setup.php:35 -msgid "Password changed successfully." -msgstr "La password è stata modificata" - -#: options.php:64 -msgid "Submit" -msgstr "Invia" - -#: setup.php:20 -msgid "" -"This connects to your local Password Server to change your email password." -msgstr "Da qui è possibile modificare la propria password di accesso" - -#: options.php:53 -msgid "Verify New Password" -msgstr "Verifica Nuova Password" - -#: options.php:112 -msgid "You must also type in your new password in the verify box." -msgstr "E' necessario re-inserire la nuova password nel campo Verifica" - -#: options.php:109 -msgid "You must type in a new password." -msgstr "E' necessario specificare una nuova password" - -#: options.php:106 -msgid "You must type in your old password." -msgstr "E' necessario inserire la password preesistente." - -#: options.php:115 -msgid "Your new password doesn't match the verify password." -msgstr "La nuova Password non coincide con quella inserita nel campo Verifica." - -#: options.php:118 -msgid "Your old password is not correct." -msgstr "La vecchia Password inserita non è corretta." diff --git a/change_pass/locale/ja_JP/LC_MESSAGES/change_pass.mo b/change_pass/locale/ja_JP/LC_MESSAGES/change_pass.mo deleted file mode 100644 index f6ff117..0000000 Binary files a/change_pass/locale/ja_JP/LC_MESSAGES/change_pass.mo and /dev/null differ diff --git a/change_pass/locale/ja_JP/LC_MESSAGES/change_pass.po b/change_pass/locale/ja_JP/LC_MESSAGES/change_pass.po deleted file mode 100644 index 2a69b88..0000000 --- a/change_pass/locale/ja_JP/LC_MESSAGES/change_pass.po +++ /dev/null @@ -1,75 +0,0 @@ -# LANGUAGE change_pass plugin translation. -# Copyright (C) 2003 The Squirrelmail Development Team. -# FIRST AUTHOR , YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: $Id: change_pass.po,v 1.2 2004/05/03 17:03:50 indiri69 Exp $\n" -"POT-Creation-Date: 2003-09-12 12:12-0600\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=euc-jp\n" -"Content-Transfer-Encoding: 8bit\n" - -#: options.php:36 setup.php:18 -msgid "Change Password" -msgstr "¥Ñ¥¹¥ï¡¼¥ÉÊѹ¹" - -#: options.php:77 -msgid "Closing Connection" -msgstr "¥³¥Í¥¯¥·¥ç¥ó¤òÊĤ¸¤ë" - -#: options.php:137 -msgid "Connecting to Password Server" -msgstr "¥Ñ¥¹¥ï¡¼¥É¥µ¡¼¥Ð¤ØÀܳ" - -#: options.php:141 -msgid "ERROR:" -msgstr "¥¨¥é¡¼:" - -#: options.php:52 -msgid "New Password" -msgstr "¿·¤·¤¤¥Ñ¥¹¥ï¡¼¥É" - -#: options.php:51 -msgid "Old Password" -msgstr "¸Å¤¤¥Ñ¥¹¥ï¡¼¥É" - -#: options.php:173 setup.php:35 -msgid "Password changed successfully." -msgstr "¥Ñ¥¹¥ï¡¼¥ÉÊѹ¹¤¬´°Î»¤·¤Þ¤·¤¿¡£" - -#: options.php:64 -msgid "Submit" -msgstr "Êѹ¹" - -#: setup.php:20 -msgid "" -"This connects to your local Password Server to change your email password." -msgstr "¤¢¤Ê¤¿¤ÎÅŻҥ᡼¥ë¥Ñ¥¹¥ï¡¼¥É¤òÊѹ¹¤·¤Þ¤¹¡£Êѹ¹¸å¤Ïɬ¤º ¥í¥°¥ª¥Õ -> ¥í¥°¥ª¥ó¤·¤Æ¤¯¤À¤µ¤¤¡£" - -#: options.php:53 -msgid "Verify New Password" -msgstr "¿·¤·¤¤¥Ñ¥¹¥ï¡¼¥ÉºÆÆþÎÏ" - -#: options.php:112 -msgid "You must also type in your new password in the verify box." -msgstr "¿·¤·¤¤¥Ñ¥¹¥ï¡¼¥ÉºÆÆþÎϤò¤·¤Æ¤¯¤À¤µ¤¤¡£" - -#: options.php:109 -msgid "You must type in a new password." -msgstr "¿·¤·¤¤¥Ñ¥¹¥ï¡¼¥É¤ËÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£" - -#: options.php:106 -msgid "You must type in your old password." -msgstr "¸Å¤¤¥Ñ¥¹¥ï¡¼¥É¤ËÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£" - -#: options.php:115 -msgid "Your new password doesn't match the verify password." -msgstr "¿·¤·¤¤¥Ñ¥¹¥ï¡¼¥É¤È¡¢¥Ñ¥¹¥ï¡¼¥ÉºÆÆþÎϤ¬°ìÃפ·¤Þ¤»¤ó¡£" - -#: options.php:118 -msgid "Your old password is not correct." -msgstr "¸Å¤¤¥Ñ¥¹¥ï¡¼¥É¤¬´Ö°ã¤Ã¤Æ¤¤¤Þ¤¹¡£" diff --git a/change_pass/locale/ko_KR/LC_MESSAGES/change_pass.mo b/change_pass/locale/ko_KR/LC_MESSAGES/change_pass.mo deleted file mode 100644 index 1aeb17d..0000000 Binary files a/change_pass/locale/ko_KR/LC_MESSAGES/change_pass.mo and /dev/null differ diff --git a/change_pass/locale/ko_KR/LC_MESSAGES/change_pass.po b/change_pass/locale/ko_KR/LC_MESSAGES/change_pass.po deleted file mode 100644 index a97b8be..0000000 --- a/change_pass/locale/ko_KR/LC_MESSAGES/change_pass.po +++ /dev/null @@ -1,77 +0,0 @@ -# Korean change_pass plugin translation. -# Copyright (C) 2007 The Squirrelmail Development Team. -# $Id: change_pass.po,v 1.1 2007/06/05 03:40:46 indiri69 Exp $ -# -msgid "" -msgstr "" -"Project-Id-Version: change_pass 2.7\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2003-09-12 12:12-0600\n" -"PO-Revision-Date: 2007-06-04 21:34-0600\n" -"Last-Translator: LEE CHANG MIN \n" -"Language-Team: Korean \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=euc-kr\n" -"Content-Transfer-Encoding: 8bit" - -#: options.php:36 setup.php:18 -msgid "Change Password" -msgstr "ºñ¹Ð¹øÈ£ º¯°æ" - -#: options.php:77 -msgid "Closing Connection" -msgstr "Á¢¼ÓÀ» ²÷½À´Ï´Ù" - -#: options.php:137 -msgid "Connecting to Password Server" -msgstr "ºñ¹Ð¹øÈ£ ¼­¹ö·Î Á¢¼ÓÁßÀÔ´Ï´Ù" - -#: options.php:141 -msgid "ERROR:" -msgstr "¿¡·¯" - -#: options.php:52 -msgid "New Password" -msgstr "»õ·Î¿î ºñ¹Ð¹øÈ£" - -#: options.php:51 -msgid "Old Password" -msgstr "ÀÌÀü ºñ¹Ð¹øÈ£" - -#: options.php:173 setup.php:35 -msgid "Password changed successfully." -msgstr "ºñ¹Ð¹øÈ£ º¯°æÀ» ¿Ï·áÇß½À´Ï´Ù." - -#: options.php:64 -msgid "Submit" -msgstr "¹Ù²Ù±â" - -#: setup.php:20 -msgid "" -"This connects to your local Password Server to change your email password." -msgstr "ÀÌ°÷¿¡¼­ ºñ¹Ð¹øÈ£¸¦ º¯°æÇÏ½Ã¸é ¼­¹ö shell °èÁ¤ÀÇ ºñ¹Ð¹øÈ£°¡ º¯°æµË´Ï´Ù. ¸¸ÀÏ outlook °°Àº ¸ÞÀÏ Å¬¶óÀ̾ðÆ®¸¦ »ç¿ëÇϽøé Á¢¼Óºñ¹Ð¹øÈ£µµ °°ÀÌ º¯°æ ÇÏ½Ã±æ ¹Ù¶ø´Ï´Ù." - -#: options.php:53 -msgid "Verify New Password" -msgstr "»õ·Î¿î ºñ¹Ð¹øÈ£ È®ÀÎ" - -#: options.php:112 -msgid "You must also type in your new password in the verify box." -msgstr "»õ·Î¿î ºñ¹Ð¹øÈ£¸¦ È®Àζõ¿¡ ´Ù½Ã ÀÔ·Â ¹Ù¶ø´Ï´Ù." - -#: options.php:109 -msgid "You must type in a new password." -msgstr "»õ·Î¿î ºñ¹Ð¹øÈ£¸¦ ÀԷ¹ٶø´Ï´Ù." - -#: options.php:106 -msgid "You must type in your old password." -msgstr "ÀÌÀü ºñ¹Ð¹øÈ£¸¦ ÀԷ¹ٶø´Ï´Ù." - -#: options.php:115 -msgid "Your new password doesn't match the verify password." -msgstr "»õ·Î¿î ºñ¹Ð¹øÈ£¿Í È®Àζõ¿¡ ÀÔ·ÂµÈ ºñ¹Ð¹øÈ£°¡ ¸ÂÁö ¾Ê½À´Ï´Ù." - -#: options.php:118 -msgid "Your old password is not correct." -msgstr "ÀÌÀü ºñ¹Ð¹øÈ£ ÀÔ·ÂÀÌ À߸øµÇ¾ú½À´Ï´Ù." - diff --git a/change_pass/locale/lt_LT/LC_MESSAGES/change_pass.mo b/change_pass/locale/lt_LT/LC_MESSAGES/change_pass.mo deleted file mode 100644 index 77aed8a..0000000 Binary files a/change_pass/locale/lt_LT/LC_MESSAGES/change_pass.mo and /dev/null differ diff --git a/change_pass/locale/lt_LT/LC_MESSAGES/change_pass.po b/change_pass/locale/lt_LT/LC_MESSAGES/change_pass.po deleted file mode 100644 index f15dee2..0000000 --- a/change_pass/locale/lt_LT/LC_MESSAGES/change_pass.po +++ /dev/null @@ -1,77 +0,0 @@ -# Lithuanian change_pass plugin translation. -# Copyright (C) 2003 Free Software Foundation, Inc. -# Tomas Kuliavas , 2003. -msgid "" -msgstr "" -"Project-Id-Version: $Id: change_pass.po,v 1.1 2003/12/14 20:26:40 indiri69 Exp $\n" -"POT-Creation-Date: 2003-09-12 12:12-0600\n" -"PO-Revision-Date: 2003-11-30 20:10+0200\n" -"Last-Translator: Tomas Kuliavas \n" -"Language-Team: Lithuanian \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" - -#: options.php:36 setup.php:18 -msgid "Change Password" -msgstr "Pakeisti slaptažodį" - -#: options.php:77 -msgid "Closing Connection" -msgstr "Uždaroma Jungtis" - -#: options.php:137 -msgid "Connecting to Password Server" -msgstr "Jungiamasi prie Slaptažodžių Serverio" - -#: options.php:141 -msgid "ERROR:" -msgstr "KLAIDA:" - -#: options.php:52 -msgid "New Password" -msgstr "Naujasis slaptažodis" - -#: options.php:51 -msgid "Old Password" -msgstr "Senasis slaptažodis" - -#: options.php:173 setup.php:35 -msgid "Password changed successfully." -msgstr "Slaptažodis buvo sėkmingai pakeistas." - -#: options.php:64 -msgid "Submit" -msgstr "Pakeisti" - -#: setup.php:20 -msgid "" -"This connects to your local Password Server to change your email password." -msgstr "" -"Čia galima prisijungti prie JÅ«sų slaptažodžių serverio ir pakeisti savo " -"paÅ¡to slaptažodį." - -#: options.php:53 -msgid "Verify New Password" -msgstr "Patvirtinti naują slaptažodį" - -#: options.php:112 -msgid "You must also type in your new password in the verify box." -msgstr "JÅ«s turite dar kartą įvesti naują slaptažodį patvirtinimo laukelyje." - -#: options.php:109 -msgid "You must type in a new password." -msgstr "JÅ«s turite įvesti naująjį slaptažodį." - -#: options.php:106 -msgid "You must type in your old password." -msgstr "JÅ«s turite įvesti savo senąjį slaptažodį." - -#: options.php:115 -msgid "Your new password doesn't match the verify password." -msgstr "" -"Naujasis slaptažodis neatitinka to, kuris įraÅ¡ytas patvirtinimo laukelyje." - -#: options.php:118 -msgid "Your old password is not correct." -msgstr "JÅ«sų senasis slaptažodis yra neteisingas." diff --git a/change_pass/locale/nb_NO/LC_MESSAGES/change_pass.mo b/change_pass/locale/nb_NO/LC_MESSAGES/change_pass.mo deleted file mode 100644 index 120f630..0000000 Binary files a/change_pass/locale/nb_NO/LC_MESSAGES/change_pass.mo and /dev/null differ diff --git a/change_pass/locale/nb_NO/LC_MESSAGES/change_pass.po b/change_pass/locale/nb_NO/LC_MESSAGES/change_pass.po deleted file mode 100644 index 7e48705..0000000 --- a/change_pass/locale/nb_NO/LC_MESSAGES/change_pass.po +++ /dev/null @@ -1,77 +0,0 @@ -# Norwegian (bokmal) translation of change_pass plugin. -# Copyright (C) 2006 The SquirrelMail Project Team -# This file is distributed under the same license as the change_pass package. -# Svein Olav Bjerkeset , 2006. -# $Id: change_pass.po,v 1.1 2006/10/04 06:44:41 tokul Exp $ -msgid "" -msgstr "" -"Project-Id-Version: change_pass 2.7\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2006-07-19 10:25+0200\n" -"PO-Revision-Date: 2006-07-19 14:05+0200\n" -"Last-Translator: Svein Olav Bjerkeset \n" -"Language-Team: Norwegian (bokmal) \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=iso-8859-1\n" -"Content-Transfer-Encoding: 8bit\n" - -#: ../options.php:36 ../setup.php:21 -msgid "Change Password" -msgstr "Endre passord" - -#: ../options.php:51 -msgid "Old Password" -msgstr "Gammelt passord" - -#: ../options.php:52 -msgid "New Password" -msgstr "Nytt passord" - -#: ../options.php:53 -msgid "Verify New Password" -msgstr "Bekreft nytt passord" - -#: ../options.php:64 -msgid "Submit" -msgstr "Endre" - -#: ../options.php:77 -msgid "Closing Connection" -msgstr "Lukker forbindelsen" - -#: ../options.php:106 -msgid "You must type in your old password." -msgstr "Du må oppgi ditt gamle passord." - -#: ../options.php:109 -msgid "You must type in a new password." -msgstr "Du må skrive inn det nye passordet." - -#: ../options.php:112 -msgid "You must also type in your new password in the verify box." -msgstr "Du må bekrefte det nye passordet." - -#: ../options.php:115 -msgid "Your new password doesn't match the verify password." -msgstr "Du har ikke skrevet det nye passordet likt to ganger." - -#: ../options.php:118 -msgid "Your old password is not correct." -msgstr "Ditt gamle passord er ikke riktig." - -#: ../options.php:138 -msgid "Connecting to Password Server" -msgstr "Kobler til passordserver" - -#: ../options.php:142 -msgid "ERROR:" -msgstr "FEIL:" - -#: ../options.php:173 ../setup.php:38 -msgid "Password changed successfully." -msgstr "Passordet ditt er endret." - -#: ../setup.php:23 -msgid "" -"This connects to your local Password Server to change your email password." -msgstr "Her kan du endre ditt e-post passord." diff --git a/change_pass/locale/nl_NL/LC_MESSAGES/change_pass.mo b/change_pass/locale/nl_NL/LC_MESSAGES/change_pass.mo deleted file mode 100644 index 4461c22..0000000 Binary files a/change_pass/locale/nl_NL/LC_MESSAGES/change_pass.mo and /dev/null differ diff --git a/change_pass/locale/nl_NL/LC_MESSAGES/change_pass.po b/change_pass/locale/nl_NL/LC_MESSAGES/change_pass.po deleted file mode 100644 index bad386b..0000000 --- a/change_pass/locale/nl_NL/LC_MESSAGES/change_pass.po +++ /dev/null @@ -1,75 +0,0 @@ -# Dutch translation of change_pass plugin translation. -# Copyright (c) 2006 The SquirrelMail Project Team -# Sander , 2006. -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: $Id: change_pass.po,v 1.1 2007/06/05 04:05:06 indiri69 Exp $\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-07-31 15:00-0700\n" -"PO-Revision-Date: 2006-02-15 09:01+0100\n" -"Last-Translator: Sander Eerkes \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-1\n" -"Content-Transfer-Encoding: 8bit\n" - -#: options.php:36 setup.php:18 -msgid "Change Password" -msgstr "Wachtwoord Wijzigen" - -#: options.php:77 -msgid "Closing Connection" -msgstr "Verbinding aan het sluiten" - -#: options.php:137 -msgid "Connecting to Password Server" -msgstr "Verbinding met de Wachtwoord Server aan het maken" - -#: options.php:141 -msgid "ERROR:" -msgstr "ERROR:" - -#: options.php:52 -msgid "New Password" -msgstr "Nieuw Wachtwoord" - -#: options.php:51 -msgid "Old Password" -msgstr "Oud Wachtwoord" - -#: options.php:173 setup.php:35 -msgid "Password changed successfully." -msgstr "Wachtwoord succesvol gewijzigd." - -#: options.php:64 -msgid "Submit" -msgstr "Wijzig" - -#: setup.php:20 -msgid "This connects to your local Password Server to change your email password." -msgstr "Hier kunt u uw email wachtwoord wijzigen." - -#: options.php:53 -msgid "Verify New Password" -msgstr "Bevestig Nieuw Wachtwoord" - -#: options.php:112 -msgid "You must also type in your new password in the verify box." -msgstr "U moet uw nieuwe wachtwoord ook in het 'Bevestig Nieuw Wachtwoord' veld invullen." - -#: options.php:109 -msgid "You must type in a new password." -msgstr "U moet een nieuw wachtwoord opgeven." - -#: options.php:106 -msgid "You must type in your old password." -msgstr "U moet uw oude wachtwoord opgeven." - -#: options.php:115 -msgid "Your new password doesn't match the verify password." -msgstr "Uw nieuwe wachtwoord komt niet overeen met het wachtwoord in het bevestig veld." - -#: options.php:118 -msgid "Your old password is not correct." -msgstr "Uw oude wachtwoord is niet correct." diff --git a/change_pass/locale/pl_PL/LC_MESSAGES/change_pass.mo b/change_pass/locale/pl_PL/LC_MESSAGES/change_pass.mo deleted file mode 100644 index 027980f..0000000 Binary files a/change_pass/locale/pl_PL/LC_MESSAGES/change_pass.mo and /dev/null differ diff --git a/change_pass/locale/pl_PL/LC_MESSAGES/change_pass.po b/change_pass/locale/pl_PL/LC_MESSAGES/change_pass.po deleted file mode 100644 index e834be9..0000000 --- a/change_pass/locale/pl_PL/LC_MESSAGES/change_pass.po +++ /dev/null @@ -1,75 +0,0 @@ -# POLISH change_pass plugin translation. -# Copyright (C) 2003 The Squirrelmail Development Team. -# Sebastian Turzyñski , 2003. -# -msgid "" -msgstr "" -"Project-Id-Version: $Id: change_pass.po,v 1.2 2003/12/14 20:26:40 indiri69 Exp $\n" -"POT-Creation-Date: 2003-09-12 12:12-0600\n" -"PO-Revision-Date: 2003-09-30 13:20+0100\n" -"Last-Translator: Sebastian Turzynski \n" -"Language-Team: Polish \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=iso-8859-2\n" -"Content-Transfer-Encoding: 8bit\n" - -#: options.php:36 setup.php:18 -msgid "Change Password" -msgstr "Zmieñ has³o" - -#: options.php:77 -msgid "Closing Connection" -msgstr "Zamykanie po³±czenia" - -#: options.php:137 -msgid "Connecting to Password Server" -msgstr "£±czenie z serwerem hase³" - -#: options.php:141 -msgid "ERROR:" -msgstr "B³±d:" - -#: options.php:52 -msgid "New Password" -msgstr "Nowe has³o" - -#: options.php:51 -msgid "Old Password" -msgstr "Stare has³o" - -#: options.php:173 setup.php:35 -msgid "Password changed successfully." -msgstr "Has³o zosta³o zmienione pomy¶lnie." - -#: options.php:64 -msgid "Submit" -msgstr "Potwierd¼" - -#: setup.php:20 -msgid "" -"This connects to your local Password Server to change your email password." -msgstr "£±czy z lokalnym serwerem hase³ aby zmieniæ has³o Twojego konta pocztowego." - -#: options.php:53 -msgid "Verify New Password" -msgstr "Potwierd¼ nowe has³o" - -#: options.php:112 -msgid "You must also type in your new password in the verify box." -msgstr "Musisz tak¿e wpisaæ nowe has³o w polu potwierdzenia." - -#: options.php:109 -msgid "You must type in a new password." -msgstr "Musisz wpisaæ nowe has³o." - -#: options.php:106 -msgid "You must type in your old password." -msgstr "Musisz wpisaæ stare has³o." - -#: options.php:115 -msgid "Your new password doesn't match the verify password." -msgstr "Twoje nowe has³o nie odpowiada has³u wpisanemu w polu potwierdzenia has³a." - -#: options.php:118 -msgid "Your old password is not correct." -msgstr "Twoje stare has³o nie jest prawid³owe." diff --git a/change_pass/locale/pt_BR/LC_MESSAGES/change_pass.mo b/change_pass/locale/pt_BR/LC_MESSAGES/change_pass.mo deleted file mode 100644 index fc428d2..0000000 Binary files a/change_pass/locale/pt_BR/LC_MESSAGES/change_pass.mo and /dev/null differ diff --git a/change_pass/locale/pt_BR/LC_MESSAGES/change_pass.po b/change_pass/locale/pt_BR/LC_MESSAGES/change_pass.po deleted file mode 100644 index 2956300..0000000 --- a/change_pass/locale/pt_BR/LC_MESSAGES/change_pass.po +++ /dev/null @@ -1,80 +0,0 @@ -# $Id: change_pass.po,v 1.1 2004/06/30 17:21:21 indiri69 Exp $ -# Brazilian Portuguese change_pass plugin translation. -# Copyright (C) 2003 The Squirrelmail Development Team. -# Edinardo Potrich , 2004. -# -# -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2003-09-12 12:12-0600\n" -"PO-Revision-Date: 2004-06-29 09:42-0300\n" -"Last-Translator: Edinardo Potrich \n" -"Language-Team: Portuguese/Brazil \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=iso-8859-1\n" -"Content-Transfer-Encoding: 8bit" - -#: options.php:36 setup.php:18 -msgid "Change Password" -msgstr "Alterar Senha" - -#: options.php:77 -msgid "Closing Connection" -msgstr "Terminando Conexão" - -#: options.php:137 -msgid "Connecting to Password Server" -msgstr "Conectado ao Servidor de Senhas" - -#: options.php:141 -msgid "ERROR:" -msgstr "ERRO:" - -#: options.php:52 -msgid "New Password" -msgstr "Nova Senha" - -#: options.php:51 -msgid "Old Password" -msgstr "Senha Atual" - -#: options.php:173 setup.php:35 -msgid "Password changed successfully." -msgstr "Senha alterada com sucesso." - -#: options.php:64 -msgid "Submit" -msgstr "Alterar" - -#: setup.php:20 -msgid "" -"This connects to your local Password Server to change your email password." -msgstr "" -"Conecta-se ao seu Servidor de Senhas local para alterar sua senha de email." - -#: options.php:53 -msgid "Verify New Password" -msgstr "Repita a Nova Senha" - -#: options.php:112 -msgid "You must also type in your new password in the verify box." -msgstr "Você também deve repetir a nova senha." - -#: options.php:109 -msgid "You must type in a new password." -msgstr "Você deve digitar a nova senha." - -#: options.php:106 -msgid "You must type in your old password." -msgstr "Você tem que digitar sua senha atual." - -#: options.php:115 -msgid "Your new password doesn't match the verify password." -msgstr "Sua nova senha não coincide com a repetição." - -#: options.php:118 -msgid "Your old password is not correct." -msgstr "Sua senha atual esta incorreta." - diff --git a/change_pass/locale/pt_PT/LC_MESSAGES/change_pass.mo b/change_pass/locale/pt_PT/LC_MESSAGES/change_pass.mo deleted file mode 100644 index fcfa87a..0000000 Binary files a/change_pass/locale/pt_PT/LC_MESSAGES/change_pass.mo and /dev/null differ diff --git a/change_pass/locale/pt_PT/LC_MESSAGES/change_pass.po b/change_pass/locale/pt_PT/LC_MESSAGES/change_pass.po deleted file mode 100644 index 69fdf74..0000000 --- a/change_pass/locale/pt_PT/LC_MESSAGES/change_pass.po +++ /dev/null @@ -1,75 +0,0 @@ -# Portuguese change_pass plugin translation. -# Copyright (C) 2003 The Squirrelmail Development Team. -# Ruben Leote Mendes , 2003. -# -msgid "" -msgstr "" -"Project-Id-Version: $Id: change_pass.po,v 1.2 2003/12/14 20:26:40 indiri69 Exp $\n" -"POT-Creation-Date: 2003-09-12 12:12-0600\n" -"PO-Revision-Date: 2003-09-13 17:40+0100\n" -"Last-Translator: Ruben Leote Mendes \n" -"Language-Team: Portuguese Portugal \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=iso-8859-1\n" -"Content-Transfer-Encoding: 8bit\n" - -#: options.php:36 setup.php:18 -msgid "Change Password" -msgstr "Alterar Senha" - -#: options.php:77 -msgid "Closing Connection" -msgstr "A Terminar Ligação" - -#: options.php:137 -msgid "Connecting to Password Server" -msgstr "A Estabelecer Ligação com o Servidor" - -#: options.php:141 -msgid "ERROR:" -msgstr "ERRO:" - -#: options.php:52 -msgid "New Password" -msgstr "Senha Nova" - -#: options.php:51 -msgid "Old Password" -msgstr "Senha Actual" - -#: options.php:173 setup.php:35 -msgid "Password changed successfully." -msgstr "Senha alterada com sucesso." - -#: options.php:64 -msgid "Submit" -msgstr "Alterar" - -#: setup.php:20 -msgid "" -"This connects to your local Password Server to change your email password." -msgstr "Aqui pode alterar a sua senha secreta." - -#: options.php:53 -msgid "Verify New Password" -msgstr "Repetir Senha Nova" - -#: options.php:112 -msgid "You must also type in your new password in the verify box." -msgstr "Tem de repetir a senha nova." - -#: options.php:109 -msgid "You must type in a new password." -msgstr "Tem de introduzir a senha nova." - -#: options.php:106 -msgid "You must type in your old password." -msgstr "Tem de introduzir a senha actual." - -#: options.php:115 -msgid "Your new password doesn't match the verify password." -msgstr "As senhas não coincidem." - -#: options.php:118 -msgid "Your old password is not correct." -msgstr "A senha actual está incorrecta." diff --git a/change_pass/locale/sl_SI/LC_MESSAGES/change_pass.mo b/change_pass/locale/sl_SI/LC_MESSAGES/change_pass.mo deleted file mode 100644 index 867117c..0000000 Binary files a/change_pass/locale/sl_SI/LC_MESSAGES/change_pass.mo and /dev/null differ diff --git a/change_pass/locale/sl_SI/LC_MESSAGES/change_pass.po b/change_pass/locale/sl_SI/LC_MESSAGES/change_pass.po deleted file mode 100644 index c52e535..0000000 --- a/change_pass/locale/sl_SI/LC_MESSAGES/change_pass.po +++ /dev/null @@ -1,80 +0,0 @@ -# Slovenian (sl_SI) change_pass plugin translation. -# Copyright (C) 2003 The Squirrelmail Development Team. -# FIRST AUTHOR , YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: $Id: change_pass.po,v 1.1 2005/11/20 06:42:00 indiri69 Exp $\n" -"POT-Creation-Date: 2003-09-12 12:12-0600\n" -"PO-Revision-Date: 2005-10-11 12:31+0100\n" -"Last-Translator: Sasa Stupar \n" -"Language-Team: Sasa Stupar \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Poedit-Language: Slovenian\n" -"X-Poedit-Country: SLOVENIA\n" -"X-Poedit-SourceCharset: iso-8859-1\n" - -#: options.php:36 -#: setup.php:18 -msgid "Change Password" -msgstr "Sprememba gesla" - -#: options.php:77 -msgid "Closing Connection" -msgstr "Zapiranje povezave" - -#: options.php:137 -msgid "Connecting to Password Server" -msgstr "Povezujem se na strežnik za gesla" - -#: options.php:141 -msgid "ERROR:" -msgstr "NAPAKA:" - -#: options.php:52 -msgid "New Password" -msgstr "Novo geslo" - -#: options.php:51 -msgid "Old Password" -msgstr "Staro geslo" - -#: options.php:173 -#: setup.php:35 -msgid "Password changed successfully." -msgstr "Geslo uspeÅ¡no spremenjeno." - -#: options.php:64 -msgid "Submit" -msgstr "PoÅ¡lji" - -#: setup.php:20 -msgid "This connects to your local Password Server to change your email password." -msgstr "Za spremembo gesla se poveže z vaÅ¡im lokalnim strežnikom." - -#: options.php:53 -msgid "Verify New Password" -msgstr "Preveri novo geslo" - -#: options.php:112 -msgid "You must also type in your new password in the verify box." -msgstr "V polje \"Preveri novo geslo\" morate pravtako vpisati novo geslo." - -#: options.php:109 -msgid "You must type in a new password." -msgstr "Morate vpisati novo geslo." - -#: options.php:106 -msgid "You must type in your old password." -msgstr "Morate vpisati staro geslo." - -#: options.php:115 -msgid "Your new password doesn't match the verify password." -msgstr "VaÅ¡e novo geslo se ne ujema." - -#: options.php:118 -msgid "Your old password is not correct." -msgstr "VaÅ¡e staro geslo je napačno." - diff --git a/change_pass/locale/sv_SE/LC_MESSAGES/change_pass.mo b/change_pass/locale/sv_SE/LC_MESSAGES/change_pass.mo deleted file mode 100644 index 16f1974..0000000 Binary files a/change_pass/locale/sv_SE/LC_MESSAGES/change_pass.mo and /dev/null differ diff --git a/change_pass/locale/sv_SE/LC_MESSAGES/change_pass.po b/change_pass/locale/sv_SE/LC_MESSAGES/change_pass.po deleted file mode 100644 index 3580f08..0000000 --- a/change_pass/locale/sv_SE/LC_MESSAGES/change_pass.po +++ /dev/null @@ -1,79 +0,0 @@ -# Swedish translation of change_pass plugin. -# Copyright (C) 2007 The Squirrelmail Development Team. -# Erik Lindgren , 2005. -# $Id: change_pass.po,v 1.1 2007/06/05 03:30:07 indiri69 Exp $ -# -# -msgid "" -msgstr "" -"Project-Id-Version: change_pass 2.7\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-01-18 23:24+0100\n" -"PO-Revision-Date: 2007-06-04 20:24-0600\n" -"Last-Translator: Erik Lindgren \n" -"Language-Team: Swedish \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-1\n" -"Content-Transfer-Encoding: 8bit" - -#: options.php:36 setup.php:18 -msgid "Change Password" -msgstr "Ändra lösenord" - -#: options.php:77 -msgid "Closing Connection" -msgstr "Stänger förbindelse" - -#: options.php:137 -msgid "Connecting to Password Server" -msgstr "Ansluter till lösenordsservern" - -#: options.php:141 -msgid "ERROR:" -msgstr "FEL:" - -#: options.php:52 -msgid "New Password" -msgstr "Nytt lösenord" - -#: options.php:51 -msgid "Old Password" -msgstr "Gammalt lösenord" - -#: options.php:173 setup.php:35 -msgid "Password changed successfully." -msgstr "Ändring av lösenordet lyckades." - -#: options.php:64 -msgid "Submit" -msgstr "Ändra" - -#: setup.php:20 -msgid "" -"This connects to your local Password Server to change your email password." -msgstr "Detta ansluter till den lokala lösenordsservern för att ändra ditt lösenord." - -#: options.php:53 -msgid "Verify New Password" -msgstr "Verifiera nytt lösenord" - -#: options.php:112 -msgid "You must also type in your new password in the verify box." -msgstr "Du måste skriva ditt nya lösenord i verifieringsfältet." - -#: options.php:109 -msgid "You must type in a new password." -msgstr "Du måste skriva ett nytt lösenord." - -#: options.php:106 -msgid "You must type in your old password." -msgstr "Du måste skriva ditt gamla lösenord." - -#: options.php:115 -msgid "Your new password doesn't match the verify password." -msgstr "Du måste skriva samma lösenord i verifieringsfältet." - -#: options.php:118 -msgid "Your old password is not correct." -msgstr "Ditt gamla lösenord stämmer inte." - diff --git a/change_pass/options.php b/change_pass/options.php index 9343685..7649a3c 100644 --- a/change_pass/options.php +++ b/change_pass/options.php @@ -1,183 +1,127 @@ - - - \n"; - echo " -
-
-
-\n"; - } - echo "
\n"; - } -?> -
- - 'cp_oldpass', - _("New Password") => 'cp_newpass', - _("Verify New Password") => 'cp_verify'); - foreach($values as $key=>$value) { -?> - - - - - - -
- -
- name="plugin_change_pass"> -
-
-
- - $strResp"; - } - } +// Make sure the plugin is activated +global $plugins; +if(!in_array('change_pass', $plugins)) { + exit; } -function change_pass_check($debug = 0) { - global $cp_oldpass, $cp_newpass, $cp_verify; - global $plugin_change_pass; - - sqgetGlobalVar('key', $key, SQ_COOKIE); - sqgetGlobalVar('onetimepad', $onetimepad, SQ_SESSION); - $messages = array(); - $password = OneTimePadDecrypt($key, $onetimepad); +$min_pass_length = 0; +$max_pass_length = 99999999; - if ($cp_oldpass == '') { - $messages[] = _("You must type in your old password."); - } - if ($cp_newpass == '') { - $messages[] = _("You must type in a new password."); - } - if ($cp_verify == '') { - $messages[] = _("You must also type in your new password in the verify box."); - } - if ($cp_newpass != '' && ($cp_verify != $cp_newpass)) { - $messages[] = _("Your new password doesn't match the verify password."); - } - if ($cp_oldpass != '' && ($cp_oldpass != $password)) { - $messages[] = _("Your old password is not correct."); - } - if (count($messages)) { - $return = $messages; - } else { - $return = change_pass_go($password, $debug); - } - return $return; +if (!@include(SM_PATH . 'config/config_change_pass.php')) { + @include(SM_PATH . 'plugins/change_pass/config.php'); } -function change_pass_go($password, $debug) { - include_once(SM_PATH . 'plugins/change_pass/settings.php'); +include_once(SM_PATH . 'plugins/change_pass/functions.php'); - global $username; - global $cp_newpass, $key, $onetimepad; +global $color; +sqgetGlobalVar('change_pass_form', $change_pass_form, SQ_POST); - sqgetGlobalVar('base_uri', $base_uri, SQ_SESSION); - $messages = array(); +$error_messages = array(); +$showform = true; - if ($debug) { - $messages[] = _("Connecting to Password Server"); - } - $pop_socket = fsockopen($poppass_server, $poppass_port, $errno, $errstr); - if (!$pop_socket) { - $messages[] = _("ERROR:") . "$errstr ($errno)"; - return $messages; - } +if (isset($change_pass_form)) { + sq_change_text_domain('change_pass'); + sqgetGlobalVar('change_pass_old', $change_pass_old, SQ_POST); + sqgetGlobalVar('change_pass_new', $change_pass_new, SQ_POST); + sqgetGlobalVar('change_pass_verify', $change_pass_verify, SQ_POST); - change_pass_readfb($pop_socket, $result, $messages, $debug); - if(!preg_match('/^2\d\d/', $result) ) { - change_pass_closeport($pop_socket, $messages, $debug); - return $messages; + if(!isset($change_pass_old) || $change_pass_old == '') { + $error_messages['cp_no_old'] = _("You must type in your current password."); } - fputs($pop_socket, "user $username\r\n"); - change_pass_readfb($pop_socket, $result, $messages, $debug); - if(!preg_match('/^[23]\d\d/', $result) ) { - change_pass_closeport($pop_socket, $messages, $debug); - return $messages; + if(!isset($change_pass_new) || $change_pass_new == '') { + $error_messages['cp_no_new'] = _("You must type in a new password."); } - fputs($pop_socket, "pass $password\r\n"); - change_pass_readfb($pop_socket, $result, $messages, $debug); - if(!preg_match('/^[23]\d\d/', $result) ) { - change_pass_closeport($pop_socket, $messages, $debug); - return $messages; + if(!isset($change_pass_verify) || $change_pass_verify == '') { + $error_messages['cp_no_verify'] = _("You must also type in your new password in the verify box."); } - fputs($pop_socket, "newpass $cp_newpass\r\n"); - change_pass_readfb($pop_socket, $result, $messages, $debug); - change_pass_closeport($pop_socket, $messages, $debug); - if(!preg_match('/^2\d\d/', $result) ) { - return $messages; + if(!isset($error_messages['cp_no_new']) && !isset($error_messages['cp_no_verify'])) { + if($change_pass_new != $change_pass_verify) { + $error_messages['cp_new_mismatch'] = _("Your new password does not match the verify password."); + } else { + if (strlen($change_pass_new) < $min_pass_length || + strlen($change_pass_new) > $max_pass_length) { + $error_messages[] = sprintf(_("Your new password should be %s to %s characters long."), + $min_pass_length, $max_pass_length); + } + } } - $messages[] = _("Password changed successfully."); + $old_pass = sqauth_read_password(); + if(!isset($error_messages['cp_no_old']) && $change_pass_old != $old_pass) { + $error_messages['cp_wrong_old'] = _("Your current password is not correct."); + } - // Write new cookies for the password - $onetimepad = OneTimePadCreate(strlen($cp_newpass)); - $key = OneTimePadEncrypt($cp_newpass, $onetimepad); - sqsession_register($onetimepad, 'onetimepad'); - setcookie('key', $key, 0, $base_uri); + if(count($error_messages) == 0) { + $error_messages = change_pass_dochange($change_pass_old, $change_pass_new, $debug); + if(count($error_messages) == 0) { + $showform = false; + } + } + sq_change_text_domain('squirrelmail'); +} +displayPageHeader($color, ''); +sq_change_text_domain('change_pass'); + +echo + html_tag('table', "\n" . + html_tag('tr', "\n" . + html_tag('td', '' . _("Change Password") . '', 'center', $color[0]) + ), + 'center', $color[9], 'width="95%" border="0" cellpadding="1" cellspacing="0"') . "
\n"; + +if(count($error_messages) > 0) { + echo html_tag('table', '', 'center', '', 'width="100%" border="0" cellpadding="1" cellspacing="0"'); + echo html_tag('tr'); + echo html_tag('td', '', 'center'); + echo html_tag('ul'); + foreach($error_messages as $line) { + echo html_tag('li', htmlspecialchars($line), '', '', 'style="color: ' . $color[2] . '"'); + } + echo html_tag('/ul'); + echo html_tag('tr', html_tag('td', ' ')) . "\n"; + echo html_tag('/table'); +} - return $messages; +if($showform) { + echo addForm($PHP_SELF); + echo + html_tag('table', "\n" . + html_tag('tr', "\n" . + html_tag('td', _("Current Password:"), 'right') . + html_tag('td', addPwField('change_pass_old', ''), 'left') + ) . + html_tag('tr', "\n" . + html_tag('td', _("New Password:"), 'right') . + html_tag('td', addPwField('change_pass_new', ''), 'left') + ) . + html_tag('tr', "\n" . + html_tag('td', _("Verify New Password:"), 'right') . + html_tag('td', addPwField('change_pass_verify', ''), 'left') + ) . + html_tag('tr', "\n" . + html_tag('td', addSubmit(_('Change Password'), 'change_pass_form'), 'center', '', 'colspan="2"') + ), + 'center', '', 'border="0" cellpadding="1" cellspacing="0"') . "\n"; + echo html_tag('/form'); + echo html_tag('/body'); + echo html_tag('/html'); } -?> +sq_change_text_domain('squirrelmail'); diff --git a/change_pass/settings.php b/change_pass/settings.php deleted file mode 100644 index f34c172..0000000 --- a/change_pass/settings.php +++ /dev/null @@ -1,11 +0,0 @@ - diff --git a/change_pass/setup.php b/change_pass/setup.php index 606fdfd..a9f58fc 100644 --- a/change_pass/setup.php +++ b/change_pass/setup.php @@ -1,49 +1,34 @@ _("Change Password"), - 'url' => SM_PATH . 'plugins/change_pass/options.php', - 'desc' => _("This connects to your local Password Server to change your email password."), - 'js' => false - ); - - bindtextdomain('squirrelmail', SM_PATH . 'locale'); - textdomain('squirrelmail'); +function change_pass_info() { + include_once(SM_PATH . 'plugins/change_pass/functions.php'); + return change_pass_info_real(); } -function change_pass_save_pref() { - if(sqgetGlobalVar('plugin_change_pass', $plugin_change_pass)) { - include_once(SM_PATH . 'functions/i18n.php'); - bindtextdomain('change_pass', SM_PATH . 'plugins/change_pass/locale'); - textdomain('change_pass'); - - echo '

' . - _("Password changed successfully.") . - "

\n"; +function change_pass_version() { + $info = change_pass_info(); + return $info['version']; +} - bindtextdomain('squirrelmail', SM_PATH . 'locale'); - textdomain('squirrelmail'); - } +function change_pass_opt() { + include_once(SM_PATH . 'plugins/change_pass/functions.php'); + change_pass_option_link_do(); } - function change_pass_version() { - return '2.7a-1.4.x'; - } -?> +function change_pass_loadinfo() { + include_once(SM_PATH . 'plugins/change_pass/functions.php'); + change_pass_loadinfo_real(); +} diff --git a/change_pass/version b/change_pass/version index d88285c..c553e1c 100644 --- a/change_pass/version +++ b/change_pass/version @@ -1,2 +1,2 @@ Change Password -2.7a-1.4.x +3.0 diff --git a/change_pass/xm b/change_pass/xm deleted file mode 100755 index 3b30679..0000000 --- a/change_pass/xm +++ /dev/null @@ -1 +0,0 @@ -xgettext --keyword=_ -d change_pass -s -C *.php diff --git a/debian/README.CARNet b/debian/README.CARNet index cc11055..936e468 100644 --- a/debian/README.CARNet +++ b/debian/README.CARNet @@ -1,29 +1,43 @@ squirrelmail-change-pass-cn --------------------------- -Ovaj paket donosi change_pass plugin za SquirrelMail. +Ovaj paket donosi change_pass dodatak (plugin) za SquirrelMail. -Izvorni kod change_pass plugina je skinut sa adrese: +Izvorni kod change_pass dodatka preuzet je sa adrese: http://www.squirrelmail.org/plugin_view.php?id=21 squirrelmail-change-pass-cn paket automatski aktivira change_pass -plugin unutar SquirrelMail konfiguracije, a zatim vrsi podesavanje +dodatak unutar SquirrelMail konfiguracije, a zatim vrsi podesavanje poppassd servisa. Konfiguracija poppassd servisa nalazi se u datoteci: /etc/xinetd.d/poppassd -Pristup poppassd servisu kontrolira se kroz datoteka: +Pristup poppassd servisu kontrolira se kroz datoteke: /etc/hosts.allow i /etc/hosts.deny Zbog sigurnosnih razloga, pristup poppassd servisu ogranicen je na localhost (127.0.0.1). +change_pass dodatak moguce je konfigurirati kroz konfiguracijske +datoteke: + + /usr/share/squirrelmail/plugins/change_pass/config.php + +ili + + /etc/squirrelmail/config_change_pass.php + +Dokumentacija se nalazi unutar direktorija: + + /usr/share/doc/squirrelmail-change-pass-cn/ + + Izvorni odrzavatelj paketa: Zoran Dzelajlija . Trenutno odrzava: Dragan Dosen . - -- Dragan Dosen Sat, 27 Oct 2007 15:13:10 +0200 + -- Dragan Dosen Thu, 28 May 2009 12:35:18 +0200 diff --git a/debian/changelog b/debian/changelog index 9eec400..54db6b8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,13 @@ -squirrelmail-change-pass-cn (2.7a-3) stable; urgency=low +squirrelmail-change-pass-cn (3.0-1) stable; urgency=low * Upgrade paketa za Debian lenny. + * Novi izvorni kod change_pass dodatka, inacica 3.0. + * Modificirane datoteke debian/postinst i debian/prerm zbog + prilagodbe novoj inacici change_pass dodatka. + * Dodana ovisnost o paketu squirrelmail-compatibility. + * Azurirana datoteka README.CARNet. - -- Dragan Dosen Sun, 19 Apr 2009 18:00:31 +0200 + -- Dragan Dosen Thu, 28 May 2009 12:35:18 +0200 squirrelmail-change-pass-cn (2.7a-2) stable; urgency=low diff --git a/debian/control b/debian/control index 762ab0e..6dbfd20 100644 --- a/debian/control +++ b/debian/control @@ -7,7 +7,7 @@ Standards-Version: 3.7.2 Package: squirrelmail-change-pass-cn Architecture: all -Depends: squirrelmail-cn (>= 2:1.4.15-2), xinetd-cn (>= 1:2.3.14-3), poppassd (>= 1.8.5-3.2), carnet-tools-cn (>= 2.8.1) +Depends: squirrelmail-cn (>= 2:1.4.15-2lenny1), squirrelmail-compatibility (>= 2.0.12-1), xinetd-cn (>= 1:2.3.14-3lenny1), poppassd (>= 1.8.5-3.2), carnet-tools-cn (>= 2.8.1) Description: change passwords from SquirrelMail via poppassd change_pass is a SquirrelMail plugin that lets you change your password using poppassd service. This is pretty safe if the diff --git a/debian/docs b/debian/docs index 4f5d82d..0169e3c 100644 --- a/debian/docs +++ b/debian/docs @@ -1,6 +1,7 @@ -change_pass/ChangeLog -change_pass/README -change_pass/FAQ -change_pass/INSTALL +change_pass/doc/ChangeLog +change_pass/doc/README +change_pass/doc/FAQ +change_pass/doc/INSTALL +change_pass/doc/COPYING debian/changelog.CARNet debian/README.CARNet diff --git a/debian/postinst b/debian/postinst index 72de9fb..f56b7ac 100644 --- a/debian/postinst +++ b/debian/postinst @@ -7,7 +7,13 @@ set -e PKG="squirrelmail-change-pass-cn" -SQCONF=/etc/squirrelmail/config.php +VERSION="3.0-1" +SQCONFDIR="/etc/squirrelmail" +SQCONF="$SQCONFDIR/config.php" +SQCPCONF="$SQCONFDIR/config_change_pass.php" +CPCONF="/usr/share/squirrelmail/plugins/change_pass/config.php" +need_restart=0 + # Include CARNet functions . /usr/share/carnet-tools/functions.sh @@ -16,40 +22,47 @@ SQCONF=/etc/squirrelmail/config.php # Configure poppassd to refuse connection from all hosts # but localhost (127.0.0.1). # -if [ -e /etc/hosts.deny -a -e /etc/hosts.allow ]; then +if [ ! -f /etc/hosts.deny ]; then + touch /etc/hosts.deny +fi +if ! egrep -q '^poppassd:' /etc/hosts.deny; then + echo "poppassd: ALL" | cp-update "$PKG" /etc/hosts.deny +fi +if [ ! -f /etc/hosts.allow ]; then + touch /etc/hosts.allow +fi +if ! egrep -q '^poppassd:' /etc/hosts.allow; then + echo "poppassd: 127.0.0.1" | cp-update "$PKG" /etc/hosts.allow +fi - if ! egrep -q '^poppassd:' /etc/hosts.deny; then - echo "poppassd: ALL" | cp-update "$PKG" /etc/hosts.deny - fi - if ! egrep -q '^poppassd:' /etc/hosts.allow; then - echo "poppassd: 127.0.0.1" | cp-update "$PKG" /etc/hosts.allow - fi +# Configure SquirrelMail change_pass plugin - using defaults, +# no configuration files. +# +if [ "$2" ] && dpkg --compare-versions $2 lt $VERSION; then + cp_echo "CN: This version of change_pass plugin contains major changes." + cp_echo "CN: For detailed description, see documentation in /usr/share/doc/$PKG/." +fi +if [ -f "$SQCPCONF" ]; then + mv -f "$SQCPCONF" "$SQCPCONF.cn-old" + cp_echo "CN: Old $SQCPCONF disabled and renamed to $SQCPCONF.cn-old." +fi +if [ -f "$CPCONF" ]; then + mv -f "$CPCONF" "$CPCONF.cn-old" + cp_echo "CN: Old $CPCONF disabled and renamed to $CPCONF.cn-old." fi # Enable change_pass plugin in SquirrelMail config.php. # -if ! egrep '^\$plugins\[[0-9]+\][\ ]*=[\ ]*'\''change_pass'\' "$SQCONF"; then - - sq_last_plugin=`egrep '^\\$plugins\[[0-9]+\][\ ]*=[\ ]*'\' "$SQCONF" | sed 's/^.*\[//;s/\].*//' | sort -n | tail -n1` || true - - if [ -n "$sq_last_plugin" ]; then - - # Backup SquirrelMail configuration file. - cp_check_and_backup "$SQCONF" +if ! egrep -q '^\$plugins\[[0-9]+\][\ ]*=[\ ]*'\''change_pass'\' "$SQCONF"; then - change_pass_num=$sq_last_plugin - let change_pass_num++ - - SQCONFTMP=`mktemp $SQCONF.tmp.XXXXXX` - - echo -n "CN: Enabling SquirrelMail change_pass plugin in $SQCONF" - sed '/^$plugins\[.*'${sq_last_plugin}'\]/a $plugins['${change_pass_num}'] = '\''change_pass'\'';' "$SQCONF" > "$SQCONFTMP" - cp_mv "$SQCONFTMP" "$SQCONF" - echo "." - fi + if cp_check_and_backup "$SQCONF"; then + cp_echo "CN: Old $SQCONF saved as \"/var/backups/${SQCONF##*/}.bak\"." + fi + cp_echo "CN: Enabling SquirrelMail change_pass plugin in $SQCONF" + /usr/sbin/squirrelmail-configure --install-plugin change_pass fi @@ -59,35 +72,36 @@ fi if [ -x /etc/init.d/xinetd -a -d /etc/xinetd.d -a -x /usr/sbin/itox ]; then if egrep -q '^poppassd' /etc/inetd.conf && \ - [ ! -e /etc/xinetd.d/poppassd ]; then + [ ! -f /etc/xinetd.d/poppassd ]; then - echo -n "CN: Enabling poppassd in /etc/xinetd.d/poppassd" + cp_echo "CN: Enabling poppassd in /etc/xinetd.d/poppassd" touch /etc/xinetd.d/poppassd.$$ grep "^poppassd" /etc/inetd.conf | \ itox -daemon_dir /usr/sbin | cp-update "$PKG" /etc/xinetd.d/poppassd.$$ cp_mv /etc/xinetd.d/poppassd.$$ /etc/xinetd.d/poppassd - changed_config=1 - echo "." + need_restart=1 fi fi # Restart xinetd if needed. # -[ "$changed_config" ] && do=reload -pgrep -u root -f /usr/sbin/xinetd > /dev/null || do=start - -if [ "$do" ]; then +if [ $need_restart -eq 1 ]; then if [ -x "/etc/init.d/xinetd" ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then - invoke-rc.d xinetd "$do" || exit $? + invoke-rc.d xinetd restart || exit $? else - /etc/init.d/xinetd "$do" || exit $? + /etc/init.d/xinetd restart || exit $? fi fi fi + +# Mail root +# +cp_mail "$PKG" + exit 0 diff --git a/debian/prerm b/debian/prerm index 11b8ed8..9827786 100644 --- a/debian/prerm +++ b/debian/prerm @@ -14,10 +14,10 @@ case "$1" in # Remove CARNet configuration from /etc/hosts.allow and # /etc/hosts.deny. # - if [ -f "/etc/hosts.allow" ]; then + if [ -f /etc/hosts.allow ]; then cp-update -r "$PKG" /etc/hosts.allow fi - if [ -f "/etc/hosts.deny" ]; then + if [ -f /etc/hosts.deny ]; then cp-update -r "$PKG" /etc/hosts.deny fi @@ -25,19 +25,19 @@ case "$1" in # configuration. # SQCONF=/etc/squirrelmail/config.php - - cp_echo "CN: Disabling SquirrelMail change_pass plugin in $SQCONF" - cp_check_and_sed '^\$plugins.*change_pass' \ - '/^\$plugins.*change_pass/d' \ - "$SQCONF" || true + + if egrep -q '^\$plugins\[[0-9]+\][\ ]*=[\ ]*'\''change_pass'\' "$SQCONF"; then + cp_echo "CN: Disabling SquirrelMail change_pass plugin in $SQCONF" + /usr/sbin/squirrelmail-configure --remove-plugin change_pass + fi # Remove poppassd service from xinetd. # - if [ -f "/etc/xinetd.d/poppassd" ]; then + if [ -f /etc/xinetd.d/poppassd ]; then if egrep -q "^# Begin update by CARNet package " /etc/xinetd.d/poppassd; then - cp_echo "CN: Removing poppassd service from xinetd configuration." + cp_echo "CN: Removing poppassd service from xinetd configuration" rm -f /etc/xinetd.d/poppassd need_restart=1 fi diff --git a/debian/rules b/debian/rules index 76c08c8..634eafd 100755 --- a/debian/rules +++ b/debian/rules @@ -38,7 +38,7 @@ binary-arch: build install dh_testroot dh_installchangelogs dh_installdocs - dh_install -X.svn -XChangeLog -XFAQ -XINSTALL -XREADME + dh_install -X.svn -Xchange_pass/doc # dh_installexamples # dh_install # dh_installmenu