diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e594810 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.rpm +*.log +*spec-20* +*.tar.xz diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..24248b9 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: smeserver-userpanels +# $Id: Makefile,v 1.1 2020/11/04 16:17:50 michel Exp $ +NAME := smeserver-userpanels +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) diff --git a/README.md b/README.md index 764f3e5..465e0e9 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,15 @@ -# smeserver-userpanels +# smeserver-userpanels -SMEServer Koozali developed git repo for smeserver-userpanels smecontribs \ No newline at end of file +SMEServer Koozali developed git repo for smeserver-userpanels smecontribs + +## Wiki +
https://wiki.koozali.org/ + +## Bugzilla +Show list of outstanding bugs: [here](https://bugs.koozali.org/buglist.cgi?component=smeserver-userpanels&product=SME%20Contribs&query_format=advanced&limit=0&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=CONFIRMED) + +## Description + +
*This description has been generated by an LLM AI system and cannot be relied on to be fully correct.* +*Once it has been checked, then this comment will be deleted* +
diff --git a/additional/COPYING b/additional/COPYING new file mode 100644 index 0000000..196760e --- /dev/null +++ b/additional/COPYING @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 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. + + 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.) + +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. + + 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. + + 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 + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) 19yy + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) 19yy name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/contriborbase b/contriborbase new file mode 100644 index 0000000..9b7fd51 --- /dev/null +++ b/contriborbase @@ -0,0 +1 @@ +contribs10 diff --git a/createlinks b/createlinks new file mode 100644 index 0000000..76d56a8 --- /dev/null +++ b/createlinks @@ -0,0 +1,10 @@ +#!/usr/bin/perl -w + +use esmith::Build::CreateLinks qw(:all); +use File::Basename; +use File::Path; + + +event_link("calc-du", "calc-du", "20"); + +event_link("qmail-update-user", "email-update-quick", "20"); diff --git a/root/etc/e-smith/events/actions/calc-du b/root/etc/e-smith/events/actions/calc-du new file mode 100644 index 0000000..697e7e3 --- /dev/null +++ b/root/etc/e-smith/events/actions/calc-du @@ -0,0 +1,19 @@ +#!/usr/bin/perl -w + +#---------------------------------------------------------------------- +# Author Stephen Noble +# create backup scripts for dungog-USERbackup +#---------------------------------------------------------------------- + +my $event = $ARGV [0]; +my $userName = $ARGV [1]; + +die "Username argument missing." unless defined ($userName); + + my $path = "/home/e-smith/files/users/$userName"; + + #recreate current disk free + system("/usr/bin/du -sh $path > /tmp/du-$userName") == 0 + or die ("Error occurred creating /tmp/du.\n"); + +exit (0); diff --git a/root/etc/e-smith/events/smeserver-userpanels-update/.gitignore b/root/etc/e-smith/events/smeserver-userpanels-update/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/root/etc/e-smith/locale/bg/etc/e-smith/web/functions/userpanel-forwarding b/root/etc/e-smith/locale/bg/etc/e-smith/web/functions/userpanel-forwarding new file mode 100644 index 0000000..91b081f --- /dev/null +++ b/root/etc/e-smith/locale/bg/etc/e-smith/web/functions/userpanel-forwarding @@ -0,0 +1,50 @@ + + + Forward Mail + Препращане на поща + + + FORM_TITLE + Промени доставката на ел. поща + + + DESCRIPTION + За да промените начина на доставка на ел. поща,

изберете начина на доставка и, ако е необходимо, адрес за пренасочване

]]>
+
+ + LOCAL + Локално доставяне на електронна поща + + + FORWARD + Препрати към адреса по-долу + + + BOTH + Едновременно доставяне локално и препращане + + + UNACCEPTABLE_CHARS + Недопустими символи или пропуснато име на домейн. + + + VALID_EMAIL_NEEDED + Нужен е валиден ел. адрес + + + EMAIL_DELIVERY + Доставка на ел. поща + + + FORWARDING_ADDRESS + Адрес за препращане + + + ERROR_UPDATING + Грешка при актуализация на настройките. + + + SUCCESS + Настройките бяха запазени. + +
diff --git a/root/etc/e-smith/locale/bg/etc/e-smith/web/functions/userpanel-password b/root/etc/e-smith/locale/bg/etc/e-smith/web/functions/userpanel-password new file mode 100644 index 0000000..7ea20bc --- /dev/null +++ b/root/etc/e-smith/locale/bg/etc/e-smith/web/functions/userpanel-password @@ -0,0 +1,10 @@ + + + FORM_TITLE + Смяна на парола на потребител + + + DESCRIPTION + За да смените паролата си, моля попълнете този формуляр. Трябва да въведете старата парола и новата парола. (Трябва да въведете новата парола два пъти.)

Ако не можете да си смените паролата, защото сте я забравили, вашият системен администратор може да я инициализира през Server Manager.

]]>
+
+
diff --git a/root/etc/e-smith/locale/bg/etc/e-smith/web/functions/userpanel-useraccounts b/root/etc/e-smith/locale/bg/etc/e-smith/web/functions/userpanel-useraccounts new file mode 100644 index 0000000..cd1d14c --- /dev/null +++ b/root/etc/e-smith/locale/bg/etc/e-smith/web/functions/userpanel-useraccounts @@ -0,0 +1,8 @@ + + + + User accounts + Акаунти на потребители + + + diff --git a/root/etc/e-smith/locale/bg/etc/e-smith/web/functions/userpanel-userbackup b/root/etc/e-smith/locale/bg/etc/e-smith/web/functions/userpanel-userbackup new file mode 100644 index 0000000..b17b098 --- /dev/null +++ b/root/etc/e-smith/locale/bg/etc/e-smith/web/functions/userpanel-userbackup @@ -0,0 +1,8 @@ + + + + Data Backup + Архив на данните + + + diff --git a/root/etc/e-smith/locale/da/etc/e-smith/web/functions/userpanel-forwarding b/root/etc/e-smith/locale/da/etc/e-smith/web/functions/userpanel-forwarding new file mode 100644 index 0000000..430654c --- /dev/null +++ b/root/etc/e-smith/locale/da/etc/e-smith/web/functions/userpanel-forwarding @@ -0,0 +1,50 @@ + + + Forward Mail + Videresend mail + + + FORM_TITLE + Skift indstillinger for levering af e mail + + + DESCRIPTION + To change your email delivery.

Select a delivery method, and a forwarding email address if necessary

]]>
+
+ + LOCAL + Aflever post lokalt + + + FORWARD + Videresend til adressen nedenfor + + + BOTH + Aflever lokalt og videresend + + + UNACCEPTABLE_CHARS + Ugyldige tegn, eller der mangler domæne navn. + + + VALID_EMAIL_NEEDED + Skal være en gyldig email-adresse + + + EMAIL_DELIVERY + Postlevering + + + FORWARDING_ADDRESS + Adresse til videresendelse + + + ERROR_UPDATING + Der opstod en fejl i forbindelse med opdatering af dine indstillinger. + + + SUCCESS + De nye indstillinger er gemt. + +
diff --git a/root/etc/e-smith/locale/da/etc/e-smith/web/functions/userpanel-password b/root/etc/e-smith/locale/da/etc/e-smith/web/functions/userpanel-password new file mode 100644 index 0000000..8004506 --- /dev/null +++ b/root/etc/e-smith/locale/da/etc/e-smith/web/functions/userpanel-password @@ -0,0 +1,10 @@ + + + FORM_TITLE + Skift brugerkontoens adgangskode + + + DESCRIPTION + To change your account password, please fill out the following form. You will need to provide your old password, and your desired new password. (You must type the new password twice.)

If you cannot change your password because you have forgotten the old one, your local system administrator can reset your password using the server manager.

]]>
+
+
diff --git a/root/etc/e-smith/locale/da/etc/e-smith/web/functions/userpanel-useraccounts b/root/etc/e-smith/locale/da/etc/e-smith/web/functions/userpanel-useraccounts new file mode 100644 index 0000000..ea1cd74 --- /dev/null +++ b/root/etc/e-smith/locale/da/etc/e-smith/web/functions/userpanel-useraccounts @@ -0,0 +1,8 @@ + + + + User accounts + Bruger konti + + + diff --git a/root/etc/e-smith/locale/da/etc/e-smith/web/functions/userpanel-userbackup b/root/etc/e-smith/locale/da/etc/e-smith/web/functions/userpanel-userbackup new file mode 100644 index 0000000..8873b5a --- /dev/null +++ b/root/etc/e-smith/locale/da/etc/e-smith/web/functions/userpanel-userbackup @@ -0,0 +1,8 @@ + + + + Data Backup + Sikkerhedskopiering + + + diff --git a/root/etc/e-smith/locale/de/etc/e-smith/web/functions/userpanel-forwarding b/root/etc/e-smith/locale/de/etc/e-smith/web/functions/userpanel-forwarding new file mode 100644 index 0000000..d344d80 --- /dev/null +++ b/root/etc/e-smith/locale/de/etc/e-smith/web/functions/userpanel-forwarding @@ -0,0 +1,50 @@ + + + Forward Mail + Weiterleiten Mail + + + FORM_TITLE + E-Mail Auslieferung ändern + + + DESCRIPTION + Verändern Sie die Auslieferung von E-Mail.

Wählen Sie iene Methode aus und geben Sie eine Weiterleitungsadresse an, falls erforderlich.

]]>
+
+ + LOCAL + E-Mail lokal zustellen + + + FORWARD + E-Mail weiterleiten + + + BOTH + Auslieferung lokal und weiterleiten + + + UNACCEPTABLE_CHARS + Unzulässige Zeichen oder fehlender Domänen-Name. + + + VALID_EMAIL_NEEDED + Eine gültige E-Mail-Adresse wird benötigt + + + EMAIL_DELIVERY + E-Mail Auslieferung + + + FORWARDING_ADDRESS + Weiterleitungsadresse + + + ERROR_UPDATING + Fehler bei der Aktualisierung Ihrer Einstellungen. + + + SUCCESS + Ihre Einstellungen wurden erfolgreich gespeichert. + +
diff --git a/root/etc/e-smith/locale/de/etc/e-smith/web/functions/userpanel-password b/root/etc/e-smith/locale/de/etc/e-smith/web/functions/userpanel-password new file mode 100644 index 0000000..0c1002e --- /dev/null +++ b/root/etc/e-smith/locale/de/etc/e-smith/web/functions/userpanel-password @@ -0,0 +1,10 @@ + + + FORM_TITLE + Konto-Kennwort ändern + + + DESCRIPTION + To change your account password, please fill out the following form. You will need to provide your old password, and your desired new password. (You must type the new password twice.)

If you cannot change your password because you have forgotten the old one, your local system administrator can reset your password using the server manager.

]]>
+
+
diff --git a/root/etc/e-smith/locale/de/etc/e-smith/web/functions/userpanel-useraccounts b/root/etc/e-smith/locale/de/etc/e-smith/web/functions/userpanel-useraccounts new file mode 100644 index 0000000..3c5bf41 --- /dev/null +++ b/root/etc/e-smith/locale/de/etc/e-smith/web/functions/userpanel-useraccounts @@ -0,0 +1,8 @@ + + + + User accounts + Benutzerkonto + + + diff --git a/root/etc/e-smith/locale/de/etc/e-smith/web/functions/userpanel-userbackup b/root/etc/e-smith/locale/de/etc/e-smith/web/functions/userpanel-userbackup new file mode 100644 index 0000000..53b690f --- /dev/null +++ b/root/etc/e-smith/locale/de/etc/e-smith/web/functions/userpanel-userbackup @@ -0,0 +1,8 @@ + + + + Data Backup + Daten Backup + + + diff --git a/root/etc/e-smith/locale/el/etc/e-smith/web/functions/userpanel-forwarding b/root/etc/e-smith/locale/el/etc/e-smith/web/functions/userpanel-forwarding new file mode 100644 index 0000000..30d4bc9 --- /dev/null +++ b/root/etc/e-smith/locale/el/etc/e-smith/web/functions/userpanel-forwarding @@ -0,0 +1,50 @@ + + + Forward Mail + Forward Mail + + + FORM_TITLE + Change email delivery + + + DESCRIPTION + To change your email delivery.

Select a delivery method, and a forwarding email address if necessary

]]>
+
+ + LOCAL + Τοπική επίδοση ηλεκτρονικής αλληλογραφίας + + + FORWARD + Forward to address below + + + BOTH + Τοπική επίδοση και προώθηση + + + UNACCEPTABLE_CHARS + Unacceptable characters, or Domain name missing. + + + VALID_EMAIL_NEEDED + A valid email address is needed + + + EMAIL_DELIVERY + Email Delivery + + + FORWARDING_ADDRESS + Forwarding Address + + + ERROR_UPDATING + Error updating your settings. + + + SUCCESS + Your settings have been saved. + +
diff --git a/root/etc/e-smith/locale/el/etc/e-smith/web/functions/userpanel-password b/root/etc/e-smith/locale/el/etc/e-smith/web/functions/userpanel-password new file mode 100644 index 0000000..21ef964 --- /dev/null +++ b/root/etc/e-smith/locale/el/etc/e-smith/web/functions/userpanel-password @@ -0,0 +1,10 @@ + + + FORM_TITLE + Αλλαγή κωδικού πρόσβασης λογαριασμού + + + DESCRIPTION + To change your account password, please fill out the following form. You will need to provide your old password, and your desired new password. (You must type the new password twice.)

If you cannot change your password because you have forgotten the old one, your local system administrator can reset your password using the server manager.

]]>
+
+
diff --git a/root/etc/e-smith/locale/el/etc/e-smith/web/functions/userpanel-useraccounts b/root/etc/e-smith/locale/el/etc/e-smith/web/functions/userpanel-useraccounts new file mode 100644 index 0000000..17cc1d3 --- /dev/null +++ b/root/etc/e-smith/locale/el/etc/e-smith/web/functions/userpanel-useraccounts @@ -0,0 +1,8 @@ + + + + User accounts + Λογαριασμοί χρηστών + + + diff --git a/root/etc/e-smith/locale/el/etc/e-smith/web/functions/userpanel-userbackup b/root/etc/e-smith/locale/el/etc/e-smith/web/functions/userpanel-userbackup new file mode 100644 index 0000000..9d28f30 --- /dev/null +++ b/root/etc/e-smith/locale/el/etc/e-smith/web/functions/userpanel-userbackup @@ -0,0 +1,8 @@ + + + + Data Backup + Data Backup + + + diff --git a/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/userpanel-forwarding b/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/userpanel-forwarding new file mode 100644 index 0000000..4c0bc1d --- /dev/null +++ b/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/userpanel-forwarding @@ -0,0 +1,56 @@ + + + Forward Mail + Forward Mail + + + FORM_TITLE + Change email delivery + + + DESCRIPTION + + To change your email delivery.

+ +

Select a delivery method, and a forwarding email address if necessary

+ ]]> +
+
+ + LOCAL + Deliver email locally + + + FORWARD + Forward to address below + + + BOTH + Both deliver locally and forward + + + UNACCEPTABLE_CHARS + Unacceptable characters, or Domain name missing. + + + VALID_EMAIL_NEEDED + A valid email address is needed + + + EMAIL_DELIVERY + Email Delivery + + + FORWARDING_ADDRESS + Forwarding Address + + + ERROR_UPDATING + Error updating your settings. + + + SUCCESS + Your settings have been saved. + +
diff --git a/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/userpanel-password b/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/userpanel-password new file mode 100644 index 0000000..80b5d39 --- /dev/null +++ b/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/userpanel-password @@ -0,0 +1,21 @@ + + + FORM_TITLE + Change account password + + + DESCRIPTION + + To change your account password, please fill out the following + form. You will need to provide your + old password, and your desired new password. (You must type the new + password twice.)

+ +

If you cannot change your password because you have forgotten the + old one, your local system administrator can reset your password using + the server manager.

+ ]]> +
+
+
diff --git a/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/userpanel-useraccounts b/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/userpanel-useraccounts new file mode 100644 index 0000000..13a7aab --- /dev/null +++ b/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/userpanel-useraccounts @@ -0,0 +1,8 @@ + + + + User accounts + User accounts + + + \ No newline at end of file diff --git a/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/userpanel-userbackup b/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/userpanel-userbackup new file mode 100644 index 0000000..04f575c --- /dev/null +++ b/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/userpanel-userbackup @@ -0,0 +1,8 @@ + + + + Data Backup + Data Backup + + + \ No newline at end of file diff --git a/root/etc/e-smith/locale/es/etc/e-smith/web/functions/userpanel-forwarding b/root/etc/e-smith/locale/es/etc/e-smith/web/functions/userpanel-forwarding new file mode 100644 index 0000000..90a79c3 --- /dev/null +++ b/root/etc/e-smith/locale/es/etc/e-smith/web/functions/userpanel-forwarding @@ -0,0 +1,50 @@ + + + Forward Mail + Reenvío de Email + + + FORM_TITLE + Cambiar entrega de email + + + DESCRIPTION + To change your email delivery.

Select a delivery method, and a forwarding email address if necessary

]]>
+
+ + LOCAL + Entregar correo electrónico localmente + + + FORWARD + Reenviar correo electrónico a la siguiente dirección + + + BOTH + Entrega local y reenvío + + + UNACCEPTABLE_CHARS + Caracteres no válidos, o Nombre de Dominio inexistente. + + + VALID_EMAIL_NEEDED + A valid email address is needed + + + EMAIL_DELIVERY + Entrega de Correo Electrónico + + + FORWARDING_ADDRESS + Dirección de Reenvío + + + ERROR_UPDATING + Error actualizando su configuración. + + + SUCCESS + Su configuración ha sido guardada. + +
diff --git a/root/etc/e-smith/locale/es/etc/e-smith/web/functions/userpanel-password b/root/etc/e-smith/locale/es/etc/e-smith/web/functions/userpanel-password new file mode 100644 index 0000000..a11df73 --- /dev/null +++ b/root/etc/e-smith/locale/es/etc/e-smith/web/functions/userpanel-password @@ -0,0 +1,10 @@ + + + FORM_TITLE + Cambiar contraseña de la cuenta + + + DESCRIPTION + To change your account password, please fill out the following form. You will need to provide your old password, and your desired new password. (You must type the new password twice.)

If you cannot change your password because you have forgotten the old one, your local system administrator can reset your password using the server manager.

]]>
+
+
diff --git a/root/etc/e-smith/locale/es/etc/e-smith/web/functions/userpanel-useraccounts b/root/etc/e-smith/locale/es/etc/e-smith/web/functions/userpanel-useraccounts new file mode 100644 index 0000000..4bfbdd3 --- /dev/null +++ b/root/etc/e-smith/locale/es/etc/e-smith/web/functions/userpanel-useraccounts @@ -0,0 +1,8 @@ + + + + User accounts + Cuentas de usuario + + + diff --git a/root/etc/e-smith/locale/es/etc/e-smith/web/functions/userpanel-userbackup b/root/etc/e-smith/locale/es/etc/e-smith/web/functions/userpanel-userbackup new file mode 100644 index 0000000..3f5e1f4 --- /dev/null +++ b/root/etc/e-smith/locale/es/etc/e-smith/web/functions/userpanel-userbackup @@ -0,0 +1,8 @@ + + + + Data Backup + Respaldo de Datos + + + diff --git a/root/etc/e-smith/locale/et/etc/e-smith/web/functions/userpanel-forwarding b/root/etc/e-smith/locale/et/etc/e-smith/web/functions/userpanel-forwarding new file mode 100644 index 0000000..0358e0c --- /dev/null +++ b/root/etc/e-smith/locale/et/etc/e-smith/web/functions/userpanel-forwarding @@ -0,0 +1,50 @@ + + + Forward Mail + E-posti edastamine + + + FORM_TITLE + Muuda e-posti tagastust + + + DESCRIPTION + Oma e-posti edastamise muutmiseks.

Vali edastamise viis, ja sisesta aadress kuhu edastada kui vaja

]]>
+
+ + LOCAL + Edasta lokaalselt + + + FORWARD + Edasta antud aadressile + + + BOTH + Edasta ja jäta koopia + + + UNACCEPTABLE_CHARS + Sobimatu sümbol, või puuduv domeeni nimi. + + + VALID_EMAIL_NEEDED + E-mail on vajalik + + + EMAIL_DELIVERY + E-posti tagastus + + + FORWARDING_ADDRESS + Aadress kuhu edastada + + + ERROR_UPDATING + Viga seadistuste uuendamisel + + + SUCCESS + Seadistused on uuendatud. + +
diff --git a/root/etc/e-smith/locale/et/etc/e-smith/web/functions/userpanel-password b/root/etc/e-smith/locale/et/etc/e-smith/web/functions/userpanel-password new file mode 100644 index 0000000..a5787d5 --- /dev/null +++ b/root/etc/e-smith/locale/et/etc/e-smith/web/functions/userpanel-password @@ -0,0 +1,10 @@ + + + FORM_TITLE + Muuda kasutaja parooli + + + DESCRIPTION + To change your account password, please fill out the following form. You will need to provide your old password, and your desired new password. (You must type the new password twice.)

If you cannot change your password because you have forgotten the old one, your local system administrator can reset your password using the server manager.

]]>
+
+
diff --git a/root/etc/e-smith/locale/et/etc/e-smith/web/functions/userpanel-useraccounts b/root/etc/e-smith/locale/et/etc/e-smith/web/functions/userpanel-useraccounts new file mode 100644 index 0000000..9d9b151 --- /dev/null +++ b/root/etc/e-smith/locale/et/etc/e-smith/web/functions/userpanel-useraccounts @@ -0,0 +1,8 @@ + + + + User accounts + Kasutaja kontod + + + diff --git a/root/etc/e-smith/locale/et/etc/e-smith/web/functions/userpanel-userbackup b/root/etc/e-smith/locale/et/etc/e-smith/web/functions/userpanel-userbackup new file mode 100644 index 0000000..fafafda --- /dev/null +++ b/root/etc/e-smith/locale/et/etc/e-smith/web/functions/userpanel-userbackup @@ -0,0 +1,8 @@ + + + + Data Backup + Andmete varundamine + + + diff --git a/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/userpanel-forwarding b/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/userpanel-forwarding new file mode 100644 index 0000000..250f64b --- /dev/null +++ b/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/userpanel-forwarding @@ -0,0 +1,50 @@ + + + Forward Mail + Transfert de courriel + + + FORM_TITLE + Modifier la délivrance des courriels + + + DESCRIPTION + To change your email delivery.

Select a delivery method, and a forwarding email address if necessary

]]>
+
+ + LOCAL + Délivrer les courriels localement + + + FORWARD + Renvoyer les courriels à l'adresse ci-dessous + + + BOTH + Délivrer les courriels localement et par renvoi + + + UNACCEPTABLE_CHARS + Caractères non valides ou nom de domaine manquant. + + + VALID_EMAIL_NEEDED + Une adresse électronique valide est nécessaire + + + EMAIL_DELIVERY + Délivrance des courriels + + + FORWARDING_ADDRESS + Adresse de renvoi + + + ERROR_UPDATING + Une erreur est survenue pendant la mise à jour de vos paramètres. + + + SUCCESS + Vos paramètres ont été enregistrés. + +
diff --git a/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/userpanel-password b/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/userpanel-password new file mode 100644 index 0000000..553bf2e --- /dev/null +++ b/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/userpanel-password @@ -0,0 +1,10 @@ + + + FORM_TITLE + Changer le mot de passe du compte + + + DESCRIPTION + Pour modifier le mot de passe de votre compte, remplissez le formulaire suivant. Vous devez taper votre ancien mot de passe et le nouveau mot de passe souhaité (que vous devrez taper deux fois).

Si vous ne pouvez pas modifier votre mot de passe parce que vous avez oublié l'ancien, l'administrateur de votre serveur peut le réinitialiser à l'aide du gestionnaire du serveur.

]]>
+
+
diff --git a/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/userpanel-useraccounts b/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/userpanel-useraccounts new file mode 100644 index 0000000..08d9b6b --- /dev/null +++ b/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/userpanel-useraccounts @@ -0,0 +1,8 @@ + + + + User accounts + Comptes utilisateurs + + + diff --git a/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/userpanel-userbackup b/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/userpanel-userbackup new file mode 100644 index 0000000..8d4bd3b --- /dev/null +++ b/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/userpanel-userbackup @@ -0,0 +1,8 @@ + + + + Data Backup + Sauvegarde des données + + + diff --git a/root/etc/e-smith/locale/he/etc/e-smith/web/functions/userpanel-forwarding b/root/etc/e-smith/locale/he/etc/e-smith/web/functions/userpanel-forwarding new file mode 100644 index 0000000..bf8636d --- /dev/null +++ b/root/etc/e-smith/locale/he/etc/e-smith/web/functions/userpanel-forwarding @@ -0,0 +1,50 @@ + + + Forward Mail + Forward Mail + + + FORM_TITLE + Change email delivery + + + DESCRIPTION + To change your email delivery.

Select a delivery method, and a forwarding email address if necessary

]]>
+
+ + LOCAL + אחסן דואר אלקטרוני בתיבה המקומית + + + FORWARD + Forward to address below + + + BOTH + העבר דואר אלקטרוני לכתובת למטה וגם לתיבה המקומית + + + UNACCEPTABLE_CHARS + Unacceptable characters, or Domain name missing. + + + VALID_EMAIL_NEEDED + A valid email address is needed + + + EMAIL_DELIVERY + Email Delivery + + + FORWARDING_ADDRESS + Forwarding Address + + + ERROR_UPDATING + Error updating your settings. + + + SUCCESS + Your settings have been saved. + +
diff --git a/root/etc/e-smith/locale/he/etc/e-smith/web/functions/userpanel-password b/root/etc/e-smith/locale/he/etc/e-smith/web/functions/userpanel-password new file mode 100644 index 0000000..38edda9 --- /dev/null +++ b/root/etc/e-smith/locale/he/etc/e-smith/web/functions/userpanel-password @@ -0,0 +1,10 @@ + + + FORM_TITLE + Change account password + + + DESCRIPTION + To change your account password, please fill out the following form. You will need to provide your old password, and your desired new password. (You must type the new password twice.)

If you cannot change your password because you have forgotten the old one, your local system administrator can reset your password using the server manager.

]]>
+
+
diff --git a/root/etc/e-smith/locale/he/etc/e-smith/web/functions/userpanel-useraccounts b/root/etc/e-smith/locale/he/etc/e-smith/web/functions/userpanel-useraccounts new file mode 100644 index 0000000..78ecce1 --- /dev/null +++ b/root/etc/e-smith/locale/he/etc/e-smith/web/functions/userpanel-useraccounts @@ -0,0 +1,8 @@ + + + + User accounts + חשבונות משתמשים + + + diff --git a/root/etc/e-smith/locale/he/etc/e-smith/web/functions/userpanel-userbackup b/root/etc/e-smith/locale/he/etc/e-smith/web/functions/userpanel-userbackup new file mode 100644 index 0000000..b7eab35 --- /dev/null +++ b/root/etc/e-smith/locale/he/etc/e-smith/web/functions/userpanel-userbackup @@ -0,0 +1,8 @@ + + + + Data Backup + גיבוי מידע + + + diff --git a/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/userpanel-forwarding b/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/userpanel-forwarding new file mode 100644 index 0000000..ee51d9d --- /dev/null +++ b/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/userpanel-forwarding @@ -0,0 +1,50 @@ + + + Forward Mail + Forward Mail + + + FORM_TITLE + Change email delivery + + + DESCRIPTION + To change your email delivery.

Select a delivery method, and a forwarding email address if necessary

]]>
+
+ + LOCAL + Helyi kézbesítés + + + FORWARD + Forward to address below + + + BOTH + Kézbesítés helyben is és továbbítás + + + UNACCEPTABLE_CHARS + Unacceptable characters, or Domain name missing. + + + VALID_EMAIL_NEEDED + A valid email address is needed + + + EMAIL_DELIVERY + Email Delivery + + + FORWARDING_ADDRESS + Forwarding Address + + + ERROR_UPDATING + Error updating your settings. + + + SUCCESS + Your settings have been saved. + +
diff --git a/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/userpanel-password b/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/userpanel-password new file mode 100644 index 0000000..c1920db --- /dev/null +++ b/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/userpanel-password @@ -0,0 +1,10 @@ + + + FORM_TITLE + Fiók jelszó változtatás + + + DESCRIPTION + To change your account password, please fill out the following form. You will need to provide your old password, and your desired new password. (You must type the new password twice.)

If you cannot change your password because you have forgotten the old one, your local system administrator can reset your password using the server manager.

]]>
+
+
diff --git a/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/userpanel-useraccounts b/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/userpanel-useraccounts new file mode 100644 index 0000000..34fa04b --- /dev/null +++ b/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/userpanel-useraccounts @@ -0,0 +1,8 @@ + + + + User accounts + User accounts + + + diff --git a/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/userpanel-userbackup b/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/userpanel-userbackup new file mode 100644 index 0000000..0206e12 --- /dev/null +++ b/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/userpanel-userbackup @@ -0,0 +1,8 @@ + + + + Data Backup + Data Backup + + + diff --git a/root/etc/e-smith/locale/id/etc/e-smith/web/functions/userpanel-forwarding b/root/etc/e-smith/locale/id/etc/e-smith/web/functions/userpanel-forwarding new file mode 100644 index 0000000..b4e8ffc --- /dev/null +++ b/root/etc/e-smith/locale/id/etc/e-smith/web/functions/userpanel-forwarding @@ -0,0 +1,50 @@ + + + Forward Mail + Forward Mail + + + FORM_TITLE + Change email delivery + + + DESCRIPTION + To change your email delivery.

Select a delivery method, and a forwarding email address if necessary

]]>
+
+ + LOCAL + Kirim email secara lokal + + + FORWARD + Forward to address below + + + BOTH + Kirim secara lokal maupun teruskan + + + UNACCEPTABLE_CHARS + Unacceptable characters, or Domain name missing. + + + VALID_EMAIL_NEEDED + A valid email address is needed + + + EMAIL_DELIVERY + Email Delivery + + + FORWARDING_ADDRESS + Forwarding Address + + + ERROR_UPDATING + Error updating your settings. + + + SUCCESS + Your settings have been saved. + +
diff --git a/root/etc/e-smith/locale/id/etc/e-smith/web/functions/userpanel-password b/root/etc/e-smith/locale/id/etc/e-smith/web/functions/userpanel-password new file mode 100644 index 0000000..e798d4a --- /dev/null +++ b/root/etc/e-smith/locale/id/etc/e-smith/web/functions/userpanel-password @@ -0,0 +1,10 @@ + + + FORM_TITLE + Ganti password akun + + + DESCRIPTION + To change your account password, please fill out the following form. You will need to provide your old password, and your desired new password. (You must type the new password twice.)

If you cannot change your password because you have forgotten the old one, your local system administrator can reset your password using the server manager.

]]>
+
+
diff --git a/root/etc/e-smith/locale/id/etc/e-smith/web/functions/userpanel-useraccounts b/root/etc/e-smith/locale/id/etc/e-smith/web/functions/userpanel-useraccounts new file mode 100644 index 0000000..1498b90 --- /dev/null +++ b/root/etc/e-smith/locale/id/etc/e-smith/web/functions/userpanel-useraccounts @@ -0,0 +1,8 @@ + + + + User accounts + Akun pengguna + + + diff --git a/root/etc/e-smith/locale/id/etc/e-smith/web/functions/userpanel-userbackup b/root/etc/e-smith/locale/id/etc/e-smith/web/functions/userpanel-userbackup new file mode 100644 index 0000000..f12717e --- /dev/null +++ b/root/etc/e-smith/locale/id/etc/e-smith/web/functions/userpanel-userbackup @@ -0,0 +1,8 @@ + + + + Data Backup + Backup Data + + + diff --git a/root/etc/e-smith/locale/it/etc/e-smith/web/functions/userpanel-forwarding b/root/etc/e-smith/locale/it/etc/e-smith/web/functions/userpanel-forwarding new file mode 100644 index 0000000..ac80885 --- /dev/null +++ b/root/etc/e-smith/locale/it/etc/e-smith/web/functions/userpanel-forwarding @@ -0,0 +1,50 @@ + + + Forward Mail + Consegna email localmente + + + FORM_TITLE + Cambia la consegna email + + + DESCRIPTION + Per cambiare la consegna delle email.

Seleziona un metodo di consegna, e l'indirizzo di inoltro se necessario

]]>
+
+ + LOCAL + Consegna email localmente + + + FORWARD + Inoltra email all'indirizzo sottostante + + + BOTH + Consegna localmente e inoltra + + + UNACCEPTABLE_CHARS + Caratteri non corretti o nome Dominio mancante + + + VALID_EMAIL_NEEDED + E' necessario un indirizzo e-mail valido + + + EMAIL_DELIVERY + Consegna email + + + FORWARDING_ADDRESS + Indirizzo d'inoltro + + + ERROR_UPDATING + Errore + + + SUCCESS + La nuova configurazione è stata salvata. + +
diff --git a/root/etc/e-smith/locale/it/etc/e-smith/web/functions/userpanel-password b/root/etc/e-smith/locale/it/etc/e-smith/web/functions/userpanel-password new file mode 100644 index 0000000..6bec16c --- /dev/null +++ b/root/etc/e-smith/locale/it/etc/e-smith/web/functions/userpanel-password @@ -0,0 +1,10 @@ + + + FORM_TITLE + Cambio password utente + + + DESCRIPTION + To change your account password, please fill out the following form. You will need to provide your old password, and your desired new password. (You must type the new password twice.)

If you cannot change your password because you have forgotten the old one, your local system administrator can reset your password using the server manager.

]]>
+
+
diff --git a/root/etc/e-smith/locale/it/etc/e-smith/web/functions/userpanel-useraccounts b/root/etc/e-smith/locale/it/etc/e-smith/web/functions/userpanel-useraccounts new file mode 100644 index 0000000..ea49098 --- /dev/null +++ b/root/etc/e-smith/locale/it/etc/e-smith/web/functions/userpanel-useraccounts @@ -0,0 +1,8 @@ + + + + User accounts + Account Utente + + + diff --git a/root/etc/e-smith/locale/it/etc/e-smith/web/functions/userpanel-userbackup b/root/etc/e-smith/locale/it/etc/e-smith/web/functions/userpanel-userbackup new file mode 100644 index 0000000..4cc5670 --- /dev/null +++ b/root/etc/e-smith/locale/it/etc/e-smith/web/functions/userpanel-userbackup @@ -0,0 +1,8 @@ + + + + Data Backup + Backup dei dati + + + diff --git a/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/userpanel-forwarding b/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/userpanel-forwarding new file mode 100644 index 0000000..1b3feba --- /dev/null +++ b/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/userpanel-forwarding @@ -0,0 +1,50 @@ + + + Forward Mail + Forward Mail + + + FORM_TITLE + Change email delivery + + + DESCRIPTION + To change your email delivery.

Select a delivery method, and a forwarding email address if necessary

]]>
+
+ + LOCAL + Deliver email locally + + + FORWARD + Forward to address below + + + BOTH + Both deliver locally and forward + + + UNACCEPTABLE_CHARS + Unacceptable characters, or Domain name missing. + + + VALID_EMAIL_NEEDED + A valid email address is needed + + + EMAIL_DELIVERY + Email Delivery + + + FORWARDING_ADDRESS + Forwarding Address + + + ERROR_UPDATING + Error updating your settings. + + + SUCCESS + Your settings have been saved. + +
diff --git a/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/userpanel-password b/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/userpanel-password new file mode 100644 index 0000000..1fcefbd --- /dev/null +++ b/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/userpanel-password @@ -0,0 +1,10 @@ + + + FORM_TITLE + Change account password + + + DESCRIPTION + To change your account password, please fill out the following form. You will need to provide your old password, and your desired new password. (You must type the new password twice.)

If you cannot change your password because you have forgotten the old one, your local system administrator can reset your password using the server manager.

]]>
+
+
diff --git a/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/userpanel-useraccounts b/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/userpanel-useraccounts new file mode 100644 index 0000000..37355a5 --- /dev/null +++ b/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/userpanel-useraccounts @@ -0,0 +1,8 @@ + + + + User accounts + User accounts + + + diff --git a/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/userpanel-userbackup b/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/userpanel-userbackup new file mode 100644 index 0000000..ebdb233 --- /dev/null +++ b/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/userpanel-userbackup @@ -0,0 +1,8 @@ + + + + Data Backup + Data Backup + + + diff --git a/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/userpanel-forwarding b/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/userpanel-forwarding new file mode 100644 index 0000000..378b8e5 --- /dev/null +++ b/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/userpanel-forwarding @@ -0,0 +1,50 @@ + + + Forward Mail + Forward Mail + + + FORM_TITLE + Change email delivery + + + DESCRIPTION + To change your email delivery.

Select a delivery method, and a forwarding email address if necessary

]]>
+
+ + LOCAL + Lever e-post lokalt + + + FORWARD + Forward to address below + + + BOTH + Lever både lokalt, og videresend + + + UNACCEPTABLE_CHARS + Unacceptable characters, or Domain name missing. + + + VALID_EMAIL_NEEDED + A valid email address is needed + + + EMAIL_DELIVERY + Email Delivery + + + FORWARDING_ADDRESS + Forwarding Address + + + ERROR_UPDATING + Error updating your settings. + + + SUCCESS + Your settings have been saved. + +
diff --git a/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/userpanel-password b/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/userpanel-password new file mode 100644 index 0000000..64d88f0 --- /dev/null +++ b/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/userpanel-password @@ -0,0 +1,10 @@ + + + FORM_TITLE + Endre konto passord + + + DESCRIPTION + To change your account password, please fill out the following form. You will need to provide your old password, and your desired new password. (You must type the new password twice.)

If you cannot change your password because you have forgotten the old one, your local system administrator can reset your password using the server manager.

]]>
+
+
diff --git a/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/userpanel-useraccounts b/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/userpanel-useraccounts new file mode 100644 index 0000000..6207a80 --- /dev/null +++ b/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/userpanel-useraccounts @@ -0,0 +1,8 @@ + + + + User accounts + Brukerkontoer + + + diff --git a/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/userpanel-userbackup b/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/userpanel-userbackup new file mode 100644 index 0000000..5b67d1a --- /dev/null +++ b/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/userpanel-userbackup @@ -0,0 +1,8 @@ + + + + Data Backup + Data sikkerhetskopi + + + diff --git a/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/userpanel-forwarding b/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/userpanel-forwarding new file mode 100644 index 0000000..4a809c7 --- /dev/null +++ b/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/userpanel-forwarding @@ -0,0 +1,50 @@ + + + Forward Mail + E-mail doorsturen + + + FORM_TITLE + Verander e-mail bezorging + + + DESCRIPTION + Om uw e-mail bezorging te veranderen.

Kies een bezorgingsmethode, en een doorstuur adres indien dit nodig is

]]>
+
+ + LOCAL + E-mail lokaal bezorgen + + + FORWARD + Doorsturen aan adres hieronder + + + BOTH + Zowel lokaal bezorgen als doorsturen + + + UNACCEPTABLE_CHARS + Niet geaccepteerde tekens of de Domeinnaam ontbreekt. + + + VALID_EMAIL_NEEDED + Moet een geldig e-mailadres zijn + + + EMAIL_DELIVERY + E-mail bezorging + + + FORWARDING_ADDRESS + Doorstuur Adres + + + ERROR_UPDATING + Fout tijdens bijwerken van uw instellingen. + + + SUCCESS + Uw instellingen zijn opgeslagen. + +
diff --git a/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/userpanel-password b/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/userpanel-password new file mode 100644 index 0000000..316259e --- /dev/null +++ b/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/userpanel-password @@ -0,0 +1,10 @@ + + + FORM_TITLE + Account wachtwoord wijzigen + + + DESCRIPTION + To change your account password, please fill out the following form. You will need to provide your old password, and your desired new password. (You must type the new password twice.)

If you cannot change your password because you have forgotten the old one, your local system administrator can reset your password using the server manager.

]]>
+
+
diff --git a/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/userpanel-useraccounts b/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/userpanel-useraccounts new file mode 100644 index 0000000..3312978 --- /dev/null +++ b/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/userpanel-useraccounts @@ -0,0 +1,8 @@ + + + + User accounts + Gebruikersaccounts + + + diff --git a/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/userpanel-userbackup b/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/userpanel-userbackup new file mode 100644 index 0000000..4caccf4 --- /dev/null +++ b/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/userpanel-userbackup @@ -0,0 +1,8 @@ + + + + Data Backup + Data Back-up + + + diff --git a/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/userpanel-forwarding b/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/userpanel-forwarding new file mode 100644 index 0000000..c394b79 --- /dev/null +++ b/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/userpanel-forwarding @@ -0,0 +1,50 @@ + + + Forward Mail + Forward Mail + + + FORM_TITLE + Change email delivery + + + DESCRIPTION + To change your email delivery.

Select a delivery method, and a forwarding email address if necessary

]]>
+
+ + LOCAL + Deliver email locally + + + FORWARD + Forward to address below + + + BOTH + Both deliver locally and forward + + + UNACCEPTABLE_CHARS + Unacceptable characters, or Domain name missing. + + + VALID_EMAIL_NEEDED + A valid email address is needed + + + EMAIL_DELIVERY + Email Delivery + + + FORWARDING_ADDRESS + Forwarding Address + + + ERROR_UPDATING + Error updating your settings. + + + SUCCESS + Your settings have been saved. + +
diff --git a/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/userpanel-password b/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/userpanel-password new file mode 100644 index 0000000..8e71722 --- /dev/null +++ b/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/userpanel-password @@ -0,0 +1,10 @@ + + + FORM_TITLE + Change account password + + + DESCRIPTION + To change your account password, please fill out the following form. You will need to provide your old password, and your desired new password. (You must type the new password twice.)

If you cannot change your password because you have forgotten the old one, your local system administrator can reset your password using the server manager.

]]>
+
+
diff --git a/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/userpanel-useraccounts b/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/userpanel-useraccounts new file mode 100644 index 0000000..4575b3e --- /dev/null +++ b/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/userpanel-useraccounts @@ -0,0 +1,8 @@ + + + + User accounts + Konta użytkowników + + + diff --git a/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/userpanel-userbackup b/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/userpanel-userbackup new file mode 100644 index 0000000..7dae95b --- /dev/null +++ b/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/userpanel-userbackup @@ -0,0 +1,8 @@ + + + + Data Backup + Kopia zapasowa danych + + + diff --git a/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/userpanel-forwarding b/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/userpanel-forwarding new file mode 100644 index 0000000..b512fa5 --- /dev/null +++ b/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/userpanel-forwarding @@ -0,0 +1,50 @@ + + + Forward Mail + Encaminhar e-mail + + + FORM_TITLE + Mudar entrega de e-mail + + + DESCRIPTION + Para mudar a entrega de seu e-mail.

Selecione um método de entrega e um endereço de encaminhamento se necessário

]]>
+
+ + LOCAL + Entregar e-mail localmente + + + FORWARD + Encaminhar para o endereço abaixo + + + BOTH + Entregar localmente e encaminhar + + + UNACCEPTABLE_CHARS + Caracteres não aceitáveis, ou nome do domínio faltando. + + + VALID_EMAIL_NEEDED + Um endereço de e-mail válido é necessário + + + EMAIL_DELIVERY + Entrega de e-mail + + + FORWARDING_ADDRESS + Endereço de encaminhamento + + + ERROR_UPDATING + Erro atualizando suas configurações. + + + SUCCESS + Suas configurações foram salvas. + +
diff --git a/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/userpanel-password b/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/userpanel-password new file mode 100644 index 0000000..3f2c19c --- /dev/null +++ b/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/userpanel-password @@ -0,0 +1,10 @@ + + + FORM_TITLE + Mudar a senha da conta + + + DESCRIPTION + To change your account password, please fill out the following form. You will need to provide your old password, and your desired new password. (You must type the new password twice.)

If you cannot change your password because you have forgotten the old one, your local system administrator can reset your password using the server manager.

]]>
+
+
diff --git a/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/userpanel-useraccounts b/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/userpanel-useraccounts new file mode 100644 index 0000000..8d2e7f9 --- /dev/null +++ b/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/userpanel-useraccounts @@ -0,0 +1,8 @@ + + + + User accounts + Contas de usuário + + + diff --git a/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/userpanel-userbackup b/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/userpanel-userbackup new file mode 100644 index 0000000..fe8aafb --- /dev/null +++ b/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/userpanel-userbackup @@ -0,0 +1,8 @@ + + + + Data Backup + Backup de Dados + + + diff --git a/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/userpanel-forwarding b/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/userpanel-forwarding new file mode 100644 index 0000000..d7c600f --- /dev/null +++ b/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/userpanel-forwarding @@ -0,0 +1,50 @@ + + + Forward Mail + Encaminhar e-mail + + + FORM_TITLE + Mudar entrega de e-mail + + + DESCRIPTION + To change your email delivery.

Select a delivery method, and a forwarding email address if necessary

]]>
+
+ + LOCAL + Entregar e-mail localmente + + + FORWARD + Encaminhar para o endereço abaixo + + + BOTH + Entregar localmente e encaminhar + + + UNACCEPTABLE_CHARS + Caracteres não aceitáveis, ou nome do domínio faltando. + + + VALID_EMAIL_NEEDED + A valid email address is needed + + + EMAIL_DELIVERY + Entrega de e-mail + + + FORWARDING_ADDRESS + Endereço de encaminhamento + + + ERROR_UPDATING + Erro atualizando suas configurações. + + + SUCCESS + Suas configurações foram salvas. + +
diff --git a/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/userpanel-password b/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/userpanel-password new file mode 100644 index 0000000..ce76a2f --- /dev/null +++ b/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/userpanel-password @@ -0,0 +1,10 @@ + + + FORM_TITLE + Mudar a senha da conta + + + DESCRIPTION + To change your account password, please fill out the following form. You will need to provide your old password, and your desired new password. (You must type the new password twice.)

If you cannot change your password because you have forgotten the old one, your local system administrator can reset your password using the server manager.

]]>
+
+
diff --git a/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/userpanel-useraccounts b/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/userpanel-useraccounts new file mode 100644 index 0000000..de0fdf0 --- /dev/null +++ b/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/userpanel-useraccounts @@ -0,0 +1,8 @@ + + + + User accounts + Contas de usuário + + + diff --git a/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/userpanel-userbackup b/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/userpanel-userbackup new file mode 100644 index 0000000..fbfc44e --- /dev/null +++ b/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/userpanel-userbackup @@ -0,0 +1,8 @@ + + + + Data Backup + Backup de Dados + + + diff --git a/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/userpanel-forwarding b/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/userpanel-forwarding new file mode 100644 index 0000000..52d7c5c --- /dev/null +++ b/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/userpanel-forwarding @@ -0,0 +1,50 @@ + + + Forward Mail + redirectează mail + + + FORM_TITLE + Schimbă livrarea mailului + + + DESCRIPTION + To change your email delivery.

Select a delivery method, and a forwarding email address if necessary

]]>
+
+ + LOCAL + Livrează local + + + FORWARD + Livrează la adresa de mai jos + + + BOTH + Livrează și local și la adresa + + + UNACCEPTABLE_CHARS + Caractere neacceptate sau numele de domeniu lipseste. + + + VALID_EMAIL_NEEDED + Trebuie să fie o adresă e-mail validă + + + EMAIL_DELIVERY + Livrare mail + + + FORWARDING_ADDRESS + Adresă de redirectare + + + ERROR_UPDATING + A apărut o eroare la salvarea setărilor + + + SUCCESS + Setările au fost salvate. + +
diff --git a/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/userpanel-password b/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/userpanel-password new file mode 100644 index 0000000..f2e702e --- /dev/null +++ b/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/userpanel-password @@ -0,0 +1,10 @@ + + + FORM_TITLE + Schimbă parola contului + + + DESCRIPTION + To change your account password, please fill out the following form. You will need to provide your old password, and your desired new password. (You must type the new password twice.)

If you cannot change your password because you have forgotten the old one, your local system administrator can reset your password using the server manager.

]]>
+
+
diff --git a/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/userpanel-useraccounts b/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/userpanel-useraccounts new file mode 100644 index 0000000..ed6fba3 --- /dev/null +++ b/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/userpanel-useraccounts @@ -0,0 +1,8 @@ + + + + User accounts + Conturi utilizatori + + + diff --git a/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/userpanel-userbackup b/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/userpanel-userbackup new file mode 100644 index 0000000..c0b1331 --- /dev/null +++ b/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/userpanel-userbackup @@ -0,0 +1,8 @@ + + + + Data Backup + Salvări date + + + diff --git a/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/userpanel-forwarding b/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/userpanel-forwarding new file mode 100644 index 0000000..44dc218 --- /dev/null +++ b/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/userpanel-forwarding @@ -0,0 +1,50 @@ + + + Forward Mail + Пересылать почту + + + FORM_TITLE + Изменение доставки почты + + + DESCRIPTION + To change your email delivery.

Select a delivery method, and a forwarding email address if necessary

]]>
+
+ + LOCAL + Доставлять почту локально + + + FORWARD + Пересылать на адрес ниже + + + BOTH + Доставлять локально и перенаправлять + + + UNACCEPTABLE_CHARS + Недопустимые символы или пропущено имя домена. + + + VALID_EMAIL_NEEDED + A valid email address is needed + + + EMAIL_DELIVERY + Доставка почты + + + FORWARDING_ADDRESS + Адрес для пересылки + + + ERROR_UPDATING + Ошибка обновления ваших настроек. + + + SUCCESS + Ваши настройки были сохранены. + +
diff --git a/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/userpanel-password b/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/userpanel-password new file mode 100644 index 0000000..309a22d --- /dev/null +++ b/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/userpanel-password @@ -0,0 +1,10 @@ + + + FORM_TITLE + Изменить пароль учётной записи + + + DESCRIPTION + To change your account password, please fill out the following form. You will need to provide your old password, and your desired new password. (You must type the new password twice.)

If you cannot change your password because you have forgotten the old one, your local system administrator can reset your password using the server manager.

]]>
+
+
diff --git a/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/userpanel-useraccounts b/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/userpanel-useraccounts new file mode 100644 index 0000000..6bc78ef --- /dev/null +++ b/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/userpanel-useraccounts @@ -0,0 +1,8 @@ + + + + User accounts + Учётные записи пользователей + + + diff --git a/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/userpanel-userbackup b/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/userpanel-userbackup new file mode 100644 index 0000000..8352acf --- /dev/null +++ b/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/userpanel-userbackup @@ -0,0 +1,8 @@ + + + + Data Backup + Резерное копирование данных + + + diff --git a/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/userpanel-forwarding b/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/userpanel-forwarding new file mode 100644 index 0000000..17c7962 --- /dev/null +++ b/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/userpanel-forwarding @@ -0,0 +1,50 @@ + + + Forward Mail + Forward Mail + + + FORM_TITLE + Change email delivery + + + DESCRIPTION + To change your email delivery.

Select a delivery method, and a forwarding email address if necessary

]]>
+
+ + LOCAL + Dostavi posto lokalno + + + FORWARD + Forward to address below + + + BOTH + Dostavi posto lokalno in na spodnji naslov + + + UNACCEPTABLE_CHARS + Unacceptable characters, or Domain name missing. + + + VALID_EMAIL_NEEDED + A valid email address is needed + + + EMAIL_DELIVERY + Email Delivery + + + FORWARDING_ADDRESS + Forwarding Address + + + ERROR_UPDATING + Error updating your settings. + + + SUCCESS + Your settings have been saved. + +
diff --git a/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/userpanel-password b/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/userpanel-password new file mode 100644 index 0000000..7805954 --- /dev/null +++ b/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/userpanel-password @@ -0,0 +1,10 @@ + + + FORM_TITLE + Spreminjanje gesla za uporabnisko ime + + + DESCRIPTION + To change your account password, please fill out the following form. You will need to provide your old password, and your desired new password. (You must type the new password twice.)

If you cannot change your password because you have forgotten the old one, your local system administrator can reset your password using the server manager.

]]>
+
+
diff --git a/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/userpanel-useraccounts b/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/userpanel-useraccounts new file mode 100644 index 0000000..f893fd7 --- /dev/null +++ b/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/userpanel-useraccounts @@ -0,0 +1,8 @@ + + + + User accounts + User accounts + + + diff --git a/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/userpanel-userbackup b/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/userpanel-userbackup new file mode 100644 index 0000000..dbe3b66 --- /dev/null +++ b/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/userpanel-userbackup @@ -0,0 +1,8 @@ + + + + Data Backup + Data Backup + + + diff --git a/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/userpanel-forwarding b/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/userpanel-forwarding new file mode 100644 index 0000000..d3ec8c0 --- /dev/null +++ b/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/userpanel-forwarding @@ -0,0 +1,50 @@ + + + Forward Mail + Vidarebefordra e-post + + + FORM_TITLE + Ändra e-postleveranser + + + DESCRIPTION + To change your email delivery.

Select a delivery method, and a forwarding email address if necessary

]]>
+
+ + LOCAL + Leverera e-post lokalt + + + FORWARD + Vidarebefordra till adressen nedan + + + BOTH + Leverera både lokalt och vidarebefordra + + + UNACCEPTABLE_CHARS + Otillåtna tecken eller så saknas domännamnet. + + + VALID_EMAIL_NEEDED + A valid email address is needed + + + EMAIL_DELIVERY + E-postleverans + + + FORWARDING_ADDRESS + Adress för vidarebefordran + + + ERROR_UPDATING + Ett fel uppstod vid uppdatering av dina inställningar. + + + SUCCESS + Dina inställningar har sparats. + +
diff --git a/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/userpanel-password b/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/userpanel-password new file mode 100644 index 0000000..fa8d06b --- /dev/null +++ b/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/userpanel-password @@ -0,0 +1,10 @@ + + + FORM_TITLE + Ändra lösenord för konto + + + DESCRIPTION + To change your account password, please fill out the following form. You will need to provide your old password, and your desired new password. (You must type the new password twice.)

If you cannot change your password because you have forgotten the old one, your local system administrator can reset your password using the server manager.

]]>
+
+
diff --git a/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/userpanel-useraccounts b/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/userpanel-useraccounts new file mode 100644 index 0000000..97b88fc --- /dev/null +++ b/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/userpanel-useraccounts @@ -0,0 +1,8 @@ + + + + User accounts + Användarkonton + + + diff --git a/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/userpanel-userbackup b/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/userpanel-userbackup new file mode 100644 index 0000000..3d1c4e4 --- /dev/null +++ b/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/userpanel-userbackup @@ -0,0 +1,8 @@ + + + + Data Backup + Backup av data + + + diff --git a/root/etc/e-smith/locale/th/etc/e-smith/web/functions/userpanel-forwarding b/root/etc/e-smith/locale/th/etc/e-smith/web/functions/userpanel-forwarding new file mode 100644 index 0000000..e00d1b4 --- /dev/null +++ b/root/etc/e-smith/locale/th/etc/e-smith/web/functions/userpanel-forwarding @@ -0,0 +1,50 @@ + + + Forward Mail + ส่งต่อเมล์ + + + FORM_TITLE + เปลี่ยนแปลงการนำส่งอีเมล์ + + + DESCRIPTION + To change your email delivery.

Select a delivery method, and a forwarding email address if necessary

]]>
+
+ + LOCAL + ส่งอีเมล์ภายในเท่านั้น + + + FORWARD + Forward to address below + + + BOTH + ทั้งส่งภายในและส่งต่อไปที่อยู่อื่น + + + UNACCEPTABLE_CHARS + มีอักขระที่ไม่ให้ใช้ หรือไม่ได้ระบุชื่อโดเมน + + + VALID_EMAIL_NEEDED + A valid email address is needed + + + EMAIL_DELIVERY + การนำส่งอีเมล์ + + + FORWARDING_ADDRESS + ที่อยู่ที่จะส่งไป + + + ERROR_UPDATING + ผิดพลาดในการปรับปรุงระบบ + + + SUCCESS + การตั้งค่าถูกบันทึกแล้ว + +
diff --git a/root/etc/e-smith/locale/th/etc/e-smith/web/functions/userpanel-password b/root/etc/e-smith/locale/th/etc/e-smith/web/functions/userpanel-password new file mode 100644 index 0000000..f60b068 --- /dev/null +++ b/root/etc/e-smith/locale/th/etc/e-smith/web/functions/userpanel-password @@ -0,0 +1,10 @@ + + + FORM_TITLE + เปลี่ยนรหัสผ่าน + + + DESCRIPTION + To change your account password, please fill out the following form. You will need to provide your old password, and your desired new password. (You must type the new password twice.)

If you cannot change your password because you have forgotten the old one, your local system administrator can reset your password using the server manager.

]]>
+
+
diff --git a/root/etc/e-smith/locale/th/etc/e-smith/web/functions/userpanel-useraccounts b/root/etc/e-smith/locale/th/etc/e-smith/web/functions/userpanel-useraccounts new file mode 100644 index 0000000..7844973 --- /dev/null +++ b/root/etc/e-smith/locale/th/etc/e-smith/web/functions/userpanel-useraccounts @@ -0,0 +1,8 @@ + + + + User accounts + บัญชีผู้ใช้ + + + diff --git a/root/etc/e-smith/locale/th/etc/e-smith/web/functions/userpanel-userbackup b/root/etc/e-smith/locale/th/etc/e-smith/web/functions/userpanel-userbackup new file mode 100644 index 0000000..e7ddcca --- /dev/null +++ b/root/etc/e-smith/locale/th/etc/e-smith/web/functions/userpanel-userbackup @@ -0,0 +1,8 @@ + + + + Data Backup + สำรองข้อมูล + + + diff --git a/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/userpanel-forwarding b/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/userpanel-forwarding new file mode 100644 index 0000000..11692f1 --- /dev/null +++ b/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/userpanel-forwarding @@ -0,0 +1,50 @@ + + + Forward Mail + E-postayı yönlendir + + + FORM_TITLE + E-posta dağtım yöntemini değiştir + + + DESCRIPTION + To change your email delivery.

Select a delivery method, and a forwarding email address if necessary

]]>
+
+ + LOCAL + E-posta dağıtımını bu sunucudan yap + + + FORWARD + Belirtilen adrese yönlendir. + + + BOTH + Hem yerel, hem de harici adrese yönlendir + + + UNACCEPTABLE_CHARS + Geçersiz karakter veya alan adı eksik. + + + VALID_EMAIL_NEEDED + A valid email address is needed + + + EMAIL_DELIVERY + E-posta dağtımı + + + FORWARDING_ADDRESS + Yönlendirme adresi + + + ERROR_UPDATING + Ayarlarınız uygulanırken hata oluştu. + + + SUCCESS + Ayarlarınız kaydedildi. + +
diff --git a/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/userpanel-password b/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/userpanel-password new file mode 100644 index 0000000..035c726 --- /dev/null +++ b/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/userpanel-password @@ -0,0 +1,10 @@ + + + FORM_TITLE + Hesap şifresini değiştir + + + DESCRIPTION + To change your account password, please fill out the following form. You will need to provide your old password, and your desired new password. (You must type the new password twice.)

If you cannot change your password because you have forgotten the old one, your local system administrator can reset your password using the server manager.

]]>
+
+
diff --git a/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/userpanel-useraccounts b/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/userpanel-useraccounts new file mode 100644 index 0000000..82445b7 --- /dev/null +++ b/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/userpanel-useraccounts @@ -0,0 +1,8 @@ + + + + User accounts + Kullanıcı hesapları + + + diff --git a/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/userpanel-userbackup b/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/userpanel-userbackup new file mode 100644 index 0000000..62a392b --- /dev/null +++ b/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/userpanel-userbackup @@ -0,0 +1,8 @@ + + + + Data Backup + Veri yedekleme + + + diff --git a/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/userpanel-forwarding b/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/userpanel-forwarding new file mode 100644 index 0000000..a78ea5f --- /dev/null +++ b/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/userpanel-forwarding @@ -0,0 +1,50 @@ + + + Forward Mail + 转发邮件 + + + FORM_TITLE + 修改邮件投递 + + + DESCRIPTION + To change your email delivery.

Select a delivery method, and a forwarding email address if necessary

]]>
+
+ + LOCAL + 投递到本地电子邮件 + + + FORWARD + Forward to address below + + + BOTH + 投递到本地电子邮件并转发 + + + UNACCEPTABLE_CHARS + Unacceptable characters, or Domain name missing. + + + VALID_EMAIL_NEEDED + A valid email address is needed + + + EMAIL_DELIVERY + 邮件投递 + + + FORWARDING_ADDRESS + 转发地址 + + + ERROR_UPDATING + 更新设置失败 + + + SUCCESS + 设置已经被保存。 + +
diff --git a/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/userpanel-password b/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/userpanel-password new file mode 100644 index 0000000..491bbcd --- /dev/null +++ b/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/userpanel-password @@ -0,0 +1,10 @@ + + + FORM_TITLE + 修改账号密码 + + + DESCRIPTION + To change your account password, please fill out the following form. You will need to provide your old password, and your desired new password. (You must type the new password twice.)

If you cannot change your password because you have forgotten the old one, your local system administrator can reset your password using the server manager.

]]>
+
+
diff --git a/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/userpanel-useraccounts b/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/userpanel-useraccounts new file mode 100644 index 0000000..6a9e01e --- /dev/null +++ b/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/userpanel-useraccounts @@ -0,0 +1,8 @@ + + + + User accounts + User accounts + + + diff --git a/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/userpanel-userbackup b/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/userpanel-userbackup new file mode 100644 index 0000000..ccf1f3f --- /dev/null +++ b/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/userpanel-userbackup @@ -0,0 +1,8 @@ + + + + Data Backup + 数据备份 + + + diff --git a/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/userpanel-forwarding b/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/userpanel-forwarding new file mode 100644 index 0000000..8cbe493 --- /dev/null +++ b/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/userpanel-forwarding @@ -0,0 +1,50 @@ + + + Forward Mail + 轉遞電郵 + + + FORM_TITLE + 改變郵件傳送 + + + DESCRIPTION + 改變郵件傳送。

選擇傳送方式,若需要時亦填入轉遞的電郵位址。

]]>
+
+ + LOCAL + 傳遞本地端電郵 + + + FORWARD + 轉遞位址如下 + + + BOTH + 傳遞本地端電郵並轉遞 + + + UNACCEPTABLE_CHARS + 無法接受的字元,或網域名稱錯誤。 + + + VALID_EMAIL_NEEDED + 需要有效的電郵位址。 + + + EMAIL_DELIVERY + 郵件傳送 + + + FORWARDING_ADDRESS + 轉遞位址 + + + ERROR_UPDATING + 您的設定更新錯誤。 + + + SUCCESS + 您的設定已儲存。 + +
diff --git a/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/userpanel-password b/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/userpanel-password new file mode 100644 index 0000000..8347758 --- /dev/null +++ b/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/userpanel-password @@ -0,0 +1,10 @@ + + + FORM_TITLE + 修改帳號密碼 + + + DESCRIPTION +

如果您無法修改密碼,可能因為您已忘記舊密碼,您當地的系統管理員可以使用 server manager重設密碼。

]]>
+
+
diff --git a/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/userpanel-useraccounts b/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/userpanel-useraccounts new file mode 100644 index 0000000..4de745f --- /dev/null +++ b/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/userpanel-useraccounts @@ -0,0 +1,8 @@ + + + + User accounts + 使用者帳號 + + + diff --git a/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/userpanel-userbackup b/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/userpanel-userbackup new file mode 100644 index 0000000..0f79b57 --- /dev/null +++ b/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/userpanel-userbackup @@ -0,0 +1,8 @@ + + + + Data Backup + 資料備份 + + + diff --git a/root/etc/e-smith/web/functions/userpanel-forwarding b/root/etc/e-smith/web/functions/userpanel-forwarding new file mode 100644 index 0000000..e92a566 --- /dev/null +++ b/root/etc/e-smith/web/functions/userpanel-forwarding @@ -0,0 +1,65 @@ +#!/usr/bin/perl -wT + +#---------------------------------------------------------------------- +# heading : Your Settings +# description : Forward Mail +# longdesc : modify your email forwarding +# navigation : 100 400 +# +# Copyright (c) 2001 Daniel van Raay +# Modified (c) 2002,2006 Stephen Noble +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +#---------------------------------------------------------------------- + +use strict; +use warnings; + +use esmith::FormMagick::Panel::userpanelForwarding; + +my $fm = esmith::FormMagick::Panel::userpanelForwarding->new(); +$fm->display(); + +__DATA__ +
+ + + + DESCRIPTION + + + + + + + + + + + + + + + + + +
diff --git a/root/etc/e-smith/web/functions/userpanel-password b/root/etc/e-smith/web/functions/userpanel-password new file mode 100644 index 0000000..6212b55 --- /dev/null +++ b/root/etc/e-smith/web/functions/userpanel-password @@ -0,0 +1,52 @@ +#!/usr/bin/perl -wT + +#---------------------------------------------------------------------- +# heading : Your Settings +# description : PASSWORD_CHANGE +# longdesc : change your password +# navigation : 100 100 + +# e-smith manager functions: userpassword +# copyright (C) 1999, 2000, 2001 e-smith, inc. +# FM version stephen@dungog.net 2006 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +#---------------------------------------------------------------------- + +use strict; +use warnings; + +use esmith::FormMagick::Panel::userpanelPassword; + +my $fm = esmith::FormMagick::Panel::userpanelPassword->new(); +$fm->display(); + +__DATA__ +
+ + + + DESCRIPTION + + + + + + + + + + + + + + + + +
diff --git a/root/etc/e-smith/web/functions/userpanel-useraccounts b/root/etc/e-smith/web/functions/userpanel-useraccounts new file mode 100644 index 0000000..93e79e8 --- /dev/null +++ b/root/etc/e-smith/web/functions/userpanel-useraccounts @@ -0,0 +1,1950 @@ +#!/usr/bin/perl -wT + +#---------------------------------------------------------------------- +# heading : Your Settings +# description : User accounts +# longdesc : create and modify users +# navigation : 100 900 +# +# Copyright (c) 2001 Mitel Networks Corporation +# Modified: Stephen Noble support@dungog.net +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# Technical support for this program is available from e-smith, inc. +# Please visit our web site www.e-smith.com for details. +#---------------------------------------------------------------------- + +package esmith; + +use strict; +use CGI ':all'; +use CGI::Carp qw(fatalsToBrowser); + +use esmith::cgi5; +use esmith::config; +use esmith::util; +use esmith::db; +use esmith::event; +use esmith::cgi; + + +# added by lorenzo +use Crypt::Cracklib; + +sub showInitial ($$$); +sub showHelp ($); +sub genEmailForward ($$); +sub genGroups ($$); +sub createUser ($); +sub performCreateUser ($); +sub modifyUser ($); +sub performModifyUser ($); +sub deleteUser ($); +sub performDeleteUser ($); +sub passwdUser ($); +sub performPasswdUser ($); +sub lockUser ($); +sub performlockUser ($); +sub makePseudonyms ($$); +sub getNextFreeID; +sub performSelect ($); + +BEGIN +{ + # Clear PATH and related environment variables so that calls to + # external programs do not cause results to be tainted. See + # "perlsec" manual page for details. + + $ENV {'PATH'} = ''; + $ENV {'SHELL'} = '/bin/bash'; + delete $ENV {'ENV'}; +} + +esmith::util::setRealToEffective (); + +$CGI::POST_MAX=1024 * 100; # max 100K posts +$CGI::DISABLE_UPLOADS = 1; # no uploads + +my %conf; +tie %conf, 'esmith::config'; + +my %accounts; +tie %accounts, 'esmith::config', '/home/e-smith/db/accounts'; + + +#------------------------------------------------------------ +# examine state parameter and display the appropriate form +#------------------------------------------------------------ + +my $q = new CGI; + +if (! grep (/^state$/, $q->param)) +{ + showInitial ($q, '', ''); +} + +elsif ($q->param ('state') eq "help") +{ + showHelp ($q); +} + +elsif ($q->param ('state') eq "create") +{ + createUser ($q); +} + +elsif ($q->param ('state') eq "performCreate") +{ + performCreateUser ($q); +} + +elsif ($q->param ('state') eq "modify") +{ + modifyUser ($q); +} + +elsif ($q->param ('state') eq "performModify") +{ + performModifyUser ($q); +} + +elsif ($q->param ('state') eq "delete") +{ + deleteUser ($q); +} + +elsif ($q->param ('state') eq "performDelete") +{ + performDeleteUser ($q); +} + +elsif ($q->param ('state') eq "passwd") +{ + passwdUser ($q); +} + +elsif ($q->param ('state') eq "performPasswd") +{ + performPasswdUser ($q); +} + +elsif ($q->param ('state') eq "lock") +{ + lockUser ($q); +} + +elsif ($q->param ('state') eq "performLock") +{ + performlockUser ($q); +} + +elsif ($q->param ('state') eq "select") +{ + performSelect ($q); +} + +else +{ + esmith::cgi5::genStateError ($q, \%conf); +} + +exit (0); + +#------------------------------------------------------------ +# subroutine to display initial form +#------------------------------------------------------------ + +sub showInitial ($$$) +{ + my ($q, $msg, $passg) = @_; + + #------------------------------------------------------------ + # If there's a message, we just finished an operation so show the + # status report. If no message, this is a new list of accounts. + #------------------------------------------------------------ + + if ($msg eq '') + { + esmith::cgi5::genHeaderNonCacheable + ($q, \%conf, 'Create, remove, or change user accounts'); + } + else + { + esmith::cgi5::genHeaderNonCacheable + ($q, \%conf, 'Operation status report'); + + print $q->p ($msg); + print $q->hr; + } + + #------------------------------------------------------------ + # Look up accounts and user names + #------------------------------------------------------------ + + my @userAccounts = (); + my $user; + my $acctN = $ENV{'REMOTE_USER'}; + my $fGroup = ''; + my @ulist = (); + my $members = ''; + my @members = (); + + # find system groups + my @glist = (); + foreach (sort keys %accounts) + { + push (@glist, $_) + if (db_get_type(\%accounts, $_) eq 'group'); + } + + # is user a member of this group, add to ulist + foreach my $group (@glist) + { + $members = db_get_prop(\%accounts, $group, 'Members') || ''; + @members = split (/,/, $members); + + foreach my $user (@members) + { + if ($user eq $acctN) + { + push (@ulist, $group); + $fGroup = $group; + } + } + } + #number of user in group + my $ulist = @ulist; + + #my $bGroup = db_get(\%conf, 'fGroup'); + if (exists $conf {'fGroup'}) + { + $fGroup = db_get(\%conf, 'fGroup'); + db_delete(\%conf, 'fGroup'); + } + + #change to a passed value / swap group + if ($passg ne '') + { + $fGroup = $passg; + } + + my $groupLimit = db_get_prop(\%accounts, 'groupLimit', $fGroup) || '999'; + + $members = db_get_prop(\%accounts, $fGroup, 'Members') || ''; + @members = split (/,/, $members); + my $numMembers = @members || '0'; + + + if ($ulist == 0) + { + print $q->p ($q->b ("This user is not in a group so he cannot add users")); + } + else + { + if ($groupLimit > $numMembers) + { + print $q->p ($q->a ({href => $q->url (-absolute => 1) . "?state=create&fGroup=$fGroup"}, + 'Click here'), + "to create a user account in group $fGroup."); + } + else + { + print $q->p ("The maximum number of members in this group $fGroup has been reached."); + } + } + + foreach (keys %accounts) + { + push (@userAccounts, $_) + if (db_get_type(\%accounts, $_) eq "user"); + } + + unless (scalar @userAccounts) + { + print $q->p ($q->b ('There are no user accounts in the system.')); + } + else + { + my $description = < +If the account is marked as locked, +that means that the user's password needs +to be reset. Please note that newly created +accounts are automatically locked until the +password is changed. +END_TEXT + + print $q->p ($description); + + if ($ulist == 0) + { + print $q->p ($q->b ("This user is not in a group so he cannot edit users")); + } + else + { + + #if ($ulist == 1) + #{ + # print $q->p ($q->td ("Current group is $fGroup")); + #} + if ($ulist > 1) + { + print $q->p ($q->td ("You are in multiple groups, you can change the group to create users in below...")); + foreach (@ulist) + { + print $q->Tr ($q->td ($q->a ({href => $q->url (-absolute => 1) . "?state=select&swap=$_"}, + "$_"), " ; ")); + } + } + + print $q->p ($q->b ('Current List of User Accounts')); + + print ""; + + print $q->Tr (esmith::cgi5::genSmallCell ($q, $q->b ('Account')), + esmith::cgi5::genSmallCell ($q, $q->b ('User Name')), + $q->td (' '), + $q->td (' '), + $q->td (' '), + $q->td (' ')); + + + foreach $user (sort @userAccounts) + { + my $members = db_get_prop(\%accounts, $fGroup, 'Members') || ''; + my @members = split (/,/, $members); + + foreach (@members) + { + if ($_ eq $user) + { + my $name = db_get_prop(\%accounts, $user, "FirstName") + . " " + . db_get_prop(\%accounts, $user, "LastName"); + + if (db_get_prop(\%accounts, $user, "PasswordSet") eq "yes") + { + print $q->Tr (esmith::cgi5::genSmallCell ($q, $user), + esmith::cgi5::genSmallCell ($q, $name), + esmith::cgi5::genSmallCell ($q, + $q->a ({href => $q->url (-absolute => 1) + . "?state=modify&acct=" + . "$user&fGroup=$fGroup"}, 'Modify...')), + esmith::cgi5::genSmallCell ($q, + $q->a ({href => $q->url (-absolute => 1) + . "?state=passwd&acct=" + . "$user&fGroup=$fGroup"}, 'Reset password...')), + esmith::cgi5::genSmallCell ($q, + $q->a ({href => $q->url (-absolute => 1) + . "?state=lock&acct=" + . "$user&fGroup=$fGroup"}, 'Lock Account...')), + esmith::cgi5::genSmallCell ($q, + $q->a ({href => $q->url (-absolute => 1) + . "?state=delete&acct=" + . "$user&fGroup=$fGroup"}, 'Remove...'))); + + } + else + { + print $q->Tr (esmith::cgi5::genSmallRedCell ($q, $user), + esmith::cgi5::genSmallRedCell ($q, $name), + esmith::cgi5::genSmallCell ($q, + $q->a ({href => $q->url (-absolute => 1) + . "?state=modify&acct=" + . "$user&fGroup=$fGroup"}, 'Modify...')), + esmith::cgi5::genSmallCell ($q, + $q->a ({href => $q->url (-absolute => 1) + . "?state=passwd&acct=" + . "$user&fGroup=$fGroup"}, 'Reset password...')), + esmith::cgi5::genSmallRedCell ($q, + "Account is locked"), + esmith::cgi5::genSmallCell ($q, + $q->a ({href => $q->url (-absolute => 1) + . "?state=delete&acct=" + . "$user&fGroup=$fGroup"}, 'Remove...'))); + + }#password + }#if user = group member + }#foreach group + }#foreach user + print '
'; + }#if ulist = 0 + }#if accounts >0 + + print $q->endform; +# print $q->p ($q->hr, $q->font ({size => "-1"}, "www.dungog.net/sme", + esmith::cgi::genFooter($q); + + print $q->a ({href => $q->url (-absolute => 1) . "?state=help"}, 'Useraccounts help'), " ..."; + print ''; + print ''; + print $q->end_html; +} + +#------------------------------------------------------------ +# +#------------------------------------------------------------ + +sub genEmailForward ($$) +{ + my ($q, $currentSetting) = @_; + + if ((! defined $currentSetting) || ($currentSetting eq '')) + { + $currentSetting = 'local'; + } + + my %emailLabels = ('local' => 'Deliver e-mail locally', + 'forward' => 'Forward to address below', + 'both' => 'Both deliver locally and forward'); + + return esmith::cgi5::genCell ($q, $q->popup_menu (-name => 'emailForward', + -values => ['local', 'forward', 'both'], + -default => $currentSetting, + -labels => \%emailLabels)); +} + +sub genGroups ($$) +{ + my ($q, $user) = @_; + + my $key; + my $value; + + my @groups = (); + my @selected = (); + + foreach (sort keys %accounts) + { + if (db_get_type(\%accounts, $_) eq "group") + { + push @groups, $_; + if ($user ne '') + { + my @members = + split (/,/, db_get_prop(\%accounts, $_, "Members")); + + if (grep (/^$user$/, @members)) + { + push @selected, $_; + } + } + } + } + + @groups = sort @groups; + my $count = scalar @groups; + + my $out; + + if ($count > 0) + { + $out = ""; + + $out .= $q->Tr ($q->td (' '), + esmith::cgi5::genSmallCell ($q, $q->b ('Group')), + esmith::cgi5::genSmallCell ($q, $q->b ('Description'))); + + my $group; + foreach $group (@groups) + { + my $checked = ""; + if (grep (/^$group$/, @selected)) + { + $checked = "checked"; + } + + $out .= + $q->Tr ( + $q->td ( + "" + ), + esmith::cgi5::genSmallCell ($q, $group), + esmith::cgi5::genSmallCell ( + $q, + db_get_prop(\%accounts, $group, "Description") + ) + ); + } + + $out .= '
'; + } + else + { + $out = $q->b ('Not applicable (no groups defined yet).'); + } + + return $out; +} + +sub createUser ($) +{ + my ($q) = @_; + my $acctN = $ENV{'REMOTE_USER'}; + my $fGroup = $q->param ('fGroup'); + db_set(\%conf, 'fGroup', $fGroup); + + my $description = < +Note that two special pseudonyms will be created for each new +account. These pseudonyms provide the ability to have alternative +mail accounts for that user which include their first name and last +name seperated with a period (.) and underscore (_). So, for the +account "betty" with first name "Betty" and last name "Rubble" +two pseudonyms are created as betty.rubble and betty_rubble. +

+The directory information (department, company, etc.) can be changed +from the defaults shown below. The changes will apply only to this user. +END_TEXT + + esmith::cgi5::genHeaderNonCacheable + ($q, \%conf, 'Create a new user account'); + + print $q->startform (-method => 'POST', + -action => $q->url (-absolute => 1)); + + print $q->table ({border => 0, cellspacing => 0, cellpadding => 4}, + + esmith::cgi5::genTextRow ($q, + + $q->p ($description)), + + esmith::cgi5::genNameValueRow ($q, + "Account name", + "acctName", + ""), + + esmith::cgi5::genNameValueRow ($q, + "First name", + "firstName", + ""), + + esmith::cgi5::genNameValueRow ($q, + "Last name", + "lastName", + ""), + + esmith::cgi5::genNameValueRow ($q, + "Department", + "department", + db_get_prop (\%conf, 'ldap', 'defaultDepartment')), + + esmith::cgi5::genNameValueRow ($q, + "Company", + "company", + db_get_prop (\%conf, 'ldap', 'defaultCompany')), + + esmith::cgi5::genNameValueRow ($q, + "Street address", + "street", + db_get_prop (\%conf, 'ldap', 'defaultStreet')), + + esmith::cgi5::genNameValueRow ($q, + "City", + "city", + db_get_prop (\%conf, 'ldap', 'defaultCity')), + + esmith::cgi5::genNameValueRow ($q, + "Phone number", + "phone", + db_get_prop (\%conf, 'ldap', 'defaultPhoneNumber')), + + $q->Tr (esmith::cgi5::genCell ($q, "E-mail delivery:"), + genEmailForward ($q, '')), + + esmith::cgi5::genNameValueRow ($q, + "Forwarding address", + "forwardAddress", + ""), + + esmith::cgi5::genWidgetRow ($q, "VPN Client Access", + $q->popup_menu (-name => 'VPNClientAccess', + -values => ['no','yes'])), + + esmith::cgi5::genTextRow ($q, + + $q->p ("This user will be added to the $fGroup Group")), + + + esmith::cgi5::genButtonRow ($q, + $q->submit (-name => 'action', + -value => 'Create'))); + + print $q->hidden (-name => 'groupMemberships', -override => 1, -default => $fGroup); + + print $q->hidden (-name => 'state', + -override => 1, + -default => 'performCreate'); + + print $q->endform; + + print $q->endform; + +# print $q->p ($q->hr, $q->font ({size => "-1"}, "www.dungog.net/sme")); + esmith::cgi::genFooter($q); + + print ''; + print ''; + print $q->end_html; + #esmith::cgi5::genFooter ($q); + return; +} + +#------------------------------------------------------------ +# +#------------------------------------------------------------ + +sub performCreateUser ($) +{ + my ($q) = @_; + + #------------------------------------------------------------ + # Validate parameters and untaint them + #------------------------------------------------------------ + + my $acctName = $q->param ('acctName'); + if ($acctName =~ /^([a-z][\-a-z0-9]*)$/) + { + $acctName = $1; + } + else + { + showInitial ($q, + "Error: unexpected characters in account name: " . + "\"$acctName\". The account name should contain only " . + "lower-case letters, numbers, and hyphens, and should " . + "start with a lower-case letter. For example \"betty\", " . + "\"hjohnson\", and \"mary-jane\" are all valid account " . + "names, but \"3friends\", \"John Smith\" and " . + "\"henry_miller\" are not.",""); + return; + } + my $maxAcctNameLength = defined $conf{'maxAcctNameLength'} ? + $conf{'maxAcctNameLength'} : 12; + if (length $acctName > $maxAcctNameLength) + { + showInitial ($q, + "Error: account name " . + "\"$acctName\" is too long. " . + "The maximum is $maxAcctNameLength characters.",""); + return; + } + + + my $firstName = $q->param ('firstName'); + if ($firstName =~ /^\s*([a-zA-Z0-9\'\.\-\s]+?)\s*$/) + { + $firstName = $1; + } + else + { + showInitial ($q, + "Error: unexpected or missing characters in first name: " . + "\"$firstName\". Did not create new account.",""); + return; + } + + my $lastName = $q->param ('lastName'); + if ($lastName =~ /^\s*([a-zA-Z0-9\'\.\-\s]+?)\s*$/) + { + $lastName = $1; + } + else + { + showInitial ($q, + "Error: unexpected or missing characters in last name: " . + "\"$lastName\". Did not create new account.",""); + return; + } + + my $department = $q->param ('department'); + if ($department =~ /^([^\|]*)$/) + { + $department = $1; + } + else + { + showInitial ($q, + "Error: unexpected characters in department: " . + "\"$department\". Did not create new account.",""); + return; + } + + my $company = $q->param ('company'); + if ($company =~ /^([^\|]*)$/) + { + $company = $1; + } + else + { + showInitial ($q, + "Error: unexpected characters in company: " . + "\"$company\". Did not create new account.",""); + return; + } + + my $street = $q->param ('street'); + if ($street =~ /^([^\|]*)$/) + { + $street = $1; + } + else + { + showInitial ($q, + "Error: unexpected characters in street address: " . + "\"$street\". Did not create new account.",""); + return; + } + + my $city = $q->param ('city'); + if ($city =~ /^([^\|]*)$/) + { + $city = $1; + } + else + { + showInitial ($q, + "Error: unexpected characters in city: " . + "\"$city\". Did not create new account.",""); + return; + } + + my $phone = $q->param ('phone'); + if ($phone =~ /^([^\|]*)$/) + { + $phone = $1; + } + else + { + showInitial ($q, + "Error: unexpected characters in phone number: " . + "\"$phone\". Did not create new account.",""); + return; + } + + my $emailForward = $q->param ('emailForward'); + if ($emailForward =~ /^(.*)$/) + { + $emailForward = $1; + } + else + { + $emailForward = ""; + } + + my $VPNClientAccess = $q->param ('VPNClientAccess'); + + my $forwardAddress = $q->param ('forwardAddress'); + if (($emailForward eq 'local') && ($forwardAddress =~ /^([^\|]*)$/)) + { + $forwardAddress = $1; + } + elsif (($emailForward eq 'forward') && ($forwardAddress =~ /^([^\|]+)$/)) + { + $forwardAddress = $1; + } + elsif (($emailForward eq 'both') && ($forwardAddress =~ /^([^\|]+)$/)) + { + $forwardAddress = $1; + } + else + { + showInitial ($q, + "Error: unexpected or missing characters in email forwarding address: " . + "\"$forwardAddress\". Did not create new account.",""); + return; + } + + my ($dot_pseudonym, $underbar_pseudonym) + = makePseudonyms($firstName, $lastName); + + #------------------------------------------------------------ + # Looks good. Find out if this account has been taken or there is + # a name clash with the pseudonyms + #------------------------------------------------------------ + + if (db_get(\%accounts, $acctName)) + { + my $type = db_get_type(\%accounts, $acctName); + + if ($type eq "pseudonym") + { + my $acct = db_get_prop(\%accounts, $acctName, "Account"); + my $acct_type = db_get_type(\%accounts, $acct); + + showInitial ($q, + "Error: account \"$acctName\" clashes with pseudonym" + . " details for $acct_type account \"$acct\"." + . "

$acctName is a pseudonym for $acct.

","" + ); + } + else + { + showInitial ($q, + "Error: account \"$acctName\" is an existing" + . " $type account.","" + ); + } + + return; + } + + if (db_get(\%accounts, $dot_pseudonym)) + { + my $type = db_get_type(\%accounts, $dot_pseudonym); + + if ($type eq "pseudonym") + { + my $acct = db_get_prop(\%accounts, $dot_pseudonym, "Account"); + my $acct_type = db_get_type(\%accounts, $acct); + + showInitial ($q, + "Error: first and last name details for account" + . " \"$acctName\" clash with pseudonym details for" + . " $acct_type account \"$acct\"." + . "

$dot_pseudonym is a pseudonym for $acct.

","" + ); + } + else + { + showInitial ($q, + "Error: first and last name details for account" + . " \"$acctName\" clash with an existing $type" + . " account $dot_pseudonym.","" + ); + } + + return; + } + + if (db_get(\%accounts, $underbar_pseudonym)) + { + my $type = db_get_type(\%accounts, $underbar_pseudonym); + + if ($type eq "pseudonym") + { + my $acct = db_get_prop(\%accounts, $underbar_pseudonym, "Account"); + my $acct_type = db_get_type(\%accounts, $acct); + + showInitial ($q, + "Error: first and last name details for account" + . " \"$acctName\" clash with pseudonym details for" + . " $acct_type account \"$acct\"." + . "

$underbar_pseudonym is a pseudonym for $acct.

","" + ); + } + else + { + showInitial ($q, + "Error: first and last name details for account" + . " \"$acctName\" clash with an existing $type" + . " account $underbar_pseudonym.","" + ); + } + + return; + } + + my $userID = getNextFreeID(); + + #------------------------------------------------------------ + # Account is available! Update accounts database. + #------------------------------------------------------------ + + db_set(\%accounts, $acctName, "user", + { + 'FirstName' => $firstName, + 'LastName' => $lastName, + 'Phone' => $phone, + 'Company' => $company, + 'Dept' => $department, + 'City' => $city, + 'Street' => $street, + 'EmailForward' => $emailForward, + 'ForwardAddress' => $forwardAddress, + 'VPNClientAccess' => $VPNClientAccess, + 'PasswordSet' => "no", + 'Uid' => $userID, + 'Gid' => $userID + } ); + + db_set(\%accounts, $dot_pseudonym, 'pseudonym', { Account => $acctName } ) + or die ("Error occurred while creating pseudonym in database.\n"); + + db_set(\%accounts, $underbar_pseudonym, 'pseudonym', + { Account => $acctName } ) + or die ("Error occurred while creating pseudonym in database.\n"); + + #------------------------------------------------------------ + # Signal the create-user event. + #------------------------------------------------------------ + + untie %accounts; + + system ("/sbin/e-smith/signal-event", "user-create", "$acctName") == 0 + or die ("Error occurred while creating user.\n"); + + tie %accounts, 'esmith::config', '/home/e-smith/db/accounts'; + + #------------------------------------------------------------ + # Add user to any relevant groups + #------------------------------------------------------------ + + my @groups = $q->param ('groupMemberships'); + + my $group; + foreach $group (@groups) + { + # untaint group so that we can use it in "system" call later + + if ($group =~ /^(.*)$/) + { + $group = $1; + } + else + { + $group = ""; + } + + db_set_prop(\%accounts, $group, "Members", + db_get_prop(\%accounts, $group, "Members") . ",$acctName"); + + untie %accounts; + + system ("/sbin/e-smith/signal-event", "group-modify", "$group") == 0 + or warn ("Error occurred while updating group.\n"); + + tie %accounts, 'esmith::config', '/home/e-smith/db/accounts'; + + } + + showInitial ($q, "Successfully created user account $acctName.",""); +} + +#------------------------------------------------------------ +# +#------------------------------------------------------------ + +sub modifyUser ($) +{ + my ($q) = @_; + + esmith::cgi5::genHeaderNonCacheable ($q, \%conf, 'Modify user account'); + + print + $q->startform (-method => 'POST', -action => $q->url (-absolute => 1)); + + my $acct = $q->param ('acct'); + my $fGroup = $q->param ('fGroup'); + db_set(\%conf, 'fGroup', $fGroup); + my $acctN = $ENV{'REMOTE_USER'}; + + print $q->table ({border => 0, cellspacing => 0, cellpadding => 4}, + + $q->Tr (esmith::cgi5::genCell ($q, "Account name:"), + esmith::cgi5::genCell ($q, $acct)), + + esmith::cgi5::genNameValueRow ($q, + "First name", + "firstName", + db_get_prop(\%accounts, $acct, "FirstName") + ), + + esmith::cgi5::genNameValueRow ($q, + "Last name", + "lastName", + db_get_prop(\%accounts, $acct, "LastName") + ), + + esmith::cgi5::genNameValueRow ($q, + "Department", + "department", + db_get_prop(\%accounts, $acct, "Dept") + ), + + esmith::cgi5::genNameValueRow ($q, + "Company", + "company", + db_get_prop(\%accounts, $acct, "Company") + ), + + esmith::cgi5::genNameValueRow ($q, + "Street address", + "street", + db_get_prop(\%accounts, $acct, "Street") + ), + + esmith::cgi5::genNameValueRow ($q, + "City", + "city", + db_get_prop(\%accounts, $acct, "City") + ), + + esmith::cgi5::genNameValueRow ($q, + "Phone number", + "phone", + db_get_prop(\%accounts, $acct, "Phone") + ), + + $q->Tr ( + esmith::cgi5::genCell ($q, "E-mail delivery:"), + genEmailForward ( + $q, + db_get_prop(\%accounts, + $acct, "EmailForward") + ) + ), + + esmith::cgi5::genNameValueRow ($q, + "Forwarding address", + "forwardAddress", + db_get_prop(\%accounts, $acct, "ForwardAddress") + ), + + $q->Tr (esmith::cgi5::genWidgetRow ($q, "VPN Client Access", + $q->popup_menu (-name => 'VPNClientAccess', + -values => ['no','yes'] , + -default => db_get_prop (\%accounts, $acct, "VPNClientAccess")))), + + #esmith::cgi5::genTextRow ($q, + # $q->p ("This user is in the $fGroup Group.")), + + esmith::cgi5::genButtonRow ($q, + $q->submit (-name => 'action', + -value => 'Modify'))); + + #print $q->hidden (-name => 'groupMemberships', -override => 1, -default => 'nochange'); + print $q->hidden (-name => 'fGroup', -override => 1, -default => $fGroup); + + print $q->hidden (-name => 'acctName', + -override => 1, + -default => $acct); + + print $q->hidden (-name => 'state', + -override => 1, + -default => 'performModify'); + + print $q->endform; + +# print $q->p ($q->hr, $q->font ({size => "-1"}, "www.dungog.net/sme")); + esmith::cgi::genFooter($q); + + + print ''; + print ''; + print $q->end_html; + #esmith::cgi5::genFooter ($q); + return; +} + +#------------------------------------------------------------ +# +#------------------------------------------------------------ + +sub performModifyUser ($) +{ + my ($q) = @_; + + #------------------------------------------------------------ + # Validate parameters and untaint them + #------------------------------------------------------------ + + my $acctName = $q->param ('acctName'); + if ($acctName =~ /^([a-z][\-\_\.a-z0-9]*)$/) + { + $acctName = $1; + } + else + { + showInitial ($q, + "Error: unexpected characters in account name:" + . " \"$acctName\". The account name should contain only" + . " lower-case letters, numbers, hyphens, periods, and" + . " underscores, and should start with a lower-case" + . " letter. For example \"betty\", \"hjohnson\", and" + . " \"john.smith\" are all valid account names, but" + . " \"3friends\", \"John Smith\" and \"Henry-Miller\"" + . " are not.","" + ); + + return; + } + + #------------------------------------------------------------ + # Looks good. Make sure this is a valid account + #------------------------------------------------------------ + + unless (exists $accounts {$acctName}) + { + showInitial ($q, + "Error: account \"$acctName\" is not an existing account.",""); + return; + } + + my $firstName = $q->param ('firstName'); + if ($firstName =~ /^\s*([a-zA-Z0-9\'\.\-\s]+?)\s*$/) + { + $firstName = $1; + } + else + { + showInitial ($q, + "Error: unexpected or missing characters in first name: " . + "\"$firstName\". Did not modify account.",""); + return; + } + + my $lastName = $q->param ('lastName'); + if ($lastName =~ /^\s*([a-zA-Z0-9\'\.\-\s]+?)\s*$/) + { + $lastName = $1; + } + else + { + showInitial ($q, + "Error: unexpected or missing characters in last name: " . + "\"$lastName\". Did not modify account.",""); + return; + } + + my $department = $q->param ('department'); + if ($department =~ /^([^\|]*)$/) + { + $department = $1; + } + else + { + showInitial ($q, + "Error: unexpected characters in department: " . + "\"$department\". Did not modify account.",""); + return; + } + + my $company = $q->param ('company'); + if ($company =~ /^([^\|]*)$/) + { + $company = $1; + } + else + { + showInitial ($q, + "Error: unexpected characters in company: " . + "\"$company\". Did not modify account.",""); + return; + } + + my $street = $q->param ('street'); + if ($street =~ /^([^\|]*)$/) + { + $street = $1; + } + else + { + showInitial ($q, + "Error: unexpected characters in street address: " . + "\"$street\". Did not modify account.",""); + return; + } + + my $city = $q->param ('city'); + if ($city =~ /^([^\|]*)$/) + { + $city = $1; + } + else + { + showInitial ($q, + "Error: unexpected characters in city: " . + "\"$city\". Did not modify account.",""); + return; + } + + my $phone = $q->param ('phone'); + if ($phone =~ /^([^\|]*)$/) + { + $phone = $1; + } + else + { + showInitial ($q, + "Error: unexpected characters in phone number: " . + "\"$phone\". Did not modify account.",""); + return; + } + + my $emailForward = $q->param ('emailForward'); + if ($emailForward =~ /^(.*)$/) + { + $emailForward = $1; + } + else + { + $emailForward = ""; + } + + my $VPNClientAccess = $q->param ('VPNClientAccess'); + + my $forwardAddress = $q->param ('forwardAddress'); + if (($emailForward eq 'local') && ($forwardAddress =~ /^([^\|]*)$/)) + { + $forwardAddress = $1; + } + elsif (($emailForward eq 'forward') && ($forwardAddress =~ /^([^\|]+)$/)) + { + $forwardAddress = $1; + } + elsif (($emailForward eq 'both') && ($forwardAddress =~ /^([^\|]+)$/)) + { + $forwardAddress = $1; + } + else + { + showInitial ($q, + "Error: unexpected or missing characters in email forwarding address: " . + "\"$forwardAddress\". Did not create new account.",""); + return; + } + + my ($dot_pseudonym, $underbar_pseudonym) + = makePseudonyms($firstName, $lastName); + + unless (db_get_type(\%accounts, $acctName) eq "user") + { + showInitial ( + $q, + "Error: account \"$acctName\" is not an existing user account.","" + ); + + return; + } + + #------------------------------------------------------------ + # Looks good. Find out if there is a name clash with the pseudonyms. + #------------------------------------------------------------ + + if (db_get(\%accounts, $dot_pseudonym)) + { + my $type = db_get_type(\%accounts, $dot_pseudonym); + + if ($type eq "pseudonym") + { + my $acct = db_get_prop(\%accounts, $dot_pseudonym, "Account"); + my $acct_type = db_get_type(\%accounts, $acct); + + unless ($acct eq $acctName) + { + showInitial ($q, + "Error: first and last name details for account" + . " \"$acctName\" clash with pseudonym details for" + . " $acct_type account \"$acct\"." + . "

$dot_pseudonym is a pseudonym for $acct.

","" + ); + + return; + } + } + else + { + showInitial ($q, + "Error: first and last name details for account" + . " \"$acctName\" clash with an existing $type" + . " account $dot_pseudonym.","" + ); + + return; + } + } + + if (db_get(\%accounts, $underbar_pseudonym)) + { + my $type = db_get_type(\%accounts, $underbar_pseudonym); + + if ($type eq "pseudonym") + { + my $acct = db_get_prop(\%accounts, $underbar_pseudonym, "Account"); + my $acct_type = db_get_type(\%accounts, $acct); + + unless ($acct eq $acctName) + { + showInitial ($q, + "Error: first and last name details for account" + . " \"$acctName\" clash with pseudonym details for" + . " $acct_type account \"$acct\"." + . "

$underbar_pseudonym is a" + . " pseudonym for $acct.

","" + ); + + return; + } + } + else + { + showInitial ($q, + "Error: first and last name details for account" + . " \"$acctName\" clash with an existing $type" + . " account $underbar_pseudonym.","" + ); + + return; + } + } + + #------------------------------------------------------------ + # Update accounts database and signal the user-modify event. + #------------------------------------------------------------ + + # First we need to remember the old first.last and first_last pseudonyms + # for this user. + + my ($old_dot_pseudonym, $old_underbar_pseudonym) = + makePseudonyms( + db_get_prop(\%accounts, $acctName, 'FirstName'), + db_get_prop(\%accounts, $acctName, 'LastName'), + ); + + #------------------------------------------------------------ + # Now we can update the user and the pseudonyms + #------------------------------------------------------------ + + my ($acctType, %oldProperties) = db_get(\%accounts, $acctName); + + my %newProperties = + ( + 'FirstName' => $firstName, + 'LastName' => $lastName, + 'Phone' => $phone, + 'Company' => $company, + 'Dept' => $department, + 'City' => $city, + 'Street' => $street, + 'EmailForward' => $emailForward, + 'ForwardAddress' => $forwardAddress, + 'VPNClientAccess' => $VPNClientAccess, + ); + + db_set(\%accounts, $acctName, "user", { %oldProperties, %newProperties } ); + + unless ( $old_dot_pseudonym eq $dot_pseudonym ) + { + db_delete(\%accounts, $old_dot_pseudonym); + + db_set(\%accounts, $dot_pseudonym, 'pseudonym', + { Account => $acctName } ) + or die ("Error occurred while creating pseudonym in database.\n"); + } + + unless ( $old_underbar_pseudonym eq $underbar_pseudonym ) + { + db_delete(\%accounts, $old_underbar_pseudonym); + + db_set(\%accounts, $underbar_pseudonym, 'pseudonym', + { Account => $acctName } ) + or die ("Error occurred while creating pseudonym in database.\n"); + } + + untie %accounts; + + system ("/sbin/e-smith/signal-event", "user-modify", "$acctName") == 0 + or die ("Error occurred while modifying user.\n"); + + + esmith::cgi5::genHeaderNonCacheable ($q, \%conf, "Operation status report."); + esmith::cgi5::genResult ($q, "Successfully modified user account $acctName. refresh"); +} + +#------------------------------------------------------------ +# +#------------------------------------------------------------ + +sub deleteUser ($) +{ + my ($q) = @_; + my $fGroup = $q->param ('fGroup'); + db_set(\%conf, 'fGroup', $fGroup); + + esmith::cgi5::genHeaderNonCacheable ($q, \%conf, 'Remove user account'); + + print $q->startform + (-method => 'POST', -action => $q->url (-absolute => 1)); + + my $acct = $q->param ('acct'); + my $value = $accounts {$acct}; + + if ($value) + { + my ($type, %properties) = split (/\|/, $value, -1); + my $name = $properties {'FirstName'} . ' ' . $properties {'LastName'}; + + print $q->p ('You are about to remove the user account "' + . $acct + . '" (user name "' . $name . '").'); + + print $q->p ('All files belonging to this user account will be', + 'deleted. Also, any e-mail for this user account still', + 'remaining on the server (i.e. that has not yet been', + 'retrieved by the user) will be discarded.'); + + print $q->p ($q->b ('Are you sure you wish to remove this account?')); + + print $q->submit (-name => 'action', -value => 'Remove'); + print $q->hidden (-name => 'acct', -override => 1, -default => $acct); + + print $q->hidden (-name => 'state', + -override => 1, + -default => 'performDelete'); + } + + print $q->endform; + esmith::cgi::genFooter($q); + return; +} + +#------------------------------------------------------------ +# +#------------------------------------------------------------ + +sub performDeleteUser ($) +{ + my ($q) = @_; + + #------------------------------------------------------------ + # Attempt to delete user + #------------------------------------------------------------ + + my $acct = $q->param ('acct'); + + if ($acct =~ /^([a-z][\-\_\.a-z0-9]*)$/) + { + $acct = $1; + } + else + { + showInitial ($q, + 'Error: internal failure while removing account "' . + $acct . '".',""); + return; + } + + unless (db_get_type(\%accounts, $acct) eq "user") + { + showInitial ( + $q, + "Error: account \"$acct\" is not an existing user account." ,"" + ); + + return; + } + + db_set_type(\%accounts, $acct, "user-deleted"); + + #------------------------------------------------------------ + # First, find all "group" entries in the e-smith accounts database + # that contain this user. + #------------------------------------------------------------ + + my $key; + my $value; + my @groups = (); + while (($key,$value) = each %accounts) + { + my ($type, %properties) = split (/\|/, $value, -1); + if ($type eq 'group') + { + #-------------------------------------------------- + # Get a list of members and count the number of + # occurrences of this username. If greater than zero, + # add this group to the list. + #-------------------------------------------------- + + my $count = grep (/^$acct$/, split (/,/, $properties {'Members'})); + if ($count > 0) + { + push (@groups, $key); + } + } + } + + #------------------------------------------------------------ + # Next, for each group remove this user from the members list. + # Then signal the group-modify event so that the group is brought + # up to date. Make sure each group has at least one member; if + # the list is empty, add in user "admin". + #------------------------------------------------------------ + + my $group; + foreach $group (@groups) + { + my $value = $accounts {$group}; + my ($type, %properties) = split (/\|/, $value, -1); + + my @members = split (/,/, $properties {'Members'}); + @members = grep (!/^$acct$/, @members); + + my $count = @members; + if ($count == 0) + { + @members = ('admin'); + } + + $properties{'Members'} = join(',', @members); + $accounts {$group} = "group|" . join ('|', %properties); + + system ("/sbin/e-smith/signal-event", "group-modify", "$group") == 0 + or warn ("Error occurred while updating group.\n"); + } + + #------------------------------------------------------------ + # Remove any pseudonyms associated with this user + #------------------------------------------------------------ + + foreach (db_get(\%accounts)) + { + if (db_get_type(\%accounts, $_) eq "pseudonym") + { + if (db_get_prop(\%accounts, $_, "Account") eq $acct) + { + db_delete(\%accounts, $_); + } + } + } + + #------------------------------------------------------------ + # Finally signal user-delete event + #------------------------------------------------------------ + + untie %accounts; + + system ("/sbin/e-smith/signal-event", "user-delete", "$acct");# == 0 + #gives error, dunno why ? + #or die ("Error occurred while deleting user.\n"); + + tie %accounts, 'esmith::config', '/home/e-smith/db/accounts'; + + delete $accounts {$acct}; + + showInitial ($q, "Successfully deleted user account $acct.",""); +} + +#------------------------------------------------------------ +# +#------------------------------------------------------------ + +sub passwdUser ($) +{ + my ($q) = @_; + + my $fGroup = $q->param ('fGroup'); + db_set(\%conf, 'fGroup', $fGroup); + + esmith::cgi5::genHeaderNonCacheable ($q, \%conf, 'Reset password for user account'); + + print $q->startform + (-method => 'POST', -action => $q->url (-absolute => 1)); + + my $acct = $q->param ('acct'); + my $value = $accounts {$acct}; + + if ($value) + { + my ($type, %properties) = split (/\|/, $value, -1); + my $name = $properties {'FirstName'} . ' ' . $properties {'LastName'}; + + print $q->table ({border => 0, cellspacing => 0, cellpadding => 4}, + + esmith::cgi5::genTextRow ($q, + $q->p ('You are about to change the password for the user', + "account \"$acct\" (user name \"$name\").")), + + esmith::cgi5::genNamePasswdRow ($q, + "New password", + "newPass", + ""), + + esmith::cgi5::genNamePasswdRow ($q, + "New password (verify)", + "newPassVerify", + ""), + + esmith::cgi5::genButtonRow ($q, + $q->submit (-name => 'action', + -value => 'Change'))); + + print $q->hidden (-name => 'acct', + -override => 1, + -default => $acct); + + print $q->hidden (-name => 'state', + -override => 1, + -default => 'performPasswd'); + } + + print $q->endform; + esmith::cgi::genFooter($q); + return; +} + + +#------------------------------------------------------------ +# Attempt to change user password +#------------------------------------------------------------ + +sub performPasswdUser ($) +{ + my ($q) = @_; + my $acct = $q->param ('acct') || "1" ; + my $newPass = $q->param ('newPass') || "3"; + my $newPassVerify = $q->param ('newPassVerify') || "4"; + + if ($acct =~ /^([a-z][\-\_\.a-z0-9]*)$/) + { + $acct = $1; + } + else + { + showInitial ($q, 'Error: invalid account "' . $acct . '".',""); + return; + } + + #verify data entry + if ($newPass =~ /^([ -~]+)$/) + { + $newPass = $1; + } + else + { + showInitial ($q, 'Error: new password must contain only printable characters.',""); + return; + } + + if ($newPassVerify =~ /^([ -~]+)$/) + { + $newPassVerify = $1; + } + else + { + showInitial ($q, 'Error: duplicate password must contain only printable characters.',""); + return; + } + + if ($newPass ne $newPassVerify) + { + showInitial ($q, "Error: passwords are not identical.",""); + return; + } + + my $usermode = db_get_prop(\%conf,"passwordstrength", "Users") ||''; + + my $test = &validate_password($usermode,$newPass); + if ($test ne 'OK') + { + showInitial ($q, "Error: Sorry the password is not good because $test.",""); + return; + } + + esmith::util::setUserPassword ($acct, $newPass); + + #------------------------------------------------------------ + # update the user's PasswordSet field in the accounts database + #------------------------------------------------------------ + + my $value = $accounts {$acct}; + + my ($type, %properties) = split (/\|/, $value, -1); + $properties {'PasswordSet'} = 'yes'; + + $accounts {$acct} = "user|" . join('|', %properties); + + system("/sbin/e-smith/signal-event", "password-modify", "${acct}") == 0 + or die ("Error occurred while modifying password for ${acct}.\n"); + + + showInitial ($q, "Successfully changed password for user account $acct.",""); +} + +#------------------------------------------------------------ +# lock user +#------------------------------------------------------------ + +sub lockUser ($) +{ + my ($q) = @_; + + my $acct = $q->param ('acct'); + + my $fGroup = $q->param ('fGroup'); + db_set(\%conf, 'fGroup', $fGroup); + + if ($acct =~ /^([a-z][\-\_\.a-z0-9]*)$/) + { + $acct = $1; + } + else + { + showInitial ($q, + 'Error: internal failure while locking account "' . + $acct . '".',""); + return; + } + + my ($type, %properties) = db_get(\%accounts, $acct); + + unless (defined $type) + { + showInitial ($q, + "There is no user account called \"$acct\".",""); + return; + } + + unless ($type eq "user") + { + showInitial ($q, + "Account \"$acct\" is of type \"$type\", not \"user\".",""); + return; + } + + esmith::cgi5::genHeaderNonCacheable ($q, \%conf, 'Lock user account verify'); + + print $q->startform + (-method => 'POST', -action => $q->url (-absolute => 1)); + + my $name = $properties {'FirstName'} . ' ' . $properties {'LastName'}; + + print $q->p ('You are about to remove the user account "' + . $acct + . '" (user name "' . $name . '").'); + + print $q->p ('This user account will be locked. This means that this', + 'user will not be able to log in, and will not be able', + 'to collect e-mail. Any e-mail arriving will still be', + 'stored and/or forwarded to an external e-mail', + 'address, as configured. The account may be activated', + 'in the future by setting a new password. The current', + 'password will not be retained.'); + + print $q->p ($q->b ('Are you sure you wish to lock this account?')); + + print $q->submit (-name => 'action', -value => 'Lock'); + print $q->hidden (-name => 'acct', -override => 1, -default => $acct); + + print $q->hidden (-name => 'state', + -override => 1, + -default => 'performLock'); + + print $q->endform; + esmith::cgi::genFooter($q); + return; +} + +#------------------------------------------------------------ +# +#------------------------------------------------------------ + +sub performlockUser($) +{ + my ($q) = @_; + + #------------------------------------------------------------ + # Attempt to lock user account + #------------------------------------------------------------ + + my $acct = $q->param ('acct'); + + if ($acct =~ /^([a-z][\-\_\.a-z0-9]*)$/) + { + $acct = $1; + } + else + { + showInitial ($q, + 'Error: internal failure while locking account "' . + $acct . '".',""); + return; + } + + my $type = db_get_type(\%accounts, $acct); + + unless (defined $type) + { + showInitial ($q, + "There is no user account called \"$acct\".",""); + return; + } + unless ($type eq "user") + { + showInitial ($q, + "Account \"$acct\" is of type \"$type\", not \"user\".",""); + return; + } + + untie %accounts; + + system("/sbin/e-smith/signal-event", "user-lock", "${acct}") == 0 + or die ("Error occurred while locking account ${acct}.\n"); + + tie %accounts, 'esmith::config', '/home/e-smith/db/accounts'; + + showInitial ($q, "Successfully locked account $acct.",""); +} + +sub makePseudonyms ($$) +{ + #------------------------------------------------------------ + # Generate First.Last and First_Last pseudonyms + #------------------------------------------------------------ + + my ($firstName, $lastName) = @_; + + my $dot_pseudonym = "$firstName $lastName"; + + $dot_pseudonym =~ s/^\s+//; # Strip leading whitespace + $dot_pseudonym =~ s/\s+$//; # Strip trailing whitespace + $dot_pseudonym =~ s/\s+/ /g; # Multiple spaces become single spaces + $dot_pseudonym =~ s/\s/./g; # Change all spaces to dots + $dot_pseudonym = lc $dot_pseudonym; # Change to lower case + + my $underbar_pseudonym = $dot_pseudonym; + $underbar_pseudonym =~ s/\./_/g; # Change dots to underbars + + return ($dot_pseudonym, $underbar_pseudonym); +} + +sub getNextFreeID +{ + my %id; + + my $minid = $conf{'MinUid'}; + $minid = 5000 unless $minid; + + my $maxid = 1 << 31; + + # Take note of all the used uids and gids from the passwd entries + + while ((undef, undef, my $uid, my $gid) = getpwent) + { + ++$id{$uid} if ($uid > $minid); + ++$id{$gid} if ($gid > $minid); + } + + # Take note of all the used gids from the group entries + + while ((undef, undef, my $gid) = getgrent) + { + ++$id{$gid} if ($gid > $minid); + } + + # Find the first free id + + my $count = $minid + 1; + + while ($count < $maxid) + { + return $count + unless (exists $id{$count}); + + ++$count; + } +} + +sub performSelect ($) +{ + my ($q) = @_; + my $swap = $q->param ('swap'); + + showInitial ($q, "Group switched to $swap" ,"$swap"); +} + +#------------------------------------------------------------ +# Function to validate password with cracklib added by Lorenzo +#------------------------------------------------------------ + +sub validate_password +{ + my ($strength,$pass) = @_; + my $reason = "Software error: password check failed"; + + if ($strength eq 'strong') + { + $reason = fascist_check($pass, '/usr/lib/cracklib_dict') if ( -e '/usr/lib/cracklib_dict.pwd'); + $reason = fascist_check($pass, '/usr/lib64/cracklib_dict') if ( -e '/usr/lib64/cracklib_dict.pwd'); + } + + elsif (($strength eq "none") || ($strength eq "normal")) + { + $reason = 'OK'; + } + + if ($reason eq 'ok' || $reason eq 'OK') + { + return('OK'); + } + else + { + return $reason; + } +} + +sub showHelp ($) +{ + my ($q) = @_; + + esmith::cgi5::genHeaderNonCacheable + + ($q, \%conf, 'User Account Help'); + + print $q->startform (-method => 'POST', + -action => $q->url (-absolute => 1)); + + print $q->table ({border => 0, cellspacing => 0, cellpadding => 4}, + + esmith::cgi5::genTextRow ($q, $q->p ('
+* Groups
+* Limits
+
+

Groups

+Create users in a selected groups + +Users will be created in the active group. +The active groups can be toggled from the available groups that are listed. +If you are only in one group this option is not displayed. + +

Limits

+Limits to the number of users that can be created + +Admin may place limits on the numbers of users that may be created + + /sbin/e-smith/db accounts setprop groupLimit support 15 + setting the group support to a limit of 15 users + + /sbin/e-smith/db accounts get groupLimit + displays current values > setting|support|15|spare|5 + +
'))); + + print $q->endform; +# print $q->p ($q->hr, $q->font ({size => "-1"}, "www.dungog.net/sme ", + esmith::cgi::genFooter($q); + return; +} + diff --git a/root/etc/e-smith/web/functions/userpanel-userbackup b/root/etc/e-smith/web/functions/userpanel-userbackup new file mode 100644 index 0000000..5a804e4 --- /dev/null +++ b/root/etc/e-smith/web/functions/userpanel-userbackup @@ -0,0 +1,552 @@ +#!/usr/bin/perl -wT +#---------------------------------------------------------------------- +# heading : Your Settings +# description : Data Backup +# longdesc : backup user data +# navigation : 100 200 +# +# Copyright (c) 2001 Mitel Networks Corporation +# 2002-5 Stephen Noble +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +#---------------------------------------------------------------------- + +package esmith; + +use strict; +use CGI ':all'; +use CGI::Carp qw(fatalsToBrowser); + +use esmith::cgi; +use esmith::config; +use esmith::util; +use esmith::db; +use esmith::lockfile; + +sub showInitial ($$); +sub performAndShowResult ($); +sub desktopBackup (); +sub desktopRestore (); +sub desktopVerify (); +sub performDesktopRestore ($); +sub performDesktopVerify ($); +sub performDiskUsage ($); + +BEGIN +{ + # Clear PATH and related environment variables so that calls to + # external programs do not cause results to be tainted. See + # "perlsec" manual page for details. + + $ENV {'PATH'} = ''; + $ENV {'SHELL'} = '/bin/bash'; + delete $ENV {'ENV'}; +} + +esmith::util::setRealToEffective (); + + my %conf; + tie %conf, 'esmith::config'; + + my %accounts; + tie %accounts, 'esmith::config', '/home/e-smith/db/accounts'; + + my $acctName = $ENV{'REMOTE_USER'}; + + if ($acctName =~ /^([a-z][\-\_\.a-z0-9]*)$/) + { + $acctName = $1; + } + + my @directories = ("/home/e-smith/files/users/$acctName/"); + + +# Unbuffer standard output so that files and directories are listed as +# they are restored +$| = 1; + +# Store away current gid of 'www' group. +my $www_gid = getgrnam("www"); + +#------------------------------------------------------------ +# examine state parameter and display the appropriate form +#------------------------------------------------------------ + +my $q = new CGI; + +if (! grep (/^state$/, $q->param)) +{ + showInitial ($q, ''); +} +elsif ($q->param ('state') eq "perform") +{ + performAndShowResult ($q); +} +elsif ($q->param ('state') eq "desktop-restore") +{ + performDesktopRestore($q); +} +elsif ($q->param ('state') eq "desktop-verify") +{ + performDesktopVerify($q); +} +elsif ($q->param ('state') eq "diskUsage") +{ + performDiskUsage ($q); +} +else +{ + esmith::cgi::genStateError ($q, \%conf); +} + +exit (0); + +#------------------------------------------------------------ +# subroutine to display initial form +#------------------------------------------------------------ + +sub showInitial ($$) +{ + my ($q, $msg) = @_; + + if ($msg eq '') + { + esmith::cgi::genHeaderNonCacheable ($q, \%conf, + 'Backup or restore user data'); + } + else + { + esmith::cgi::genHeaderNonCacheable + ($q, \%conf, 'Operation status report'); + + print $q->p ($msg); + print $q->hr; + } + + + print $q->p ( + "This page allows you to create a copy of your " + . "own user data files, from your home directory " + . "and downloads it to your local desktop via your web " + . "browser. The Verify desktop backup file option can be used to\n" + . "view a list of files in a desktop backup file.\n"); + + print $q->p ($q->a ({href => $q->url (-absolute => 1) . "?state=diskUsage"}, + 'Click here'), + 'to check/refresh the disk usage for this user shown below, it may take + a minute the first time but should be faster afterwards.'); + + #show usage + if ( -e "/tmp/du-$acctName" ) + { + my $du = '0'; + + open (INF,"/tmp/du-$acctName") + or die ("can't open du to read: $1. "); + + while () + { + ($du, undef) = split(/\t/, $_); + } + close INF; + + print $q->p ("When last checked with the link above your configuration " + . "and data files totaled $du. Your backup will be compressed to approx. " + . "half that size.\n"); + } + + my %labels = ( + "desktop-backup" => "Backup to desktop", + "desktop-restore" => "Restore from desktop", + "desktop-verify" => "Verify desktop backup file", + ); + + my @labels = ( + 'desktop-backup', + 'desktop-restore', + 'desktop-verify', + ); + + my $default_action = 'desktop-backup'; + + print $q->startform (-method => 'POST', + -action => $q->url (-absolute => 1)); + + print $q->table ({border => 0, cellspacing => 0, cellpadding => 4}); + + print $q->Tr (esmith::cgi::genWidgetRow($q,"Select an action", + $q->popup_menu (-name => 'function', + -values => [ @labels ], + -default => $default_action, + -labels => \%labels))); + + print "\n"; + + print '

'; + + print $q->Tr ( + esmith::cgi::genButtonRow( + $q, + $q->submit (-name => 'action', -value => 'Perform') + ) + ); + + print $q->hidden ( + -name => 'state', + -override => 1, + -default => 'perform' + ); + + print $q->endform; + + # print $q->p ($q->hr, $q->font ({size => "-1"}, "www.dungog.net/sme")); + esmith::cgi::genFooter($q); + + + print ''; + print ''; + print $q->end_html; +} + +sub performAndShowResult ($) +{ + my ($q) = @_; + + my $function = $q->param ('function'); + + if ($function eq 'refresh') + { + showInitial ($q, ''); + } + elsif ($function eq 'desktop-backup') + { + desktopBackup(); + } + elsif ($function eq 'desktop-restore') + { + desktopRestore(); + } + elsif ($function eq 'desktop-verify') + { + desktopVerify(); + } + else + { + # Unknown function - refresh the screen anyway + showInitial ($q, 'unknown'); + } + + return; + + esmith::cgi::genHeaderNonCacheable ($q, \%conf, + 'X Backup or restore server data'); + print $q->p ( $function ); + esmith::cgi::genFooter ($q); +} + +sub desktopBackup () +{ + + my $directories = $q->param ('directories'); + + # Generate a header that will trigger a download and send data as + # an octet stream. + + print "Expires: 0\n"; + print "Content-type: application/octet-stream\n"; + print "Content-disposition: inline; filename=$acctName.tgz\n"; + print "\n"; + + open(RD, + "/bin/tar --directory / --create @directories --file=-" + . " | /usr/bin/gzip |"); + + while () + { + print; + } + + close RD; +} + +sub desktopRestore () +{ + esmith::cgi::genHeaderNonCacheable ($q, \%conf, + 'Restore server configuration'); + + print $q->p ( + "This process will upload a SME Server " + . " backup file from your " + . "local desktop to your server and " + . "restore the configuration and user data files.\n"); + + print $q->p ( + "Be very sure you are uploading the correct file, " + . "files with the same name will be overwritten.\n"); + + print $q->start_multipart_form( + -method => 'POST', + -action => $q->url (-absolute => 1)); + + print $q->table ( + {border => 0, cellspacing => 0, cellpadding => 4}, + + esmith::cgi::genWidgetRow( + $q, + "Backup file to restore from", + $q->filefield( + -name => 'backupFile', + -default => "$acctName.tgz", + -size => 32)), + + esmith::cgi::genButtonRow( + $q, + $q->submit( + -name => 'action', + -value => 'Restore'))); + + print $q->hidden( + -name => 'state', + -override => 1, + -default => 'desktop-restore'); + + print $q->endform; + + esmith::cgi::genFooter ($q); +} + +sub desktopVerify () +{ + esmith::cgi::genHeaderNonCacheable ($q, \%conf, + 'Verify desktop backup file'); + + print $q->p ( + "This option will display the names of all files\n" + . "in a previously created desktop backup file. You\n" + . "can use this option to verify the contents of the\n" + . "backup file.\n" + ); + + print $q->start_multipart_form( + -method => 'POST', + -action => $q->url (-absolute => 1) + ); + + print $q->table ( + {border => 0, cellspacing => 0, cellpadding => 4}, + + esmith::cgi::genWidgetRow( + $q, + "Select backup file", + $q->filefield( + -name => 'backupFile', + -default => "$acctName.tgz", + -size => 32 + ) + ), + + esmith::cgi::genButtonRow( + $q, + $q->submit( + -name => 'action', + -value => 'Verify' + ) + ) + ); + + print $q->hidden( + -name => 'state', + -override => 1, + -default => 'desktop-verify' + ); + + print $q->endform; + + esmith::cgi::genFooter ($q); +} + +sub performDesktopRestore ($) +{ + my ($q) = @_; + + # Need to validate this here: $q->param ('backupFile'); + my $lock_file = "/var/lock/subsys/e-smith-restore"; + my $file_handle = &esmith::lockfile::LockFileOrReturn($lock_file); + + unless ($file_handle) + { + esmith::cgi::genHeaderNonCacheable( + $q, + \%conf, + "Unable to proceed with restore of server configuration" + ); + + print $q->p ( + $q->b ( + "Another restore is in progress.", + "Please try again later." + ) + ); + + esmith::cgi::genFooter ($q); + return; + } + + # no need to reboot after restoring users data + #db_set_prop(\%restore, 'restore', 'state', 'running'); + #db_set_prop(\%restore, 'restore', 'start', time); + #db_set_prop(\%conf, 'bootstrap-console', 'Run', 'yes'); + + if (open(RD, "-|")) + { + + #---------------------------------------- + # restore system from uploaded backup file + #---------------------------------------- + + esmith::cgi::genHeaderNonCacheable ($q, \%conf, "Restore in progress"); + + print $q->p ("The following files and directories have been restored:"); + + print "

    "; + my $complete = 0; + while () + { + print "
  • $_
  • \n"; + } + + print "
"; + my $message; + if (!close RD) + { + $message = "Restore failed! " . + "There was an error in reading the backup file"; + } + else + { + $message = "Restore complete"; + } + + #db_set_prop(\%restore, 'restore', 'state', 'complete'); + #db_set_prop(\%restore, 'restore', 'finish', time); + + &esmith::lockfile::UnlockFile($file_handle); + + print $q->p ($q->b ($message)); + + esmith::cgi::genFooter ($q); + } + else + { + select(STDOUT); + $| = 1; + + my $backupFile = $q->param ('backupFile'); + + my $decodeCommand = ( $backupFile =~ /\.bak$/ ) ? + "|/usr/bin/uudecode -o /dev/stdout" : + "|/usr/bin/gzip -d"; + + open(WR, + $decodeCommand + . " | /bin/tar --directory / --extract --verbose --file=-" + ) || die ("Could not execute backup pipeline: $!\n"); + + while (<$backupFile>) + { + print WR; + } + + close WR || die("Could not decode backup file: $!\n"); + exit(0); + } + return; +} + +sub performDesktopVerify ($) +{ + my ($q) = @_; + + if (open(RD, "-|")) + { + esmith::cgi::genHeaderNonCacheable ($q, + \%conf, "Verify desktop backup file"); + + print $q->p + ("The following files are contained in the backup file:"); + + print "
    "; + + my $complete = 0; + while () + { + #$complete++ if /etc\/smbpasswd/; + print "
  • $_
  • \n"; + } + + print "
"; + my $status = close RD ? + ($complete ? + "Verify complete" : + "End of list") + : "There was an error in reading the backup file"; + print $q->p ($q->b ($status)); + + esmith::cgi::genFooter ($q); + + } + else + { + select(STDOUT); + $| = 1; + + my $backupFile = $q->param ('backupFile'); + + my $decodeCommand = ( $backupFile =~ /\.bak$/ ) ? + "|/usr/bin/uudecode -o /dev/stdout" : + "|/usr/bin/gzip -d"; + + open(WR, + $decodeCommand + . " | /bin/tar --directory / --list --file=-" + ) || die ("Could not decode backup file: $!\n"); + + while (<$backupFile>) + { + print WR; + } + + close WR; + exit 0; + } + + return; +} + +sub performDiskUsage ($) +{ + my ($q) = @_; + my $acctName = $ENV{'REMOTE_USER'}; + + if ($acctName =~ /^([a-z][\-a-z0-9]*)$/) + { + $acctName = $1; + } + + system ("/sbin/e-smith/signal-event", "calc-du", "$acctName") == 0 + or die ("Error occurred while calculating disk usage.\n"); + + showInitial ($q, ""); +} diff --git a/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/userpanelForwarding.pm b/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/userpanelForwarding.pm new file mode 100644 index 0000000..1007c35 --- /dev/null +++ b/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/userpanelForwarding.pm @@ -0,0 +1,74 @@ +#---------------------------------------------------------------------- +# userpanalForwarding +#---------------------------------------------------------------------- + +package esmith::FormMagick::Panel::userpanelForwarding; + +use strict; +use warnings; +use esmith::AccountsDB; +use esmith::FormMagick; + +our @ISA = qw(esmith::FormMagick Exporter); +our $VERSION = sprintf '%d.%03d', q$Revision: 1.0 $ =~ /: (\d+).(\d+)/; +our @EXPORT = qw(); + +our $db = esmith::AccountsDB->open() or die "Couldn't open AccountsDB\n";; + +#get user and untaint +our $UserName = $ENV{'REMOTE_USER'}; +$UserName = $1 if ($UserName =~ /^([a-z][\-a-z0-9]*)$/); + +sub get_EmailForward +{ + return $db->get_prop($UserName, "EmailForward"); +} + +sub get_ForwardAddress +{ + return $db->get_prop($UserName, "ForwardAddress"); +} + +sub validate_email +{ + my $fm = shift; + my $q = $fm->{cgi}; + + my $Forward = $q->param('EmailForward'); + my $ForwardAddress = $q->param('ForwardAddress') || ''; + $ForwardAddress =~ s/^\s+|\s+$//g; + + my $response = $fm->email_simple($ForwardAddress); + if ($response eq 'OK') + { + return 'OK'; + } + elsif ($ForwardAddress eq '') + { + return 'OK' if ($Forward eq 'local'); + return 'VALID_EMAIL_NEEDED'; + } + else + { + return 'UNACCEPTABLE_CHARS'; + } +} + +sub change_settings +{ + my $fm = shift; + my $q = $fm->{cgi}; + + $db->set_prop($UserName, 'EmailForward', $q->param("EmailForward")); + $db->set_prop($UserName, 'ForwardAddress', $q->param("ForwardAddress")); + + unless ( system('/sbin/e-smith/signal-event', "email-update-quick", $UserName ) == 0 ) + { + $fm->error('ERROR_UPDATING'); + return undef; + } + + $fm->success('SUCCESS'); +} + +1; diff --git a/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/userpanelPassword.pm b/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/userpanelPassword.pm new file mode 100644 index 0000000..0336683 --- /dev/null +++ b/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/userpanelPassword.pm @@ -0,0 +1,108 @@ +#---------------------------------------------------------------------- +# userpanelPassword +#---------------------------------------------------------------------- + +package esmith::FormMagick::Panel::userpanelPassword; + +use strict; +use warnings; +use esmith::util; +use esmith::AccountsDB; +use esmith::ConfigDB; +use esmith::FormMagick; + +our $accountdb = esmith::AccountsDB->open(); +our $configdb = esmith::ConfigDB->open(); + +our @ISA = qw(esmith::FormMagick Exporter); +our $VERSION = sprintf '%d.%03d', q$Revision: 1.0 $ =~ /: (\d+).(\d+)/; +our @EXPORT = qw(); + +sub check_password { + my $fm = shift; + my $pass1 = shift; + + my $check_type; + my $rec = $configdb->get('passwordstrength'); + $check_type = ($rec ? ($rec->prop('Users') || 'none') : 'none'); + + return $fm->validate_password($check_type,$pass1); +} + +sub password_compare { + my $fm = shift; + my $pass2 = shift; + + my $pass1 = $fm->{cgi}->param('pass'); + unless ($pass1 eq $pass2) + { + $fm->error('PASSWORD_NO_MATCH'); + return undef; + } + return "OK"; +} + +sub change_password { + + my ($fm) = @_; + my $q = $fm->{cgi}; + + #get user and untaint + my $UserName = $ENV{'REMOTE_USER'} ||''; + unless (($UserName) = ($UserName =~ /^([a-z][\-\_\.a-z0-9]*)$/ )) + { + $fm->error('YOUR_ACCOUNT_INVALID_CHARS'); + return undef; + } + + my $oldPass = $q->param('oldPass'); + my $pass = $q->param('pass'); + + unless (($oldPass) = ($oldPass =~ /^(\S+)$/ )) + { + $fm->error('PASSWORD_OLD_INVALID_CHARS'); + return undef; + } + + unless (($pass) = ($pass =~ /^([ -~]+)$/ )) + { + $fm->error('PASSWORD_INVALID_CHARS'); + return undef; + } + + my $acct; + unless ($acct = $accountdb->get($UserName)) + { + $fm->error('YOUR_ACCOUNT_INVALID'); + return undef; + } + + unless ($acct->prop('type') eq 'user') + { + $fm->error('YOUR_ACCOUNT_INVALID'); + return undef; + } + + unless (esmith::util::setUserPasswordRequirePrevious( + $UserName, + $oldPass, + $pass)) + { + $fm->error('ERROR_PASSWORD_CHANGE'); + return undef; + } + + $accountdb->set_prop($UserName, "PasswordSet", "yes"); + undef $accountdb; + + unless ( system("/sbin/e-smith/signal-event", "password-modify", $UserName ) == 0 ) + { + $fm->error('ERROR_UPDATING'); + return undef; + } + + $fm->success('PASSWORD_CHANGE_SUCCESS', 'Done'); +} + + +1; \ No newline at end of file diff --git a/smeserver-userpanels.spec b/smeserver-userpanels.spec new file mode 100644 index 0000000..564bb61 --- /dev/null +++ b/smeserver-userpanels.spec @@ -0,0 +1,238 @@ +# $Id: smeserver-userpanels.spec,v 1.4 2021/08/25 01:05:22 terryfage Exp $ +# Authority: dungog +# Name: Stephen Noble + +Summary: Panels to let users to change server settings. +%define name smeserver-userpanels +Name: %{name} +%define version 1.3 +%define release 4 +Version: %{version} +Release: %{release}%{?dist} +License: GNU GPL version 2 +URL: http://www.dungog.net/wiki +Group: SMEserver/addon +Source: %{name}-%{version}.tar.xz +BuildArchitectures: noarch +BuildRoot: /var/tmp/%{name}-%{version} +Requires: smeserver-release >= 10 +Requires: e-smith-formmagick >= 1.4.0-12 +BuildRequires: e-smith-devtools >= 1.13.1-03 +AutoReqProv: no + +%description +Provides additinal userpanels that allows user settings to be altered. +Change password,Forward mail, Backup users home directory, +Delegate creation of users with restrictions. + +%changelog +* Sat Sep 07 2024 cvs2git.sh aka Brian Read 1.3-4.sme +- Roll up patches and move to git repo [SME: 12338] + +* Sat Sep 07 2024 BogusDateBot +- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, + by assuming the date is correct and changing the weekday. + +* Wed Aug 25 2021 Terry Fage 1.3-3.sme +- apply locale 2021-08-25 patch + +* Tue Feb 23 2021 Jean-Philipe Pialasse 1.3-2.sme +- add empty -update event [SME: 11080] + +* Mon Nov 02 2020 michel begue 1.3-1.sme +- First import to SME10 [SME: 11080] + +* Wed Jun 22 2016 stephane de labrusse 1.1-5.sme +- Removed dungog software links + +* Wed Mar 09 2016 JP Pialasse 1.1-3.sme +- apply locale 2016-03-09 patch + +* Fri Aug 22 2014 stephane de labrusse 1.1-2.sme +- cracklib depends of rpm architecture, solved that in userpanel-useraccounts +- [SME:8533] + +* Wed Nov 13 2013 Daniel Berteaud 1.1-1.sme +- Rebuild for SME9 + +* Sun Jul 14 2013 JP Pialasse 1.0-34.sme +- apply locale 2013-07-14 patch + +* Fri Sep 7 2012 Daniel Berteaud 1.0-33.sme +- Check that a valid email address is given when delivery is not local [SME: 7095] + +* Tue Mar 20 2012 SME Translation Server 1.0-32.el6 +- apply locale 2012-03-20 patch + +* Sun Mar 06 2011 SME Translation Server 1.0-31.sme +- apply locale 2011-03-06 patch + +* Sun May 23 2010 SME Translation Server 1.0-30.sme +- apply locale 2010-05-23 patch + +* Tue Mar 02 2010 SME Translation Server 1.0-29.sme +- apply locale 2010-03-02 patch + +* Tue Oct 27 2009 SME Translation Server 1.0-28.sme +- apply locale 2009-10-27 patch + +* Mon Aug 24 2009 SME Translation Server 1.0-27.sme +- apply locale 2009-08-24 patch + +* Wed May 20 2009 SME Translation Server 1.0-26.sme +- apply locale 2009-05-20 patch + +* Mon Apr 27 2009 SME Translation Server 1.0-25.sme +- apply locale 2009-04-27 patch + +* Tue Mar 03 2009 SME Translation Server +- apply locale 2009-03-03 patch + +* Sun Mar 1 2009 Jonathan Martens 1.0-23 +- Apply 1 Mar 2009 locale patch [SME: 5018] + +* Sun Nov 30 2008 Jonathan Martens 1.0-22 +- Apply 30 Nov 2008 locale patch + +* Thu Oct 16 2008 Jonathan Martens 1.0-21 +- Apply 16 Oct 2008 locale patch + +* Wed Oct 15 2008 Jonathan Martens 1.0-20 +- Apply 15 Oct 2008 locale patch + +* Tue Oct 14 2008 Jonathan Martens 1.0-19 +- Apply 14 Oct 2008 locale patch + +* Sat Sep 27 2008 Stephen Noble - 1.2-26 +- Apply locale patch + +* Tue Jul 1 2008 Jonathan Martens 1.0-17 +- Apply 1 July 2008 locale patch + +* Fri Jun 27 2008 Jonathan Martens 1.0-16 +- Apply 27 Jun 2008 locale patch + +* Wed May 21 2008 Jonathan Martens 1.0-15 +- Apply 21 May 2008 locale patch + +* Mon May 5 2008 Jonathan Martens 1.0-14 +- Fixed locale issue with button not being translated in password panel [SME: 4310] +- Added 5 May 2008 locale patch from the translate engine + +* Sat Apr 26 2008 Jonathan Martens 1.0-13 +- Add common tags to e-smith-formmagick's general + +* Tue Apr 22 2008 Jonathan Martens 1.0-12 +- Apply 22 April 2008 locale patch + +* Tue Apr 1 2008 Shad L. Lords 1.0-11 +- Update to UTF-8 translations + +* Fri Mar 14 2008 Stephen Noble - 1.0-10 +- Add requires for e-smith-formmagick for UTF-8 support [SME: 3858] + +* Fri Mar 14 2008 Stephen Noble - 1.0-9 +- update locale 2008-03-14 + +* Fri Mar 07 2008 Stephen Noble - 1.0-8 +- prepare en lexicons for pootle translations + +* Tue Dec 25 2007 Stephen Noble 1.0-7 +- add french translation, thanks Sylvain Gomez + +* Thu Dec 6 2007 Stephen Noble 1.0-6 +- swedish translation, thanks Chrille + +* Thu Dec 6 2007 Stephen Noble 1.0-5 +- remove Requires: smeserver-userpanel + +* Mon Oct 29 2007 Stephen Noble 1.0-4 +- update spanish translations, thanks Normando Hall [SME 3503] + +* Sun Apr 29 2007 Shad L. Lords +- Clean up spec so package can be built by koji/plague + +* Mon Oct 30 2006 Stephen Noble +- forwarding lexicon updated for de +- [1.0-3] + +* Sun Mar 26 2006 Stephen Noble +- forwarding and password lexicons updated for de +- fix, error in logs starting httpd-admin [sme 1991] +- [1.0-2] + +* Sun Mar 26 2006 Stephen Noble +- Userpanel-forwarding lexicons for de, fr +- Partial forwarding lexicons for es, it +- [1.0-1] + +* Fri Mar 17 2006 Stephen Noble +- FormMagick version for Userpanel-forward, english only +- Userpanel-password updated to current FM style +- [0.9-3] + +* Wed Sep 21 2005 Stephen Noble +- FormMagick version for Userpanel-password, Languages included +- [0.9-2] + +* Wed Sep 21 2005 Stephen Noble +- initial release, contains +- userdata-backup, useraccounts, forward mail, change password +- [0.9-1] + +%prep +%setup + +mkdir -p root/etc/e-smith/events/smeserver-userpanels-update + +%build +LEXICONS=$(find root/etc/e-smith/locale/ -type f ) +for lexicon in $LEXICONS root/etc/e-smith/web/functions/userpanel-{password,forwarding} +do + /sbin/e-smith/validate-lexicon $lexicon +done + +perl createlinks + +%install +rm -rf $RPM_BUILD_ROOT +(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) +rm -f %{name}-%{version}-filelist +/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist +echo "%doc COPYING" >> %{name}-%{version}-filelist + +%clean +cd .. +rm -rf %{name}-%{version} + +%pre +%preun + +%post +#new installs +if [ $1 = 1 ] ; then + globalUP=`/sbin/e-smith/db accounts get globalUP` + if [ "x$globalUP" = "x" ]; then + /sbin/e-smith/db accounts set globalUP userpanelglobal FirstName "global user" LastName "panel access" AdminPanels userpanel-forwarding,userpanel-password || : + fi +fi + +#upgrades (and new installs) +if [ -d /etc/e-smith/events/conf-userpanel ] ; then + /sbin/e-smith/signal-event conf-userpanel +fi + +%postun +#uninstall +if [ $1 = 0 ] ; then + DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"` + for db in $DBS ; do + /sbin/e-smith/db $db delete userpanel-password 2>/dev/null + /sbin/e-smith/db $db delete userpanel-userbackup 2>/dev/null + /sbin/e-smith/db $db delete userpanel-forwarding 2>/dev/null + /sbin/e-smith/db $db delete userpanel-useraccounts 2>/dev/null + done +fi + +%files -f %{name}-%{version}-filelist +%defattr(-,root,root)