Novi izvorni kod change_pass dodatka (inacica 3.0).
authorDragan Dosen <bane@nekkar.carnet.hr>
Thu, 28 May 2009 18:03:08 +0000 (20:03 +0200)
committerDragan Dosen <bane@nekkar.carnet.hr>
Thu, 28 May 2009 18:03:08 +0000 (20:03 +0200)
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.

61 files changed:
change_pass/FAQ [deleted file]
change_pass/INSTALL [deleted file]
change_pass/README
change_pass/change_pass.po [deleted file]
change_pass/config_example.php [new file with mode: 0644]
change_pass/doc/.htaccess [new file with mode: 0644]
change_pass/doc/COPYING [new file with mode: 0644]
change_pass/doc/ChangeLog [moved from change_pass/ChangeLog with 91% similarity]
change_pass/doc/FAQ [new file with mode: 0644]
change_pass/doc/INSTALL [new file with mode: 0644]
change_pass/doc/README [new file with mode: 0644]
change_pass/doc/index.php [new file with mode: 0644]
change_pass/functions.php [new file with mode: 0644]
change_pass/index.php
change_pass/locale/Makefile [deleted file]
change_pass/locale/bg_BG/LC_MESSAGES/change_pass.mo [deleted file]
change_pass/locale/bg_BG/LC_MESSAGES/change_pass.po [deleted file]
change_pass/locale/cs_CZ/LC_MESSAGES/change_pass.mo [deleted file]
change_pass/locale/cs_CZ/LC_MESSAGES/change_pass.po [deleted file]
change_pass/locale/de_DE/LC_MESSAGES/change_pass.mo [deleted file]
change_pass/locale/de_DE/LC_MESSAGES/change_pass.po [deleted file]
change_pass/locale/es_ES/LC_MESSAGES/change_pass.mo [deleted file]
change_pass/locale/es_ES/LC_MESSAGES/change_pass.po [deleted file]
change_pass/locale/fi_FI/LC_MESSAGES/change_pass.mo [deleted file]
change_pass/locale/fi_FI/LC_MESSAGES/change_pass.po [deleted file]
change_pass/locale/fr_FR/LC_MESSAGES/change_pass.mo [deleted file]
change_pass/locale/fr_FR/LC_MESSAGES/change_pass.po [deleted file]
change_pass/locale/it_IT/LC_MESSAGES/change_pass.mo [deleted file]
change_pass/locale/it_IT/LC_MESSAGES/change_pass.po [deleted file]
change_pass/locale/ja_JP/LC_MESSAGES/change_pass.mo [deleted file]
change_pass/locale/ja_JP/LC_MESSAGES/change_pass.po [deleted file]
change_pass/locale/ko_KR/LC_MESSAGES/change_pass.mo [deleted file]
change_pass/locale/ko_KR/LC_MESSAGES/change_pass.po [deleted file]
change_pass/locale/lt_LT/LC_MESSAGES/change_pass.mo [deleted file]
change_pass/locale/lt_LT/LC_MESSAGES/change_pass.po [deleted file]
change_pass/locale/nb_NO/LC_MESSAGES/change_pass.mo [deleted file]
change_pass/locale/nb_NO/LC_MESSAGES/change_pass.po [deleted file]
change_pass/locale/nl_NL/LC_MESSAGES/change_pass.mo [deleted file]
change_pass/locale/nl_NL/LC_MESSAGES/change_pass.po [deleted file]
change_pass/locale/pl_PL/LC_MESSAGES/change_pass.mo [deleted file]
change_pass/locale/pl_PL/LC_MESSAGES/change_pass.po [deleted file]
change_pass/locale/pt_BR/LC_MESSAGES/change_pass.mo [deleted file]
change_pass/locale/pt_BR/LC_MESSAGES/change_pass.po [deleted file]
change_pass/locale/pt_PT/LC_MESSAGES/change_pass.mo [deleted file]
change_pass/locale/pt_PT/LC_MESSAGES/change_pass.po [deleted file]
change_pass/locale/sl_SI/LC_MESSAGES/change_pass.mo [deleted file]
change_pass/locale/sl_SI/LC_MESSAGES/change_pass.po [deleted file]
change_pass/locale/sv_SE/LC_MESSAGES/change_pass.mo [deleted file]
change_pass/locale/sv_SE/LC_MESSAGES/change_pass.po [deleted file]
change_pass/options.php
change_pass/settings.php [deleted file]
change_pass/setup.php
change_pass/version
change_pass/xm [deleted file]
debian/README.CARNet
debian/changelog
debian/control
debian/docs
debian/postinst
debian/prerm
debian/rules

diff --git a/change_pass/FAQ b/change_pass/FAQ
deleted file mode 100644 (file)
index 631ef75..0000000
+++ /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 (file)
index 470203d..0000000
+++ /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 <username>
-200 Your password please.
-pass <oldpassword>
-200 Your new password please.
-newpass <newpassword>
-200 Password changed, thank-you.
-quit
-200 Bye.
-Connection closed by foreign host.
-
index 1d7abab..dd0e567 100644 (file)
@@ -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  <rlow@xipware.com>
-Seth Randall <indiri69@users.sourceforge.net>
-
-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 (file)
index 035caaa..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-# LANGUAGE change_pass plugin translation.
-# Copyright (C) 2003 The Squirrelmail Development Team.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 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 <EMAIL@ADDRESS>\n"
-"Language-Team: LANGUAGE <LL@li.org>\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 (file)
index 0000000..ba9b67a
--- /dev/null
@@ -0,0 +1,9 @@
+<?php
+    // The default server is the configured IMAP server
+    #$poppass_server = 'localhost';
+
+    // The default port is 106
+    #$poppass_port = 106;
+
+    $min_pass_length = 0;
+    $max_pass_length = 9999999;
diff --git a/change_pass/doc/.htaccess b/change_pass/doc/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/change_pass/doc/COPYING b/change_pass/doc/COPYING
new file mode 100644 (file)
index 0000000..9cac679
--- /dev/null
@@ -0,0 +1,281 @@
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+ 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Library General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+\f
+                    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+\f
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+\f
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+\f
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                            NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                     END OF TERMS AND CONDITIONS
similarity index 91%
rename from change_pass/ChangeLog
rename to change_pass/doc/ChangeLog
index 9920562..5c46220 100644 (file)
@@ -1,4 +1,13 @@
-$Id: ChangeLog,v 1.21 2007/06/09 22:55:25 indiri69 Exp $
+$Id: ChangeLog,v 1.2 2009/05/09 17:35:38 indiri69 Exp $
+* Sat May  9 2009 Seth Randall <indiri69@users.sourceforge.net>
+- Code cleanups and changes
+- Updated version number to 3.0
+
+* Sat Jan 17 2009 Seth Randall <indiri69@users.sourceforge.net>
+- Considerable rewrite
+
+* Sat Jun 23 2007 Seth Randall <indiri69@users.sourceforge.net>
+- Added Bahasa Melayu translation by zamri <myzamri@gmail.com>
 
 * Sat Jun  9 2007 Seth Randall <indiri69@users.sourceforge.net>
 - Updated version to 2.7a-1.4.x
diff --git a/change_pass/doc/FAQ b/change_pass/doc/FAQ
new file mode 100644 (file)
index 0000000..8c5ec52
--- /dev/null
@@ -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 <username>
+    200 Your password please.
+    pass <oldpassword>
+    200 Your new password please.
+    newpass <newpassword>
+    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 (file)
index 0000000..53ef501
--- /dev/null
@@ -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 (file)
index 0000000..92d644c
--- /dev/null
@@ -0,0 +1,36 @@
+change_pass plugin for SquirrelMail
+===================================
+Version 3.0, 2009/05/09
+
+Ritchie Low
+Tyler Akins
+Seth Randall <indiri69@users.sourceforge.net>
+
+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 (file)
index 0000000..5fbde0d
--- /dev/null
@@ -0,0 +1,13 @@
+<?php
+
+   /**
+    **  index.php -- Displays the main frameset
+    **
+    **  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:../index.php');
diff --git a/change_pass/functions.php b/change_pass/functions.php
new file mode 100644 (file)
index 0000000..28ed9c2
--- /dev/null
@@ -0,0 +1,141 @@
+<?php
+/*
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * $Id: functions.php,v 1.7 2009/05/14 02:33:01 indiri69 Exp $
+ */
+
+function change_pass_option_link_do() {
+    global $optpage_blocks;
+
+    sq_change_text_domain('change_pass');
+    $optpage_blocks[] = array(
+        'name' => _("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');
+    }
+}
index 185d0f3..5fbde0d 100644 (file)
@@ -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 (file)
index d5bda08..0000000
+++ /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 (file)
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 (file)
index ed21c18..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-# Bulgarian change_pass plugin translation.
-# Copyright (C) 2003 The Squirrelmail Development Team.
-# Marian Kalinov Popov <mano@pazardjik.com>, 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 <mano@pazardjik.com>\n"
-"Language-Team: Bulgarian <mano@pazardjik.com>\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 (file)
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 (file)
index bf8a988..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-# Czech (cs_CZ) change_pass plugin translation.
-# Copyright (C) 2003-2005 The Squirrelmail Development Team.
-# Martin Šlouf <martinslouf@sourceforge.net> 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 <martinslouf@sourceforge.net>\n"
-"Language-Team: Czech <squirrelmail-i18n@lists.sourceforge.net>\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 (file)
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 (file)
index ef2b37a..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-# German change_pass plugin translation.
-# Copyright (C) 2003 The Squirrelmail Development Team.
-# Steffen Beyer <sbeyer@reactor.de>, 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 <sbeyer@reactor.de>\n"
-"Language-Team: German <squirrelmail-i18n@lists.sourceforge.net>\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 (file)
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 (file)
index 989d257..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-# Spanish change_pass plugin translation.
-# Copyright (C) 2003 The Squirrelmail Development Team.
-# grana canal10 <grana at canal10.com.uy>, 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 <grana at canal10.com.uy>\n"
-"Language-Team: Spanish <squirrelmail-i18n@lists.sourceforge.net>\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 (file)
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 (file)
index d76f8e8..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-# Finnish change_pass plugin translation.
-# Copyright (C) 2003 The Squirrelmail Development Team.
-# Kari Mattsson <kari AT trivore DOT com, 2005.
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: $Id: change_pass.po,v 1.1 2005/07/18 14:41:24 indiri69 Exp $\n"
-"POT-Creation-Date: 2003-09-12 12:12-0600\n"
-"PO-Revision-Date: 2005-06-20 22:00+0200\n"
-"Last-Translator: Kari Mattsson <kari AT trivore DOT com>\n"
-"Language-Team: LANGUAGE <LL@li.org>\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 (file)
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 (file)
index ad5a6fd..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-# French (fr_FR) change_pass plugin translation.
-# Copyright (C) 2003 The Squirrelmail Development Team.
-# Ludovic Marcotte <ludovic@Sophos.ca>, 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 <ludovic@Sophos.ca>\n"
-"Language-Team: French <squirrelmail-i18n@lists.sourceforge.net>\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 &#233;t&#233; chang&#233; avec succ&#232;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 &#224; votre serveur de mot de passe afin de le changer."
-
-#: options.php:53
-msgid "Verify New Password"
-msgstr "V&#233;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&#233;cifiez le nouveau mot de passe dans le champ de v&#233;rification."
-
-#: options.php:109
-msgid "You must type in a new password."
-msgstr "Vous devez sp&#233;cifiez un nouveau mot de passe."
-
-#: options.php:106
-msgid "You must type in your old password."
-msgstr "Vous devez sp&#233;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 &#224; celui de v&#233;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 (file)
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 (file)
index 892de7d..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-# Italian (it_IT) change_pass plugin translation.
-# Salvatore Bocchetti <salvatore.bocchetti@euroeuro.net>
-#
-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 <salvatore.bocchetti@euroeuro.net>\n"
-"Language-Team: French <squirrelmail-i18n@lists.sourceforge.net>\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 (file)
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 (file)
index 2a69b88..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-# LANGUAGE change_pass plugin translation.
-# Copyright (C) 2003 The Squirrelmail Development Team.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 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 <EMAIL@ADDRESS>\n"
-"Language-Team: LANGUAGE <LL@li.org>\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 (file)
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 (file)
index a97b8be..0000000
+++ /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  <mostech@gmail.com>\n"
-"Language-Team: Korean <ko@li.org>\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 °èÁ¤ÀÇ ºñ¹Ð¹øÈ£°¡ º¯°æµË´Ï´Ù. <b>¸¸ÀÏ outlook °°Àº ¸ÞÀϠŬ¶óÀ̾ðÆ®¸¦ »ç¿ëÇϽøé Á¢¼Óºñ¹Ð¹øÈ£µµ °°ÀÌ º¯°æ ÇϽñ根ٶø´Ï´Ù.</b>"
-
-#: 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 (file)
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 (file)
index f15dee2..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-# Lithuanian change_pass plugin translation.
-# Copyright (C) 2003 Free Software Foundation, Inc.
-# Tomas Kuliavas <tokul@users.sourceforge.net>, 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 <tokul@users.sourceforge.net>\n"
-"Language-Team: Lithuanian <squirrelmail-i18n@lists.sourceforge.net>\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 (file)
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 (file)
index 7e48705..0000000
+++ /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 <svein.olav@bjerkeset.com>, 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 <svein.olav@bjerkeset.com>\n"
-"Language-Team: Norwegian (bokmal) <squirrelmail-i18n@lists.sourceforge.net>\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 (file)
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 (file)
index bad386b..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-# Dutch translation of change_pass plugin translation.
-# Copyright (c) 2006 The SquirrelMail Project Team
-# Sander <san@fast-mail.nl>, 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 <san@fast-mail.nl>\n"
-"Language-Team:  <nl@li.org>\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 (file)
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 (file)
index e834be9..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-# POLISH change_pass plugin translation.
-# Copyright (C) 2003 The Squirrelmail Development Team.
-# Sebastian Turzyñski <buzz@zamek.gda.pl>, 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 <buzz@zamek.gda.pl>\n"
-"Language-Team: Polish <squirrelmail-i18n@lists.sourceforge.net>\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 (file)
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 (file)
index 2956300..0000000
+++ /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 <edinardo@cbainfo.com.br>, 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 <edinardo@cbainfo.com.br>\n"
-"Language-Team: Portuguese/Brazil <squirrelmail-i18n@lists.sourceforge.net>\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 (file)
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 (file)
index 69fdf74..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-# Portuguese change_pass plugin translation.
-# Copyright (C) 2003 The Squirrelmail Development Team.
-# Ruben Leote Mendes <ruben@nocturno.org>, 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 <ruben@nocturno.org>\n"
-"Language-Team: Portuguese Portugal <squirrelmail-i18n@lists.sourceforge.net>\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 (file)
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 (file)
index c52e535..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-# Slovenian (sl_SI) change_pass plugin translation.
-# Copyright (C) 2003 The Squirrelmail Development Team.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 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 <sasa@stupar.homelinux.net>\n"
-"Language-Team: Sasa Stupar <sasa@stupar.homelinux.net>\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 (file)
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 (file)
index 3580f08..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-# Swedish translation of change_pass plugin.
-# Copyright (C) 2007 The Squirrelmail Development Team.
-# Erik Lindgren <erk@gote.org>, 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 <erk@gote.org>\n"
-"Language-Team: Swedish <squirrelmail-i18n@lists.sourceforge.net>\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."
-
index 9343685..7649a3c 100644 (file)
 <?php
-    /* change_pass
-     *
-     * $Id: options.php,v 1.5 2004/07/21 14:28:46 indiri69 Exp $
-     */
-
-    define('SM_PATH', '../../');
-    require_once (SM_PATH . 'include/validate.php');
-    require_once (SM_PATH . 'functions/page_header.php');
-    require_once (SM_PATH . 'functions/imap.php');
-    require_once (SM_PATH . 'functions/prefs.php');
-    require_once (SM_PATH . 'functions/global.php');
-    require_once (SM_PATH . 'functions/i18n.php');
-
-    sqgetGlobalVar('plugin_change_pass', $plugin_change_pass, SQ_POST);
-
-    $messages = array();
-    if (isset($plugin_change_pass)) {
-        sqgetGlobalVar('cp_oldpass', $cp_oldpass, SQ_POST);
-        sqgetGlobalVar('cp_newpass', $cp_newpass, SQ_POST);
-        sqgetGlobalVar('cp_verify',  $cp_verify,  SQ_POST);
-        bindtextdomain('change_pass', SM_PATH . 'plugins/change_pass/locale');
-        textdomain('change_pass');
-        $messages = change_pass_check();
-        bindtextdomain('squirrelmail', SM_PATH . 'locale');
-        textdomain('squirrelmail');
-    }
 
-    displayPageHeader($color, 'None');
+/*
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * $Id: options.php,v 1.7 2009/05/05 03:09:22 indiri69 Exp $
+ */
 
-    bindtextdomain('change_pass', SM_PATH . 'plugins/change_pass/locale');
-    textdomain('change_pass');
-?>
-    <table width="100%" cellpadding="2" cellspacing="2" border="0">
-        <tr><td bgcolor="<?php echo $color[0] ?>">
-                <center><b><?php echo _("Change Password") ?></b></center>
-        </td></tr>
-        <tr><td>
-<?php
-    if (count($messages)) {
-        foreach ($messages as $line) {
-            echo htmlspecialchars($line) . "<br>\n";
-        }
-        echo "</td></tr>\n";
-        echo "<tr><td>\n";
-    }
-?>
-            <form method="post" action="<?php echo $PHP_SELF ?>">
-            <table align="center">
-<?php
-    $values = array(_("Old Password")        => 'cp_oldpass',
-                    _("New Password")        => 'cp_newpass',
-                    _("Verify New Password") => 'cp_verify');
-    foreach($values as $key=>$value) {
-?>
-                <tr>
-                    <th align="right"><?php echo $key; ?></th>
-                    <td>
-                        <input type="password" name="<?php echo $value; ?>" size="20">
-                    </td>
-                </tr>
-<?php } ?>
-                <tr><td align="center" colspan="2">
-                    <input type="submit" value=<?php echo _("Submit"); ?> name="plugin_change_pass">
-                </td></tr>
-            </table>
-            </form>
-        </td></tr>
-    </table>
-</body></html>
-<?php
-    bindtextdomain('squirrelmail', SM_PATH . 'locale');
-    textdomain('squirrelmail');
+define('SM_PATH', '../../');
+require_once(SM_PATH . 'include/validate.php');
+require_once(SM_PATH . 'functions/html.php');
+require_once(SM_PATH . 'functions/forms.php');
 
-function change_pass_closeport($pop_socket, &$messages, $debug) {
-    if ($debug) {
-        array_push($messages, _("Closing Connection"));
-    }
-    fputs($pop_socket, "quit\r\n");
-    fclose($pop_socket);
-}
+$debug = false;
 
-function change_pass_readfb($pop_socket, &$result, &$messages, $debug) {
-   $strResp = '';
-   $result  = '';
-
-   if (!feof($pop_socket)) {
-      $strResp = fgets($pop_socket, 1024);
-      $result  = substr(trim($strResp), 0, 3);  // 200, 500
-      if(!preg_match('/^[23]\d\d/', $result) || $debug) {
-          $messages[] = "--> $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', '<b>' . _("Change Password") . '</b>', 'center', $color[0])
+        ),
+        'center', $color[9], 'width="95%" border="0" cellpadding="1" cellspacing="0"') . "<br>\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', '&nbsp;')) . "\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 (file)
index f34c172..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-
-    global $imapServerAddress;
-
-    /* Use the address of the IMAP server as the default */
-    $poppass_server = $imapServerAddress;
-#    $poppass_server = 127.0.0.1;
-
-    /* The default port for poppassd is 106 */
-    $poppass_port = 106;
-?>
index 606fdfd..a9f58fc 100644 (file)
@@ -1,49 +1,34 @@
 <?php
     /* change_pass
      *
-     * $Id: setup.php,v 1.6 2007/06/09 22:55:25 indiri69 Exp $
+     * Licensed under the GNU GPL. For full terms see the file COPYING.
+     *
+     * $Id: setup.php,v 1.8 2009/05/05 03:09:22 indiri69 Exp $
      */
+
 function squirrelmail_plugin_init_change_pass() {
     global $squirrelmail_plugin_hooks;
 
     $squirrelmail_plugin_hooks['optpage_register_block']['change_pass'] = 'change_pass_opt';
-    $squirrelmail_plugin_hooks['options_save']['change_pass'] = 'change_pass_save_pref';
+    $squirrelmail_plugin_hooks['optpage_set_loadinfo']['change_pass']   = 'change_pass_loadinfo';
 }
 
-function change_pass_opt() {
-    global $optpage_blocks;
-
-    include_once(SM_PATH . 'functions/i18n.php');
-    bindtextdomain('change_pass', SM_PATH . 'plugins/change_pass/locale');
-    textdomain('change_pass');
-
-    $optpage_blocks[] = array(
-        'name' => _("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 '<p align="center">' .
-             _("Password changed successfully.") .
-             "</p>\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();
+}
index d88285c..c553e1c 100644 (file)
@@ -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 (executable)
index 3b30679..0000000
+++ /dev/null
@@ -1 +0,0 @@
-xgettext --keyword=_ -d change_pass -s -C *.php
index cc11055..936e468 100644 (file)
@@ -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 <jelly+paketi@srce.hr>.
 Trenutno odrzava: Dragan Dosen <ddosen@ffzg.hr>.
 
 
- -- Dragan Dosen <ddosen@ffzg.hr>  Sat, 27 Oct 2007 15:13:10 +0200
+ -- Dragan Dosen <ddosen@ffzg.hr>  Thu, 28 May 2009 12:35:18 +0200
index 9eec400..54db6b8 100644 (file)
@@ -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 <ddosen@ffzg.hr>  Sun, 19 Apr 2009 18:00:31 +0200
+ -- Dragan Dosen <ddosen@ffzg.hr>  Thu, 28 May 2009 12:35:18 +0200
 
 squirrelmail-change-pass-cn (2.7a-2) stable; urgency=low
 
index 762ab0e..6dbfd20 100644 (file)
@@ -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
index 4f5d82d..0169e3c 100644 (file)
@@ -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
index 72de9fb..f56b7ac 100644 (file)
@@ -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
index 11b8ed8..9827786 100644 (file)
@@ -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
index 76c08c8..634eafd 100755 (executable)
@@ -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