From f510f789c6e6b4018ee77da796a503d0670b8afd Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Sat, 7 Sep 2024 19:51:44 +1000 Subject: [PATCH] initial commit of file from CVS for smeserver-dhcpmanager on Sat Sep 7 19:51:44 AEST 2024 --- .gitignore | 4 + Makefile | 21 + README.md | 16 +- additional/CHANGELOG.git | 44 + additional/COPYING | 340 +++++++ additional/LICENSE | 339 +++++++ additional/README.md | 2 + additional/smeserver-dhcpmanager.spec | 86 ++ contriborbase | 1 + createlinks | 27 + .../db/configuration/defaults/dhcpd/check | 1 + .../db/configuration/defaults/dhcpd/dnscustom | 1 + .../defaults/dhcpd/gatewaycustom | 1 + .../configuration/defaults/dhcpd/winscustom | 1 + root/etc/e-smith/events/actions/send-message | 20 + .../locale/bg/etc/e-smith/web/functions/dhcpd | 335 ++++++ .../locale/da/etc/e-smith/web/functions/dhcpd | 335 ++++++ .../locale/de/etc/e-smith/web/functions/dhcpd | 335 ++++++ .../locale/el/etc/e-smith/web/functions/dhcpd | 335 ++++++ .../en-us/etc/e-smith/web/functions/dhcpd | 340 +++++++ .../locale/es/etc/e-smith/web/functions/dhcpd | 335 ++++++ .../locale/et/etc/e-smith/web/functions/dhcpd | 335 ++++++ .../locale/fr/etc/e-smith/web/functions/dhcpd | 335 ++++++ .../locale/he/etc/e-smith/web/functions/dhcpd | 335 ++++++ .../locale/hu/etc/e-smith/web/functions/dhcpd | 335 ++++++ .../locale/id/etc/e-smith/web/functions/dhcpd | 335 ++++++ .../locale/it/etc/e-smith/web/functions/dhcpd | 335 ++++++ .../locale/ja/etc/e-smith/web/functions/dhcpd | 335 ++++++ .../locale/nb/etc/e-smith/web/functions/dhcpd | 335 ++++++ .../locale/nl/etc/e-smith/web/functions/dhcpd | 335 ++++++ .../locale/pl/etc/e-smith/web/functions/dhcpd | 335 ++++++ .../pt-br/etc/e-smith/web/functions/dhcpd | 335 ++++++ .../locale/pt/etc/e-smith/web/functions/dhcpd | 335 ++++++ .../locale/ro/etc/e-smith/web/functions/dhcpd | 335 ++++++ .../locale/ru/etc/e-smith/web/functions/dhcpd | 335 ++++++ .../locale/sl/etc/e-smith/web/functions/dhcpd | 335 ++++++ .../locale/sv/etc/e-smith/web/functions/dhcpd | 335 ++++++ .../locale/th/etc/e-smith/web/functions/dhcpd | 335 ++++++ .../locale/tr/etc/e-smith/web/functions/dhcpd | 335 ++++++ .../zh-cn/etc/e-smith/web/functions/dhcpd | 335 ++++++ .../zh-tw/etc/e-smith/web/functions/dhcpd | 335 ++++++ root/etc/e-smith/web/functions/dhcpd | 956 ++++++++++++++++++ .../smanager/lib/SrvMngr/Controller/Dhcpd.pm | 704 +++++++++++++ .../SrvMngr/I18N/Modules/Dhcpd/dhcpd_en.lex | 91 ++ .../lib/SrvMngr/I18N/Modules/Dhcpd/en.pm | 109 ++ .../themes/default/templates/dhcpd.html.ep | 219 ++++ .../templates/partials/_dhcpd_leases.html.ep | 113 +++ .../templates/partials/_dhcpd_scan.html.ep | 63 ++ smeserver-dhcpmanager.spec | 173 ++++ 49 files changed, 12045 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 additional/CHANGELOG.git create mode 100644 additional/COPYING create mode 100644 additional/LICENSE create mode 100644 additional/README.md create mode 100644 additional/smeserver-dhcpmanager.spec create mode 100644 contriborbase create mode 100644 createlinks create mode 100644 root/etc/e-smith/db/configuration/defaults/dhcpd/check create mode 100644 root/etc/e-smith/db/configuration/defaults/dhcpd/dnscustom create mode 100644 root/etc/e-smith/db/configuration/defaults/dhcpd/gatewaycustom create mode 100644 root/etc/e-smith/db/configuration/defaults/dhcpd/winscustom create mode 100755 root/etc/e-smith/events/actions/send-message create mode 100644 root/etc/e-smith/locale/bg/etc/e-smith/web/functions/dhcpd create mode 100644 root/etc/e-smith/locale/da/etc/e-smith/web/functions/dhcpd create mode 100644 root/etc/e-smith/locale/de/etc/e-smith/web/functions/dhcpd create mode 100644 root/etc/e-smith/locale/el/etc/e-smith/web/functions/dhcpd create mode 100644 root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/dhcpd create mode 100644 root/etc/e-smith/locale/es/etc/e-smith/web/functions/dhcpd create mode 100644 root/etc/e-smith/locale/et/etc/e-smith/web/functions/dhcpd create mode 100644 root/etc/e-smith/locale/fr/etc/e-smith/web/functions/dhcpd create mode 100644 root/etc/e-smith/locale/he/etc/e-smith/web/functions/dhcpd create mode 100644 root/etc/e-smith/locale/hu/etc/e-smith/web/functions/dhcpd create mode 100644 root/etc/e-smith/locale/id/etc/e-smith/web/functions/dhcpd create mode 100644 root/etc/e-smith/locale/it/etc/e-smith/web/functions/dhcpd create mode 100644 root/etc/e-smith/locale/ja/etc/e-smith/web/functions/dhcpd create mode 100644 root/etc/e-smith/locale/nb/etc/e-smith/web/functions/dhcpd create mode 100644 root/etc/e-smith/locale/nl/etc/e-smith/web/functions/dhcpd create mode 100644 root/etc/e-smith/locale/pl/etc/e-smith/web/functions/dhcpd create mode 100644 root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/dhcpd create mode 100644 root/etc/e-smith/locale/pt/etc/e-smith/web/functions/dhcpd create mode 100644 root/etc/e-smith/locale/ro/etc/e-smith/web/functions/dhcpd create mode 100644 root/etc/e-smith/locale/ru/etc/e-smith/web/functions/dhcpd create mode 100644 root/etc/e-smith/locale/sl/etc/e-smith/web/functions/dhcpd create mode 100644 root/etc/e-smith/locale/sv/etc/e-smith/web/functions/dhcpd create mode 100644 root/etc/e-smith/locale/th/etc/e-smith/web/functions/dhcpd create mode 100644 root/etc/e-smith/locale/tr/etc/e-smith/web/functions/dhcpd create mode 100644 root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/dhcpd create mode 100644 root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/dhcpd create mode 100644 root/etc/e-smith/web/functions/dhcpd create mode 100644 root/usr/share/smanager/lib/SrvMngr/Controller/Dhcpd.pm create mode 100644 root/usr/share/smanager/lib/SrvMngr/I18N/Modules/Dhcpd/dhcpd_en.lex create mode 100644 root/usr/share/smanager/lib/SrvMngr/I18N/Modules/Dhcpd/en.pm create mode 100644 root/usr/share/smanager/themes/default/templates/dhcpd.html.ep create mode 100644 root/usr/share/smanager/themes/default/templates/partials/_dhcpd_leases.html.ep create mode 100644 root/usr/share/smanager/themes/default/templates/partials/_dhcpd_scan.html.ep create mode 100644 smeserver-dhcpmanager.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cbb3a13 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.rpm +*.log +*spec-20* +*.tar.gz diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2fdba6f --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: smeserver-dhcpmanager +# $Id: Makefile,v 1.1 2020/10/12 14:41:58 brianr Exp $ +NAME := smeserver-dhcpmanager +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 43da037..c54fda2 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,15 @@ -# smeserver-dhcpmanager +# smeserver-dhcpmanager -SMEServer Koozali developed git repo for smeserver-dhcpmanager smecontribs \ No newline at end of file +SMEServer Koozali developed git repo for smeserver-dhcpmanager smecontribs + +## Wiki +
https://wiki.koozali.org/Dhcpmanager + +## Bugzilla +Show list of outstanding bugs: [here](https://bugs.koozali.org/buglist.cgi?component=smeserver-dhcpmanager&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/CHANGELOG.git b/additional/CHANGELOG.git new file mode 100644 index 0000000..e22e50a --- /dev/null +++ b/additional/CHANGELOG.git @@ -0,0 +1,44 @@ +commit 32e8789987dd6d89bbb42ad185093498bca89604 +Author: Stephane de Labrusse +Date: Wed Aug 12 22:53:07 2015 +0200 + + * Wed Aug 12 2015 Stephane de Labrusse smeserver-dhcpmanager-2.0-1.sme + -Translations added + -new WebUI + +commit 1994a7fb43151918a6b3df2ab6418333fdaa357e +Author: Stephane de Labrusse +Date: Sat May 24 07:53:25 2014 +0200 + + +for my $event (qw(conf-dhcpmanager)) + +commit c18e05a7168bd2e0303c3cc3930e7d94a20c2a8f +Author: Stephane de Labrusse +Date: Sun May 18 15:46:19 2014 +0200 + + adapted dhcpd.leases field to fill the ip table + +commit 0154e031e4f38e335b044db924161c800e350c96 +Author: Stephane de Labrusse +Date: Sun May 18 14:17:21 2014 +0200 + + * Sun May 18 2014 Stephane de Labrusse smeserver-dhcpmanager-1.5-12 + - First release to sme9 + +commit e5d6cec17417efd30df0e34b32556828e56dc608 +Author: Stephane de Labrusse +Date: Sat Mar 29 17:26:51 2014 +0100 + + patch removed to be compatible with git behaviour + +commit 226444f78be2905c2f8245e31f4661f696e80425 +Author: Stephane de Labrusse +Date: Fri Mar 28 20:53:49 2014 +0100 + + initial release + +commit ee9afd2cf74635d13613eeb6da1e15a12461de23 +Author: Stéphane de Labrusse +Date: Fri Mar 28 12:07:40 2014 -0700 + + Initial commit diff --git a/additional/COPYING b/additional/COPYING new file mode 100644 index 0000000..eeb586b --- /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/additional/LICENSE b/additional/LICENSE new file mode 100644 index 0000000..22fbe5d --- /dev/null +++ b/additional/LICENSE @@ -0,0 +1,339 @@ +GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser 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. + + {description} + Copyright (C) {year} {fullname} + + 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., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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) year 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. + + {signature of Ty Coon}, 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 Lesser General +Public License instead of this License. \ No newline at end of file diff --git a/additional/README.md b/additional/README.md new file mode 100644 index 0000000..7492250 --- /dev/null +++ b/additional/README.md @@ -0,0 +1,2 @@ +smeserver-dhcpmanager +===================== diff --git a/additional/smeserver-dhcpmanager.spec b/additional/smeserver-dhcpmanager.spec new file mode 100644 index 0000000..4608b12 --- /dev/null +++ b/additional/smeserver-dhcpmanager.spec @@ -0,0 +1,86 @@ +%define name smeserver-dhcpmanager +%define version 2.0 +%define release 1 + +Summary: provide a dhcp panel in the server-manager for The SME Server +Name: %{name} +Version: %{version} +Release: %{release}%{?dist} +Source: %{name}-%{version}.tar.gz +License: GNU GPL version 2 +URL: http://www.contribs.org +Group: SMEserver/addon +BuildRoot: %{_tmppath}/%{name}-buildroot +#Prefix: %{_prefix} +BuildArchitectures: noarch +BuildRequires: e-smith-devtools +Requires: e-smith-release >= 9.0 +Requires: net-tools +Requires: nmap >= 2:6.25 +AutoReqProv: no + +%description +Implementation of some feature arround dhcp clients like : wol, cleaning dhcpd.leases, Scan of your network etc// + +%changelog +* Wed Aug 12 2015 Stephane de Labrusse smeserver-dhcpmanager-2.0-1.sme +-Translations added +-new WebUI + +* Sun May 18 2014 Stephane de Labrusse smeserver-dhcpmanager-1.5-12 +- First release to sme9 + +* Wed Feb 05 2014 Stephane de Labrusse smeserver-dhcpmanager-1.5-11 +- add default db values and change options to nmap in order to see name of computer + +* Mon Jan 13 2014 Stephane de Labrusse smeserver-dhcpmanager-1.5-10 +- english wording correction [sme:8122] +- change the nmap version to 6.25 (available in smecontribs) [sme:8120] +- add an option to remove all leases +- some subroutines added in the goal to save settings and stay on the same page (main page and connected IP) +- some menu setting box redesigned. + +* Sun Jan 05 2014 Stephane de Labrusse smeserver-dhcpmanager-1.5-5 +- Add a checkIP routine against wrong IP [sme:8015] +- Add a new panel to see connected IP [sme:8113] +- Add a counter of host up on the LAN (using nmap) [sme:8111] + +* Sun Dec 29 2013 Stephane de Labrusse smeserver-dhcpmanager-1.5-3 +- adaptation for SME Server 8.0 +* Thu Dec 23 2004 Thierry Quaak +- Last release of e-smith-dhcpmanager-1.5-1, thanks a lot for his work + + + +%prep +%setup +%build +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 +#/etc/e-smith/events/actions/navigation-conf + + + + +%postun +#rm /etc/e-smith/templates-custom/etc/dhcpd.conf/25NetbiosNameServers + +%files -f %{name}-%{version}-filelist +%defattr(-,root,root) + 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..f008ece --- /dev/null +++ b/createlinks @@ -0,0 +1,27 @@ +#! /usr/bin/perl -w + +use esmith::Build::CreateLinks qw(:all); + +panel_link("dhcpd", "manager"); + +# our event specific for updating with yum without reboot +$event = "smeserver-dhcpmanager-update"; +#add here the path to your templates needed to expand +#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event + + foreach my $file (qw( + /etc/systemd/system-preset/49-koozali.preset + )) + { + templates2events( $file, $event ); + } + + #action needed in case we have a systemd unit + event_link("systemd-default", $event, "10"); + event_link("systemd-reload", $event, "50"); + + #action specific to this package + #event_link("some event", $event, "30"); + #services we need to restart + #safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/some service"); + diff --git a/root/etc/e-smith/db/configuration/defaults/dhcpd/check b/root/etc/e-smith/db/configuration/defaults/dhcpd/check new file mode 100644 index 0000000..7a68b11 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/dhcpd/check @@ -0,0 +1 @@ +disabled diff --git a/root/etc/e-smith/db/configuration/defaults/dhcpd/dnscustom b/root/etc/e-smith/db/configuration/defaults/dhcpd/dnscustom new file mode 100644 index 0000000..7a68b11 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/dhcpd/dnscustom @@ -0,0 +1 @@ +disabled diff --git a/root/etc/e-smith/db/configuration/defaults/dhcpd/gatewaycustom b/root/etc/e-smith/db/configuration/defaults/dhcpd/gatewaycustom new file mode 100644 index 0000000..7a68b11 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/dhcpd/gatewaycustom @@ -0,0 +1 @@ +disabled diff --git a/root/etc/e-smith/db/configuration/defaults/dhcpd/winscustom b/root/etc/e-smith/db/configuration/defaults/dhcpd/winscustom new file mode 100644 index 0000000..7a68b11 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/dhcpd/winscustom @@ -0,0 +1 @@ +disabled diff --git a/root/etc/e-smith/events/actions/send-message b/root/etc/e-smith/events/actions/send-message new file mode 100755 index 0000000..c1505b2 --- /dev/null +++ b/root/etc/e-smith/events/actions/send-message @@ -0,0 +1,20 @@ +#!/usr/bin/perl -w + +#---------------------------------------------------------------------- +# Author Stephen Noble +# create backup scripts for dungog-USERbackup +#---------------------------------------------------------------------- + + my $userName = $ARGV [0]; + my $message = $ARGV [1]; + chomp $message ; + + # supression de certain caratere indesirable.... liste certainement non exhautisve. + $message =~ s/'&|`"\/$^~//g; + + #recreate current disk free + + #system("/bin/echo '$message' | /usr/bin/smbclient -M $userName -U admin >> /var/log/send-massage") ; + system("/bin/echo '$message' | /usr/bin/smbclient -M $userName -U admin >> /dev/null") ; + +exit (0); diff --git a/root/etc/e-smith/locale/bg/etc/e-smith/web/functions/dhcpd b/root/etc/e-smith/locale/bg/etc/e-smith/web/functions/dhcpd new file mode 100644 index 0000000..b87abc2 --- /dev/null +++ b/root/etc/e-smith/locale/bg/etc/e-smith/web/functions/dhcpd @@ -0,0 +1,335 @@ + + + DHCP manager + Управление на DHCP + + + DHCPD_TITLE + Управление на DHCP + + + DHCPD_SETTINGS_TITLE + Настройки на DHCP сървъра + + + CONNECTED_IP + Покажи DHCP клиентите + + + SCAN_YOUR_NETWORK + Сканиране на мрежата + + + GLOBAL_WINPOPUP + Изпрати глобален Netsend WinPopup + + + CHECK_CLIENT_STATUS + Винаги проверявай състоянието на компютрите (Изключеното е по-бързо) + + + SHOW_CONNECTED_IP_TITLE + Покажи всички устройства свързани към dhcp сървъра: + + + SCAN_YOUR_NETWORK_TITLE + Сканиране на мрежата за да се покажат активните устройства: + + + GLOBAL_WINPOPUP_TITLE + Изпрати глобален WinPopup чрез Net send протокол + + + STATUS_DHCP_SERVER + Състояние на DHCPD + + + DHCP_START + Начало + + + DHCP_END + Край + + + CUSTOM_WINSERVER_TITLE + Включи WINS Server. + + + CUSTOM_WINSERVER_STATUS + WINS Server + + + CUSTOM_WINSERVER_ADDRESS + Aдрес на WINS Server + + + CUSTOM_DNS_TITLE + Включи задаване на DNS servers. + + + CUSTOM_DNS_STATUS + Зададен DNS + + + PRIMARY_DNS_ADDRESS + Основен DNS + + + SECONDARY_DNS_ADDRESS + Втори DNS + + + TERTIARY_DNS_ADDRESS + Трети DNS + + + CUSTOM_GATEWAY_TITLE + Включи задаване на адрес на шлюза. + + + CUSTOM_GATEWAY_STATUS + Зададен шлюз + + + CUSTOM_GATEWAY_ADDRESS + Адрес на шлюза + + + CUSTOM_LEASETIME_TITLE + Задайте продължителност на lease (стандартно е 86400 секунди). + + + CUSTOM_LEASETIME + Потребителско време за отдаване + + + SAVE_TITLE + След промяната на настройките по-горе трябва да ги запишете и да рестартирате dhcpd. + + + SAVE/RESTART + Запис/Рестарт + + + DHCPD_SETTING_ERRORS + ГРЕШКИ в настройките на DHCPd + + + DHCP_START_GREATER_DHCP_END_ERRORS + Грешен обхват от IP адреси, началния е по-голям от крайния, актуализацията е неуспешна]]> + + + CLICK_HERE_TO_MAIN_PANEL + Щракнете тук за да се върнете в основния панел]]> + + + DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP + Грешен обхват от IP адреси, обхватът от адреси не трябва да включва адресът на сървъра, актуализацията е неуспешна]]> + + + DHCP_RANGE_WITH_BAD_IP + Грешен IP адрес в DHCP обхвата, актуализацията е неуспешна]]> + + + WINSSERVER_BAD_IP + Грешен IP адрес на WINS сървъра, актуализацията е неуспешна]]> + + + DNS_SERVER_WITH_BAD_IP + Грешен IP адрес на DNS сървърите, актуализацията е неуспешна]]> + + + GATEWAY_BAD_IP + Грешен IP адрес на шлюза, актуализацията е неуспешна]]> + + + SUCCESSFULLY_SAVED_SETTINGS + Успешно записани настройки]]> + + + REMOVE_A_DHCP_LEASE_TITLE + Премахване на DHCP Lease + + + REMOVE_A_DHCP_LEASE + Премахване на елемент в dhcpd.leases + + + ARE_YOU_SURE + сигурни ли сте? + + + REMOVE_A_DHCP_LEASE_ACTION + Ще премахнете клиент от файла dhcpd.leases. + + + SUCCESSFULLY_DELETED_THE_CLIENT + Успешно изтриване в dhcpd.leases на клиент: ]]> + + + WAKING_A_REMOTE_COMPUTER_TITLE + Събуждане на отдалечен компютър + + + WAKING_A_REMOTE_COMPUTER + Ще събудите отдалечен компютър. + + + WAKING_A_REMOTE_COMPUTER_ACTION + Сигурни ли сте че искате да събудите клиента: + + + + WAKE_UP + Събуди + + + REMOVE + Премахване + + + SUCCESSFULLY_CLIENT_WOL_REQUEST + Успешно заявено събуждане на клиент. Може да му отнеме известно време на компютъра докато се събуди.]]> + + + ALL_OF_THEM + Всички + + + SENDING_A_WINPOPUP + Изпращане на WinPopup + + + SENDING_A_WINPOPUP_TO + Ще изпратите WinPopup до + + + YOUR_MESSAGE + Вашето съобщение + + + WRITE_YOUR_MESSAGE + Напишете съобщението тук + + + DO_YOU_WANT_TO_SENT + Искате ли да изпратите съобщение до + + + SEND_WINPOPUP_TO + Изпращане на WinPopup до + + + SUCCESSFULLY_SENT_MESSAGE + Успешно изпратено съобщение WinPopup до]]> + + + WARNING_NO_WINPOPUP_GARANTY + Внимание, няма гаранция че WinPopup се се покаже на отдалечения компютър.]]> + + + MANAGING_DHCP_CLIENT + Управление на DHCP клиенти + + + STATUS_REPORT + Информация за операцията: + + + REFRESH_CONNECTED_IP_LIST + Може би искате да актуализирате списъка? + + + REFRESH + Актуализация на списъка + + + CLEAN_ALL_DHCPLEASES + Може би искате да почистите dhcp.leases + + + REMOVE_ALL_LEASES + Премахване на всички leases + + + NETWORK_NAME + Мрежово име + + + STATUS_CLICK_FOR_WOL + Статус - щракни за събуждане + + + START_DATE + Начало + + + END_DATE + Край + + + MAC_ADDRESS + MAC адрес + + + NOT_CHECKED + Не е проверен...]]> + + + ACTIVE_DEVICE + Активно устройство]]> + + + WAKE_UP_ACTION + Събуждане...]]> + + + REMOVE_ACTION + Премахване... + + + WINPOPUP_ACTION + WinPopup... + + + NO_CONNECTED_COMPUTERS + Няма свързани компютри + + + REMOVE_DHCP_LEASE_TITLE + Премахване на всички DHCP Lease + + + REMOVE_DHCP_LEASE_WARNING + Премахването на всички елементи в dhcpd.leases може да създаде проблеми]]> + + + REMOVE_DHCP_LEASE_WARNING2 + Файлът с lease-ове е журнален файл - когато lease се промени, съдържанието му се записва в края на файла. Това означава че е напълно възможно там да има повече от един запис за един и същи lease във файла по едно и също време. В този случай елемента за този lease, който е последен във файла е този който е действителен. + + + SUCCESSFULLY_REMOVED_ALL_LEASES + Успешно изтриване на всички lease-ове.]]> + + + REMOVE_ALL_LEASES_ACTION + Премахни всички dhcp leases + + + SCANNING_NETWORK_TITLE + Сканиране на мрежата, времето което е нужно зависи от маската на подмрежата + + + NETWORK_VALUES_FOUND + Моля, изчакайте ... Подмрежата и маската й би трябвало да са: + + + ERROR_WHILE_REMOVING_ALL_LEASES + Грешка при премахването на всички dhcp lease-ове]]> + + + ERROR_WHILE_SAVING_SETTINGS + Грешка при запис на настройките]]> + + diff --git a/root/etc/e-smith/locale/da/etc/e-smith/web/functions/dhcpd b/root/etc/e-smith/locale/da/etc/e-smith/web/functions/dhcpd new file mode 100644 index 0000000..59976db --- /dev/null +++ b/root/etc/e-smith/locale/da/etc/e-smith/web/functions/dhcpd @@ -0,0 +1,335 @@ + + + DHCP manager + DHCP Manager + + + DHCPD_TITLE + DHCP Manager + + + DHCPD_SETTINGS_TITLE + Opsætning af DHCP server + + + CONNECTED_IP + Vis DHCP klienter + + + SCAN_YOUR_NETWORK + Skan dit netværk + + + GLOBAL_WINPOPUP + Send global Netsend WinPopUp + + + CHECK_CLIENT_STATUS + Kontroller altid computernes status (Deaktiver er meget hurtigere) + + + SHOW_CONNECTED_IP_TITLE + Vis alle elementer som er koblet på dhcp serveren: + + + SCAN_YOUR_NETWORK_TITLE + Skan dit netværk for aktive komponenter: + + + GLOBAL_WINPOPUP_TITLE + Send en global WinPopUp med Net Send protokollen + + + STATUS_DHCP_SERVER + Status på DHCPD + + + DHCP_START + DHCP start + + + DHCP_END + DHCP slut + + + CUSTOM_WINSERVER_TITLE + Aktiver en WINS Server + + + CUSTOM_WINSERVER_STATUS + WINS Server + + + CUSTOM_WINSERVER_ADDRESS + WINS Server adresse + + + CUSTOM_DNS_TITLE + Aktiver manuel DNS server. + + + CUSTOM_DNS_STATUS + Manuel DNS + + + PRIMARY_DNS_ADDRESS + Primær DNS + + + SECONDARY_DNS_ADDRESS + Sekundær DNS + + + TERTIARY_DNS_ADDRESS + Tertiær DNS + + + CUSTOM_GATEWAY_TITLE + Aktiver manuel konfiguration af Gateway adresse. + + + CUSTOM_GATEWAY_STATUS + Manuelt konfigureret Gateway + + + CUSTOM_GATEWAY_ADDRESS + Gateway adresse + + + CUSTOM_LEASETIME_TITLE + Sæt lease tiden (standard er 86400 sekunder) + + + CUSTOM_LEASETIME + Tilpas lease periode + + + SAVE_TITLE + Efter at have ændret i opsætningen ovenfor, skal du gemme og dernæst genstarte dhcpd. + + + SAVE/RESTART + Gem/Genstart + + + DHCPD_SETTING_ERRORS + DHCPd opsætnings FEJL + + + DHCP_START_GREATER_DHCP_END_ERRORS + Fejl i IP intervallet, DHCP start er større end DHCP slut, opdateringen mislykkedes]]> + + + CLICK_HERE_TO_MAIN_PANEL + Klik her for at vende tilbage til forsiden]]> + + + DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP + Fejl i IP intervallet, IP intervallet må ikke indeholde serverens adresse, opdateringen mislykkedes]]> + + + DHCP_RANGE_WITH_BAD_IP + Forkert IP i DHCP intervallet, opdateringen mislykkedes]]> + + + WINSSERVER_BAD_IP + Forkert IP for WINS Server, opdateringen mislykkedes]]> + + + DNS_SERVER_WITH_BAD_IP + Forkert IP for DNS server, opdatering mislykkedes]]> + + + GATEWAY_BAD_IP + Forkert IP for Gateway, opdatering mislykkedes]]> + + + SUCCESSFULLY_SAVED_SETTINGS + Opdatering gennemført med succes]]> + + + REMOVE_A_DHCP_LEASE_TITLE + Fjern en DHCP lease + + + REMOVE_A_DHCP_LEASE + Fjern en post i dhcpd leasingerne + + + ARE_YOU_SURE + er du sikker? + + + REMOVE_A_DHCP_LEASE_ACTION + Du er ved at fjerne en klient fra dhcpd lease filen. + + + SUCCESSFULLY_DELETED_THE_CLIENT + Klienten der med succes er fjernet som dhcpd leaser: ]]> + + + WAKING_A_REMOTE_COMPUTER_TITLE + Væk en fjerncomputer + + + WAKING_A_REMOTE_COMPUTER + Du er ved at vække en fjerncomputer. + + + WAKING_A_REMOTE_COMPUTER_ACTION + Er du sikker på, at du ønsker at vække klienten: + + + + WAKE_UP + Vågn OP + + + REMOVE + Fjern + + + SUCCESSFULLY_CLIENT_WOL_REQUEST + Der er sendt en anmodning om at vække klienten. Computeren skal nok bruge noget tid på at starte op.]]> + + + ALL_OF_THEM + Alle + + + SENDING_A_WINPOPUP + Sender en WinPopUp + + + SENDING_A_WINPOPUP_TO + Du er ved at sende en WinPopUp til + + + YOUR_MESSAGE + Din besked + + + WRITE_YOUR_MESSAGE + Skriv din besked her + + + DO_YOU_WANT_TO_SENT + Ønsker du at sende denne besked til + + + SEND_WINPOPUP_TO + Send en WinPopUp til + + + SUCCESSFULLY_SENT_MESSAGE + Der er sendt en PopUp besked til]]> + + + WARNING_NO_WINPOPUP_GARANTY + Advarsel, der er ikke nogen garanti for at PopUp beskeden popper op på modtager pc'en]]> + + + MANAGING_DHCP_CLIENT + Administrer DHCP klienter + + + STATUS_REPORT + Status rapport: + + + REFRESH_CONNECTED_IP_LIST + Ønsker du at genopfriske denne liste? + + + REFRESH + Genopfrisk listen + + + CLEAN_ALL_DHCPLEASES + Du ønsker måske at rense dhcp leases + + + REMOVE_ALL_LEASES + Fjern alle leases + + + NETWORK_NAME + Netværks navn + + + STATUS_CLICK_FOR_WOL + Status - klik for WOL + + + START_DATE + Start dato + + + END_DATE + Slut dato + + + MAC_ADDRESS + MAC adresse + + + NOT_CHECKED + Ikke kontrolleret...]]> + + + ACTIVE_DEVICE + Aktiv komponent]]> + + + WAKE_UP_ACTION + Vågn op...]]> + + + REMOVE_ACTION + Fjern... + + + WINPOPUP_ACTION + WinPopUp... + + + NO_CONNECTED_COMPUTERS + Der er ikke tilsluttet nogen computere + + + REMOVE_DHCP_LEASE_TITLE + Fjern alle DHCP leases + + + REMOVE_DHCP_LEASE_WARNING + Fjern alle eksisterende dhcpd.leases. Kan medføre problemer]]> + + + REMOVE_DHCP_LEASE_WARNING2 + Lease filen er en log-struktureret fil - når en lease ændres, skrives indholdet af denne lease nederst i filen. Det betyder at det er sagtens kan være 2 eller flere udgaver af den samme lease i lease filen på samme tid. I så fald, er det informationerne som står nederst i filen som er gældende. + + + SUCCESSFULLY_REMOVED_ALL_LEASES + Alle leases er slettet.]]> + + + REMOVE_ALL_LEASES_ACTION + Fjern alle dhcp leases + + + SCANNING_NETWORK_TITLE + Skanning af dit netværk; den tid det tager afhænger af din subbet maske + + + NETWORK_VALUES_FOUND + Vent venligst ... Din subnet og netværks maske ser ud til at være: + + + ERROR_WHILE_REMOVING_ALL_LEASES + Der opstod en fejl i forbindelse med fjernelse af alle dhcp leases]]> + + + ERROR_WHILE_SAVING_SETTINGS + Der opstod en fejl da opsætningen skulle gemmes]]> + + diff --git a/root/etc/e-smith/locale/de/etc/e-smith/web/functions/dhcpd b/root/etc/e-smith/locale/de/etc/e-smith/web/functions/dhcpd new file mode 100644 index 0000000..afec00e --- /dev/null +++ b/root/etc/e-smith/locale/de/etc/e-smith/web/functions/dhcpd @@ -0,0 +1,335 @@ + + + DHCP manager + DHCP Manager + + + DHCPD_TITLE + DHCP Manager + + + DHCPD_SETTINGS_TITLE + Einstellungen des DHCP Servers + + + CONNECTED_IP + DHCP Clients anzeigen + + + SCAN_YOUR_NETWORK + Scannen Ihres Netzwerks + + + GLOBAL_WINPOPUP + Sende globales Netsend WinPopup + + + CHECK_CLIENT_STATUS + Prüfe immer den Status der Computer (Deaktiviert is viel schneller) + + + SHOW_CONNECTED_IP_TITLE + Zeige alle Geräte, die mit dem dhcp Server vebunden sind: + + + SCAN_YOUR_NETWORK_TITLE + Netzwerk scannen um alle aktiven Geräte anzuzeigen: + + + GLOBAL_WINPOPUP_TITLE + Ein globales WinPopup mit dem Net send protocol senden + + + STATUS_DHCP_SERVER + Status des DHCPd + + + DHCP_START + DHCP Start + + + DHCP_END + DHCP Ende + + + CUSTOM_WINSERVER_TITLE + Einschalten eines WINS Server. + + + CUSTOM_WINSERVER_STATUS + WINS Server + + + CUSTOM_WINSERVER_ADDRESS + WINS Server Adresse + + + CUSTOM_DNS_TITLE + Einschalten eines speziellen DNS Servers. + + + CUSTOM_DNS_STATUS + Speizieller DNS + + + PRIMARY_DNS_ADDRESS + Primärer DNS + + + SECONDARY_DNS_ADDRESS + Sekundärer DNS + + + TERTIARY_DNS_ADDRESS + Primärer DNS + + + CUSTOM_GATEWAY_TITLE + Einschalten einer spezieller Gateway Adresse. + + + CUSTOM_GATEWAY_STATUS + Spezielles Gateway + + + CUSTOM_GATEWAY_ADDRESS + Gateway Adresse + + + CUSTOM_LEASETIME_TITLE + Lease Zeit setzen (Standard ist 86400 Sekunden). + + + CUSTOM_LEASETIME + Indivduelle Lease Zeit + + + SAVE_TITLE + Nach dem Ändern der Einstellungen oben müssen Sie Speichern und dhcpd neu starten. + + + SAVE/RESTART + Sichern/Neustart + + + DHCPD_SETTING_ERRORS + DHCPd Einstellungen FEHLER + + + DHCP_START_GREATER_DHCP_END_ERRORS + Falscher IP-Bereich, die DHCP Startadresse ist größer als die DHCP Endadresse, Änderung nicht erfolgreich]]> + + + CLICK_HERE_TO_MAIN_PANEL + Hier klicken um zum Hauptmenü zurückzukehren]]> + + + DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP + Ungültiger IP-Adreßbereich, der Bereich der IP-Adressen darf nicht die Adresse des Servers enthalten, Änderungen nicht erfolgreich]]> + + + DHCP_RANGE_WITH_BAD_IP + Ungültige IP im DHCP Bereich, Änderung nicht erfolgreich]]> + + + WINSSERVER_BAD_IP + Ungültige IP-Adresse für den WINS Server, Änderung nicht erfolgreich]]> + + + DNS_SERVER_WITH_BAD_IP + Ungültige IP-Adresse für die DNS Server, Änderung nicht erfolgreich]]> + + + GATEWAY_BAD_IP + Ungültige IP-Adresse für das Gateway, Änderung nicht erfolgreich]]> + + + SUCCESSFULLY_SAVED_SETTINGS + Einstellungen wurden erfolgreich gespeichert]]> + + + REMOVE_A_DHCP_LEASE_TITLE + Entferne ein DHCP Lease + + + REMOVE_A_DHCP_LEASE + Entferne einen Eintrag aus dhcpd.leases + + + ARE_YOU_SURE + Sind Sie sicher? + + + REMOVE_A_DHCP_LEASE_ACTION + Sie sind dabei, einen Client aus der dhcpd.leases Datei zu entfernen. + + + SUCCESSFULLY_DELETED_THE_CLIENT + Client erfolgreich aus dhcpd.leases gelöscht: ]]> + + + WAKING_A_REMOTE_COMPUTER_TITLE + Wecke einen entfernten Computer auf + + + WAKING_A_REMOTE_COMPUTER + Sie sind dabei, einen entfernten Computer aufzuwecken. + + + WAKING_A_REMOTE_COMPUTER_ACTION + Sind Sie sicher, diesen Client mit Wake on LAN aufzuwecken: + + + + WAKE_UP + Aufwachen + + + REMOVE + Entfernen + + + SUCCESSFULLY_CLIENT_WOL_REQUEST + Erfolgreicher Aufruf des Client-Aufweckens. Der Computer kann eine Weile benötigen, um aufzuwachen.]]> + + + ALL_OF_THEM + Diese alle + + + SENDING_A_WINPOPUP + Senden eines WinPopup + + + SENDING_A_WINPOPUP_TO + Sie sind dabei, ein WinPopup zu senden an + + + YOUR_MESSAGE + Ihre Nachricht + + + WRITE_YOUR_MESSAGE + Schreiben Sie Ihre Nachricht hier + + + DO_YOU_WANT_TO_SENT + Möchten Sie diese Nachricht senden an + + + SEND_WINPOPUP_TO + Schicke eine WinPopup an + + + SUCCESSFULLY_SENT_MESSAGE + Popup-Nachricht erfolgreich gesendet an]]> + + + WARNING_NO_WINPOPUP_GARANTY + Warnung: es ist nicht gewährleistet, dass das Popup auf dem entfernten Computer angezeigt wird.]]> + + + MANAGING_DHCP_CLIENT + Verwalte DHCP Clients + + + STATUS_REPORT + Tätigkeitsstatusbericht: + + + REFRESH_CONNECTED_IP_LIST + Soll diese Liste aufgefrischt angezeigt werden? + + + REFRESH + Frische diese Liste auf + + + CLEAN_ALL_DHCPLEASES + Soll dhcp.leases gesäubert werden + + + REMOVE_ALL_LEASES + Entferne alle Leases + + + NETWORK_NAME + Netzwerkname + + + STATUS_CLICK_FOR_WOL + Status - Klicken Sie für Wake on LAN + + + START_DATE + Anfangszeit + + + END_DATE + Endzeit + + + MAC_ADDRESS + MAC Adresse + + + NOT_CHECKED + Nicht geprüft...]]> + + + ACTIVE_DEVICE + Aktives Gerät]]> + + + WAKE_UP_ACTION + Aufwecken...]]> + + + REMOVE_ACTION + Entfernen... + + + WINPOPUP_ACTION + WinPopup... + + + NO_CONNECTED_COMPUTERS + Es gibt keine verbundenen Computer + + + REMOVE_DHCP_LEASE_TITLE + Entferne alle DHCP Leases + + + REMOVE_DHCP_LEASE_WARNING + Das Entfernen aller Einträge aus dhcp.leases kann Probleme hervorrufen]]> + + + REMOVE_DHCP_LEASE_WARNING2 + Die Lease Datei ist eine log-strukturierte Datei - wann immer eine Lease sich ändert, wird der Inhalt dieses Leases an das Ende der Datei geschrieben. Das bedeutet, daß es möglich ist, daß gleichzeitig zwei oder mehr Einträge desselben Leases in der Datei stehen. In diesem Fall ist die letzte Instanz des Leases in der Datei diejenige, die verwendet wird. + + + SUCCESSFULLY_REMOVED_ALL_LEASES + Erfolgreich alle Leases gelöscht.]]> + + + REMOVE_ALL_LEASES_ACTION + Entferne alle dhcp Leases + + + SCANNING_NETWORK_TITLE + Scanne Ihr Netzwerk, die erforderliche Zeit hängt von der Subnetzmaske ab + + + NETWORK_VALUES_FOUND + Bitte warten... Ihr Subnetz und Netwerkmaske sind anscheinend: + + + ERROR_WHILE_REMOVING_ALL_LEASES + Fehler beim Entfernen aller dhcp Leases]]> + + + ERROR_WHILE_SAVING_SETTINGS + Fehler beim Speichern der Einstellungen]]> + + diff --git a/root/etc/e-smith/locale/el/etc/e-smith/web/functions/dhcpd b/root/etc/e-smith/locale/el/etc/e-smith/web/functions/dhcpd new file mode 100644 index 0000000..b41e746 --- /dev/null +++ b/root/etc/e-smith/locale/el/etc/e-smith/web/functions/dhcpd @@ -0,0 +1,335 @@ + + + DHCP manager + DHCP Manager + + + DHCPD_TITLE + DHCP Manager + + + DHCPD_SETTINGS_TITLE + Settings of the DHCP server + + + CONNECTED_IP + Show DHCP Clients + + + SCAN_YOUR_NETWORK + Scan your network + + + GLOBAL_WINPOPUP + Send Global Netsend WinPopup + + + CHECK_CLIENT_STATUS + Always check the status of computers (Disabled is much faster) + + + SHOW_CONNECTED_IP_TITLE + Show all devices connected to the dhcp server : + + + SCAN_YOUR_NETWORK_TITLE + Scan your network to show active devices : + + + GLOBAL_WINPOPUP_TITLE + Send a global WinPopup with the Net send protocol + + + STATUS_DHCP_SERVER + State of DHCPD + + + DHCP_START + DHCP Start + + + DHCP_END + DHCP End + + + CUSTOM_WINSERVER_TITLE + Enable a WINS Server. + + + CUSTOM_WINSERVER_STATUS + WINS Server + + + CUSTOM_WINSERVER_ADDRESS + WINS Server address + + + CUSTOM_DNS_TITLE + Enable custom DNS servers. + + + CUSTOM_DNS_STATUS + Custom DNS + + + PRIMARY_DNS_ADDRESS + Primary DNS + + + SECONDARY_DNS_ADDRESS + Secondary DNS + + + TERTIARY_DNS_ADDRESS + Tertiary DNS + + + CUSTOM_GATEWAY_TITLE + Enable a custom gateway address. + + + CUSTOM_GATEWAY_STATUS + Custom gateway + + + CUSTOM_GATEWAY_ADDRESS + Gateway address + + + CUSTOM_LEASETIME_TITLE + Set the lease time (default is 86400 seconds). + + + CUSTOM_LEASETIME + Custom lease time + + + SAVE_TITLE + After changing settings above, you must save and restart dhcpd. + + + SAVE/RESTART + Save/Restart + + + DHCPD_SETTING_ERRORS + DHCPd Settings ERRORS + + + DHCP_START_GREATER_DHCP_END_ERRORS + Incorrect range of IPs, the DHCP Start is greater than the DHCP End , Update unsuccessfull]]> + + + CLICK_HERE_TO_MAIN_PANEL + Click Here to return to the main panel]]> + + + DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP + Incorrect range of IPs, the range of IP address allocation must not include the server address, Update unsuccessfull]]> + + + DHCP_RANGE_WITH_BAD_IP + Incorrect IP in the DHCP range, Update unsuccessfull]]> + + + WINSSERVER_BAD_IP + Incorrect IP for WINS Server, Update unsuccessfull]]> + + + DNS_SERVER_WITH_BAD_IP + Incorrect IP for DNS servers, Update unsuccessfull]]> + + + GATEWAY_BAD_IP + Incorrect IP for Gateway, Update unsuccessfull]]> + + + SUCCESSFULLY_SAVED_SETTINGS + Successfully saved settings]]> + + + REMOVE_A_DHCP_LEASE_TITLE + Removing a DHCP Lease + + + REMOVE_A_DHCP_LEASE + Remove an entry in dhcpd.leases + + + ARE_YOU_SURE + are you sure ? + + + REMOVE_A_DHCP_LEASE_ACTION + You are about to remove a client from the dhcpd.leases file. + + + SUCCESSFULLY_DELETED_THE_CLIENT + Successfully deleted in dhcpd.leases the client : ]]> + + + WAKING_A_REMOTE_COMPUTER_TITLE + Waking Up a remote computer + + + WAKING_A_REMOTE_COMPUTER + You are about to wake up a remote computer. + + + WAKING_A_REMOTE_COMPUTER_ACTION + Are you sure you want to wake on lan the client : + + + + WAKE_UP + Wake UP + + + REMOVE + Διαγραφή + + + SUCCESSFULLY_CLIENT_WOL_REQUEST + Successfully request to wake up the client. The computer may take time to wake up.]]> + + + ALL_OF_THEM + All of them + + + SENDING_A_WINPOPUP + Sending a WinPopup + + + SENDING_A_WINPOPUP_TO + You are about to send a WinPopup to + + + YOUR_MESSAGE + Το μήνυμα σας + + + WRITE_YOUR_MESSAGE + Write your message here + + + DO_YOU_WANT_TO_SENT + Do you want to send this message to + + + SEND_WINPOPUP_TO + Send a WinPopup to + + + SUCCESSFULLY_SENT_MESSAGE + Successfully sent message popup to]]> + + + WARNING_NO_WINPOPUP_GARANTY + Warning, there is no garanty that the popup will appear on the remote computer.]]> + + + MANAGING_DHCP_CLIENT + Managing DHCP clients + + + STATUS_REPORT + Operation status report : + + + REFRESH_CONNECTED_IP_LIST + You may want to refresh this list ? + + + REFRESH + Refresh the list + + + CLEAN_ALL_DHCPLEASES + You may want to clean the dhcp.leases + + + REMOVE_ALL_LEASES + Remove all leases + + + NETWORK_NAME + Network Name + + + STATUS_CLICK_FOR_WOL + Status - click for WOL + + + START_DATE + Start Date + + + END_DATE + End Date + + + MAC_ADDRESS + MAC Address + + + NOT_CHECKED + Not Checked...]]> + + + ACTIVE_DEVICE + Active Device]]> + + + WAKE_UP_ACTION + Wake-Up...]]> + + + REMOVE_ACTION + Remove... + + + WINPOPUP_ACTION + WinPopup... + + + NO_CONNECTED_COMPUTERS + There are no connected computers + + + REMOVE_DHCP_LEASE_TITLE + Removing all DHCP Lease + + + REMOVE_DHCP_LEASE_WARNING + Remove all entries in dhcpd.leases may cause issues]]> + + + REMOVE_DHCP_LEASE_WARNING2 + The lease file is a log-structured file - whenever a lease changes, the contents of that lease are written to the end of the file. This means that it is entirely possible for there to be two or more declarations of the same lease in the lease file at the same time. In that case, the instance of that particular lease that appears last in the file is the one that is in effect. + + + SUCCESSFULLY_REMOVED_ALL_LEASES + Successfully deleted all leases.]]> + + + REMOVE_ALL_LEASES_ACTION + Remove all dhcp leases + + + SCANNING_NETWORK_TITLE + Scanning your network, the time needed depends of your subnet mask + + + NETWORK_VALUES_FOUND + Please wait .... Your subnet and your netmask appear to be : + + + ERROR_WHILE_REMOVING_ALL_LEASES + Error while removing all dhcp Leases]]> + + + ERROR_WHILE_SAVING_SETTINGS + Error while saving settings]]> + + diff --git a/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/dhcpd b/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/dhcpd new file mode 100644 index 0000000..275cf98 --- /dev/null +++ b/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/dhcpd @@ -0,0 +1,340 @@ + + + DHCP manager + DHCP Manager + + + DHCPD_TITLE + DHCP Manager + + + DHCPD_SETTINGS_TITLE + Settings of the DHCP server + + + CONNECTED_IP + Show DHCP Clients + + + SCAN_YOUR_NETWORK + Scan your network + + + GLOBAL_WINPOPUP + Send Global Netsend WinPopup + + + CHECK_CLIENT_STATUS + Always check the status of computers (Disabled is much faster) + + + SHOW_CONNECTED_IP_TITLE + Show all devices connected to the dhcp server : + + + SCAN_YOUR_NETWORK_TITLE + Scan your network to show active devices : + + + GLOBAL_WINPOPUP_TITLE + Send a global WinPopup with the Net send protocol + + + STATUS_DHCP_SERVER + State of DHCPD + + + DHCP_START + DHCP Start + + + DHCP_END + DHCP End + + + CUSTOM_WINSERVER_TITLE + Enable a WINS Server. + + + CUSTOM_WINSERVER_STATUS + WINS Server + + + CUSTOM_WINSERVER_ADDRESS + WINS Server address + + + CUSTOM_DNS_TITLE + Enable custom DNS servers. + + + CUSTOM_DNS_STATUS + Custom DNS + + + PRIMARY_DNS_ADDRESS + Primary DNS + + + SECONDARY_DNS_ADDRESS + Secondary DNS + + + TERTIARY_DNS_ADDRESS + Tertiary DNS + + + CUSTOM_GATEWAY_TITLE + Enable a custom gateway address. + + + CUSTOM_GATEWAY_STATUS + Custom gateway + + + CUSTOM_GATEWAY_ADDRESS + Gateway address + + + CUSTOM_LEASETIME_TITLE + Set the lease time (default is 86400 seconds). + + + CUSTOM_LEASETIME + Custom lease time + + + SAVE_TITLE + After changing settings above, you must save and restart dhcpd. + + + SAVE/RESTART + Save/Restart + + + DHCPD_SETTING_ERRORS + DHCPd Settings ERRORS + + + DHCP_START_GREATER_DHCP_END_ERRORS + Incorrect range of IPs, the DHCP Start is greater than the DHCP End , Update unsuccessfull]]> + + + CLICK_HERE_TO_MAIN_PANEL + Click Here to return to the main panel]]> + + + DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP + Incorrect range of IPs, the range of IP address allocation must not include the server address, Update unsuccessfull]]> + + + DHCP_RANGE_WITH_BAD_IP + Incorrect IP in the DHCP range, Update unsuccessfull]]> + + + WINSSERVER_BAD_IP + Incorrect IP for WINS Server, Update unsuccessfull]]> + + + DNS_SERVER_WITH_BAD_IP + Incorrect IP for DNS servers, Update unsuccessfull]]> + + + GATEWAY_BAD_IP + Incorrect IP for Gateway, Update unsuccessfull]]> + + + SUCCESSFULLY_SAVED_SETTINGS + Successfully saved settings]]> + + + REMOVE_A_DHCP_LEASE_TITLE + Removing a DHCP Lease + + + REMOVE_A_DHCP_LEASE + Remove an entry in dhcpd.leases + + + ARE_YOU_SURE + are you sure ? + + + REMOVE_A_DHCP_LEASE_ACTION + You are about to remove a client from the dhcpd.leases file. + + + SUCCESSFULLY_DELETED_THE_CLIENT + Successfully deleted in dhcpd.leases the client : ]]> + + + WAKING_A_REMOTE_COMPUTER_TITLE + Waking Up a remote computer + + + WAKING_A_REMOTE_COMPUTER + You are about to wake up a remote computer. + + + WAKING_A_REMOTE_COMPUTER_ACTION + Are you sure you want to wake on lan the client : + + + + WAKE_UP + Wake UP + + + REMOVE + Remove + + + SUCCESSFULLY_CLIENT_WOL_REQUEST + Successfully request to wake up the client. The computer may take time to wake up.]]> + + + ALL_OF_THEM + All of them + + + SENDING_A_WINPOPUP + Sending a WinPopup + + + SENDING_A_WINPOPUP_TO + You are about to send a WinPopup to + + + YOUR_MESSAGE + Your message + + + WRITE_YOUR_MESSAGE + Write your message here + + + DO_YOU_WANT_TO_SENT + Do you want to send this message to + + + SEND_WINPOPUP_TO + Send a WinPopup to + + + SUCCESSFULLY_SENT_MESSAGE + Successfully sent message popup to]]> + + + WARNING_NO_WINPOPUP_GARANTY + Warning, there is no garanty that the popup will appear on the remote computer.]]> + + + MANAGING_DHCP_CLIENT + Managing DHCP clients + + + STATUS_REPORT + Operation status report : + + + REFRESH_CONNECTED_IP_LIST + You may want to refresh this list ? + + + REFRESH + Refresh the list + + + CLEAN_ALL_DHCPLEASES + You may want to clean the dhcp.leases + + + REMOVE_ALL_LEASES + Remove all leases + + + NETWORK_NAME + Network Name + + + STATUS_CLICK_FOR_WOL + Status - click for WOL + + + START_DATE + Start Date + + + END_DATE + End Date + + + MAC_ADDRESS + MAC Address + + + NOT_CHECKED + Not Checked...]]> + + + ACTIVE_DEVICE + Active Device]]> + + + WAKE_UP_ACTION + Wake-Up...]]> + + + REMOVE_ACTION + Remove... + + + WINPOPUP_ACTION + WinPopup... + + + NO_CONNECTED_COMPUTERS + There are no connected computers + + + REMOVE_DHCP_LEASE_TITLE + Removing all DHCP Lease + + + REMOVE_DHCP_LEASE_WARNING + Remove all entries in dhcpd.leases may cause issues]]> + + + REMOVE_DHCP_LEASE_WARNING2 + The lease file is a log-structured file - whenever a lease changes, the + contents of that lease are written to the end of the file. This means that it is entirely possible for there to be two + or more declarations of the same lease in the lease file at the same + time. In that case, the instance of that particular lease that + appears last in the file is the one that is in effect. + + + SUCCESSFULLY_REMOVED_ALL_LEASES + Successfully deleted all leases.]]> + + + REMOVE_ALL_LEASES_ACTION + Remove all dhcp leases + + + SCANNING_NETWORK_TITLE + Scanning your network, the time needed depends of your subnet mask + + + NETWORK_VALUES_FOUND + Please wait .... Your subnet and your netmask appear to be : + + + ERROR_WHILE_REMOVING_ALL_LEASES + Error while removing all dhcp Leases]]> + + + ERROR_WHILE_SAVING_SETTINGS + Error while saving settings]]> + + + diff --git a/root/etc/e-smith/locale/es/etc/e-smith/web/functions/dhcpd b/root/etc/e-smith/locale/es/etc/e-smith/web/functions/dhcpd new file mode 100644 index 0000000..917c282 --- /dev/null +++ b/root/etc/e-smith/locale/es/etc/e-smith/web/functions/dhcpd @@ -0,0 +1,335 @@ + + + DHCP manager + DHCP Manager + + + DHCPD_TITLE + DHCP Manager + + + DHCPD_SETTINGS_TITLE + Settings of the DHCP server + + + CONNECTED_IP + Show DHCP Clients + + + SCAN_YOUR_NETWORK + Scan your network + + + GLOBAL_WINPOPUP + Send Global Netsend WinPopup + + + CHECK_CLIENT_STATUS + Always check the status of computers (Disabled is much faster) + + + SHOW_CONNECTED_IP_TITLE + Show all devices connected to the dhcp server : + + + SCAN_YOUR_NETWORK_TITLE + Scan your network to show active devices : + + + GLOBAL_WINPOPUP_TITLE + Send a global WinPopup with the Net send protocol + + + STATUS_DHCP_SERVER + State of DHCPD + + + DHCP_START + DHCP Start + + + DHCP_END + DHCP End + + + CUSTOM_WINSERVER_TITLE + Enable a WINS Server. + + + CUSTOM_WINSERVER_STATUS + WINS Server + + + CUSTOM_WINSERVER_ADDRESS + WINS Server address + + + CUSTOM_DNS_TITLE + Enable custom DNS servers. + + + CUSTOM_DNS_STATUS + Custom DNS + + + PRIMARY_DNS_ADDRESS + Primary DNS + + + SECONDARY_DNS_ADDRESS + Secondary DNS + + + TERTIARY_DNS_ADDRESS + Tertiary DNS + + + CUSTOM_GATEWAY_TITLE + Enable a custom gateway address. + + + CUSTOM_GATEWAY_STATUS + Custom gateway + + + CUSTOM_GATEWAY_ADDRESS + Gateway address + + + CUSTOM_LEASETIME_TITLE + Set the lease time (default is 86400 seconds). + + + CUSTOM_LEASETIME + Custom lease time + + + SAVE_TITLE + After changing settings above, you must save and restart dhcpd. + + + SAVE/RESTART + Save/Restart + + + DHCPD_SETTING_ERRORS + DHCPd Settings ERRORS + + + DHCP_START_GREATER_DHCP_END_ERRORS + Incorrect range of IPs, the DHCP Start is greater than the DHCP End , Update unsuccessfull]]> + + + CLICK_HERE_TO_MAIN_PANEL + Click Here to return to the main panel]]> + + + DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP + Incorrect range of IPs, the range of IP address allocation must not include the server address, Update unsuccessfull]]> + + + DHCP_RANGE_WITH_BAD_IP + Incorrect IP in the DHCP range, Update unsuccessfull]]> + + + WINSSERVER_BAD_IP + Incorrect IP for WINS Server, Update unsuccessfull]]> + + + DNS_SERVER_WITH_BAD_IP + Incorrect IP for DNS servers, Update unsuccessfull]]> + + + GATEWAY_BAD_IP + Incorrect IP for Gateway, Update unsuccessfull]]> + + + SUCCESSFULLY_SAVED_SETTINGS + Successfully saved settings]]> + + + REMOVE_A_DHCP_LEASE_TITLE + Removing a DHCP Lease + + + REMOVE_A_DHCP_LEASE + Remove an entry in dhcpd.leases + + + ARE_YOU_SURE + are you sure ? + + + REMOVE_A_DHCP_LEASE_ACTION + You are about to remove a client from the dhcpd.leases file. + + + SUCCESSFULLY_DELETED_THE_CLIENT + Successfully deleted in dhcpd.leases the client : ]]> + + + WAKING_A_REMOTE_COMPUTER_TITLE + Waking Up a remote computer + + + WAKING_A_REMOTE_COMPUTER + You are about to wake up a remote computer. + + + WAKING_A_REMOTE_COMPUTER_ACTION + Are you sure you want to wake on lan the client : + + + + WAKE_UP + Wake UP + + + REMOVE + Eliminar + + + SUCCESSFULLY_CLIENT_WOL_REQUEST + Successfully request to wake up the client. The computer may take time to wake up.]]> + + + ALL_OF_THEM + All of them + + + SENDING_A_WINPOPUP + Sending a WinPopup + + + SENDING_A_WINPOPUP_TO + You are about to send a WinPopup to + + + YOUR_MESSAGE + Mensaje + + + WRITE_YOUR_MESSAGE + Write your message here + + + DO_YOU_WANT_TO_SENT + Do you want to send this message to + + + SEND_WINPOPUP_TO + Send a WinPopup to + + + SUCCESSFULLY_SENT_MESSAGE + Successfully sent message popup to]]> + + + WARNING_NO_WINPOPUP_GARANTY + Warning, there is no garanty that the popup will appear on the remote computer.]]> + + + MANAGING_DHCP_CLIENT + Managing DHCP clients + + + STATUS_REPORT + Operation status report : + + + REFRESH_CONNECTED_IP_LIST + You may want to refresh this list ? + + + REFRESH + Refresh the list + + + CLEAN_ALL_DHCPLEASES + You may want to clean the dhcp.leases + + + REMOVE_ALL_LEASES + Remove all leases + + + NETWORK_NAME + Network Name + + + STATUS_CLICK_FOR_WOL + Status - click for WOL + + + START_DATE + Start Date + + + END_DATE + End Date + + + MAC_ADDRESS + MAC Address + + + NOT_CHECKED + Not Checked...]]> + + + ACTIVE_DEVICE + Active Device]]> + + + WAKE_UP_ACTION + Wake-Up...]]> + + + REMOVE_ACTION + Remove... + + + WINPOPUP_ACTION + WinPopup... + + + NO_CONNECTED_COMPUTERS + There are no connected computers + + + REMOVE_DHCP_LEASE_TITLE + Removing all DHCP Lease + + + REMOVE_DHCP_LEASE_WARNING + Remove all entries in dhcpd.leases may cause issues]]> + + + REMOVE_DHCP_LEASE_WARNING2 + The lease file is a log-structured file - whenever a lease changes, the contents of that lease are written to the end of the file. This means that it is entirely possible for there to be two or more declarations of the same lease in the lease file at the same time. In that case, the instance of that particular lease that appears last in the file is the one that is in effect. + + + SUCCESSFULLY_REMOVED_ALL_LEASES + Successfully deleted all leases.]]> + + + REMOVE_ALL_LEASES_ACTION + Remove all dhcp leases + + + SCANNING_NETWORK_TITLE + Scanning your network, the time needed depends of your subnet mask + + + NETWORK_VALUES_FOUND + Please wait .... Your subnet and your netmask appear to be : + + + ERROR_WHILE_REMOVING_ALL_LEASES + Error while removing all dhcp Leases]]> + + + ERROR_WHILE_SAVING_SETTINGS + Error while saving settings]]> + + diff --git a/root/etc/e-smith/locale/et/etc/e-smith/web/functions/dhcpd b/root/etc/e-smith/locale/et/etc/e-smith/web/functions/dhcpd new file mode 100644 index 0000000..44b1ed8 --- /dev/null +++ b/root/etc/e-smith/locale/et/etc/e-smith/web/functions/dhcpd @@ -0,0 +1,335 @@ + + + DHCP manager + DHCP Manager + + + DHCPD_TITLE + DHCP Manager + + + DHCPD_SETTINGS_TITLE + Settings of the DHCP server + + + CONNECTED_IP + Show DHCP Clients + + + SCAN_YOUR_NETWORK + Scan your network + + + GLOBAL_WINPOPUP + Send Global Netsend WinPopup + + + CHECK_CLIENT_STATUS + Always check the status of computers (Disabled is much faster) + + + SHOW_CONNECTED_IP_TITLE + Show all devices connected to the dhcp server : + + + SCAN_YOUR_NETWORK_TITLE + Scan your network to show active devices : + + + GLOBAL_WINPOPUP_TITLE + Send a global WinPopup with the Net send protocol + + + STATUS_DHCP_SERVER + State of DHCPD + + + DHCP_START + DHCP Start + + + DHCP_END + DHCP End + + + CUSTOM_WINSERVER_TITLE + Enable a WINS Server. + + + CUSTOM_WINSERVER_STATUS + WINS Server + + + CUSTOM_WINSERVER_ADDRESS + WINS Server address + + + CUSTOM_DNS_TITLE + Enable custom DNS servers. + + + CUSTOM_DNS_STATUS + Custom DNS + + + PRIMARY_DNS_ADDRESS + Primary DNS + + + SECONDARY_DNS_ADDRESS + Secondary DNS + + + TERTIARY_DNS_ADDRESS + Tertiary DNS + + + CUSTOM_GATEWAY_TITLE + Enable a custom gateway address. + + + CUSTOM_GATEWAY_STATUS + Custom gateway + + + CUSTOM_GATEWAY_ADDRESS + Gateway address + + + CUSTOM_LEASETIME_TITLE + Set the lease time (default is 86400 seconds). + + + CUSTOM_LEASETIME + Custom lease time + + + SAVE_TITLE + After changing settings above, you must save and restart dhcpd. + + + SAVE/RESTART + Save/Restart + + + DHCPD_SETTING_ERRORS + DHCPd Settings ERRORS + + + DHCP_START_GREATER_DHCP_END_ERRORS + Incorrect range of IPs, the DHCP Start is greater than the DHCP End , Update unsuccessfull]]> + + + CLICK_HERE_TO_MAIN_PANEL + Click Here to return to the main panel]]> + + + DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP + Incorrect range of IPs, the range of IP address allocation must not include the server address, Update unsuccessfull]]> + + + DHCP_RANGE_WITH_BAD_IP + Incorrect IP in the DHCP range, Update unsuccessfull]]> + + + WINSSERVER_BAD_IP + Incorrect IP for WINS Server, Update unsuccessfull]]> + + + DNS_SERVER_WITH_BAD_IP + Incorrect IP for DNS servers, Update unsuccessfull]]> + + + GATEWAY_BAD_IP + Incorrect IP for Gateway, Update unsuccessfull]]> + + + SUCCESSFULLY_SAVED_SETTINGS + Successfully saved settings]]> + + + REMOVE_A_DHCP_LEASE_TITLE + Removing a DHCP Lease + + + REMOVE_A_DHCP_LEASE + Remove an entry in dhcpd.leases + + + ARE_YOU_SURE + are you sure ? + + + REMOVE_A_DHCP_LEASE_ACTION + You are about to remove a client from the dhcpd.leases file. + + + SUCCESSFULLY_DELETED_THE_CLIENT + Successfully deleted in dhcpd.leases the client : ]]> + + + WAKING_A_REMOTE_COMPUTER_TITLE + Waking Up a remote computer + + + WAKING_A_REMOTE_COMPUTER + You are about to wake up a remote computer. + + + WAKING_A_REMOTE_COMPUTER_ACTION + Are you sure you want to wake on lan the client : + + + + WAKE_UP + Wake UP + + + REMOVE + Eemalda + + + SUCCESSFULLY_CLIENT_WOL_REQUEST + Successfully request to wake up the client. The computer may take time to wake up.]]> + + + ALL_OF_THEM + All of them + + + SENDING_A_WINPOPUP + Sending a WinPopup + + + SENDING_A_WINPOPUP_TO + You are about to send a WinPopup to + + + YOUR_MESSAGE + Your message + + + WRITE_YOUR_MESSAGE + Write your message here + + + DO_YOU_WANT_TO_SENT + Do you want to send this message to + + + SEND_WINPOPUP_TO + Send a WinPopup to + + + SUCCESSFULLY_SENT_MESSAGE + Successfully sent message popup to]]> + + + WARNING_NO_WINPOPUP_GARANTY + Warning, there is no garanty that the popup will appear on the remote computer.]]> + + + MANAGING_DHCP_CLIENT + Managing DHCP clients + + + STATUS_REPORT + Operation status report : + + + REFRESH_CONNECTED_IP_LIST + You may want to refresh this list ? + + + REFRESH + Refresh the list + + + CLEAN_ALL_DHCPLEASES + You may want to clean the dhcp.leases + + + REMOVE_ALL_LEASES + Remove all leases + + + NETWORK_NAME + Network Name + + + STATUS_CLICK_FOR_WOL + Status - click for WOL + + + START_DATE + Start Date + + + END_DATE + End Date + + + MAC_ADDRESS + MAC Address + + + NOT_CHECKED + Not Checked...]]> + + + ACTIVE_DEVICE + Active Device]]> + + + WAKE_UP_ACTION + Wake-Up...]]> + + + REMOVE_ACTION + Remove... + + + WINPOPUP_ACTION + WinPopup... + + + NO_CONNECTED_COMPUTERS + There are no connected computers + + + REMOVE_DHCP_LEASE_TITLE + Removing all DHCP Lease + + + REMOVE_DHCP_LEASE_WARNING + Remove all entries in dhcpd.leases may cause issues]]> + + + REMOVE_DHCP_LEASE_WARNING2 + The lease file is a log-structured file - whenever a lease changes, the contents of that lease are written to the end of the file. This means that it is entirely possible for there to be two or more declarations of the same lease in the lease file at the same time. In that case, the instance of that particular lease that appears last in the file is the one that is in effect. + + + SUCCESSFULLY_REMOVED_ALL_LEASES + Successfully deleted all leases.]]> + + + REMOVE_ALL_LEASES_ACTION + Remove all dhcp leases + + + SCANNING_NETWORK_TITLE + Scanning your network, the time needed depends of your subnet mask + + + NETWORK_VALUES_FOUND + Please wait .... Your subnet and your netmask appear to be : + + + ERROR_WHILE_REMOVING_ALL_LEASES + Error while removing all dhcp Leases]]> + + + ERROR_WHILE_SAVING_SETTINGS + Error while saving settings]]> + + diff --git a/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/dhcpd b/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/dhcpd new file mode 100644 index 0000000..65c5432 --- /dev/null +++ b/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/dhcpd @@ -0,0 +1,335 @@ + + + DHCP manager + Gestionnaire du DHCP + + + DHCPD_TITLE + Gestionnaire du DHCP + + + DHCPD_SETTINGS_TITLE + Paramètres du serveur DHCP + + + CONNECTED_IP + Voir les clients DHCP + + + SCAN_YOUR_NETWORK + Scanner votre réseau + + + GLOBAL_WINPOPUP + Envoyer un message Netsend à tout le monde + + + CHECK_CLIENT_STATUS + Toujours vérifier le status des ordinateurs (désactivé est beaucoup plus rapide) + + + SHOW_CONNECTED_IP_TITLE + Montrer tous les périphériques connectés aux serveur dhcp : + + + SCAN_YOUR_NETWORK_TITLE + Scanner votre réseaux pour montrer les périphériques actifs : + + + GLOBAL_WINPOPUP_TITLE + Envoyer un message avec le protocole Netsend + + + STATUS_DHCP_SERVER + Etat de DHCPD + + + DHCP_START + Début de DHCP + + + DHCP_END + Fin de DHCP + + + CUSTOM_WINSERVER_TITLE + Activer un serveur Wins + + + CUSTOM_WINSERVER_STATUS + Serveur WINS + + + CUSTOM_WINSERVER_ADDRESS + Adresse du serveur WINS + + + CUSTOM_DNS_TITLE + Activer des serveurs DNS personnalisés + + + CUSTOM_DNS_STATUS + DNS personnalisés + + + PRIMARY_DNS_ADDRESS + Premier DNS + + + SECONDARY_DNS_ADDRESS + Second DNS + + + TERTIARY_DNS_ADDRESS + Troisième DNS + + + CUSTOM_GATEWAY_TITLE + Activer une passerelle personnalisée + + + CUSTOM_GATEWAY_STATUS + passerelle personnalisée + + + CUSTOM_GATEWAY_ADDRESS + adresse de la passerelle + + + CUSTOM_LEASETIME_TITLE + Définir la durée du bail (par défaut à 86400 secondes). + + + CUSTOM_LEASETIME + durée du bail dhcp + + + SAVE_TITLE + Après avoir changé les réglages, vous devez les sauvez et redémarrer dhcpd + + + SAVE/RESTART + Enregister/redémarrer + + + DHCPD_SETTING_ERRORS + Erreurs de paramètres de DHCPD + + + DHCP_START_GREATER_DHCP_END_ERRORS + La plage d'IP est incorrecte. L'adresse IP du début est supérieure à celle de la fin de la plage, Echec de la mise à jour]]> + + + CLICK_HERE_TO_MAIN_PANEL + Cliquez ici pour retournez au menu principal]]> + + + DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP + La plage d'IP est incorrecte, La plage d'IP ne peut pas inclure l'adresse du serveur, Echec de la mise à jour]]> + + + DHCP_RANGE_WITH_BAD_IP + Adresse incorrecte dans la plage d'IP, Echec de la mise à jour]]> + + + WINSSERVER_BAD_IP + Adresse IP incorrecte pour le serveur WINS, Echec de la mise à jour]]> + + + DNS_SERVER_WITH_BAD_IP + Adresse IP incorrecte pour les serveurs DNS, Echec de la mise à jour]]> + + + GATEWAY_BAD_IP + Adresse IP incorrecte pour la passerelle, Echec de la mise à jour]]> + + + SUCCESSFULLY_SAVED_SETTINGS + Paramètres enregistrés avec succès]]> + + + REMOVE_A_DHCP_LEASE_TITLE + Effacer un bail DHCP + + + REMOVE_A_DHCP_LEASE + Retirer un bail dhcp dans le dhcpd.leases + + + ARE_YOU_SURE + Etes vous sure ? + + + REMOVE_A_DHCP_LEASE_ACTION + Vous êtes sur le point de retirer un client du dhcpd.leases. + + + SUCCESSFULLY_DELETED_THE_CLIENT + Le client a été retiré avec succès du dhcpd.leases : ]]> + + + WAKING_A_REMOTE_COMPUTER_TITLE + Réveiller un ordinateur distant. + + + WAKING_A_REMOTE_COMPUTER + Vous êtes sur le point de réveiller un ordinateur distant. + + + WAKING_A_REMOTE_COMPUTER_ACTION + Êtes-vous sûr de vouloir réveiller le client par le réseau : + + + + WAKE_UP + Réveille toi + + + REMOVE + Supprimer + + + SUCCESSFULLY_CLIENT_WOL_REQUEST + Demande de réveil du client réussie. L'ordinateur peut prendre du temps pour se réveiller.]]> + + + ALL_OF_THEM + à tout le monde + + + SENDING_A_WINPOPUP + Envoyer un message + + + SENDING_A_WINPOPUP_TO + Vous êtes sur le point d'envoyer un message à + + + YOUR_MESSAGE + Votre message + + + WRITE_YOUR_MESSAGE + Écrivez votre message ici + + + DO_YOU_WANT_TO_SENT + Voulez vous envoyer votre message à + + + SEND_WINPOPUP_TO + envoyer un message WinPopup à + + + SUCCESSFULLY_SENT_MESSAGE + Envoi avec succès du message à]]> + + + WARNING_NO_WINPOPUP_GARANTY + Attention. Vous n'avez aucune garantie que le message sera affiché sur l'ordinateur distant]]> + + + MANAGING_DHCP_CLIENT + Gérer les clients DHCP + + + STATUS_REPORT + Rapport du statut de l’opération : + + + REFRESH_CONNECTED_IP_LIST + Vous souhaitez actualiser cette liste ? + + + REFRESH + Rafraichir la liste + + + CLEAN_ALL_DHCPLEASES + Vous pourriez vouloir nettoyer le dhcpd.leases + + + REMOVE_ALL_LEASES + Effacer tous les baux + + + NETWORK_NAME + Nom du réseau + + + STATUS_CLICK_FOR_WOL + Statut - cliquer pour wol + + + START_DATE + Date de début + + + END_DATE + Date de fin + + + MAC_ADDRESS + Adresse Mac + + + NOT_CHECKED + Non Vérifié...]]> + + + ACTIVE_DEVICE + Périphérique actif]]> + + + WAKE_UP_ACTION + Réveille toi...]]> + + + REMOVE_ACTION + Effacer... + + + WINPOPUP_ACTION + Message... + + + NO_CONNECTED_COMPUTERS + Il n'y a pas d'ordinateurs connectés + + + REMOVE_DHCP_LEASE_TITLE + Effacer tous les baux DHCP + + + REMOVE_DHCP_LEASE_WARNING + Effacer tous les baux du dhcpd.lease peut causer de sérieux problèmes]]> + + + REMOVE_DHCP_LEASE_WARNING2 + Le fichier de bail dhcp est un fichier journal structuré. A chaque fois qu'un bail change, le contenu de ce bail est écrit à la fin du fichier. Cela signifie qu'il est tout à fait possible qu'il y ait deux ou plusieurs déclarations du même bail dans le fichier en même temps. Dans ce cas, le bail qui apparaît le dernier dans le fichier est celui qui est utilisé. + + + SUCCESSFULLY_REMOVED_ALL_LEASES + Le dhcpd.lease a été effacé avec succès.]]> + + + REMOVE_ALL_LEASES_ACTION + Effacer tous les baux dhcp + + + SCANNING_NETWORK_TITLE + En train de scanner votre réseau. Le temps nécessaire dépend du masque de sous-réseau. + + + NETWORK_VALUES_FOUND + Attendez s'il vous plaît... Votre réseau et votre masque de sous-réseau semble être : + + + ERROR_WHILE_REMOVING_ALL_LEASES + Erreur pendant la suppression du dhcpd.lease]]> + + + ERROR_WHILE_SAVING_SETTINGS + Erreur pendant l'enregistrement des paramètres]]> + + diff --git a/root/etc/e-smith/locale/he/etc/e-smith/web/functions/dhcpd b/root/etc/e-smith/locale/he/etc/e-smith/web/functions/dhcpd new file mode 100644 index 0000000..69a5696 --- /dev/null +++ b/root/etc/e-smith/locale/he/etc/e-smith/web/functions/dhcpd @@ -0,0 +1,335 @@ + + + DHCP manager + DHCP Manager + + + DHCPD_TITLE + DHCP Manager + + + DHCPD_SETTINGS_TITLE + Settings of the DHCP server + + + CONNECTED_IP + Show DHCP Clients + + + SCAN_YOUR_NETWORK + Scan your network + + + GLOBAL_WINPOPUP + Send Global Netsend WinPopup + + + CHECK_CLIENT_STATUS + Always check the status of computers (Disabled is much faster) + + + SHOW_CONNECTED_IP_TITLE + Show all devices connected to the dhcp server : + + + SCAN_YOUR_NETWORK_TITLE + Scan your network to show active devices : + + + GLOBAL_WINPOPUP_TITLE + Send a global WinPopup with the Net send protocol + + + STATUS_DHCP_SERVER + State of DHCPD + + + DHCP_START + DHCP Start + + + DHCP_END + DHCP End + + + CUSTOM_WINSERVER_TITLE + Enable a WINS Server. + + + CUSTOM_WINSERVER_STATUS + WINS Server + + + CUSTOM_WINSERVER_ADDRESS + WINS Server address + + + CUSTOM_DNS_TITLE + Enable custom DNS servers. + + + CUSTOM_DNS_STATUS + Custom DNS + + + PRIMARY_DNS_ADDRESS + Primary DNS + + + SECONDARY_DNS_ADDRESS + Secondary DNS + + + TERTIARY_DNS_ADDRESS + Tertiary DNS + + + CUSTOM_GATEWAY_TITLE + Enable a custom gateway address. + + + CUSTOM_GATEWAY_STATUS + Custom gateway + + + CUSTOM_GATEWAY_ADDRESS + Gateway address + + + CUSTOM_LEASETIME_TITLE + Set the lease time (default is 86400 seconds). + + + CUSTOM_LEASETIME + Custom lease time + + + SAVE_TITLE + After changing settings above, you must save and restart dhcpd. + + + SAVE/RESTART + Save/Restart + + + DHCPD_SETTING_ERRORS + DHCPd Settings ERRORS + + + DHCP_START_GREATER_DHCP_END_ERRORS + Incorrect range of IPs, the DHCP Start is greater than the DHCP End , Update unsuccessfull]]> + + + CLICK_HERE_TO_MAIN_PANEL + Click Here to return to the main panel]]> + + + DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP + Incorrect range of IPs, the range of IP address allocation must not include the server address, Update unsuccessfull]]> + + + DHCP_RANGE_WITH_BAD_IP + Incorrect IP in the DHCP range, Update unsuccessfull]]> + + + WINSSERVER_BAD_IP + Incorrect IP for WINS Server, Update unsuccessfull]]> + + + DNS_SERVER_WITH_BAD_IP + Incorrect IP for DNS servers, Update unsuccessfull]]> + + + GATEWAY_BAD_IP + Incorrect IP for Gateway, Update unsuccessfull]]> + + + SUCCESSFULLY_SAVED_SETTINGS + Successfully saved settings]]> + + + REMOVE_A_DHCP_LEASE_TITLE + Removing a DHCP Lease + + + REMOVE_A_DHCP_LEASE + Remove an entry in dhcpd.leases + + + ARE_YOU_SURE + are you sure ? + + + REMOVE_A_DHCP_LEASE_ACTION + You are about to remove a client from the dhcpd.leases file. + + + SUCCESSFULLY_DELETED_THE_CLIENT + Successfully deleted in dhcpd.leases the client : ]]> + + + WAKING_A_REMOTE_COMPUTER_TITLE + Waking Up a remote computer + + + WAKING_A_REMOTE_COMPUTER + You are about to wake up a remote computer. + + + WAKING_A_REMOTE_COMPUTER_ACTION + Are you sure you want to wake on lan the client : + + + + WAKE_UP + Wake UP + + + REMOVE + הסרה + + + SUCCESSFULLY_CLIENT_WOL_REQUEST + Successfully request to wake up the client. The computer may take time to wake up.]]> + + + ALL_OF_THEM + All of them + + + SENDING_A_WINPOPUP + Sending a WinPopup + + + SENDING_A_WINPOPUP_TO + You are about to send a WinPopup to + + + YOUR_MESSAGE + Your message + + + WRITE_YOUR_MESSAGE + Write your message here + + + DO_YOU_WANT_TO_SENT + Do you want to send this message to + + + SEND_WINPOPUP_TO + Send a WinPopup to + + + SUCCESSFULLY_SENT_MESSAGE + Successfully sent message popup to]]> + + + WARNING_NO_WINPOPUP_GARANTY + Warning, there is no garanty that the popup will appear on the remote computer.]]> + + + MANAGING_DHCP_CLIENT + Managing DHCP clients + + + STATUS_REPORT + Operation status report : + + + REFRESH_CONNECTED_IP_LIST + You may want to refresh this list ? + + + REFRESH + Refresh the list + + + CLEAN_ALL_DHCPLEASES + You may want to clean the dhcp.leases + + + REMOVE_ALL_LEASES + Remove all leases + + + NETWORK_NAME + Network Name + + + STATUS_CLICK_FOR_WOL + Status - click for WOL + + + START_DATE + Start Date + + + END_DATE + End Date + + + MAC_ADDRESS + MAC Address + + + NOT_CHECKED + Not Checked...]]> + + + ACTIVE_DEVICE + Active Device]]> + + + WAKE_UP_ACTION + Wake-Up...]]> + + + REMOVE_ACTION + Remove... + + + WINPOPUP_ACTION + WinPopup... + + + NO_CONNECTED_COMPUTERS + There are no connected computers + + + REMOVE_DHCP_LEASE_TITLE + Removing all DHCP Lease + + + REMOVE_DHCP_LEASE_WARNING + Remove all entries in dhcpd.leases may cause issues]]> + + + REMOVE_DHCP_LEASE_WARNING2 + The lease file is a log-structured file - whenever a lease changes, the contents of that lease are written to the end of the file. This means that it is entirely possible for there to be two or more declarations of the same lease in the lease file at the same time. In that case, the instance of that particular lease that appears last in the file is the one that is in effect. + + + SUCCESSFULLY_REMOVED_ALL_LEASES + Successfully deleted all leases.]]> + + + REMOVE_ALL_LEASES_ACTION + Remove all dhcp leases + + + SCANNING_NETWORK_TITLE + Scanning your network, the time needed depends of your subnet mask + + + NETWORK_VALUES_FOUND + Please wait .... Your subnet and your netmask appear to be : + + + ERROR_WHILE_REMOVING_ALL_LEASES + Error while removing all dhcp Leases]]> + + + ERROR_WHILE_SAVING_SETTINGS + Error while saving settings]]> + + diff --git a/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/dhcpd b/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/dhcpd new file mode 100644 index 0000000..e27c3f6 --- /dev/null +++ b/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/dhcpd @@ -0,0 +1,335 @@ + + + DHCP manager + DHCP Manager + + + DHCPD_TITLE + DHCP Manager + + + DHCPD_SETTINGS_TITLE + Settings of the DHCP server + + + CONNECTED_IP + Show DHCP Clients + + + SCAN_YOUR_NETWORK + Scan your network + + + GLOBAL_WINPOPUP + Send Global Netsend WinPopup + + + CHECK_CLIENT_STATUS + Always check the status of computers (Disabled is much faster) + + + SHOW_CONNECTED_IP_TITLE + Show all devices connected to the dhcp server : + + + SCAN_YOUR_NETWORK_TITLE + Scan your network to show active devices : + + + GLOBAL_WINPOPUP_TITLE + Send a global WinPopup with the Net send protocol + + + STATUS_DHCP_SERVER + State of DHCPD + + + DHCP_START + DHCP Start + + + DHCP_END + DHCP End + + + CUSTOM_WINSERVER_TITLE + Enable a WINS Server. + + + CUSTOM_WINSERVER_STATUS + WINS Server + + + CUSTOM_WINSERVER_ADDRESS + WINS Server address + + + CUSTOM_DNS_TITLE + Enable custom DNS servers. + + + CUSTOM_DNS_STATUS + Custom DNS + + + PRIMARY_DNS_ADDRESS + Primary DNS + + + SECONDARY_DNS_ADDRESS + Secondary DNS + + + TERTIARY_DNS_ADDRESS + Tertiary DNS + + + CUSTOM_GATEWAY_TITLE + Enable a custom gateway address. + + + CUSTOM_GATEWAY_STATUS + Custom gateway + + + CUSTOM_GATEWAY_ADDRESS + Gateway address + + + CUSTOM_LEASETIME_TITLE + Set the lease time (default is 86400 seconds). + + + CUSTOM_LEASETIME + Custom lease time + + + SAVE_TITLE + After changing settings above, you must save and restart dhcpd. + + + SAVE/RESTART + Save/Restart + + + DHCPD_SETTING_ERRORS + DHCPd Settings ERRORS + + + DHCP_START_GREATER_DHCP_END_ERRORS + Incorrect range of IPs, the DHCP Start is greater than the DHCP End , Update unsuccessfull]]> + + + CLICK_HERE_TO_MAIN_PANEL + Click Here to return to the main panel]]> + + + DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP + Incorrect range of IPs, the range of IP address allocation must not include the server address, Update unsuccessfull]]> + + + DHCP_RANGE_WITH_BAD_IP + Incorrect IP in the DHCP range, Update unsuccessfull]]> + + + WINSSERVER_BAD_IP + Incorrect IP for WINS Server, Update unsuccessfull]]> + + + DNS_SERVER_WITH_BAD_IP + Incorrect IP for DNS servers, Update unsuccessfull]]> + + + GATEWAY_BAD_IP + Incorrect IP for Gateway, Update unsuccessfull]]> + + + SUCCESSFULLY_SAVED_SETTINGS + Successfully saved settings]]> + + + REMOVE_A_DHCP_LEASE_TITLE + Removing a DHCP Lease + + + REMOVE_A_DHCP_LEASE + Remove an entry in dhcpd.leases + + + ARE_YOU_SURE + are you sure ? + + + REMOVE_A_DHCP_LEASE_ACTION + You are about to remove a client from the dhcpd.leases file. + + + SUCCESSFULLY_DELETED_THE_CLIENT + Successfully deleted in dhcpd.leases the client : ]]> + + + WAKING_A_REMOTE_COMPUTER_TITLE + Waking Up a remote computer + + + WAKING_A_REMOTE_COMPUTER + You are about to wake up a remote computer. + + + WAKING_A_REMOTE_COMPUTER_ACTION + Are you sure you want to wake on lan the client : + + + + WAKE_UP + Wake UP + + + REMOVE + Eltávolít + + + SUCCESSFULLY_CLIENT_WOL_REQUEST + Successfully request to wake up the client. The computer may take time to wake up.]]> + + + ALL_OF_THEM + All of them + + + SENDING_A_WINPOPUP + Sending a WinPopup + + + SENDING_A_WINPOPUP_TO + You are about to send a WinPopup to + + + YOUR_MESSAGE + Az Ön üzenete + + + WRITE_YOUR_MESSAGE + Write your message here + + + DO_YOU_WANT_TO_SENT + Do you want to send this message to + + + SEND_WINPOPUP_TO + Send a WinPopup to + + + SUCCESSFULLY_SENT_MESSAGE + Successfully sent message popup to]]> + + + WARNING_NO_WINPOPUP_GARANTY + Warning, there is no garanty that the popup will appear on the remote computer.]]> + + + MANAGING_DHCP_CLIENT + Managing DHCP clients + + + STATUS_REPORT + Operation status report : + + + REFRESH_CONNECTED_IP_LIST + You may want to refresh this list ? + + + REFRESH + Refresh the list + + + CLEAN_ALL_DHCPLEASES + You may want to clean the dhcp.leases + + + REMOVE_ALL_LEASES + Remove all leases + + + NETWORK_NAME + Network Name + + + STATUS_CLICK_FOR_WOL + Status - click for WOL + + + START_DATE + Start Date + + + END_DATE + End Date + + + MAC_ADDRESS + MAC Address + + + NOT_CHECKED + Not Checked...]]> + + + ACTIVE_DEVICE + Active Device]]> + + + WAKE_UP_ACTION + Wake-Up...]]> + + + REMOVE_ACTION + Remove... + + + WINPOPUP_ACTION + WinPopup... + + + NO_CONNECTED_COMPUTERS + There are no connected computers + + + REMOVE_DHCP_LEASE_TITLE + Removing all DHCP Lease + + + REMOVE_DHCP_LEASE_WARNING + Remove all entries in dhcpd.leases may cause issues]]> + + + REMOVE_DHCP_LEASE_WARNING2 + The lease file is a log-structured file - whenever a lease changes, the contents of that lease are written to the end of the file. This means that it is entirely possible for there to be two or more declarations of the same lease in the lease file at the same time. In that case, the instance of that particular lease that appears last in the file is the one that is in effect. + + + SUCCESSFULLY_REMOVED_ALL_LEASES + Successfully deleted all leases.]]> + + + REMOVE_ALL_LEASES_ACTION + Remove all dhcp leases + + + SCANNING_NETWORK_TITLE + Scanning your network, the time needed depends of your subnet mask + + + NETWORK_VALUES_FOUND + Please wait .... Your subnet and your netmask appear to be : + + + ERROR_WHILE_REMOVING_ALL_LEASES + Error while removing all dhcp Leases]]> + + + ERROR_WHILE_SAVING_SETTINGS + Error while saving settings]]> + + diff --git a/root/etc/e-smith/locale/id/etc/e-smith/web/functions/dhcpd b/root/etc/e-smith/locale/id/etc/e-smith/web/functions/dhcpd new file mode 100644 index 0000000..4522e04 --- /dev/null +++ b/root/etc/e-smith/locale/id/etc/e-smith/web/functions/dhcpd @@ -0,0 +1,335 @@ + + + DHCP manager + DHCP Manager + + + DHCPD_TITLE + DHCP Manager + + + DHCPD_SETTINGS_TITLE + Settings of the DHCP server + + + CONNECTED_IP + Show DHCP Clients + + + SCAN_YOUR_NETWORK + Scan your network + + + GLOBAL_WINPOPUP + Send Global Netsend WinPopup + + + CHECK_CLIENT_STATUS + Always check the status of computers (Disabled is much faster) + + + SHOW_CONNECTED_IP_TITLE + Show all devices connected to the dhcp server : + + + SCAN_YOUR_NETWORK_TITLE + Scan your network to show active devices : + + + GLOBAL_WINPOPUP_TITLE + Send a global WinPopup with the Net send protocol + + + STATUS_DHCP_SERVER + State of DHCPD + + + DHCP_START + DHCP Start + + + DHCP_END + DHCP End + + + CUSTOM_WINSERVER_TITLE + Enable a WINS Server. + + + CUSTOM_WINSERVER_STATUS + WINS Server + + + CUSTOM_WINSERVER_ADDRESS + WINS Server address + + + CUSTOM_DNS_TITLE + Enable custom DNS servers. + + + CUSTOM_DNS_STATUS + Custom DNS + + + PRIMARY_DNS_ADDRESS + Primary DNS + + + SECONDARY_DNS_ADDRESS + Secondary DNS + + + TERTIARY_DNS_ADDRESS + Tertiary DNS + + + CUSTOM_GATEWAY_TITLE + Enable a custom gateway address. + + + CUSTOM_GATEWAY_STATUS + Custom gateway + + + CUSTOM_GATEWAY_ADDRESS + Gateway address + + + CUSTOM_LEASETIME_TITLE + Set the lease time (default is 86400 seconds). + + + CUSTOM_LEASETIME + Custom lease time + + + SAVE_TITLE + After changing settings above, you must save and restart dhcpd. + + + SAVE/RESTART + Save/Restart + + + DHCPD_SETTING_ERRORS + DHCPd Settings ERRORS + + + DHCP_START_GREATER_DHCP_END_ERRORS + Incorrect range of IPs, the DHCP Start is greater than the DHCP End , Update unsuccessfull]]> + + + CLICK_HERE_TO_MAIN_PANEL + Click Here to return to the main panel]]> + + + DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP + Incorrect range of IPs, the range of IP address allocation must not include the server address, Update unsuccessfull]]> + + + DHCP_RANGE_WITH_BAD_IP + Incorrect IP in the DHCP range, Update unsuccessfull]]> + + + WINSSERVER_BAD_IP + Incorrect IP for WINS Server, Update unsuccessfull]]> + + + DNS_SERVER_WITH_BAD_IP + Incorrect IP for DNS servers, Update unsuccessfull]]> + + + GATEWAY_BAD_IP + Incorrect IP for Gateway, Update unsuccessfull]]> + + + SUCCESSFULLY_SAVED_SETTINGS + Successfully saved settings]]> + + + REMOVE_A_DHCP_LEASE_TITLE + Removing a DHCP Lease + + + REMOVE_A_DHCP_LEASE + Remove an entry in dhcpd.leases + + + ARE_YOU_SURE + are you sure ? + + + REMOVE_A_DHCP_LEASE_ACTION + You are about to remove a client from the dhcpd.leases file. + + + SUCCESSFULLY_DELETED_THE_CLIENT + Successfully deleted in dhcpd.leases the client : ]]> + + + WAKING_A_REMOTE_COMPUTER_TITLE + Waking Up a remote computer + + + WAKING_A_REMOTE_COMPUTER + You are about to wake up a remote computer. + + + WAKING_A_REMOTE_COMPUTER_ACTION + Are you sure you want to wake on lan the client : + + + + WAKE_UP + Wake UP + + + REMOVE + Hapus + + + SUCCESSFULLY_CLIENT_WOL_REQUEST + Successfully request to wake up the client. The computer may take time to wake up.]]> + + + ALL_OF_THEM + All of them + + + SENDING_A_WINPOPUP + Sending a WinPopup + + + SENDING_A_WINPOPUP_TO + You are about to send a WinPopup to + + + YOUR_MESSAGE + Your message + + + WRITE_YOUR_MESSAGE + Write your message here + + + DO_YOU_WANT_TO_SENT + Do you want to send this message to + + + SEND_WINPOPUP_TO + Send a WinPopup to + + + SUCCESSFULLY_SENT_MESSAGE + Successfully sent message popup to]]> + + + WARNING_NO_WINPOPUP_GARANTY + Warning, there is no garanty that the popup will appear on the remote computer.]]> + + + MANAGING_DHCP_CLIENT + Managing DHCP clients + + + STATUS_REPORT + Operation status report : + + + REFRESH_CONNECTED_IP_LIST + You may want to refresh this list ? + + + REFRESH + Refresh the list + + + CLEAN_ALL_DHCPLEASES + You may want to clean the dhcp.leases + + + REMOVE_ALL_LEASES + Remove all leases + + + NETWORK_NAME + Network Name + + + STATUS_CLICK_FOR_WOL + Status - click for WOL + + + START_DATE + Start Date + + + END_DATE + End Date + + + MAC_ADDRESS + MAC Address + + + NOT_CHECKED + Not Checked...]]> + + + ACTIVE_DEVICE + Active Device]]> + + + WAKE_UP_ACTION + Wake-Up...]]> + + + REMOVE_ACTION + Remove... + + + WINPOPUP_ACTION + WinPopup... + + + NO_CONNECTED_COMPUTERS + There are no connected computers + + + REMOVE_DHCP_LEASE_TITLE + Removing all DHCP Lease + + + REMOVE_DHCP_LEASE_WARNING + Remove all entries in dhcpd.leases may cause issues]]> + + + REMOVE_DHCP_LEASE_WARNING2 + The lease file is a log-structured file - whenever a lease changes, the contents of that lease are written to the end of the file. This means that it is entirely possible for there to be two or more declarations of the same lease in the lease file at the same time. In that case, the instance of that particular lease that appears last in the file is the one that is in effect. + + + SUCCESSFULLY_REMOVED_ALL_LEASES + Successfully deleted all leases.]]> + + + REMOVE_ALL_LEASES_ACTION + Remove all dhcp leases + + + SCANNING_NETWORK_TITLE + Scanning your network, the time needed depends of your subnet mask + + + NETWORK_VALUES_FOUND + Please wait .... Your subnet and your netmask appear to be : + + + ERROR_WHILE_REMOVING_ALL_LEASES + Error while removing all dhcp Leases]]> + + + ERROR_WHILE_SAVING_SETTINGS + Error while saving settings]]> + + diff --git a/root/etc/e-smith/locale/it/etc/e-smith/web/functions/dhcpd b/root/etc/e-smith/locale/it/etc/e-smith/web/functions/dhcpd new file mode 100644 index 0000000..6bd10db --- /dev/null +++ b/root/etc/e-smith/locale/it/etc/e-smith/web/functions/dhcpd @@ -0,0 +1,335 @@ + + + DHCP manager + DHCP Manager + + + DHCPD_TITLE + DHCP Manager + + + DHCPD_SETTINGS_TITLE + Impostazioni del server DHCP + + + CONNECTED_IP + Mostra i client DHCP + + + SCAN_YOUR_NETWORK + Analisi della rete + + + GLOBAL_WINPOPUP + Invio di un messaggio WinPopup a tutti i client + + + CHECK_CLIENT_STATUS + Controlla sempre lo stato dei computer (Disabilitato rende molto più veloce le operazioni) + + + SHOW_CONNECTED_IP_TITLE + Mostra tutti i device collegati al server dhcp. + + + SCAN_YOUR_NETWORK_TITLE + Esame della rete per mostrare i device attivi: + + + GLOBAL_WINPOPUP_TITLE + Inviare un messaggio WinPopup globale con il protocollo 'net send' + + + STATUS_DHCP_SERVER + Stato del servizio DHCPD + + + DHCP_START + Indirizzo IP iniziale + + + DHCP_END + Indirizzo IP finale + + + CUSTOM_WINSERVER_TITLE + Abilita server WINS + + + CUSTOM_WINSERVER_STATUS + Server WINS + + + CUSTOM_WINSERVER_ADDRESS + Indirizzo server WINS + + + CUSTOM_DNS_TITLE + Abilita server DNS personalizzato. + + + CUSTOM_DNS_STATUS + DNS personalizzato + + + PRIMARY_DNS_ADDRESS + DNS primario + + + SECONDARY_DNS_ADDRESS + DNS secondario + + + TERTIARY_DNS_ADDRESS + DNS terziario + + + CUSTOM_GATEWAY_TITLE + Abilita un gateway personalizzato. + + + CUSTOM_GATEWAY_STATUS + Gateway personalizzato + + + CUSTOM_GATEWAY_ADDRESS + Indirizzo del Gateway + + + CUSTOM_LEASETIME_TITLE + Imposta la durata del lease (default 86400 secondi). + + + CUSTOM_LEASETIME + Lease time personalizzato + + + SAVE_TITLE + Dopo aver modificato i parametri soprastanti, è necessario salvare e riavviare dhcpd. + + + SAVE/RESTART + Salva/Riavvia + + + DHCPD_SETTING_ERRORS + ERRORI nelle impostazioni di DHCPd + + + DHCP_START_GREATER_DHCP_END_ERRORS + Intervallo di indirizzi IP errato, il valore di inizio dell'intervallo è maggiore di quello di fine; Aggiornamento non eseguito]]> + + + CLICK_HERE_TO_MAIN_PANEL + Click qui per tornare al pannello principale]]> + + + DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP + Intervallo di indirizzi IP errato; l'intervallo non può contenere l'indirizzo IP del server. Aggiornamento non eseguito]]> + + + DHCP_RANGE_WITH_BAD_IP + Indirizzo IP errato nell'intervallo di indirizzi DHCP; Aggiornamento non eseguito]]> + + + WINSSERVER_BAD_IP + Indirizzo IP del Server WINS errato; aggiornamento non eseguito]]> + + + DNS_SERVER_WITH_BAD_IP + Indirizzo IP del Server DNS errato; aggiornamento non eseguito]]> + + + GATEWAY_BAD_IP + Indirizzo IP del Gateway non corretto; aggiornamento non eseguito]]> + + + SUCCESSFULLY_SAVED_SETTINGS + Impostazioni salvate con successo]]> + + + REMOVE_A_DHCP_LEASE_TITLE + Rimuovi una lease DHCP + + + REMOVE_A_DHCP_LEASE + Elimina una entry dal file dhcpd.leases + + + ARE_YOU_SURE + Sei sicuro ? + + + REMOVE_A_DHCP_LEASE_ACTION + Si sta per rimuovere un client dal file dhcpd.leases. + + + SUCCESSFULLY_DELETED_THE_CLIENT + Eliminato con successo dal file dhcpd.leases il client:]]> + + + WAKING_A_REMOTE_COMPUTER_TITLE + Attivazione di un computer remoto (Wake On Lan) + + + WAKING_A_REMOTE_COMPUTER + Si sta per attivare un computer remoto. + + + WAKING_A_REMOTE_COMPUTER_ACTION + Sei sicuro di voler effettuare il wake on lan del client: + + + + WAKE_UP + Attiva + + + REMOVE + Rimuovi + + + SUCCESSFULLY_CLIENT_WOL_REQUEST + Richiesta di attivazione remota inviata con successo al client. Il computer remoto può necessitare di tempo per la attivazione.]]> + + + ALL_OF_THEM + Tutti + + + SENDING_A_WINPOPUP + Invio di un messaggio WinPopup + + + SENDING_A_WINPOPUP_TO + Si sta per inviare un messaggio WinPopup a + + + YOUR_MESSAGE + Il tuo messaggio + + + WRITE_YOUR_MESSAGE + Scrivi il tuo messaggio qui + + + DO_YOU_WANT_TO_SENT + Si vuole inviare questo messaggio a + + + SEND_WINPOPUP_TO + Invia un messaggio WinPopup a + + + SUCCESSFULLY_SENT_MESSAGE + Messaggio popup inviato con successo a ]]> + + + WARNING_NO_WINPOPUP_GARANTY + Attenzione, non c'è garanzia che il popup apparirà sul pc remoto. ]]> + + + MANAGING_DHCP_CLIENT + Gestione dei client in DHCP + + + STATUS_REPORT + Report di stato dell'operazione: + + + REFRESH_CONNECTED_IP_LIST + Si vuole aggiornare questa lista? + + + REFRESH + Aggiorna la lista + + + CLEAN_ALL_DHCPLEASES + Si consiglia di pulire il file dhcp.leases + + + REMOVE_ALL_LEASES + Rimuovi tutte le lease + + + NETWORK_NAME + Nome di rete + + + STATUS_CLICK_FOR_WOL + Stato - Clicca per il WOL + + + START_DATE + Data iniziale + + + END_DATE + Data finale + + + MAC_ADDRESS + MAC Address + + + NOT_CHECKED + Non verificato...]]> + + + ACTIVE_DEVICE + Device attivo]]> + + + WAKE_UP_ACTION + Attiva WOL...]]> + + + REMOVE_ACTION + Rimuovi.. + + + WINPOPUP_ACTION + WinPopup... + + + NO_CONNECTED_COMPUTERS + Non ci sono computer connessi + + + REMOVE_DHCP_LEASE_TITLE + Rimozione di tutti i lease DHCP. + + + REMOVE_DHCP_LEASE_WARNING + La rimozione di tutti i record in dhcpd.leases può causare dei problemi]]> + + + REMOVE_DHCP_LEASE_WARNING2 + Il file di lease è strutturato come un file di log; ogni qual volta cambia l'assegnazione di un IP questa viene scritta alla fine del file. Ciò significa che è possibile che nel file di lease si trovino contemporaneamente due o più assegnazioni dello stesso lease. In quel caso l'ultima assegnazione che compare nel file è quella da considerare valida. + + + SUCCESSFULLY_REMOVED_ALL_LEASES + Cancellati con successo tutti i lease.]]> + + + REMOVE_ALL_LEASES_ACTION + Rimuovi tutti i lease dhcp. + + + SCANNING_NETWORK_TITLE + Scansione della rete, il tempo occorrente dipende dalla subnet mask. + + + NETWORK_VALUES_FOUND + Prego attendere ..... la tua subnet e la tua netmask paiono essere: + + + ERROR_WHILE_REMOVING_ALL_LEASES + Errore eliminando tutti i lease dhcp]]> + + + ERROR_WHILE_SAVING_SETTINGS + Errore salvando le impostazioni]]> + + diff --git a/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/dhcpd b/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/dhcpd new file mode 100644 index 0000000..1367e9e --- /dev/null +++ b/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/dhcpd @@ -0,0 +1,335 @@ + + + DHCP manager + DHCP Manager + + + DHCPD_TITLE + DHCP Manager + + + DHCPD_SETTINGS_TITLE + Settings of the DHCP server + + + CONNECTED_IP + Show DHCP Clients + + + SCAN_YOUR_NETWORK + Scan your network + + + GLOBAL_WINPOPUP + Send Global Netsend WinPopup + + + CHECK_CLIENT_STATUS + Always check the status of computers (Disabled is much faster) + + + SHOW_CONNECTED_IP_TITLE + Show all devices connected to the dhcp server : + + + SCAN_YOUR_NETWORK_TITLE + Scan your network to show active devices : + + + GLOBAL_WINPOPUP_TITLE + Send a global WinPopup with the Net send protocol + + + STATUS_DHCP_SERVER + State of DHCPD + + + DHCP_START + DHCP Start + + + DHCP_END + DHCP End + + + CUSTOM_WINSERVER_TITLE + Enable a WINS Server. + + + CUSTOM_WINSERVER_STATUS + WINS Server + + + CUSTOM_WINSERVER_ADDRESS + WINS Server address + + + CUSTOM_DNS_TITLE + Enable custom DNS servers. + + + CUSTOM_DNS_STATUS + Custom DNS + + + PRIMARY_DNS_ADDRESS + Primary DNS + + + SECONDARY_DNS_ADDRESS + Secondary DNS + + + TERTIARY_DNS_ADDRESS + Tertiary DNS + + + CUSTOM_GATEWAY_TITLE + Enable a custom gateway address. + + + CUSTOM_GATEWAY_STATUS + Custom gateway + + + CUSTOM_GATEWAY_ADDRESS + Gateway address + + + CUSTOM_LEASETIME_TITLE + Set the lease time (default is 86400 seconds). + + + CUSTOM_LEASETIME + Custom lease time + + + SAVE_TITLE + After changing settings above, you must save and restart dhcpd. + + + SAVE/RESTART + Save/Restart + + + DHCPD_SETTING_ERRORS + DHCPd Settings ERRORS + + + DHCP_START_GREATER_DHCP_END_ERRORS + Incorrect range of IPs, the DHCP Start is greater than the DHCP End , Update unsuccessfull]]> + + + CLICK_HERE_TO_MAIN_PANEL + Click Here to return to the main panel]]> + + + DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP + Incorrect range of IPs, the range of IP address allocation must not include the server address, Update unsuccessfull]]> + + + DHCP_RANGE_WITH_BAD_IP + Incorrect IP in the DHCP range, Update unsuccessfull]]> + + + WINSSERVER_BAD_IP + Incorrect IP for WINS Server, Update unsuccessfull]]> + + + DNS_SERVER_WITH_BAD_IP + Incorrect IP for DNS servers, Update unsuccessfull]]> + + + GATEWAY_BAD_IP + Incorrect IP for Gateway, Update unsuccessfull]]> + + + SUCCESSFULLY_SAVED_SETTINGS + Successfully saved settings]]> + + + REMOVE_A_DHCP_LEASE_TITLE + Removing a DHCP Lease + + + REMOVE_A_DHCP_LEASE + Remove an entry in dhcpd.leases + + + ARE_YOU_SURE + are you sure ? + + + REMOVE_A_DHCP_LEASE_ACTION + You are about to remove a client from the dhcpd.leases file. + + + SUCCESSFULLY_DELETED_THE_CLIENT + Successfully deleted in dhcpd.leases the client : ]]> + + + WAKING_A_REMOTE_COMPUTER_TITLE + Waking Up a remote computer + + + WAKING_A_REMOTE_COMPUTER + You are about to wake up a remote computer. + + + WAKING_A_REMOTE_COMPUTER_ACTION + Are you sure you want to wake on lan the client : + + + + WAKE_UP + Wake UP + + + REMOVE + 削除 + + + SUCCESSFULLY_CLIENT_WOL_REQUEST + Successfully request to wake up the client. The computer may take time to wake up.]]> + + + ALL_OF_THEM + All of them + + + SENDING_A_WINPOPUP + Sending a WinPopup + + + SENDING_A_WINPOPUP_TO + You are about to send a WinPopup to + + + YOUR_MESSAGE + メッセージ + + + WRITE_YOUR_MESSAGE + Write your message here + + + DO_YOU_WANT_TO_SENT + Do you want to send this message to + + + SEND_WINPOPUP_TO + Send a WinPopup to + + + SUCCESSFULLY_SENT_MESSAGE + Successfully sent message popup to]]> + + + WARNING_NO_WINPOPUP_GARANTY + Warning, there is no garanty that the popup will appear on the remote computer.]]> + + + MANAGING_DHCP_CLIENT + Managing DHCP clients + + + STATUS_REPORT + Operation status report : + + + REFRESH_CONNECTED_IP_LIST + You may want to refresh this list ? + + + REFRESH + Refresh the list + + + CLEAN_ALL_DHCPLEASES + You may want to clean the dhcp.leases + + + REMOVE_ALL_LEASES + Remove all leases + + + NETWORK_NAME + Network Name + + + STATUS_CLICK_FOR_WOL + Status - click for WOL + + + START_DATE + Start Date + + + END_DATE + End Date + + + MAC_ADDRESS + MAC Address + + + NOT_CHECKED + Not Checked...]]> + + + ACTIVE_DEVICE + Active Device]]> + + + WAKE_UP_ACTION + Wake-Up...]]> + + + REMOVE_ACTION + Remove... + + + WINPOPUP_ACTION + WinPopup... + + + NO_CONNECTED_COMPUTERS + There are no connected computers + + + REMOVE_DHCP_LEASE_TITLE + Removing all DHCP Lease + + + REMOVE_DHCP_LEASE_WARNING + Remove all entries in dhcpd.leases may cause issues]]> + + + REMOVE_DHCP_LEASE_WARNING2 + The lease file is a log-structured file - whenever a lease changes, the contents of that lease are written to the end of the file. This means that it is entirely possible for there to be two or more declarations of the same lease in the lease file at the same time. In that case, the instance of that particular lease that appears last in the file is the one that is in effect. + + + SUCCESSFULLY_REMOVED_ALL_LEASES + Successfully deleted all leases.]]> + + + REMOVE_ALL_LEASES_ACTION + Remove all dhcp leases + + + SCANNING_NETWORK_TITLE + Scanning your network, the time needed depends of your subnet mask + + + NETWORK_VALUES_FOUND + Please wait .... Your subnet and your netmask appear to be : + + + ERROR_WHILE_REMOVING_ALL_LEASES + Error while removing all dhcp Leases]]> + + + ERROR_WHILE_SAVING_SETTINGS + Error while saving settings]]> + + diff --git a/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/dhcpd b/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/dhcpd new file mode 100644 index 0000000..9222b0b --- /dev/null +++ b/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/dhcpd @@ -0,0 +1,335 @@ + + + DHCP manager + DHCP Manager + + + DHCPD_TITLE + DHCP Manager + + + DHCPD_SETTINGS_TITLE + Settings of the DHCP server + + + CONNECTED_IP + Show DHCP Clients + + + SCAN_YOUR_NETWORK + Scan your network + + + GLOBAL_WINPOPUP + Send Global Netsend WinPopup + + + CHECK_CLIENT_STATUS + Always check the status of computers (Disabled is much faster) + + + SHOW_CONNECTED_IP_TITLE + Show all devices connected to the dhcp server : + + + SCAN_YOUR_NETWORK_TITLE + Scan your network to show active devices : + + + GLOBAL_WINPOPUP_TITLE + Send a global WinPopup with the Net send protocol + + + STATUS_DHCP_SERVER + State of DHCPD + + + DHCP_START + DHCP Start + + + DHCP_END + DHCP End + + + CUSTOM_WINSERVER_TITLE + Enable a WINS Server. + + + CUSTOM_WINSERVER_STATUS + WINS Server + + + CUSTOM_WINSERVER_ADDRESS + WINS Server address + + + CUSTOM_DNS_TITLE + Enable custom DNS servers. + + + CUSTOM_DNS_STATUS + Custom DNS + + + PRIMARY_DNS_ADDRESS + Primary DNS + + + SECONDARY_DNS_ADDRESS + Secondary DNS + + + TERTIARY_DNS_ADDRESS + Tertiary DNS + + + CUSTOM_GATEWAY_TITLE + Enable a custom gateway address. + + + CUSTOM_GATEWAY_STATUS + Custom gateway + + + CUSTOM_GATEWAY_ADDRESS + Gateway address + + + CUSTOM_LEASETIME_TITLE + Set the lease time (default is 86400 seconds). + + + CUSTOM_LEASETIME + Custom lease time + + + SAVE_TITLE + After changing settings above, you must save and restart dhcpd. + + + SAVE/RESTART + Save/Restart + + + DHCPD_SETTING_ERRORS + DHCPd Settings ERRORS + + + DHCP_START_GREATER_DHCP_END_ERRORS + Incorrect range of IPs, the DHCP Start is greater than the DHCP End , Update unsuccessfull]]> + + + CLICK_HERE_TO_MAIN_PANEL + Click Here to return to the main panel]]> + + + DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP + Incorrect range of IPs, the range of IP address allocation must not include the server address, Update unsuccessfull]]> + + + DHCP_RANGE_WITH_BAD_IP + Incorrect IP in the DHCP range, Update unsuccessfull]]> + + + WINSSERVER_BAD_IP + Incorrect IP for WINS Server, Update unsuccessfull]]> + + + DNS_SERVER_WITH_BAD_IP + Incorrect IP for DNS servers, Update unsuccessfull]]> + + + GATEWAY_BAD_IP + Incorrect IP for Gateway, Update unsuccessfull]]> + + + SUCCESSFULLY_SAVED_SETTINGS + Successfully saved settings]]> + + + REMOVE_A_DHCP_LEASE_TITLE + Removing a DHCP Lease + + + REMOVE_A_DHCP_LEASE + Remove an entry in dhcpd.leases + + + ARE_YOU_SURE + are you sure ? + + + REMOVE_A_DHCP_LEASE_ACTION + You are about to remove a client from the dhcpd.leases file. + + + SUCCESSFULLY_DELETED_THE_CLIENT + Successfully deleted in dhcpd.leases the client : ]]> + + + WAKING_A_REMOTE_COMPUTER_TITLE + Waking Up a remote computer + + + WAKING_A_REMOTE_COMPUTER + You are about to wake up a remote computer. + + + WAKING_A_REMOTE_COMPUTER_ACTION + Are you sure you want to wake on lan the client : + + + + WAKE_UP + Wake UP + + + REMOVE + Fjern + + + SUCCESSFULLY_CLIENT_WOL_REQUEST + Successfully request to wake up the client. The computer may take time to wake up.]]> + + + ALL_OF_THEM + All of them + + + SENDING_A_WINPOPUP + Sending a WinPopup + + + SENDING_A_WINPOPUP_TO + You are about to send a WinPopup to + + + YOUR_MESSAGE + Melding + + + WRITE_YOUR_MESSAGE + Write your message here + + + DO_YOU_WANT_TO_SENT + Do you want to send this message to + + + SEND_WINPOPUP_TO + Send a WinPopup to + + + SUCCESSFULLY_SENT_MESSAGE + Successfully sent message popup to]]> + + + WARNING_NO_WINPOPUP_GARANTY + Warning, there is no garanty that the popup will appear on the remote computer.]]> + + + MANAGING_DHCP_CLIENT + Managing DHCP clients + + + STATUS_REPORT + Operation status report : + + + REFRESH_CONNECTED_IP_LIST + You may want to refresh this list ? + + + REFRESH + Refresh the list + + + CLEAN_ALL_DHCPLEASES + You may want to clean the dhcp.leases + + + REMOVE_ALL_LEASES + Remove all leases + + + NETWORK_NAME + Network Name + + + STATUS_CLICK_FOR_WOL + Status - click for WOL + + + START_DATE + Start Date + + + END_DATE + End Date + + + MAC_ADDRESS + MAC Address + + + NOT_CHECKED + Not Checked...]]> + + + ACTIVE_DEVICE + Active Device]]> + + + WAKE_UP_ACTION + Wake-Up...]]> + + + REMOVE_ACTION + Remove... + + + WINPOPUP_ACTION + WinPopup... + + + NO_CONNECTED_COMPUTERS + There are no connected computers + + + REMOVE_DHCP_LEASE_TITLE + Removing all DHCP Lease + + + REMOVE_DHCP_LEASE_WARNING + Remove all entries in dhcpd.leases may cause issues]]> + + + REMOVE_DHCP_LEASE_WARNING2 + The lease file is a log-structured file - whenever a lease changes, the contents of that lease are written to the end of the file. This means that it is entirely possible for there to be two or more declarations of the same lease in the lease file at the same time. In that case, the instance of that particular lease that appears last in the file is the one that is in effect. + + + SUCCESSFULLY_REMOVED_ALL_LEASES + Successfully deleted all leases.]]> + + + REMOVE_ALL_LEASES_ACTION + Remove all dhcp leases + + + SCANNING_NETWORK_TITLE + Scanning your network, the time needed depends of your subnet mask + + + NETWORK_VALUES_FOUND + Please wait .... Your subnet and your netmask appear to be : + + + ERROR_WHILE_REMOVING_ALL_LEASES + Error while removing all dhcp Leases]]> + + + ERROR_WHILE_SAVING_SETTINGS + Error while saving settings]]> + + diff --git a/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/dhcpd b/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/dhcpd new file mode 100644 index 0000000..5facd3e --- /dev/null +++ b/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/dhcpd @@ -0,0 +1,335 @@ + + + DHCP manager + DHCP beheer + + + DHCPD_TITLE + DHCP beheer + + + DHCPD_SETTINGS_TITLE + Instellingen van de DHCP server + + + CONNECTED_IP + Inzien van DHCP reserveringen + + + SCAN_YOUR_NETWORK + Scan het netwerk + + + GLOBAL_WINPOPUP + Stuur een globaal pop-up bericht + + + CHECK_CLIENT_STATUS + Altijd de status va de computers controleren (uitgeschakeld is sneller) + + + SHOW_CONNECTED_IP_TITLE + Alle systemen verbonden met de DHCP server inzien: + + + SCAN_YOUR_NETWORK_TITLE + Scan uw netwerk om actieve systemen te vinden: + + + GLOBAL_WINPOPUP_TITLE + Verzend een globaal pop-up bericht + + + STATUS_DHCP_SERVER + Status van uw DHCP dienst + + + DHCP_START + DHCP dienst starten + + + DHCP_END + DHCP dienst stoppen + + + CUSTOM_WINSERVER_TITLE + WINS dienst inschakelen + + + CUSTOM_WINSERVER_STATUS + WINS dienst + + + CUSTOM_WINSERVER_ADDRESS + Adres van uiw WINS server + + + CUSTOM_DNS_TITLE + Instellen van alternatieve DNS servers. + + + CUSTOM_DNS_STATUS + Alternatieve DNS + + + PRIMARY_DNS_ADDRESS + Primaire DNS + + + SECONDARY_DNS_ADDRESS + Secundaire DNS + + + TERTIARY_DNS_ADDRESS + Primaire DNS + + + CUSTOM_GATEWAY_TITLE + Voer een alternatieve gateway adres in + + + CUSTOM_GATEWAY_STATUS + Alternatieve gateway + + + CUSTOM_GATEWAY_ADDRESS + Gateway adres + + + CUSTOM_LEASETIME_TITLE + Stel de geldigheidsduur van de reservering in (standaard is 1 dag) + + + CUSTOM_LEASETIME + Aangepaste geldigheidsduur van de lease + + + SAVE_TITLE + Na wijziging van de instellingen moeten de insteliongen worden opgeslagen en de DHCP server herstart. + + + SAVE/RESTART + Opslaan/Herstarten + + + DHCPD_SETTING_ERRORS + DHCPd instellingen FOUTEN + + + DHCP_START_GREATER_DHCP_END_ERRORS + Ongelding bereik van IP nummers, de ondergrens is groter dan de bovengrens, update niet geslaagd]]> + + + CLICK_HERE_TO_MAIN_PANEL + Klik hier om terug te keren naar het hoofdmenu]]> + + + DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP + Ongelding bereik van IP adres, het IP adres van de server mag niet in het gekozen bereik vallen, update niet geslaagd.]]> + + + DHCP_RANGE_WITH_BAD_IP + Ongeldig IP adres opgegeven, update niet geslaagd]]> + + + WINSSERVER_BAD_IP + Ongeldig IP adres voor de WINS Server, update niet geslaagd]]> + + + DNS_SERVER_WITH_BAD_IP + Ongeldig IP adres voor DNS servers, update niet geslaagd]]> + + + GATEWAY_BAD_IP + Ongeldig IP adres voor de gateway, update niet geslaagd]]> + + + SUCCESSFULLY_SAVED_SETTINGS + Instellingen succesvol opgeslagen]]> + + + REMOVE_A_DHCP_LEASE_TITLE + Verwijder een DHCP reservering + + + REMOVE_A_DHCP_LEASE + Verwijder een invoer in dhcpd.leases + + + ARE_YOU_SURE + Weet je het zeker? + + + REMOVE_A_DHCP_LEASE_ACTION + U staat op het punt een reservering uit het bestand dhcpd.leases te verwijderen. + + + SUCCESSFULLY_DELETED_THE_CLIENT + Verwijderen van reservering in dhcpd.leases geslaagd: ]]> + + + WAKING_A_REMOTE_COMPUTER_TITLE + Ontwaak een computer op afstand + + + WAKING_A_REMOTE_COMPUTER + U staat op het punt een andere computer wakker te maken. + + + WAKING_A_REMOTE_COMPUTER_ACTION + Weet u zeker dat u het volgende systeem wilt wekken: + + + + WAKE_UP + Wek + + + REMOVE + Verwijderen + + + SUCCESSFULLY_CLIENT_WOL_REQUEST + Wekverzoek succesvol verstuurd. Het kan even duren voordat het systeem start.]]> + + + ALL_OF_THEM + Allemaal + + + SENDING_A_WINPOPUP + Stuur een pop-up bericht + + + SENDING_A_WINPOPUP_TO + U staat op het punt een pop-up bericht te versturen + + + YOUR_MESSAGE + Uw bericht + + + WRITE_YOUR_MESSAGE + Schrijf uw bericht + + + DO_YOU_WANT_TO_SENT + Wilt u dit bericht versturen naar + + + SEND_WINPOPUP_TO + Verstuur een pop-up naar + + + SUCCESSFULLY_SENT_MESSAGE + Versturen van pop-up geslaagd naar]]> + + + WARNING_NO_WINPOPUP_GARANTY + Waarschuwing, er is geen garantie dat het pop-up bericht ook zal verschijnen op de andere computer.]]> + + + MANAGING_DHCP_CLIENT + Beheer van DHCP reserveringen + + + STATUS_REPORT + Statusrapport: + + + REFRESH_CONNECTED_IP_LIST + Wilt u de lijst verversen? + + + REFRESH + Ververs de lijst + + + CLEAN_ALL_DHCPLEASES + Het is aan te raden het dhcpd.leases bestand op te schonen + + + REMOVE_ALL_LEASES + Verwijder alle reserveringen + + + NETWORK_NAME + Netwerk naam + + + STATUS_CLICK_FOR_WOL + Status - Klik om te wekken + + + START_DATE + Startdatum + + + END_DATE + Vervaldatum + + + MAC_ADDRESS + MAC adres + + + NOT_CHECKED + Niet gecontroleerd...]]> + + + ACTIVE_DEVICE + Actief systeem]]> + + + WAKE_UP_ACTION + Wek...]]> + + + REMOVE_ACTION + Verwijderen... + + + WINPOPUP_ACTION + Pop-up.... + + + NO_CONNECTED_COMPUTERS + Er zijn geen aangesloten systemen + + + REMOVE_DHCP_LEASE_TITLE + Verwijder alle DHCP reserveringen + + + REMOVE_DHCP_LEASE_WARNING + Verwijder alle reserveringen in dhcpd.leases kan problemen veroorzaken]]> + + + REMOVE_DHCP_LEASE_WARNING2 + Net bestand met reserveringen is een log-gestructureerd bestand - als een reservering wijzigd, wordt de wijziging toegevoegd aan het einde van het bestand. Daardoor is het mogelijk dat er meerdere declaraties voor de zelfde reservering in staan. In dat geval is de laatste waarde de geldige waarde. + + + SUCCESSFULLY_REMOVED_ALL_LEASES + Verwijderen van alle reserveringen geslaagd..]]> + + + REMOVE_ALL_LEASES_ACTION + Verwijdere alle reserveringen + + + SCANNING_NETWORK_TITLE + Doorzoeken van het netwerk, afhankelijk van uw subnet masker kan dit enige tijd kosten + + + NETWORK_VALUES_FOUND + Even geduld... uw subnet masker heeft de volgende waarde: + + + ERROR_WHILE_REMOVING_ALL_LEASES + Verwijderen van alle DHCP reserveringen niet geslaagd]]> + + + ERROR_WHILE_SAVING_SETTINGS + Er is een fout opgetreden bij het opslaan van de instellingen]]> + + diff --git a/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/dhcpd b/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/dhcpd new file mode 100644 index 0000000..1890184 --- /dev/null +++ b/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/dhcpd @@ -0,0 +1,335 @@ + + + DHCP manager + DHCP Manager + + + DHCPD_TITLE + DHCP Manager + + + DHCPD_SETTINGS_TITLE + Settings of the DHCP server + + + CONNECTED_IP + Show DHCP Clients + + + SCAN_YOUR_NETWORK + Scan your network + + + GLOBAL_WINPOPUP + Send Global Netsend WinPopup + + + CHECK_CLIENT_STATUS + Always check the status of computers (Disabled is much faster) + + + SHOW_CONNECTED_IP_TITLE + Show all devices connected to the dhcp server : + + + SCAN_YOUR_NETWORK_TITLE + Scan your network to show active devices : + + + GLOBAL_WINPOPUP_TITLE + Send a global WinPopup with the Net send protocol + + + STATUS_DHCP_SERVER + State of DHCPD + + + DHCP_START + DHCP Start + + + DHCP_END + DHCP End + + + CUSTOM_WINSERVER_TITLE + Enable a WINS Server. + + + CUSTOM_WINSERVER_STATUS + WINS Server + + + CUSTOM_WINSERVER_ADDRESS + WINS Server address + + + CUSTOM_DNS_TITLE + Enable custom DNS servers. + + + CUSTOM_DNS_STATUS + Custom DNS + + + PRIMARY_DNS_ADDRESS + Primary DNS + + + SECONDARY_DNS_ADDRESS + Secondary DNS + + + TERTIARY_DNS_ADDRESS + Tertiary DNS + + + CUSTOM_GATEWAY_TITLE + Enable a custom gateway address. + + + CUSTOM_GATEWAY_STATUS + Custom gateway + + + CUSTOM_GATEWAY_ADDRESS + Gateway address + + + CUSTOM_LEASETIME_TITLE + Set the lease time (default is 86400 seconds). + + + CUSTOM_LEASETIME + Custom lease time + + + SAVE_TITLE + After changing settings above, you must save and restart dhcpd. + + + SAVE/RESTART + Save/Restart + + + DHCPD_SETTING_ERRORS + DHCPd Settings ERRORS + + + DHCP_START_GREATER_DHCP_END_ERRORS + Incorrect range of IPs, the DHCP Start is greater than the DHCP End , Update unsuccessfull]]> + + + CLICK_HERE_TO_MAIN_PANEL + Click Here to return to the main panel]]> + + + DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP + Incorrect range of IPs, the range of IP address allocation must not include the server address, Update unsuccessfull]]> + + + DHCP_RANGE_WITH_BAD_IP + Incorrect IP in the DHCP range, Update unsuccessfull]]> + + + WINSSERVER_BAD_IP + Incorrect IP for WINS Server, Update unsuccessfull]]> + + + DNS_SERVER_WITH_BAD_IP + Incorrect IP for DNS servers, Update unsuccessfull]]> + + + GATEWAY_BAD_IP + Incorrect IP for Gateway, Update unsuccessfull]]> + + + SUCCESSFULLY_SAVED_SETTINGS + Successfully saved settings]]> + + + REMOVE_A_DHCP_LEASE_TITLE + Removing a DHCP Lease + + + REMOVE_A_DHCP_LEASE + Remove an entry in dhcpd.leases + + + ARE_YOU_SURE + are you sure ? + + + REMOVE_A_DHCP_LEASE_ACTION + You are about to remove a client from the dhcpd.leases file. + + + SUCCESSFULLY_DELETED_THE_CLIENT + Successfully deleted in dhcpd.leases the client : ]]> + + + WAKING_A_REMOTE_COMPUTER_TITLE + Waking Up a remote computer + + + WAKING_A_REMOTE_COMPUTER + You are about to wake up a remote computer. + + + WAKING_A_REMOTE_COMPUTER_ACTION + Are you sure you want to wake on lan the client : + + + + WAKE_UP + Wake UP + + + REMOVE + Usuń + + + SUCCESSFULLY_CLIENT_WOL_REQUEST + Successfully request to wake up the client. The computer may take time to wake up.]]> + + + ALL_OF_THEM + All of them + + + SENDING_A_WINPOPUP + Sending a WinPopup + + + SENDING_A_WINPOPUP_TO + You are about to send a WinPopup to + + + YOUR_MESSAGE + Wiadomość + + + WRITE_YOUR_MESSAGE + Write your message here + + + DO_YOU_WANT_TO_SENT + Do you want to send this message to + + + SEND_WINPOPUP_TO + Send a WinPopup to + + + SUCCESSFULLY_SENT_MESSAGE + Successfully sent message popup to]]> + + + WARNING_NO_WINPOPUP_GARANTY + Warning, there is no garanty that the popup will appear on the remote computer.]]> + + + MANAGING_DHCP_CLIENT + Managing DHCP clients + + + STATUS_REPORT + Operation status report : + + + REFRESH_CONNECTED_IP_LIST + You may want to refresh this list ? + + + REFRESH + Refresh the list + + + CLEAN_ALL_DHCPLEASES + You may want to clean the dhcp.leases + + + REMOVE_ALL_LEASES + Remove all leases + + + NETWORK_NAME + Network Name + + + STATUS_CLICK_FOR_WOL + Status - click for WOL + + + START_DATE + Start Date + + + END_DATE + End Date + + + MAC_ADDRESS + MAC Address + + + NOT_CHECKED + Not Checked...]]> + + + ACTIVE_DEVICE + Active Device]]> + + + WAKE_UP_ACTION + Wake-Up...]]> + + + REMOVE_ACTION + Remove... + + + WINPOPUP_ACTION + WinPopup... + + + NO_CONNECTED_COMPUTERS + There are no connected computers + + + REMOVE_DHCP_LEASE_TITLE + Removing all DHCP Lease + + + REMOVE_DHCP_LEASE_WARNING + Remove all entries in dhcpd.leases may cause issues]]> + + + REMOVE_DHCP_LEASE_WARNING2 + The lease file is a log-structured file - whenever a lease changes, the contents of that lease are written to the end of the file. This means that it is entirely possible for there to be two or more declarations of the same lease in the lease file at the same time. In that case, the instance of that particular lease that appears last in the file is the one that is in effect. + + + SUCCESSFULLY_REMOVED_ALL_LEASES + Successfully deleted all leases.]]> + + + REMOVE_ALL_LEASES_ACTION + Remove all dhcp leases + + + SCANNING_NETWORK_TITLE + Scanning your network, the time needed depends of your subnet mask + + + NETWORK_VALUES_FOUND + Please wait .... Your subnet and your netmask appear to be : + + + ERROR_WHILE_REMOVING_ALL_LEASES + Error while removing all dhcp Leases]]> + + + ERROR_WHILE_SAVING_SETTINGS + Error while saving settings]]> + + diff --git a/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/dhcpd b/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/dhcpd new file mode 100644 index 0000000..80d0672 --- /dev/null +++ b/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/dhcpd @@ -0,0 +1,335 @@ + + + DHCP manager + Gerenciador DHCP + + + DHCPD_TITLE + Gerenciador DHCP + + + DHCPD_SETTINGS_TITLE + Configuração do servidor DHCP + + + CONNECTED_IP + Mostrar os clientes DHCP + + + SCAN_YOUR_NETWORK + Escanear a rede + + + GLOBAL_WINPOPUP + Enviar WinPopup Netsend Global + + + CHECK_CLIENT_STATUS + Sempre verificar o status dos computadores (desligado é muito mais rápido) + + + SHOW_CONNECTED_IP_TITLE + Mostrar todos dispositivos conectados ao servidor DHCP : + + + SCAN_YOUR_NETWORK_TITLE + Varrer sua rede para mostrar dispositivos ativos : + + + GLOBAL_WINPOPUP_TITLE + Enviar um WinPopup global com o protocolo NET SEND + + + STATUS_DHCP_SERVER + Status do DHCPD + + + DHCP_START + Inicio DHCP + + + DHCP_END + Final DHCP + + + CUSTOM_WINSERVER_TITLE + Habilitar o servidor WINS + + + CUSTOM_WINSERVER_STATUS + Servidor WINS + + + CUSTOM_WINSERVER_ADDRESS + Endereço do servidor WINS + + + CUSTOM_DNS_TITLE + Habilitar servidores DNS customizados + + + CUSTOM_DNS_STATUS + DNS customizado + + + PRIMARY_DNS_ADDRESS + DNS primário + + + SECONDARY_DNS_ADDRESS + DNS secundário + + + TERTIARY_DNS_ADDRESS + DNS terciário + + + CUSTOM_GATEWAY_TITLE + Habilitar um endereço de gateway customizado + + + CUSTOM_GATEWAY_STATUS + Gateway customizado + + + CUSTOM_GATEWAY_ADDRESS + Endereço do gateway + + + CUSTOM_LEASETIME_TITLE + Definir o tempo de aluguel (o padrão é de 86400 segundos = 24h) + + + CUSTOM_LEASETIME + Tempo de aluguel customizado + + + SAVE_TITLE + Depois de mudasr as configurações acima, você deve salvar e reiniciar o DHCPd + + + SAVE/RESTART + Salvar/Reiniciar + + + DHCPD_SETTING_ERRORS + Erros de configuração DHCPd + + + DHCP_START_GREATER_DHCP_END_ERRORS + Região de IPs incorreta, o inicio da região DHCP é maior que o final da região; atualização não realizada!]]> + + + CLICK_HERE_TO_MAIN_PANEL + Clique AQUI para voltar para o tela principal]]> + + + DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP + Região de IPs incorreta, a região não pode incluir o endereço do servidor; Atualização não realizada!]]> + + + DHCP_RANGE_WITH_BAD_IP + Região de IP incorreta. Atualização não realizada!]]> + + + WINSSERVER_BAD_IP + IP do servidor WINS incorreto; Atualização não realizada!]]> + + + DNS_SERVER_WITH_BAD_IP + IP do servidores DNS incorreto; Atualização não realizada!]]> + + + GATEWAY_BAD_IP + IP do gateway incorreto; Atualização não realizada]]> + + + SUCCESSFULLY_SAVED_SETTINGS + Configurações salvadas com successo]]> + + + REMOVE_A_DHCP_LEASE_TITLE + Removendo o aluguel DHCP + + + REMOVE_A_DHCP_LEASE + Remover uma entrada do arquivo DHCPD.LEASES + + + ARE_YOU_SURE + Você tem certeza ? + + + REMOVE_A_DHCP_LEASE_ACTION + Você está prestes a remover um cliente do arquivo DHCPD.LEASES . + + + SUCCESSFULLY_DELETED_THE_CLIENT + Removido com sucesso do DHCPD.LEASES o cliente : ]]> + + + WAKING_A_REMOTE_COMPUTER_TITLE + Acordando o computador remoto + + + WAKING_A_REMOTE_COMPUTER + Você está prestes a acordar um computador remoto. + + + WAKING_A_REMOTE_COMPUTER_ACTION + Você está certo de que deseja acordar o cliente de rede: + + + + WAKE_UP + Acordar + + + REMOVE + Remover + + + SUCCESSFULLY_CLIENT_WOL_REQUEST + Solicitação de acordar enviado com sucesso. O computador cliente pode levar algum tempo para acordar.]]> + + + ALL_OF_THEM + Todos eles + + + SENDING_A_WINPOPUP + Enviar uma mensagem via WinPopup + + + SENDING_A_WINPOPUP_TO + Você está prestes a enviar um WinPopup para + + + YOUR_MESSAGE + Sua mensagem + + + WRITE_YOUR_MESSAGE + Escreva sua mensagem aqui + + + DO_YOU_WANT_TO_SENT + Você quer enviar essa mensagem para + + + SEND_WINPOPUP_TO + Enviar a WinPopup para + + + SUCCESSFULLY_SENT_MESSAGE + Mensagem WinPopup com sucesso para ]]> + + + WARNING_NO_WINPOPUP_GARANTY + Aviso, não há garantia de que o o popup irá aparecer no computador remoto.]]> + + + MANAGING_DHCP_CLIENT + Gerenciando clientes DHCP + + + STATUS_REPORT + Relatório de status da operação : + + + REFRESH_CONNECTED_IP_LIST + Você pode querer atualizar essa lista ? + + + REFRESH + Atualizar a lista + + + CLEAN_ALL_DHCPLEASES + Você pode querer limpar o DHCP.LEASES + + + REMOVE_ALL_LEASES + Remover todos aluguéis + + + NETWORK_NAME + Nome da Rede + + + STATUS_CLICK_FOR_WOL + Status - clique para acordar + + + START_DATE + Data de início + + + END_DATE + Data de fim + + + MAC_ADDRESS + Endereço MAC + + + NOT_CHECKED + Não verificado...]]> + + + ACTIVE_DEVICE + Dispositivo Ativo]]> + + + WAKE_UP_ACTION + Acordar...]]> + + + REMOVE_ACTION + Remover... + + + WINPOPUP_ACTION + WinPopup... + + + NO_CONNECTED_COMPUTERS + Não há computadores conectados + + + REMOVE_DHCP_LEASE_TITLE + Removendo todos aluguéis DHCP + + + REMOVE_DHCP_LEASE_WARNING + Remover todas entradas no arquivo DHCP.LEASES pode causar problemas]]> + + + REMOVE_DHCP_LEASE_WARNING2 + O arquivo de alugueis é um arquivo de log estruturado - quando um aluguel muda, o conteudo muda, o conteudo do aluguél é escrito no final do arquivo. Isto significar que é possivel haver duas ou mais declarações do mesmo aluguel ao mesmo tempo. Neste caso, a instancia que aparece mais próxima do final do arquivo é a que está efetiva. + + + SUCCESSFULLY_REMOVED_ALL_LEASES + Todos alugueis apagados com successo.]]> + + + REMOVE_ALL_LEASES_ACTION + Remover todos aluguéis DHCP + + + SCANNING_NETWORK_TITLE + Varrendo sua rede, o tempo dependerá de sua máscara de sub-rede. + + + NETWORK_VALUES_FOUND + Por favor aguarde... Sua sub-rede e máscara de rede parecem ser : + + + ERROR_WHILE_REMOVING_ALL_LEASES + Ocorreu um erro enquanto removendo todos aluguéis DHCP]]> + + + ERROR_WHILE_SAVING_SETTINGS + Ocorreu um erro enquanto salvando configurações]]> + + diff --git a/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/dhcpd b/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/dhcpd new file mode 100644 index 0000000..62ad18a --- /dev/null +++ b/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/dhcpd @@ -0,0 +1,335 @@ + + + DHCP manager + DHCP Manager + + + DHCPD_TITLE + DHCP Manager + + + DHCPD_SETTINGS_TITLE + Settings of the DHCP server + + + CONNECTED_IP + Show DHCP Clients + + + SCAN_YOUR_NETWORK + Scan your network + + + GLOBAL_WINPOPUP + Send Global Netsend WinPopup + + + CHECK_CLIENT_STATUS + Always check the status of computers (Disabled is much faster) + + + SHOW_CONNECTED_IP_TITLE + Show all devices connected to the dhcp server : + + + SCAN_YOUR_NETWORK_TITLE + Scan your network to show active devices : + + + GLOBAL_WINPOPUP_TITLE + Send a global WinPopup with the Net send protocol + + + STATUS_DHCP_SERVER + State of DHCPD + + + DHCP_START + DHCP Start + + + DHCP_END + DHCP End + + + CUSTOM_WINSERVER_TITLE + Enable a WINS Server. + + + CUSTOM_WINSERVER_STATUS + WINS Server + + + CUSTOM_WINSERVER_ADDRESS + WINS Server address + + + CUSTOM_DNS_TITLE + Enable custom DNS servers. + + + CUSTOM_DNS_STATUS + Custom DNS + + + PRIMARY_DNS_ADDRESS + Primary DNS + + + SECONDARY_DNS_ADDRESS + Secondary DNS + + + TERTIARY_DNS_ADDRESS + Tertiary DNS + + + CUSTOM_GATEWAY_TITLE + Enable a custom gateway address. + + + CUSTOM_GATEWAY_STATUS + Custom gateway + + + CUSTOM_GATEWAY_ADDRESS + Gateway address + + + CUSTOM_LEASETIME_TITLE + Set the lease time (default is 86400 seconds). + + + CUSTOM_LEASETIME + Custom lease time + + + SAVE_TITLE + After changing settings above, you must save and restart dhcpd. + + + SAVE/RESTART + Save/Restart + + + DHCPD_SETTING_ERRORS + DHCPd Settings ERRORS + + + DHCP_START_GREATER_DHCP_END_ERRORS + Incorrect range of IPs, the DHCP Start is greater than the DHCP End , Update unsuccessfull]]> + + + CLICK_HERE_TO_MAIN_PANEL + Click Here to return to the main panel]]> + + + DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP + Incorrect range of IPs, the range of IP address allocation must not include the server address, Update unsuccessfull]]> + + + DHCP_RANGE_WITH_BAD_IP + Incorrect IP in the DHCP range, Update unsuccessfull]]> + + + WINSSERVER_BAD_IP + Incorrect IP for WINS Server, Update unsuccessfull]]> + + + DNS_SERVER_WITH_BAD_IP + Incorrect IP for DNS servers, Update unsuccessfull]]> + + + GATEWAY_BAD_IP + Incorrect IP for Gateway, Update unsuccessfull]]> + + + SUCCESSFULLY_SAVED_SETTINGS + Successfully saved settings]]> + + + REMOVE_A_DHCP_LEASE_TITLE + Removing a DHCP Lease + + + REMOVE_A_DHCP_LEASE + Remove an entry in dhcpd.leases + + + ARE_YOU_SURE + are you sure ? + + + REMOVE_A_DHCP_LEASE_ACTION + You are about to remove a client from the dhcpd.leases file. + + + SUCCESSFULLY_DELETED_THE_CLIENT + Successfully deleted in dhcpd.leases the client : ]]> + + + WAKING_A_REMOTE_COMPUTER_TITLE + Waking Up a remote computer + + + WAKING_A_REMOTE_COMPUTER + You are about to wake up a remote computer. + + + WAKING_A_REMOTE_COMPUTER_ACTION + Are you sure you want to wake on lan the client : + + + + WAKE_UP + Wake UP + + + REMOVE + Remover + + + SUCCESSFULLY_CLIENT_WOL_REQUEST + Successfully request to wake up the client. The computer may take time to wake up.]]> + + + ALL_OF_THEM + All of them + + + SENDING_A_WINPOPUP + Sending a WinPopup + + + SENDING_A_WINPOPUP_TO + You are about to send a WinPopup to + + + YOUR_MESSAGE + Mensagem + + + WRITE_YOUR_MESSAGE + Write your message here + + + DO_YOU_WANT_TO_SENT + Do you want to send this message to + + + SEND_WINPOPUP_TO + Send a WinPopup to + + + SUCCESSFULLY_SENT_MESSAGE + Successfully sent message popup to]]> + + + WARNING_NO_WINPOPUP_GARANTY + Warning, there is no garanty that the popup will appear on the remote computer.]]> + + + MANAGING_DHCP_CLIENT + Managing DHCP clients + + + STATUS_REPORT + Operation status report : + + + REFRESH_CONNECTED_IP_LIST + You may want to refresh this list ? + + + REFRESH + Refresh the list + + + CLEAN_ALL_DHCPLEASES + You may want to clean the dhcp.leases + + + REMOVE_ALL_LEASES + Remove all leases + + + NETWORK_NAME + Network Name + + + STATUS_CLICK_FOR_WOL + Status - click for WOL + + + START_DATE + Start Date + + + END_DATE + End Date + + + MAC_ADDRESS + MAC Address + + + NOT_CHECKED + Not Checked...]]> + + + ACTIVE_DEVICE + Active Device]]> + + + WAKE_UP_ACTION + Wake-Up...]]> + + + REMOVE_ACTION + Remove... + + + WINPOPUP_ACTION + WinPopup... + + + NO_CONNECTED_COMPUTERS + There are no connected computers + + + REMOVE_DHCP_LEASE_TITLE + Removing all DHCP Lease + + + REMOVE_DHCP_LEASE_WARNING + Remove all entries in dhcpd.leases may cause issues]]> + + + REMOVE_DHCP_LEASE_WARNING2 + The lease file is a log-structured file - whenever a lease changes, the contents of that lease are written to the end of the file. This means that it is entirely possible for there to be two or more declarations of the same lease in the lease file at the same time. In that case, the instance of that particular lease that appears last in the file is the one that is in effect. + + + SUCCESSFULLY_REMOVED_ALL_LEASES + Successfully deleted all leases.]]> + + + REMOVE_ALL_LEASES_ACTION + Remove all dhcp leases + + + SCANNING_NETWORK_TITLE + Scanning your network, the time needed depends of your subnet mask + + + NETWORK_VALUES_FOUND + Please wait .... Your subnet and your netmask appear to be : + + + ERROR_WHILE_REMOVING_ALL_LEASES + Error while removing all dhcp Leases]]> + + + ERROR_WHILE_SAVING_SETTINGS + Error while saving settings]]> + + diff --git a/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/dhcpd b/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/dhcpd new file mode 100644 index 0000000..d74ff8a --- /dev/null +++ b/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/dhcpd @@ -0,0 +1,335 @@ + + + DHCP manager + DHCP Manager + + + DHCPD_TITLE + DHCP Manager + + + DHCPD_SETTINGS_TITLE + Settings of the DHCP server + + + CONNECTED_IP + Show DHCP Clients + + + SCAN_YOUR_NETWORK + Scan your network + + + GLOBAL_WINPOPUP + Send Global Netsend WinPopup + + + CHECK_CLIENT_STATUS + Always check the status of computers (Disabled is much faster) + + + SHOW_CONNECTED_IP_TITLE + Show all devices connected to the dhcp server : + + + SCAN_YOUR_NETWORK_TITLE + Scan your network to show active devices : + + + GLOBAL_WINPOPUP_TITLE + Send a global WinPopup with the Net send protocol + + + STATUS_DHCP_SERVER + State of DHCPD + + + DHCP_START + DHCP Start + + + DHCP_END + DHCP End + + + CUSTOM_WINSERVER_TITLE + Enable a WINS Server. + + + CUSTOM_WINSERVER_STATUS + WINS Server + + + CUSTOM_WINSERVER_ADDRESS + WINS Server address + + + CUSTOM_DNS_TITLE + Enable custom DNS servers. + + + CUSTOM_DNS_STATUS + Custom DNS + + + PRIMARY_DNS_ADDRESS + Primary DNS + + + SECONDARY_DNS_ADDRESS + Secondary DNS + + + TERTIARY_DNS_ADDRESS + Tertiary DNS + + + CUSTOM_GATEWAY_TITLE + Enable a custom gateway address. + + + CUSTOM_GATEWAY_STATUS + Custom gateway + + + CUSTOM_GATEWAY_ADDRESS + Gateway address + + + CUSTOM_LEASETIME_TITLE + Set the lease time (default is 86400 seconds). + + + CUSTOM_LEASETIME + Custom lease time + + + SAVE_TITLE + After changing settings above, you must save and restart dhcpd. + + + SAVE/RESTART + Save/Restart + + + DHCPD_SETTING_ERRORS + DHCPd Settings ERRORS + + + DHCP_START_GREATER_DHCP_END_ERRORS + Incorrect range of IPs, the DHCP Start is greater than the DHCP End , Update unsuccessfull]]> + + + CLICK_HERE_TO_MAIN_PANEL + Click Here to return to the main panel]]> + + + DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP + Incorrect range of IPs, the range of IP address allocation must not include the server address, Update unsuccessfull]]> + + + DHCP_RANGE_WITH_BAD_IP + Incorrect IP in the DHCP range, Update unsuccessfull]]> + + + WINSSERVER_BAD_IP + Incorrect IP for WINS Server, Update unsuccessfull]]> + + + DNS_SERVER_WITH_BAD_IP + Incorrect IP for DNS servers, Update unsuccessfull]]> + + + GATEWAY_BAD_IP + Incorrect IP for Gateway, Update unsuccessfull]]> + + + SUCCESSFULLY_SAVED_SETTINGS + Successfully saved settings]]> + + + REMOVE_A_DHCP_LEASE_TITLE + Removing a DHCP Lease + + + REMOVE_A_DHCP_LEASE + Remove an entry in dhcpd.leases + + + ARE_YOU_SURE + are you sure ? + + + REMOVE_A_DHCP_LEASE_ACTION + You are about to remove a client from the dhcpd.leases file. + + + SUCCESSFULLY_DELETED_THE_CLIENT + Successfully deleted in dhcpd.leases the client : ]]> + + + WAKING_A_REMOTE_COMPUTER_TITLE + Waking Up a remote computer + + + WAKING_A_REMOTE_COMPUTER + You are about to wake up a remote computer. + + + WAKING_A_REMOTE_COMPUTER_ACTION + Are you sure you want to wake on lan the client : + + + + WAKE_UP + Wake UP + + + REMOVE + Remove + + + SUCCESSFULLY_CLIENT_WOL_REQUEST + Successfully request to wake up the client. The computer may take time to wake up.]]> + + + ALL_OF_THEM + All of them + + + SENDING_A_WINPOPUP + Sending a WinPopup + + + SENDING_A_WINPOPUP_TO + You are about to send a WinPopup to + + + YOUR_MESSAGE + Mesajul dumneavoastră + + + WRITE_YOUR_MESSAGE + Write your message here + + + DO_YOU_WANT_TO_SENT + Do you want to send this message to + + + SEND_WINPOPUP_TO + Send a WinPopup to + + + SUCCESSFULLY_SENT_MESSAGE + Successfully sent message popup to]]> + + + WARNING_NO_WINPOPUP_GARANTY + Warning, there is no garanty that the popup will appear on the remote computer.]]> + + + MANAGING_DHCP_CLIENT + Managing DHCP clients + + + STATUS_REPORT + Operation status report : + + + REFRESH_CONNECTED_IP_LIST + You may want to refresh this list ? + + + REFRESH + Refresh the list + + + CLEAN_ALL_DHCPLEASES + You may want to clean the dhcp.leases + + + REMOVE_ALL_LEASES + Remove all leases + + + NETWORK_NAME + Network Name + + + STATUS_CLICK_FOR_WOL + Status - click for WOL + + + START_DATE + Start Date + + + END_DATE + End Date + + + MAC_ADDRESS + MAC Address + + + NOT_CHECKED + Not Checked...]]> + + + ACTIVE_DEVICE + Active Device]]> + + + WAKE_UP_ACTION + Wake-Up...]]> + + + REMOVE_ACTION + Remove... + + + WINPOPUP_ACTION + WinPopup... + + + NO_CONNECTED_COMPUTERS + There are no connected computers + + + REMOVE_DHCP_LEASE_TITLE + Removing all DHCP Lease + + + REMOVE_DHCP_LEASE_WARNING + Remove all entries in dhcpd.leases may cause issues]]> + + + REMOVE_DHCP_LEASE_WARNING2 + The lease file is a log-structured file - whenever a lease changes, the contents of that lease are written to the end of the file. This means that it is entirely possible for there to be two or more declarations of the same lease in the lease file at the same time. In that case, the instance of that particular lease that appears last in the file is the one that is in effect. + + + SUCCESSFULLY_REMOVED_ALL_LEASES + Successfully deleted all leases.]]> + + + REMOVE_ALL_LEASES_ACTION + Remove all dhcp leases + + + SCANNING_NETWORK_TITLE + Scanning your network, the time needed depends of your subnet mask + + + NETWORK_VALUES_FOUND + Please wait .... Your subnet and your netmask appear to be : + + + ERROR_WHILE_REMOVING_ALL_LEASES + Error while removing all dhcp Leases]]> + + + ERROR_WHILE_SAVING_SETTINGS + Error while saving settings]]> + + diff --git a/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/dhcpd b/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/dhcpd new file mode 100644 index 0000000..a38bf99 --- /dev/null +++ b/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/dhcpd @@ -0,0 +1,335 @@ + + + DHCP manager + DHCP Manager + + + DHCPD_TITLE + DHCP Manager + + + DHCPD_SETTINGS_TITLE + Settings of the DHCP server + + + CONNECTED_IP + Show DHCP Clients + + + SCAN_YOUR_NETWORK + Scan your network + + + GLOBAL_WINPOPUP + Send Global Netsend WinPopup + + + CHECK_CLIENT_STATUS + Always check the status of computers (Disabled is much faster) + + + SHOW_CONNECTED_IP_TITLE + Show all devices connected to the dhcp server : + + + SCAN_YOUR_NETWORK_TITLE + Scan your network to show active devices : + + + GLOBAL_WINPOPUP_TITLE + Send a global WinPopup with the Net send protocol + + + STATUS_DHCP_SERVER + State of DHCPD + + + DHCP_START + DHCP Start + + + DHCP_END + DHCP End + + + CUSTOM_WINSERVER_TITLE + Enable a WINS Server. + + + CUSTOM_WINSERVER_STATUS + WINS Server + + + CUSTOM_WINSERVER_ADDRESS + WINS Server address + + + CUSTOM_DNS_TITLE + Enable custom DNS servers. + + + CUSTOM_DNS_STATUS + Custom DNS + + + PRIMARY_DNS_ADDRESS + Primary DNS + + + SECONDARY_DNS_ADDRESS + Secondary DNS + + + TERTIARY_DNS_ADDRESS + Tertiary DNS + + + CUSTOM_GATEWAY_TITLE + Enable a custom gateway address. + + + CUSTOM_GATEWAY_STATUS + Custom gateway + + + CUSTOM_GATEWAY_ADDRESS + Gateway address + + + CUSTOM_LEASETIME_TITLE + Set the lease time (default is 86400 seconds). + + + CUSTOM_LEASETIME + Custom lease time + + + SAVE_TITLE + After changing settings above, you must save and restart dhcpd. + + + SAVE/RESTART + Save/Restart + + + DHCPD_SETTING_ERRORS + DHCPd Settings ERRORS + + + DHCP_START_GREATER_DHCP_END_ERRORS + Incorrect range of IPs, the DHCP Start is greater than the DHCP End , Update unsuccessfull]]> + + + CLICK_HERE_TO_MAIN_PANEL + Click Here to return to the main panel]]> + + + DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP + Incorrect range of IPs, the range of IP address allocation must not include the server address, Update unsuccessfull]]> + + + DHCP_RANGE_WITH_BAD_IP + Incorrect IP in the DHCP range, Update unsuccessfull]]> + + + WINSSERVER_BAD_IP + Incorrect IP for WINS Server, Update unsuccessfull]]> + + + DNS_SERVER_WITH_BAD_IP + Incorrect IP for DNS servers, Update unsuccessfull]]> + + + GATEWAY_BAD_IP + Incorrect IP for Gateway, Update unsuccessfull]]> + + + SUCCESSFULLY_SAVED_SETTINGS + Successfully saved settings]]> + + + REMOVE_A_DHCP_LEASE_TITLE + Removing a DHCP Lease + + + REMOVE_A_DHCP_LEASE + Remove an entry in dhcpd.leases + + + ARE_YOU_SURE + are you sure ? + + + REMOVE_A_DHCP_LEASE_ACTION + You are about to remove a client from the dhcpd.leases file. + + + SUCCESSFULLY_DELETED_THE_CLIENT + Successfully deleted in dhcpd.leases the client : ]]> + + + WAKING_A_REMOTE_COMPUTER_TITLE + Waking Up a remote computer + + + WAKING_A_REMOTE_COMPUTER + You are about to wake up a remote computer. + + + WAKING_A_REMOTE_COMPUTER_ACTION + Are you sure you want to wake on lan the client : + + + + WAKE_UP + Wake UP + + + REMOVE + Удалить + + + SUCCESSFULLY_CLIENT_WOL_REQUEST + Successfully request to wake up the client. The computer may take time to wake up.]]> + + + ALL_OF_THEM + All of them + + + SENDING_A_WINPOPUP + Sending a WinPopup + + + SENDING_A_WINPOPUP_TO + You are about to send a WinPopup to + + + YOUR_MESSAGE + Ваше сообщение + + + WRITE_YOUR_MESSAGE + Write your message here + + + DO_YOU_WANT_TO_SENT + Do you want to send this message to + + + SEND_WINPOPUP_TO + Send a WinPopup to + + + SUCCESSFULLY_SENT_MESSAGE + Successfully sent message popup to]]> + + + WARNING_NO_WINPOPUP_GARANTY + Warning, there is no garanty that the popup will appear on the remote computer.]]> + + + MANAGING_DHCP_CLIENT + Managing DHCP clients + + + STATUS_REPORT + Operation status report : + + + REFRESH_CONNECTED_IP_LIST + You may want to refresh this list ? + + + REFRESH + Refresh the list + + + CLEAN_ALL_DHCPLEASES + You may want to clean the dhcp.leases + + + REMOVE_ALL_LEASES + Remove all leases + + + NETWORK_NAME + Network Name + + + STATUS_CLICK_FOR_WOL + Status - click for WOL + + + START_DATE + Start Date + + + END_DATE + End Date + + + MAC_ADDRESS + MAC Address + + + NOT_CHECKED + Not Checked...]]> + + + ACTIVE_DEVICE + Active Device]]> + + + WAKE_UP_ACTION + Wake-Up...]]> + + + REMOVE_ACTION + Remove... + + + WINPOPUP_ACTION + WinPopup... + + + NO_CONNECTED_COMPUTERS + There are no connected computers + + + REMOVE_DHCP_LEASE_TITLE + Removing all DHCP Lease + + + REMOVE_DHCP_LEASE_WARNING + Remove all entries in dhcpd.leases may cause issues]]> + + + REMOVE_DHCP_LEASE_WARNING2 + The lease file is a log-structured file - whenever a lease changes, the contents of that lease are written to the end of the file. This means that it is entirely possible for there to be two or more declarations of the same lease in the lease file at the same time. In that case, the instance of that particular lease that appears last in the file is the one that is in effect. + + + SUCCESSFULLY_REMOVED_ALL_LEASES + Successfully deleted all leases.]]> + + + REMOVE_ALL_LEASES_ACTION + Remove all dhcp leases + + + SCANNING_NETWORK_TITLE + Scanning your network, the time needed depends of your subnet mask + + + NETWORK_VALUES_FOUND + Please wait .... Your subnet and your netmask appear to be : + + + ERROR_WHILE_REMOVING_ALL_LEASES + Error while removing all dhcp Leases]]> + + + ERROR_WHILE_SAVING_SETTINGS + Error while saving settings]]> + + diff --git a/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/dhcpd b/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/dhcpd new file mode 100644 index 0000000..7eacb05 --- /dev/null +++ b/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/dhcpd @@ -0,0 +1,335 @@ + + + DHCP manager + DHCP Manager + + + DHCPD_TITLE + DHCP Manager + + + DHCPD_SETTINGS_TITLE + Settings of the DHCP server + + + CONNECTED_IP + Show DHCP Clients + + + SCAN_YOUR_NETWORK + Scan your network + + + GLOBAL_WINPOPUP + Send Global Netsend WinPopup + + + CHECK_CLIENT_STATUS + Always check the status of computers (Disabled is much faster) + + + SHOW_CONNECTED_IP_TITLE + Show all devices connected to the dhcp server : + + + SCAN_YOUR_NETWORK_TITLE + Scan your network to show active devices : + + + GLOBAL_WINPOPUP_TITLE + Send a global WinPopup with the Net send protocol + + + STATUS_DHCP_SERVER + State of DHCPD + + + DHCP_START + DHCP Start + + + DHCP_END + DHCP End + + + CUSTOM_WINSERVER_TITLE + Enable a WINS Server. + + + CUSTOM_WINSERVER_STATUS + WINS Server + + + CUSTOM_WINSERVER_ADDRESS + WINS Server address + + + CUSTOM_DNS_TITLE + Enable custom DNS servers. + + + CUSTOM_DNS_STATUS + Custom DNS + + + PRIMARY_DNS_ADDRESS + Primary DNS + + + SECONDARY_DNS_ADDRESS + Secondary DNS + + + TERTIARY_DNS_ADDRESS + Tertiary DNS + + + CUSTOM_GATEWAY_TITLE + Enable a custom gateway address. + + + CUSTOM_GATEWAY_STATUS + Custom gateway + + + CUSTOM_GATEWAY_ADDRESS + Gateway address + + + CUSTOM_LEASETIME_TITLE + Set the lease time (default is 86400 seconds). + + + CUSTOM_LEASETIME + Custom lease time + + + SAVE_TITLE + After changing settings above, you must save and restart dhcpd. + + + SAVE/RESTART + Save/Restart + + + DHCPD_SETTING_ERRORS + DHCPd Settings ERRORS + + + DHCP_START_GREATER_DHCP_END_ERRORS + Incorrect range of IPs, the DHCP Start is greater than the DHCP End , Update unsuccessfull]]> + + + CLICK_HERE_TO_MAIN_PANEL + Click Here to return to the main panel]]> + + + DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP + Incorrect range of IPs, the range of IP address allocation must not include the server address, Update unsuccessfull]]> + + + DHCP_RANGE_WITH_BAD_IP + Incorrect IP in the DHCP range, Update unsuccessfull]]> + + + WINSSERVER_BAD_IP + Incorrect IP for WINS Server, Update unsuccessfull]]> + + + DNS_SERVER_WITH_BAD_IP + Incorrect IP for DNS servers, Update unsuccessfull]]> + + + GATEWAY_BAD_IP + Incorrect IP for Gateway, Update unsuccessfull]]> + + + SUCCESSFULLY_SAVED_SETTINGS + Successfully saved settings]]> + + + REMOVE_A_DHCP_LEASE_TITLE + Removing a DHCP Lease + + + REMOVE_A_DHCP_LEASE + Remove an entry in dhcpd.leases + + + ARE_YOU_SURE + are you sure ? + + + REMOVE_A_DHCP_LEASE_ACTION + You are about to remove a client from the dhcpd.leases file. + + + SUCCESSFULLY_DELETED_THE_CLIENT + Successfully deleted in dhcpd.leases the client : ]]> + + + WAKING_A_REMOTE_COMPUTER_TITLE + Waking Up a remote computer + + + WAKING_A_REMOTE_COMPUTER + You are about to wake up a remote computer. + + + WAKING_A_REMOTE_COMPUTER_ACTION + Are you sure you want to wake on lan the client : + + + + WAKE_UP + Wake UP + + + REMOVE + Odstrani + + + SUCCESSFULLY_CLIENT_WOL_REQUEST + Successfully request to wake up the client. The computer may take time to wake up.]]> + + + ALL_OF_THEM + All of them + + + SENDING_A_WINPOPUP + Sending a WinPopup + + + SENDING_A_WINPOPUP_TO + You are about to send a WinPopup to + + + YOUR_MESSAGE + Vaše sporočilo + + + WRITE_YOUR_MESSAGE + Write your message here + + + DO_YOU_WANT_TO_SENT + Do you want to send this message to + + + SEND_WINPOPUP_TO + Send a WinPopup to + + + SUCCESSFULLY_SENT_MESSAGE + Successfully sent message popup to]]> + + + WARNING_NO_WINPOPUP_GARANTY + Warning, there is no garanty that the popup will appear on the remote computer.]]> + + + MANAGING_DHCP_CLIENT + Managing DHCP clients + + + STATUS_REPORT + Operation status report : + + + REFRESH_CONNECTED_IP_LIST + You may want to refresh this list ? + + + REFRESH + Refresh the list + + + CLEAN_ALL_DHCPLEASES + You may want to clean the dhcp.leases + + + REMOVE_ALL_LEASES + Remove all leases + + + NETWORK_NAME + Network Name + + + STATUS_CLICK_FOR_WOL + Status - click for WOL + + + START_DATE + Start Date + + + END_DATE + End Date + + + MAC_ADDRESS + MAC Address + + + NOT_CHECKED + Not Checked...]]> + + + ACTIVE_DEVICE + Active Device]]> + + + WAKE_UP_ACTION + Wake-Up...]]> + + + REMOVE_ACTION + Remove... + + + WINPOPUP_ACTION + WinPopup... + + + NO_CONNECTED_COMPUTERS + There are no connected computers + + + REMOVE_DHCP_LEASE_TITLE + Removing all DHCP Lease + + + REMOVE_DHCP_LEASE_WARNING + Remove all entries in dhcpd.leases may cause issues]]> + + + REMOVE_DHCP_LEASE_WARNING2 + The lease file is a log-structured file - whenever a lease changes, the contents of that lease are written to the end of the file. This means that it is entirely possible for there to be two or more declarations of the same lease in the lease file at the same time. In that case, the instance of that particular lease that appears last in the file is the one that is in effect. + + + SUCCESSFULLY_REMOVED_ALL_LEASES + Successfully deleted all leases.]]> + + + REMOVE_ALL_LEASES_ACTION + Remove all dhcp leases + + + SCANNING_NETWORK_TITLE + Scanning your network, the time needed depends of your subnet mask + + + NETWORK_VALUES_FOUND + Please wait .... Your subnet and your netmask appear to be : + + + ERROR_WHILE_REMOVING_ALL_LEASES + Error while removing all dhcp Leases]]> + + + ERROR_WHILE_SAVING_SETTINGS + Error while saving settings]]> + + diff --git a/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/dhcpd b/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/dhcpd new file mode 100644 index 0000000..b20cf2a --- /dev/null +++ b/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/dhcpd @@ -0,0 +1,335 @@ + + + DHCP manager + DHCP Manager + + + DHCPD_TITLE + DHCP Manager + + + DHCPD_SETTINGS_TITLE + Settings of the DHCP server + + + CONNECTED_IP + Show DHCP Clients + + + SCAN_YOUR_NETWORK + Scan your network + + + GLOBAL_WINPOPUP + Send Global Netsend WinPopup + + + CHECK_CLIENT_STATUS + Always check the status of computers (Disabled is much faster) + + + SHOW_CONNECTED_IP_TITLE + Show all devices connected to the dhcp server : + + + SCAN_YOUR_NETWORK_TITLE + Scan your network to show active devices : + + + GLOBAL_WINPOPUP_TITLE + Send a global WinPopup with the Net send protocol + + + STATUS_DHCP_SERVER + State of DHCPD + + + DHCP_START + DHCP Start + + + DHCP_END + DHCP End + + + CUSTOM_WINSERVER_TITLE + Enable a WINS Server. + + + CUSTOM_WINSERVER_STATUS + WINS Server + + + CUSTOM_WINSERVER_ADDRESS + WINS Server address + + + CUSTOM_DNS_TITLE + Enable custom DNS servers. + + + CUSTOM_DNS_STATUS + Custom DNS + + + PRIMARY_DNS_ADDRESS + Primary DNS + + + SECONDARY_DNS_ADDRESS + Secondary DNS + + + TERTIARY_DNS_ADDRESS + Tertiary DNS + + + CUSTOM_GATEWAY_TITLE + Enable a custom gateway address. + + + CUSTOM_GATEWAY_STATUS + Custom gateway + + + CUSTOM_GATEWAY_ADDRESS + Gateway address + + + CUSTOM_LEASETIME_TITLE + Set the lease time (default is 86400 seconds). + + + CUSTOM_LEASETIME + Custom lease time + + + SAVE_TITLE + After changing settings above, you must save and restart dhcpd. + + + SAVE/RESTART + Save/Restart + + + DHCPD_SETTING_ERRORS + DHCPd Settings ERRORS + + + DHCP_START_GREATER_DHCP_END_ERRORS + Incorrect range of IPs, the DHCP Start is greater than the DHCP End , Update unsuccessfull]]> + + + CLICK_HERE_TO_MAIN_PANEL + Click Here to return to the main panel]]> + + + DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP + Incorrect range of IPs, the range of IP address allocation must not include the server address, Update unsuccessfull]]> + + + DHCP_RANGE_WITH_BAD_IP + Incorrect IP in the DHCP range, Update unsuccessfull]]> + + + WINSSERVER_BAD_IP + Incorrect IP for WINS Server, Update unsuccessfull]]> + + + DNS_SERVER_WITH_BAD_IP + Incorrect IP for DNS servers, Update unsuccessfull]]> + + + GATEWAY_BAD_IP + Incorrect IP for Gateway, Update unsuccessfull]]> + + + SUCCESSFULLY_SAVED_SETTINGS + Successfully saved settings]]> + + + REMOVE_A_DHCP_LEASE_TITLE + Removing a DHCP Lease + + + REMOVE_A_DHCP_LEASE + Remove an entry in dhcpd.leases + + + ARE_YOU_SURE + are you sure ? + + + REMOVE_A_DHCP_LEASE_ACTION + You are about to remove a client from the dhcpd.leases file. + + + SUCCESSFULLY_DELETED_THE_CLIENT + Successfully deleted in dhcpd.leases the client : ]]> + + + WAKING_A_REMOTE_COMPUTER_TITLE + Waking Up a remote computer + + + WAKING_A_REMOTE_COMPUTER + You are about to wake up a remote computer. + + + WAKING_A_REMOTE_COMPUTER_ACTION + Are you sure you want to wake on lan the client : + + + + WAKE_UP + Wake UP + + + REMOVE + Radera + + + SUCCESSFULLY_CLIENT_WOL_REQUEST + Successfully request to wake up the client. The computer may take time to wake up.]]> + + + ALL_OF_THEM + All of them + + + SENDING_A_WINPOPUP + Sending a WinPopup + + + SENDING_A_WINPOPUP_TO + You are about to send a WinPopup to + + + YOUR_MESSAGE + Ditt meddelande + + + WRITE_YOUR_MESSAGE + Write your message here + + + DO_YOU_WANT_TO_SENT + Do you want to send this message to + + + SEND_WINPOPUP_TO + Send a WinPopup to + + + SUCCESSFULLY_SENT_MESSAGE + Successfully sent message popup to]]> + + + WARNING_NO_WINPOPUP_GARANTY + Warning, there is no garanty that the popup will appear on the remote computer.]]> + + + MANAGING_DHCP_CLIENT + Managing DHCP clients + + + STATUS_REPORT + Operation status report : + + + REFRESH_CONNECTED_IP_LIST + You may want to refresh this list ? + + + REFRESH + Refresh the list + + + CLEAN_ALL_DHCPLEASES + You may want to clean the dhcp.leases + + + REMOVE_ALL_LEASES + Remove all leases + + + NETWORK_NAME + Network Name + + + STATUS_CLICK_FOR_WOL + Status - click for WOL + + + START_DATE + Start Date + + + END_DATE + End Date + + + MAC_ADDRESS + MAC-adress + + + NOT_CHECKED + Not Checked...]]> + + + ACTIVE_DEVICE + Active Device]]> + + + WAKE_UP_ACTION + Wake-Up...]]> + + + REMOVE_ACTION + Remove... + + + WINPOPUP_ACTION + WinPopup... + + + NO_CONNECTED_COMPUTERS + There are no connected computers + + + REMOVE_DHCP_LEASE_TITLE + Removing all DHCP Lease + + + REMOVE_DHCP_LEASE_WARNING + Remove all entries in dhcpd.leases may cause issues]]> + + + REMOVE_DHCP_LEASE_WARNING2 + The lease file is a log-structured file - whenever a lease changes, the contents of that lease are written to the end of the file. This means that it is entirely possible for there to be two or more declarations of the same lease in the lease file at the same time. In that case, the instance of that particular lease that appears last in the file is the one that is in effect. + + + SUCCESSFULLY_REMOVED_ALL_LEASES + Successfully deleted all leases.]]> + + + REMOVE_ALL_LEASES_ACTION + Remove all dhcp leases + + + SCANNING_NETWORK_TITLE + Scanning your network, the time needed depends of your subnet mask + + + NETWORK_VALUES_FOUND + Please wait .... Your subnet and your netmask appear to be : + + + ERROR_WHILE_REMOVING_ALL_LEASES + Error while removing all dhcp Leases]]> + + + ERROR_WHILE_SAVING_SETTINGS + Error while saving settings]]> + + diff --git a/root/etc/e-smith/locale/th/etc/e-smith/web/functions/dhcpd b/root/etc/e-smith/locale/th/etc/e-smith/web/functions/dhcpd new file mode 100644 index 0000000..e717f10 --- /dev/null +++ b/root/etc/e-smith/locale/th/etc/e-smith/web/functions/dhcpd @@ -0,0 +1,335 @@ + + + DHCP manager + DHCP Manager + + + DHCPD_TITLE + DHCP Manager + + + DHCPD_SETTINGS_TITLE + Settings of the DHCP server + + + CONNECTED_IP + Show DHCP Clients + + + SCAN_YOUR_NETWORK + Scan your network + + + GLOBAL_WINPOPUP + Send Global Netsend WinPopup + + + CHECK_CLIENT_STATUS + Always check the status of computers (Disabled is much faster) + + + SHOW_CONNECTED_IP_TITLE + Show all devices connected to the dhcp server : + + + SCAN_YOUR_NETWORK_TITLE + Scan your network to show active devices : + + + GLOBAL_WINPOPUP_TITLE + Send a global WinPopup with the Net send protocol + + + STATUS_DHCP_SERVER + State of DHCPD + + + DHCP_START + DHCP Start + + + DHCP_END + DHCP End + + + CUSTOM_WINSERVER_TITLE + Enable a WINS Server. + + + CUSTOM_WINSERVER_STATUS + WINS Server + + + CUSTOM_WINSERVER_ADDRESS + WINS Server address + + + CUSTOM_DNS_TITLE + Enable custom DNS servers. + + + CUSTOM_DNS_STATUS + Custom DNS + + + PRIMARY_DNS_ADDRESS + Primary DNS + + + SECONDARY_DNS_ADDRESS + Secondary DNS + + + TERTIARY_DNS_ADDRESS + Tertiary DNS + + + CUSTOM_GATEWAY_TITLE + Enable a custom gateway address. + + + CUSTOM_GATEWAY_STATUS + Custom gateway + + + CUSTOM_GATEWAY_ADDRESS + Gateway address + + + CUSTOM_LEASETIME_TITLE + Set the lease time (default is 86400 seconds). + + + CUSTOM_LEASETIME + Custom lease time + + + SAVE_TITLE + After changing settings above, you must save and restart dhcpd. + + + SAVE/RESTART + Save/Restart + + + DHCPD_SETTING_ERRORS + DHCPd Settings ERRORS + + + DHCP_START_GREATER_DHCP_END_ERRORS + Incorrect range of IPs, the DHCP Start is greater than the DHCP End , Update unsuccessfull]]> + + + CLICK_HERE_TO_MAIN_PANEL + Click Here to return to the main panel]]> + + + DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP + Incorrect range of IPs, the range of IP address allocation must not include the server address, Update unsuccessfull]]> + + + DHCP_RANGE_WITH_BAD_IP + Incorrect IP in the DHCP range, Update unsuccessfull]]> + + + WINSSERVER_BAD_IP + Incorrect IP for WINS Server, Update unsuccessfull]]> + + + DNS_SERVER_WITH_BAD_IP + Incorrect IP for DNS servers, Update unsuccessfull]]> + + + GATEWAY_BAD_IP + Incorrect IP for Gateway, Update unsuccessfull]]> + + + SUCCESSFULLY_SAVED_SETTINGS + Successfully saved settings]]> + + + REMOVE_A_DHCP_LEASE_TITLE + Removing a DHCP Lease + + + REMOVE_A_DHCP_LEASE + Remove an entry in dhcpd.leases + + + ARE_YOU_SURE + are you sure ? + + + REMOVE_A_DHCP_LEASE_ACTION + You are about to remove a client from the dhcpd.leases file. + + + SUCCESSFULLY_DELETED_THE_CLIENT + Successfully deleted in dhcpd.leases the client : ]]> + + + WAKING_A_REMOTE_COMPUTER_TITLE + Waking Up a remote computer + + + WAKING_A_REMOTE_COMPUTER + You are about to wake up a remote computer. + + + WAKING_A_REMOTE_COMPUTER_ACTION + Are you sure you want to wake on lan the client : + + + + WAKE_UP + Wake UP + + + REMOVE + ลบ + + + SUCCESSFULLY_CLIENT_WOL_REQUEST + Successfully request to wake up the client. The computer may take time to wake up.]]> + + + ALL_OF_THEM + All of them + + + SENDING_A_WINPOPUP + Sending a WinPopup + + + SENDING_A_WINPOPUP_TO + You are about to send a WinPopup to + + + YOUR_MESSAGE + Your message + + + WRITE_YOUR_MESSAGE + Write your message here + + + DO_YOU_WANT_TO_SENT + Do you want to send this message to + + + SEND_WINPOPUP_TO + Send a WinPopup to + + + SUCCESSFULLY_SENT_MESSAGE + Successfully sent message popup to]]> + + + WARNING_NO_WINPOPUP_GARANTY + Warning, there is no garanty that the popup will appear on the remote computer.]]> + + + MANAGING_DHCP_CLIENT + Managing DHCP clients + + + STATUS_REPORT + Operation status report : + + + REFRESH_CONNECTED_IP_LIST + You may want to refresh this list ? + + + REFRESH + Refresh the list + + + CLEAN_ALL_DHCPLEASES + You may want to clean the dhcp.leases + + + REMOVE_ALL_LEASES + Remove all leases + + + NETWORK_NAME + Network Name + + + STATUS_CLICK_FOR_WOL + Status - click for WOL + + + START_DATE + Start Date + + + END_DATE + End Date + + + MAC_ADDRESS + MAC Address + + + NOT_CHECKED + Not Checked...]]> + + + ACTIVE_DEVICE + Active Device]]> + + + WAKE_UP_ACTION + Wake-Up...]]> + + + REMOVE_ACTION + Remove... + + + WINPOPUP_ACTION + WinPopup... + + + NO_CONNECTED_COMPUTERS + There are no connected computers + + + REMOVE_DHCP_LEASE_TITLE + Removing all DHCP Lease + + + REMOVE_DHCP_LEASE_WARNING + Remove all entries in dhcpd.leases may cause issues]]> + + + REMOVE_DHCP_LEASE_WARNING2 + The lease file is a log-structured file - whenever a lease changes, the contents of that lease are written to the end of the file. This means that it is entirely possible for there to be two or more declarations of the same lease in the lease file at the same time. In that case, the instance of that particular lease that appears last in the file is the one that is in effect. + + + SUCCESSFULLY_REMOVED_ALL_LEASES + Successfully deleted all leases.]]> + + + REMOVE_ALL_LEASES_ACTION + Remove all dhcp leases + + + SCANNING_NETWORK_TITLE + Scanning your network, the time needed depends of your subnet mask + + + NETWORK_VALUES_FOUND + Please wait .... Your subnet and your netmask appear to be : + + + ERROR_WHILE_REMOVING_ALL_LEASES + Error while removing all dhcp Leases]]> + + + ERROR_WHILE_SAVING_SETTINGS + Error while saving settings]]> + + diff --git a/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/dhcpd b/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/dhcpd new file mode 100644 index 0000000..0340330 --- /dev/null +++ b/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/dhcpd @@ -0,0 +1,335 @@ + + + DHCP manager + DHCP Manager + + + DHCPD_TITLE + DHCP Manager + + + DHCPD_SETTINGS_TITLE + Settings of the DHCP server + + + CONNECTED_IP + Show DHCP Clients + + + SCAN_YOUR_NETWORK + Scan your network + + + GLOBAL_WINPOPUP + Send Global Netsend WinPopup + + + CHECK_CLIENT_STATUS + Always check the status of computers (Disabled is much faster) + + + SHOW_CONNECTED_IP_TITLE + Show all devices connected to the dhcp server : + + + SCAN_YOUR_NETWORK_TITLE + Scan your network to show active devices : + + + GLOBAL_WINPOPUP_TITLE + Send a global WinPopup with the Net send protocol + + + STATUS_DHCP_SERVER + State of DHCPD + + + DHCP_START + DHCP Start + + + DHCP_END + DHCP End + + + CUSTOM_WINSERVER_TITLE + Enable a WINS Server. + + + CUSTOM_WINSERVER_STATUS + WINS Server + + + CUSTOM_WINSERVER_ADDRESS + WINS Server address + + + CUSTOM_DNS_TITLE + Enable custom DNS servers. + + + CUSTOM_DNS_STATUS + Custom DNS + + + PRIMARY_DNS_ADDRESS + Primary DNS + + + SECONDARY_DNS_ADDRESS + Secondary DNS + + + TERTIARY_DNS_ADDRESS + Tertiary DNS + + + CUSTOM_GATEWAY_TITLE + Enable a custom gateway address. + + + CUSTOM_GATEWAY_STATUS + Custom gateway + + + CUSTOM_GATEWAY_ADDRESS + Gateway address + + + CUSTOM_LEASETIME_TITLE + Set the lease time (default is 86400 seconds). + + + CUSTOM_LEASETIME + Custom lease time + + + SAVE_TITLE + After changing settings above, you must save and restart dhcpd. + + + SAVE/RESTART + Save/Restart + + + DHCPD_SETTING_ERRORS + DHCPd Settings ERRORS + + + DHCP_START_GREATER_DHCP_END_ERRORS + Incorrect range of IPs, the DHCP Start is greater than the DHCP End , Update unsuccessfull]]> + + + CLICK_HERE_TO_MAIN_PANEL + Click Here to return to the main panel]]> + + + DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP + Incorrect range of IPs, the range of IP address allocation must not include the server address, Update unsuccessfull]]> + + + DHCP_RANGE_WITH_BAD_IP + Incorrect IP in the DHCP range, Update unsuccessfull]]> + + + WINSSERVER_BAD_IP + Incorrect IP for WINS Server, Update unsuccessfull]]> + + + DNS_SERVER_WITH_BAD_IP + Incorrect IP for DNS servers, Update unsuccessfull]]> + + + GATEWAY_BAD_IP + Incorrect IP for Gateway, Update unsuccessfull]]> + + + SUCCESSFULLY_SAVED_SETTINGS + Successfully saved settings]]> + + + REMOVE_A_DHCP_LEASE_TITLE + Removing a DHCP Lease + + + REMOVE_A_DHCP_LEASE + Remove an entry in dhcpd.leases + + + ARE_YOU_SURE + are you sure ? + + + REMOVE_A_DHCP_LEASE_ACTION + You are about to remove a client from the dhcpd.leases file. + + + SUCCESSFULLY_DELETED_THE_CLIENT + Successfully deleted in dhcpd.leases the client : ]]> + + + WAKING_A_REMOTE_COMPUTER_TITLE + Waking Up a remote computer + + + WAKING_A_REMOTE_COMPUTER + You are about to wake up a remote computer. + + + WAKING_A_REMOTE_COMPUTER_ACTION + Are you sure you want to wake on lan the client : + + + + WAKE_UP + Wake UP + + + REMOVE + Kaldır + + + SUCCESSFULLY_CLIENT_WOL_REQUEST + Successfully request to wake up the client. The computer may take time to wake up.]]> + + + ALL_OF_THEM + All of them + + + SENDING_A_WINPOPUP + Sending a WinPopup + + + SENDING_A_WINPOPUP_TO + You are about to send a WinPopup to + + + YOUR_MESSAGE + Mesajınız + + + WRITE_YOUR_MESSAGE + Write your message here + + + DO_YOU_WANT_TO_SENT + Do you want to send this message to + + + SEND_WINPOPUP_TO + Send a WinPopup to + + + SUCCESSFULLY_SENT_MESSAGE + Successfully sent message popup to]]> + + + WARNING_NO_WINPOPUP_GARANTY + Warning, there is no garanty that the popup will appear on the remote computer.]]> + + + MANAGING_DHCP_CLIENT + Managing DHCP clients + + + STATUS_REPORT + Operation status report : + + + REFRESH_CONNECTED_IP_LIST + You may want to refresh this list ? + + + REFRESH + Refresh the list + + + CLEAN_ALL_DHCPLEASES + You may want to clean the dhcp.leases + + + REMOVE_ALL_LEASES + Remove all leases + + + NETWORK_NAME + Network Name + + + STATUS_CLICK_FOR_WOL + Status - click for WOL + + + START_DATE + Start Date + + + END_DATE + End Date + + + MAC_ADDRESS + MAC Address + + + NOT_CHECKED + Not Checked...]]> + + + ACTIVE_DEVICE + Active Device]]> + + + WAKE_UP_ACTION + Wake-Up...]]> + + + REMOVE_ACTION + Remove... + + + WINPOPUP_ACTION + WinPopup... + + + NO_CONNECTED_COMPUTERS + There are no connected computers + + + REMOVE_DHCP_LEASE_TITLE + Removing all DHCP Lease + + + REMOVE_DHCP_LEASE_WARNING + Remove all entries in dhcpd.leases may cause issues]]> + + + REMOVE_DHCP_LEASE_WARNING2 + The lease file is a log-structured file - whenever a lease changes, the contents of that lease are written to the end of the file. This means that it is entirely possible for there to be two or more declarations of the same lease in the lease file at the same time. In that case, the instance of that particular lease that appears last in the file is the one that is in effect. + + + SUCCESSFULLY_REMOVED_ALL_LEASES + Successfully deleted all leases.]]> + + + REMOVE_ALL_LEASES_ACTION + Remove all dhcp leases + + + SCANNING_NETWORK_TITLE + Scanning your network, the time needed depends of your subnet mask + + + NETWORK_VALUES_FOUND + Please wait .... Your subnet and your netmask appear to be : + + + ERROR_WHILE_REMOVING_ALL_LEASES + Error while removing all dhcp Leases]]> + + + ERROR_WHILE_SAVING_SETTINGS + Error while saving settings]]> + + diff --git a/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/dhcpd b/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/dhcpd new file mode 100644 index 0000000..96a490c --- /dev/null +++ b/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/dhcpd @@ -0,0 +1,335 @@ + + + DHCP manager + DHCP Manager + + + DHCPD_TITLE + DHCP Manager + + + DHCPD_SETTINGS_TITLE + Settings of the DHCP server + + + CONNECTED_IP + Show DHCP Clients + + + SCAN_YOUR_NETWORK + Scan your network + + + GLOBAL_WINPOPUP + Send Global Netsend WinPopup + + + CHECK_CLIENT_STATUS + Always check the status of computers (Disabled is much faster) + + + SHOW_CONNECTED_IP_TITLE + Show all devices connected to the dhcp server : + + + SCAN_YOUR_NETWORK_TITLE + Scan your network to show active devices : + + + GLOBAL_WINPOPUP_TITLE + Send a global WinPopup with the Net send protocol + + + STATUS_DHCP_SERVER + State of DHCPD + + + DHCP_START + DHCP Start + + + DHCP_END + DHCP End + + + CUSTOM_WINSERVER_TITLE + Enable a WINS Server. + + + CUSTOM_WINSERVER_STATUS + WINS Server + + + CUSTOM_WINSERVER_ADDRESS + WINS Server address + + + CUSTOM_DNS_TITLE + Enable custom DNS servers. + + + CUSTOM_DNS_STATUS + Custom DNS + + + PRIMARY_DNS_ADDRESS + Primary DNS + + + SECONDARY_DNS_ADDRESS + Secondary DNS + + + TERTIARY_DNS_ADDRESS + Tertiary DNS + + + CUSTOM_GATEWAY_TITLE + Enable a custom gateway address. + + + CUSTOM_GATEWAY_STATUS + Custom gateway + + + CUSTOM_GATEWAY_ADDRESS + Gateway address + + + CUSTOM_LEASETIME_TITLE + Set the lease time (default is 86400 seconds). + + + CUSTOM_LEASETIME + Custom lease time + + + SAVE_TITLE + After changing settings above, you must save and restart dhcpd. + + + SAVE/RESTART + Save/Restart + + + DHCPD_SETTING_ERRORS + DHCPd Settings ERRORS + + + DHCP_START_GREATER_DHCP_END_ERRORS + Incorrect range of IPs, the DHCP Start is greater than the DHCP End , Update unsuccessfull]]> + + + CLICK_HERE_TO_MAIN_PANEL + Click Here to return to the main panel]]> + + + DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP + Incorrect range of IPs, the range of IP address allocation must not include the server address, Update unsuccessfull]]> + + + DHCP_RANGE_WITH_BAD_IP + Incorrect IP in the DHCP range, Update unsuccessfull]]> + + + WINSSERVER_BAD_IP + Incorrect IP for WINS Server, Update unsuccessfull]]> + + + DNS_SERVER_WITH_BAD_IP + Incorrect IP for DNS servers, Update unsuccessfull]]> + + + GATEWAY_BAD_IP + Incorrect IP for Gateway, Update unsuccessfull]]> + + + SUCCESSFULLY_SAVED_SETTINGS + Successfully saved settings]]> + + + REMOVE_A_DHCP_LEASE_TITLE + Removing a DHCP Lease + + + REMOVE_A_DHCP_LEASE + Remove an entry in dhcpd.leases + + + ARE_YOU_SURE + are you sure ? + + + REMOVE_A_DHCP_LEASE_ACTION + You are about to remove a client from the dhcpd.leases file. + + + SUCCESSFULLY_DELETED_THE_CLIENT + Successfully deleted in dhcpd.leases the client : ]]> + + + WAKING_A_REMOTE_COMPUTER_TITLE + Waking Up a remote computer + + + WAKING_A_REMOTE_COMPUTER + You are about to wake up a remote computer. + + + WAKING_A_REMOTE_COMPUTER_ACTION + Are you sure you want to wake on lan the client : + + + + WAKE_UP + Wake UP + + + REMOVE + 移除 + + + SUCCESSFULLY_CLIENT_WOL_REQUEST + Successfully request to wake up the client. The computer may take time to wake up.]]> + + + ALL_OF_THEM + All of them + + + SENDING_A_WINPOPUP + Sending a WinPopup + + + SENDING_A_WINPOPUP_TO + You are about to send a WinPopup to + + + YOUR_MESSAGE + 您的消息 + + + WRITE_YOUR_MESSAGE + Write your message here + + + DO_YOU_WANT_TO_SENT + Do you want to send this message to + + + SEND_WINPOPUP_TO + Send a WinPopup to + + + SUCCESSFULLY_SENT_MESSAGE + Successfully sent message popup to]]> + + + WARNING_NO_WINPOPUP_GARANTY + Warning, there is no garanty that the popup will appear on the remote computer.]]> + + + MANAGING_DHCP_CLIENT + Managing DHCP clients + + + STATUS_REPORT + Operation status report : + + + REFRESH_CONNECTED_IP_LIST + You may want to refresh this list ? + + + REFRESH + Refresh the list + + + CLEAN_ALL_DHCPLEASES + You may want to clean the dhcp.leases + + + REMOVE_ALL_LEASES + Remove all leases + + + NETWORK_NAME + Network Name + + + STATUS_CLICK_FOR_WOL + Status - click for WOL + + + START_DATE + Start Date + + + END_DATE + End Date + + + MAC_ADDRESS + MAC 地址 + + + NOT_CHECKED + Not Checked...]]> + + + ACTIVE_DEVICE + Active Device]]> + + + WAKE_UP_ACTION + Wake-Up...]]> + + + REMOVE_ACTION + 移除... + + + WINPOPUP_ACTION + WinPopup... + + + NO_CONNECTED_COMPUTERS + There are no connected computers + + + REMOVE_DHCP_LEASE_TITLE + Removing all DHCP Lease + + + REMOVE_DHCP_LEASE_WARNING + Remove all entries in dhcpd.leases may cause issues]]> + + + REMOVE_DHCP_LEASE_WARNING2 + The lease file is a log-structured file - whenever a lease changes, the contents of that lease are written to the end of the file. This means that it is entirely possible for there to be two or more declarations of the same lease in the lease file at the same time. In that case, the instance of that particular lease that appears last in the file is the one that is in effect. + + + SUCCESSFULLY_REMOVED_ALL_LEASES + Successfully deleted all leases.]]> + + + REMOVE_ALL_LEASES_ACTION + Remove all dhcp leases + + + SCANNING_NETWORK_TITLE + Scanning your network, the time needed depends of your subnet mask + + + NETWORK_VALUES_FOUND + Please wait .... Your subnet and your netmask appear to be : + + + ERROR_WHILE_REMOVING_ALL_LEASES + Error while removing all dhcp Leases]]> + + + ERROR_WHILE_SAVING_SETTINGS + Error while saving settings]]> + + diff --git a/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/dhcpd b/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/dhcpd new file mode 100644 index 0000000..b93b46c --- /dev/null +++ b/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/dhcpd @@ -0,0 +1,335 @@ + + + DHCP manager + DHCP 管理員 + + + DHCPD_TITLE + DHCP 管理員 + + + DHCPD_SETTINGS_TITLE + DHCP 伺服器的設定 + + + CONNECTED_IP + 顯示 DHCP 客戶端 + + + SCAN_YOUR_NETWORK + 掃描您的網路 + + + GLOBAL_WINPOPUP + 傳送全球訊息提示視窗 + + + CHECK_CLIENT_STATUS + 總是檢核電腦狀態(關閉會讓運作較為快速) + + + SHOW_CONNECTED_IP_TITLE + 顯示連結到DHCP伺服器的所有裝置: + + + SCAN_YOUR_NETWORK_TITLE + 掃描您的網路以顯示啟動中的裝置: + + + GLOBAL_WINPOPUP_TITLE + 以網路傳送協定傳送全域WinPopup + + + STATUS_DHCP_SERVER + DHCPD狀態 + + + DHCP_START + DHCP啟動 + + + DHCP_END + DHCP關閉 + + + CUSTOM_WINSERVER_TITLE + 啟動WINS伺服器 + + + CUSTOM_WINSERVER_STATUS + WINS伺服器 + + + CUSTOM_WINSERVER_ADDRESS + WINS伺服器位址 + + + CUSTOM_DNS_TITLE + 啟動自訂DNS伺服器 + + + CUSTOM_DNS_STATUS + 自訂DNS + + + PRIMARY_DNS_ADDRESS + 主要DNS + + + SECONDARY_DNS_ADDRESS + 次要DNS + + + TERTIARY_DNS_ADDRESS + 主要DNS + + + CUSTOM_GATEWAY_TITLE + 啟動自訂閘道位址 + + + CUSTOM_GATEWAY_STATUS + 自訂閘道 + + + CUSTOM_GATEWAY_ADDRESS + 閘道位址 + + + CUSTOM_LEASETIME_TITLE + 設定租約時間(預設為86400秒) + + + CUSTOM_LEASETIME + 自訂租約時間 + + + SAVE_TITLE + 上述設定變更後,您必須存檔並重啟 dhcpd。 + + + SAVE/RESTART + 存檔/重啟 + + + DHCPD_SETTING_ERRORS + DHCPd 設定錯誤 + + + DHCP_START_GREATER_DHCP_END_ERRORS + IP 位址範圍錯誤,DHCP 啟始值大於 DHCP 結束值,更新未成功。]]> + + + CLICK_HERE_TO_MAIN_PANEL + 點擊此處以回到主控台]]> + + + DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP + 錯誤 IP 位址範圍,設定 IP 位址範圍不能涵蓋本伺服器的位址,更新未成功。]]> + + + DHCP_RANGE_WITH_BAD_IP + 錯誤 IP 位於 DHCP 位址範圍,更新未成功。]]> + + + WINSSERVER_BAD_IP + 錯誤 IP 位於 WINS 伺服器,更新未成功。]]> + + + DNS_SERVER_WITH_BAD_IP + 錯誤 IP 位於 DNS 伺服器,更新未成功。]]> + + + GATEWAY_BAD_IP + 錯誤 IP 位於 Gateway,更新未成功。]]> + + + SUCCESSFULLY_SAVED_SETTINGS + 成功儲存設定]]> + + + REMOVE_A_DHCP_LEASE_TITLE + 移除 DHCP 租約 + + + REMOVE_A_DHCP_LEASE + 在 dhcpd.leases 檔案中移除一筆記錄 + + + ARE_YOU_SURE + 您確定? + + + REMOVE_A_DHCP_LEASE_ACTION + 您將從 dhcpd.leases 檔刪除客戶端。 + + + SUCCESSFULLY_DELETED_THE_CLIENT + 成功從 dhcpd.leases 檔刪除客戶端:]]> + + + WAKING_A_REMOTE_COMPUTER_TITLE + 喚醒遠端電腦 + + + WAKING_A_REMOTE_COMPUTER + 您將喚醒遠端電腦。 + + + WAKING_A_REMOTE_COMPUTER_ACTION + 您確定將從區網喚醒客戶端: + + + + WAKE_UP + 喚醒 + + + REMOVE + 移除 + + + SUCCESSFULLY_CLIENT_WOL_REQUEST + 請求喚醒客戶端成功。電腦將花些時間喚醒。]]> + + + ALL_OF_THEM + 全部 + + + SENDING_A_WINPOPUP + 傳送 WinPopup + + + SENDING_A_WINPOPUP_TO + 您將傳送 WinPopup 到 + + + YOUR_MESSAGE + 您的訊息 + + + WRITE_YOUR_MESSAGE + 在此處書寫您的訊息 + + + DO_YOU_WANT_TO_SENT + 您有想要將此訊息傳送到 + + + SEND_WINPOPUP_TO + 傳送 WinPopup 到 + + + SUCCESSFULLY_SENT_MESSAGE + 成功傳送 WinPopup 到]]> + + + WARNING_NO_WINPOPUP_GARANTY + 注意,不保證 WinPopup 會顯示在遠端電腦。]]> + + + MANAGING_DHCP_CLIENT + 管理 DHCP 客戶端 + + + STATUS_REPORT + 運作狀態回報: + + + REFRESH_CONNECTED_IP_LIST + 您可能想要更新此名單? + + + REFRESH + 更新名單 + + + CLEAN_ALL_DHCPLEASES + 您可能想要清除DHCP的租約檔 + + + REMOVE_ALL_LEASES + 清除所有租約 + + + NETWORK_NAME + 網路名稱 + + + STATUS_CLICK_FOR_WOL + 狀態 - 點擊WOL網路開機 + + + START_DATE + 開始日期 + + + END_DATE + 結束日期 + + + MAC_ADDRESS + 網卡(MAC)位址 + + + NOT_CHECKED + 尚未檢核...]]> + + + ACTIVE_DEVICE + 啟用裝置]]> + + + WAKE_UP_ACTION + 喚醒...]]> + + + REMOVE_ACTION + 移除... + + + WINPOPUP_ACTION + Windows 內建區域網路傳訊(WinPopup)... + + + NO_CONNECTED_COMPUTERS + 無電腦連結 + + + REMOVE_DHCP_LEASE_TITLE + 移除所有DHCP租約 + + + REMOVE_DHCP_LEASE_WARNING + 移除所有DHCP租約檔輸入的資料可能導致問題發生]]> + + + REMOVE_DHCP_LEASE_WARNING2 + DHCP 租約檔屬於日誌結構檔 - 當租約改變,該租約內容被寫入檔案的末端。這意味著輸入的內容很可能同時呈現兩種或兩種以上宣告的相同租約於此租約檔中。在那樣的個案中,該特定租約是出現在文件最後的內容生效。 + + + SUCCESSFULLY_REMOVED_ALL_LEASES + 成功刪除所有DHCP租約。]]> + + + REMOVE_ALL_LEASES_ACTION + 移除所有DHCP租約 + + + SCANNING_NETWORK_TITLE + 掃描您的網路,需要的時間是根據您的子網路遮罩而定 + + + NETWORK_VALUES_FOUND + 請稍待 .... 您的子網路與網路遮罩顯示為: + + + ERROR_WHILE_REMOVING_ALL_LEASES + 移除所有DHCP租約時發生錯誤]]> + + + ERROR_WHILE_SAVING_SETTINGS + 儲存設定時發生錯誤]]> + + diff --git a/root/etc/e-smith/web/functions/dhcpd b/root/etc/e-smith/web/functions/dhcpd new file mode 100644 index 0000000..5c8a076 --- /dev/null +++ b/root/etc/e-smith/web/functions/dhcpd @@ -0,0 +1,956 @@ +#!/usr/bin/perl -wU + +#---------------------------------------------------------------------- +# heading : Configuration +# description : DHCP manager +# navigation : 2000 2500 +# +# Copyright (c) 2003 Thierry Quaak thierry@quaak.net +# 2014 Stephane de Labrusse stephdl@de-labrusse.fr +#---------------------------------------------------------------------- + +my $fm = esmith::FormMagick->new(); +$fm->parse_xml(); + +###Call Modules +use strict; +use CGI ':all'; +use CGI::Carp qw(fatalsToBrowser); +use esmith::cgi; +use esmith::util; +use esmith::templates; +use esmith::ConfigDB; +use esmith::AccountsDB; +use esmith::FormMagick; +use Net::Ping; +use esmith::util::network qw(:all); +use Socket qw( inet_aton ); + +###Declare function prototypes +sub Main_Display ($$); +sub Load_leases ($); +sub Main_Save ($); +sub Del_Lease ($); +sub Perform_Del_Lease ($); +sub Wake_Up ($); +sub Perform_Wake_Up ($); +sub Message ($$); +sub Global_WinPopup ($); +sub Perform_Message ($); +sub Table_IP ($$); +sub Scan_Local_Network ($); +sub Del_all_Lease ($); +sub Perform_del_all_Lease ($); +sub Save_checkip ($); + + +### 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. +BEGIN { + $ENV {'PATH'} = ''; + $ENV {'SHELL'} = '/bin/bash'; + delete $ENV {'ENV'}; +} + +###Define package global to SME configuration paramters using "old" method. +###We are using this method, over esmith::ConfigDB, to satisfy syntax in +###esmith::cgi +our %conf = (); +tie %conf, 'esmith::config'; +our @liste_computer ; +our @liste_connected ; + +###Change UID -- not sure what we are doing this, but all panels seem to +###call this function. +esmith::util::setRealToEffective (); + +our %status = ('enabled' => $fm->localise('ENABLED'), + 'disabled' => $fm->localise('DISABLED') + ); + +our %check = ('enabled' => $fm->localise('ENABLED'), + 'disabled' => $fm->localise('DISABLED') + ); + +###Restrict uploads to form submittals only +$CGI::POST_MAX=1024 * 100; # max 100K posts +$CGI::DISABLE_UPLOADS = 1; # no uploads + +###Examine state parameter and display the appropriate form +my $q = new CGI; +if (! grep (/^state$/, $q->param)){ Main_Display($q, '');} +elsif ($q->param ('state') eq "main_display"){Main_Display ($q,'');} +elsif ($q->param ('state') eq $fm->localise('REFRESH')){Table_IP ($q, '');} +elsif ($q->param ('state') eq "main_save"){Main_Save ($q);} +elsif ($q->param ('state') eq "del_lease"){Del_Lease ($q);} +elsif ($q->param ('state') eq "perform_del_lease"){Perform_Del_Lease ($q);} +elsif ($q->param ('state') eq "wake_up"){Wake_Up ($q);} +elsif ($q->param ('state') eq "perform_wake_up"){Perform_Wake_Up ($q);} +elsif ($q->param ('state') eq $fm->localise('GLOBAL_WINPOPUP')){Global_WinPopup ($q);} +elsif ($q->param ('state') eq "message"){Message ($q,'');} +elsif ($q->param ('state') eq "perform_message"){Perform_Message ($q);} +elsif ($q->param ('state') eq $fm->localise('CONNECTED_IP')){Table_IP ($q,'');} +elsif ($q->param ('state') eq $fm->localise('SCAN_YOUR_NETWORK')){Scan_Local_Network ($q);} +elsif ($q->param ('state') eq $fm->localise('REMOVE_ALL_LEASES')){Del_all_Lease ($q);} +elsif ($q->param ('state') eq $fm->localise('REMOVE_ALL_LEASES_ACTION')){Perform_del_all_Lease ($q);} +elsif ($q->param ('state') eq 'Save_checkIP'){Save_checkip ($q);} +else{esmith::cgi::genStateError ($q, \%conf);} +exit (0); + +#=============================================================================== +#SUBROUTINE TO SHOW MAIN PANEL +#=============================================================================== +sub Main_Display ($$){ + + ###Pull cgi object from parameters array + my $q = shift; + my @computer; + my $status ; + + ###Pull action message, if any, from parameters array + my $action_message = shift; + + ###Retrieve SME configuration entry for dhcpd + my $dbh_sme = esmith::ConfigDB->open('/home/e-smith/db/configuration'); + my %sme_conf = $dbh_sme->get('dhcpd')->props; + + ###Display Main Panel Title + esmith::cgi::genHeaderNonCacheable ($q, \%conf, $fm->localise('DHCPD_TITLE')); + + ###Check to see if we just processed a panel action. If so, display + ###action message and bail. + if ($action_message) { + print $q->h3 ($fm->localise('STATUS_REPORT') . " $action_message"); + } + + #------------------------------------------------------------ + # Start DHCP client Panel + #------------------------------------------------------------ + print $q->p (''); + print $q->startform (-method => 'POST', + -action => $q->url (-absolute => 1)); +print $q->Tr (esmith::cgi::genButtonRow ($q,$q->submit (-name => 'state',-value => $fm->localise('CONNECTED_IP')))); + +print $q->Tr (esmith::cgi::genButtonRow ($q,$q->submit (-name => 'state',-value => $fm->localise('SCAN_YOUR_NETWORK')))); + + print $q->Tr (esmith::cgi::genButtonRow ($q,$q->submit (-name => 'state',-value => $fm->localise('GLOBAL_WINPOPUP')))); + + print $q->hidden (-name => 'liste_connected', -override => 1, -default => "@liste_connected"); + + + #------------------------------------------------------------ + # Start DHCP daemon Panel + #------------------------------------------------------------ + print $q->hr; + print $q->h3 ($fm->localise('DHCPD_SETTINGS_TITLE')); + + if (! $sme_conf{'winscustom'} ) { + $sme_conf{'winscustom'} = 'disabled' ; + } + if (! $sme_conf{'dnscustom'} ) { + $sme_conf{'dnscustom'} = 'disabled' ; + } + if ( ! $sme_conf{'leasetime'} ) + { $sme_conf{'leasetime'} = "86400" ; + } + if (! $sme_conf{'gatewaycustom'} ) { + $sme_conf{'gatewaycustom'} = 'disabled' ; + } +#check the status (up or down) of dhcp client + print $q->table ({border => 0, cellspacing => 0, cellpadding => 4}, + esmith::cgi::genWidgetRow ($q, $fm->localise('CHECK_CLIENT_STATUS'), + $q->popup_menu (-name => 'dhcp_check', + -values => ['disabled', 'enabled'], + -default => $sme_conf{'check'}, + -labels => \%check)) ); + + # - modofication des plage DHCP + print $q->table ({border => 0, cellspacing => 0, cellpadding => 4}, + esmith::cgi::genWidgetRow ($q, $fm->localise('STATUS_DHCP_SERVER'), + $q->popup_menu (-name => 'dhcp_enable', + -values => ['enabled', 'disabled'], + -default => $sme_conf{'status'}, + -labels => \%status)) , + + esmith::cgi::genNameValueRow ($q, + $fm->localise('DHCP_START'), + 'dhcp_start', + $sme_conf{'start'}) , + esmith::cgi::genNameValueRow ($q, + $fm->localise('DHCP_END') , + 'dhcp_end', + $sme_conf{'end'}), + + esmith::cgi::genTextRow ($q, + $q->p ($fm->localise('CUSTOM_WINSERVER_TITLE'))), + esmith::cgi::genWidgetRow ($q, $fm->localise('CUSTOM_WINSERVER_STATUS'), + $q->popup_menu (-name => 'dhcp_winscustom', + -values => ['enabled', 'disabled'], + -default => $sme_conf{'winscustom'}, + -labels => \%status)), + + esmith::cgi::genNameValueRow ($q, + $fm->localise('CUSTOM_WINSERVER_ADDRESS'), + 'dhcp_winsserver', + $dbh_sme->get_prop('smb','WINSServer')), + + #### Custom DNS + esmith::cgi::genTextRow ($q, + $q->p ($fm->localise('CUSTOM_DNS_TITLE'))), + esmith::cgi::genWidgetRow ($q, $fm->localise('CUSTOM_DNS_STATUS'), + $q->popup_menu (-name => 'dhcp_dnscustom', + -values => ['enabled', 'disabled'], + -default => $sme_conf{'dnscustom'}, + -labels => \%status)), + + esmith::cgi::genNameValueRow ($q, + $fm->localise('PRIMARY_DNS_ADDRESS'), + 'dhcp_dns1server', + $sme_conf{'dns1server'}), + esmith::cgi::genNameValueRow ($q, + $fm->localise('SECONDARY_DNS_ADDRESS'), + 'dhcp_dns2server', + $sme_conf{'dns2server'}), + esmith::cgi::genNameValueRow ($q, + $fm->localise('TERTIARY_DNS_ADDRESS'), + 'dhcp_dns3server', + $sme_conf{'dns3server'}), + + #### Custom default Gateway + esmith::cgi::genTextRow ($q, + $q->p ($fm->localise('CUSTOM_GATEWAY_TITLE'))), + esmith::cgi::genWidgetRow ($q, $fm->localise('CUSTOM_GATEWAY_STATUS'), + $q->popup_menu (-name => 'dhcp_gatewaycustom', + -values => ['enabled', 'disabled'], + -default => $sme_conf{'gatewaycustom'}, + -labels => \%status)), + + esmith::cgi::genNameValueRow ($q, + $fm->localise('CUSTOM_GATEWAY_ADDRESS'), + 'dhcp_gateway', + $sme_conf{'gateway'}), + + #dhcp LEASE SET UP + esmith::cgi::genTextRow ($q, + $q->p ($fm->localise('CUSTOM_LEASETIME_TITLE'))), + esmith::cgi::genNameValueRow ($q, + $fm->localise('CUSTOM_LEASETIME'), + 'dhcp_leasetime', + $sme_conf{'leasetime'}) + ); + print ''; + + print $q->start_table ({width => "100%", -class => "sme-noborders"}), + "\n"; + print esmith::cgi::genButtonRow ($q, + $q->submit (-name => 'action', -value => $fm->localise('SAVE/RESTART'))); + + print $q->end_table,"\n"; + print $q->hidden ( + -name => 'state', + -override => 1, + -default => 'main_save' + ),"\n"; + print $q->endform; + esmith::cgi::genFooter ($q); + +} + +# +#=============================================================================== +#SUBROUTINE: Process Save From Main Panel +#=============================================================================== +sub Main_Save ($){ + + ##Pull CGI object from parameters array + my $q = shift; + + ###Build Hash of config parameters to update from cgi submit + my $dhcpd_status = $q->param ('dhcp_enable'); + my $dhcpd_winscustom = $q->param ('dhcp_winscustom'); + my $dhcpd_check = $q->param ('dhcp_check'); + my $dhcpd_start = $q->param ('dhcp_start'); + my $dhcpd_end = $q->param ('dhcp_end'); + my $dhcpd_winsserver = $q->param ('dhcp_winsserver'); + my $dhcpd_leasetime = $q->param ('dhcp_leasetime'); + my $dhcpd_dnscustom = $q->param ('dhcp_dnscustom'); + my $dhcpd_dns1server = $q->param ('dhcp_dns1server'); + my $dhcpd_dns2server = $q->param ('dhcp_dns2server'); + my $dhcpd_dns3server = $q->param ('dhcp_dns3server'); + my $dhcpd_gatewaycustom = $q->param ('dhcp_gatewaycustom'); + my $dhcpd_gateway = $q->param ('dhcp_gateway'); + + ###Update SME configuration dbase + my $dbh_sme = esmith::ConfigDB->open('/home/e-smith/db/configuration'); + + ##Initiate get method --> create record object + my $sme_record = $dbh_sme->get('dhcpd'); + #get localip of server + my $local_ip = $dbh_sme->get_value('LocalIP'); + + ##Set status of service + $sme_record->set_prop('status', $dhcpd_status); + $sme_record->set_prop('check' , $dhcpd_check); + $sme_record->set_prop('winscustom', $dhcpd_winscustom); + $sme_record->set_prop('leasetime' , $dhcpd_leasetime); + $sme_record->set_prop('dnscustom' , $dhcpd_dnscustom); + $sme_record->set_prop('gatewaycustom' , $dhcpd_gatewaycustom); + + #checkip to the dhcpserver, perform the save in DB configuration or display an error if value != of a valid ip or if dhcp_start is greater than dhcp_end + if ($dhcpd_status eq "enabled") + { + if ( isValidIP ($dhcpd_start) && isValidIP ($dhcpd_end)) + { + #check if $dhcpd_start is greater than $dhcpd_end and if yes, display an error message. + if (inet_aton($dhcpd_start) ge inet_aton($dhcpd_end)) + { + Main_Display($q, $fm->localise('DHCP_START_GREATER_DHCP_END_ERRORS') . ' (' . $dhcpd_start . '/' . $dhcpd_end .')'); + } + elsif ( ( (inet_aton($dhcpd_start) le inet_aton($local_ip) ) && ( inet_aton($dhcpd_end)) ge inet_aton($local_ip) ) ) + { + #display an error if the range of dhcp server include the ip of the server address + Main_Display($q, $fm->localise('DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP') . ' (' . $local_ip . ')'); + } + else + { + #set value + my $dhcpd_start = cleanIP($dhcpd_start); + my $dhcpd_end = cleanIP($dhcpd_end); + + $sme_record->set_prop('end', $dhcpd_end); + $sme_record->set_prop('start', $dhcpd_start); + } + } + #if $dhcpd_start or $dhcpd_end are not valid ip then display an error + else + { + Main_Display($q, $fm->localise('DHCP_RANGE_WITH_BAD_IP') . ' (' . $dhcpd_start . '/' . $dhcpd_end .')'); + } + } + + #checkip to the winserver perform the save in DB configuration or display an error if value != of a valid ip + if ($dhcpd_winscustom eq "enabled") + { + + if ( isValidIP ($dhcpd_winsserver) ) + { + #set value + my $dhcpd_winsserver = cleanIP($dhcpd_winsserver); + $dbh_sme->set_prop('smb','WINSServer', $dhcpd_winsserver); + } + else + { + #if $dhcpd_winsserver is not valid ip then display an error + Main_Display($q, $fm->localise('WINSSERVER_BAD_IP') . ' (' . $dhcpd_winsserver .')'); + } + } + elsif ($dhcpd_winscustom eq "disabled") + { + my $delws = $dbh_sme->get('smb'); + $delws->delete_prop('WINSServer'); + } + + #checkip to the dnsserver custom, perform the save in DB configuration or display an error if value != of a valid ip + if ($dhcpd_dnscustom eq "enabled") + { + #check if $dhcpd_dns1server and ( $dhcpd_dns2server are valid ip or $dhcpd_dns2server = null ) + if ( isValidIP ($dhcpd_dns1server) && (isValidIP($dhcpd_dns2server) || ( $dhcpd_dns2server eq "") ) && (isValidIP($dhcpd_dns3server) || ( $dhcpd_dns3server eq "") ) ) + { + #set value + my $dhcpd_dns1server = cleanIP($dhcpd_dns1server); + $sme_record->set_prop('dns1server' , $dhcpd_dns1server); + my $dhcpd_dns2server = cleanIP($dhcpd_dns2server); + $sme_record->set_prop('dns2server' , $dhcpd_dns2server); + my $dhcpd_dns3server = cleanIP($dhcpd_dns3server); + $sme_record->set_prop('dns3server' , $dhcpd_dns3server); + } + else + { + ##if $dhcpd_dns1server or $dhcpd_dns2server or $dhcpd_dns3server are not valid ip then display an error + Main_Display($q, $fm->localise('DNS_SERVER_WITH_BAD_IP') . ' (' . $dhcpd_dns1server . '/' . $dhcpd_dns2server . '/' . $dhcpd_dns3server .')'); + } + } + + #checkip to the gateway_custom perform the save in DB configuration or display an error if value != of a valid ip + if ($dhcpd_gatewaycustom eq "enabled") + { + if ( isValidIP ($dhcpd_gateway) ) + { + #set value + my $dhcpd_gateway = cleanIP($dhcpd_gateway); + $sme_record->set_prop('gateway' , $dhcpd_gateway); + } + else + { + #if $dhcpd_gateway is not valid ip then display an error + Main_Display($q, $fm->localise('GATEWAY_BAD_IP') . ' (' . $dhcpd_gateway .')'); + } + } + + + # - 4 expand templates + # changed to new sme standard signal-event + system ("/sbin/e-smith/signal-event","workgroup-update") == 0 + or die "Error while saving settings: $!"; + Main_Display($q, $fm->localise('SUCCESSFULLY_SAVED_SETTINGS') ); + exit; +} + +# +#=============================================================================== +#SUBROUTINE: procedure qui supprime un bail dans le dhcpd.leases +#=============================================================================== +sub Del_Lease ($){ + ###Pull CGI object from parameters array + $q = shift; + + ###Start Panel. + esmith::cgi::genHeaderNonCacheable ($q, \%conf, $fm->localise('REMOVE_A_DHCP_LEASE_TITLE')); + print $q->h3($fm->localise('REMOVE_A_DHCP_LEASE')); + + print $q->startform (-method => 'POST', -action => $q->url (-absolute => 1)); + + my $ip = $q->param ('host'); + my $name = $q->param ('name'); + + print $q->p ($fm->localise('REMOVE_A_DHCP_LEASE_ACTION') . ' (' . $name .'/' . $ip .')'); + print $q->p ($q->b ($fm->localise('ARE_YOU_SURE'))); + print $q->submit (-name => 'action', -value => $fm->localise('REMOVE')); + print $q->hidden (-name => 'host', + -override => 1, + -default => $ip + ); + print $q->hidden (-name => 'name', + -override => 1, + -default => $name + ); + + print $q->hidden (-name => 'state', + -override => 1, + -default => 'perform_del_lease'); + + print $q->endform; + print $q->p($fm->localise('CLICK_HERE_TO_MAIN_PANEL')); + esmith::cgi::genFooter ($q); + return; + +} + +#=============================================================================== +#SUBROUTINE: Perform delete lease +#=============================================================================== +sub Perform_Del_Lease($){ + + ###Pull CGI object from parameters array + $q = shift; + + ###Pull entry to delete + my $ip = $q->param('host'); + my $name = $q->param('name'); + my $name_in_file = '/var/lib/dhcpd/dhcpd.leases' ; + my $name_tmp_file = '/var/lib/dhcpd/dhcpd.leases.tmp' ; + my $name_out_file = '/var/lib/dhcpd/dhcpd.leases~' ; + my $del_current = "0" ; + + open(INFILE,"<$name_in_file") || die "Read Error $name_in_file, Read: $!"; + open(OUTFILE,">$name_tmp_file") || die "Write error $name_in_file, Write: $!"; + while () { + if ( "$_" =~ /lease $ip/ ) { + $del_current = "1" ; + } + if ( $del_current == "0" ) { print OUTFILE "$_" ; } + if ( "$_" =~ /}/ ) { + $del_current = "0" ; + } + } + rename ($name_tmp_file,$name_in_file) ; + system ("/bin/cp","-f","$name_in_file","$name_out_file") ; + close(INFILE); + close(OUTFILE); + + # changed to new sme standard signal-event + system ("/sbin/e-smith/signal-event","workgroup-update") == 0 + or die "Error while saving settings: $!"; + ###Return action message + Table_IP($q, $fm->localise('SUCCESSFULLY_DELETED_THE_CLIENT') . ' (' . $name . '/' . $ip .')'); + exit; +} + + +#=============================================================================== +#SUBROUTINE: procedure qui valide les parametres de l'host eteint +#=============================================================================== +sub Wake_Up ($){ + ###Pull CGI object from parameters array + $q = shift; + + ###Start Panel. + esmith::cgi::genHeaderNonCacheable ($q, \%conf, $fm->localise('WAKING_A_REMOTE_COMPUTER_TITLE')); + print $q->h3($fm->localise('WAKING_A_REMOTE_COMPUTER')); + + print $q->startform (-method => 'POST', -action => $q->url (-absolute => 1)); + + my $mac = uc($q->param ('MAC')); + my $name = uc($q->param ('name')); + + print $q->p ($q->b ($fm->localise('WAKING_A_REMOTE_COMPUTER_ACTION') . ' (' . $name . '/' . $mac . ')')); + + print $q->submit (-name => 'action', -value => $fm->localise('WAKE_UP') . " $name"); + print $q->hidden (-name => 'mac', + -override => 1, + -default => $mac + ); + print $q->hidden (-name => 'name', + -override => 1, + -default => $name + ); + + print $q->hidden (-name => 'state', + -override => 1, + -default => 'perform_wake_up'); + + print $q->endform; + print $q->p($fm->localise('CLICK_HERE_TO_MAIN_PANEL')); + esmith::cgi::genFooter ($q); + return; +} +#=============================================================================== +#SUBROUTINE: Perform wake UP +#=============================================================================== +sub Perform_Wake_Up($){ + + ###Pull CGI object from parameters array + $q = shift; + + ###Get Mac Adress + my $mac = uc($q->param('mac')); + my $name = uc($q->param('name')); + + #Send Wake Up to the station + #Old version obsolete since 1.5.0 - system ("/usr/bin/wol","$mac") ; + system ("/sbin/ether-wake","$mac") ; + ###Return action message + Table_IP($q, $fm->localise('SUCCESSFULLY_CLIENT_WOL_REQUEST') . ' (' . $name . '/' . $mac . ')'); + exit; +} + +#========================================================================= +# Procedure qui charge le dhcpd.conf +# retourne un tableau contenant les informations +#========================================================================= +sub Load_leases ($){ + + #Definition de variable + use vars qw/ + @detail $work_line $header /; + my $name_file = '/var/lib/dhcpd/dhcpd.leases' ; + @liste_computer = '' ; + #Ouverture du fichier en lecture seule + open(FILE,"<$name_file") || die "Read error $name_file, Error: $!" ; + + #Parcours du fichier dhcpd.leases + while () { + # suppression des commentaires + if ($_ =~ /^#/) { next; } + + #spurresion des lignes vides + if ($_ =~ /^$/) { next; } + #supression de la ligne uid de windows + if ($_ =~ /uid/) { next; } + #supression de la ligne tstp de XP + if ($_ =~ /tstp/) { next; } + #supression de la ligne "binding state active" + if ($_ =~ /binding/) { next; } + #supression de la ligne "next binding state" + if ($_ =~ /next/) { next; } + #suprresion des commentaire et des ; + $_ =~ s/\s#.*$//; + $_ =~ s/(;|{) *$//; + + #supression des espace en debut de lignes + $_ =~ s/^ *\s//; + + #Suppression des retours chariot en fin de lignes. + chomp $_ ; + + #Chargement d'un tableau avec le contenu de la ligne. + (@detail) = split(/ /, $_) ; + + #initialisation d'un nouveau poste connect� + if ($_ =~ /lease/) { + $work_line = "" ; + } + + $header = shift(@detail); + $work_line = $work_line . ";" . join(" ",@detail) ; + + if ($header =~ /}/) { + $work_line =~ s/ /;/g; + $work_line =~ s/^;//; + $work_line =~ s/"//g; + $work_line =~ s/;$//; + #we want the last entry is the first element of the array + unshift(@liste_computer,$work_line) ; + } + } + close(FILE); +} + +#=============================================================================== +#SUBROUTINE: Message +#=============================================================================== +sub Message($$){ + + ###Pull CGI object from parameters array + $q = shift; + + ###Pull entry to delete + my $name = $q->param('name'); + my @liste_connected = $q->param('liste_connected'); + my $message2send ; + + if ( $name ) { + @liste_connected = () ; + push(@liste_connected,$name) ; } + else {$name = $fm->localise('ALL_OF_THEM')} + + esmith::cgi::genHeaderNonCacheable ($q, \%conf,$fm->localise('SENDING_A_WINPOPUP')); + print $q->h3($fm->localise('SENDING_A_WINPOPUP_TO') . " @liste_connected."); + print $q->startform (-method => 'POST', -action => $q->url (-absolute => 1)); + print $q->table ({border => 0, cellspacing => 0, cellpadding => 4}, + esmith::cgi::genNameValueRow ($q,$fm->localise('YOUR_MESSAGE'), 'message2send', + $fm->localise('WRITE_YOUR_MESSAGE')) ); + print ''; + print $q->hr; + print $q->p ($q->p ($fm->localise('DO_YOU_WANT_TO_SENT') . " $name")); + print $q->submit (-name => 'action', -value => $fm->localise('SEND_WINPOPUP_TO') . " $name"); + print $q->hidden (-name => 'liste_connected', -override => 1, + -default => @liste_connected); + print $q->hidden (-name => 'message2send', -override => 1, -default => $message2send); + print $q->hidden (-name => 'state', -override => 1, -default => 'perform_message'); + print $q->endform; + print $q->p($fm->localise('CLICK_HERE_TO_MAIN_PANEL')); + esmith::cgi::genFooter ($q); + return; +} +#=============================================================================== +#SUBROUTINE: Perform message +#=============================================================================== +sub Perform_Message($){ + + ###Pull CGI object from parameters array + $q = shift; + + ###Get Mac Adress + my @liste_connected = split(' ',$q->param('liste_connected')); + my $message2send = $q->param('message2send'); + + foreach (@liste_connected){ + system ("/etc/e-smith/events/actions/send-message","$_","$message2send") ; + } + Table_IP($q, $fm->localise('SUCCESSFULLY_SENT_MESSAGE') . " @liste_connected." . $fm->localise('WARNING_NO_WINPOPUP_GARANTY')); + exit; +} + +#=============================================================================== +#SUBROUTINE: Win Popup for all connected hosts +#=============================================================================== +sub Global_WinPopup($){ + + my $q = shift; + my @liste_connected = $q->param('liste_connected'); + Message($q,@liste_connected); + exit; +} + +#=============================================================================== +#SUBROUTINE: Create Table_IP of dhcp server +#=============================================================================== +sub Table_IP ($$) { + ###Pull cgi object from parameters array + my $q = shift; + my @computer; + my $status ; + + ###Pull action message, if any, from parameters array + my $action_message = shift; + + ###Retrieve SME configuration entry for dhcpd + my $dbh_sme = esmith::ConfigDB->open('/home/e-smith/db/configuration'); + my %sme_conf = $dbh_sme->get('dhcpd')->props; + + ###Display Main Panel Title + esmith::cgi::genHeaderNonCacheable ($q, \%conf, $fm->localise('MANAGING_DHCP_CLIENT')); + + ###Check to see if we just processed a panel action. If so, display + ###action message and bail. + if ($action_message) { + print $q->h3 ($fm->localise('STATUS_REPORT') . " $action_message"); + } + + #------------------------------------------------------------ + # Start DHCP client Panel + #------------------------------------------------------------ + print $q->p (''); + print $q->startform (-method => 'POST', + -action => $q->url (-absolute => 1)); +#refresh the list +print esmith::cgi::genButtonRow ($q,$q->submit (-name => 'state',-value => $fm->localise('REFRESH'))); +#Remove all dhcpd lease +print esmith::cgi::genButtonRow ($q,$q->submit (-name => 'state',-value => $fm->localise('REMOVE_ALL_LEASES'))); +print $q->hr; + + print $q->table ({border => 0, cellspacing => 0, cellpadding => 4}, + esmith::cgi::genWidgetRow ($q, $fm->localise('CHECK_CLIENT_STATUS'), + $q->popup_menu (-name => 'dhcp_check', + -values => ['disabled', 'enabled'], + -default => $sme_conf{'check'}, + -labels => \%check)) ); + + ##save checkip ('Saving modification and restart the daemon...') and go to sub Save_checkip :) + print $q->table ({border => 0, cellspacing => 0, cellpadding => 4}, + esmith::cgi::genTextRow ($q, + $q->p ($fm->localise('SAVE_TITLE')))); + + print $q->start_table ({width => "100%", -class => "sme-noborders"}), + "\n"; + print esmith::cgi::genButtonRow ($q, + $q->submit (-name => 'action', -value => $fm->localise('SAVE/RESTART'))); + + print $q->end_table,"\n"; + print $q->hidden ( + -name => 'state', + -override => 1, + -default => 'Save_checkIP' + ),"\n"; + + print $q->endform; + + # Refresh Liste + print $q->p($fm->localise('CLICK_HERE_TO_MAIN_PANEL')); + + + &Load_leases ($q) ; + if ( 2 > 1 ) { + print $q->p ($q->b ('')); + print $q->table ({border => 1, cellspacing => 1, cellpadding => 4,nowarp => 1}); + print $q->Tr (esmith::cgi::genSmallCell ($q, $q->p ( '
' . 'IP')), + esmith::cgi::genSmallCell ($q, $q->p ( '
' . $fm->localise('NETWORK_NAME'))), + esmith::cgi::genSmallCell ($q, $q->p ( '
' . $fm->localise('STATUS_CLICK_FOR_WOL'))), + esmith::cgi::genSmallCell ($q, $q->p ( '
' . $fm->localise('START_DATE'))), + esmith::cgi::genSmallCell ($q, $q->p ( '
' . $fm->localise('END_DATE'))), + esmith::cgi::genSmallCell ($q, $q->p ( '
' . $fm->localise('MAC_ADDRESS') . + '
')), + ); +##9(sme8)12(sme9)->netbios (ancien10)::8(sme8)11(sme9)->mac address (ancien8)::0->ip:: +##it is possible you may adapt array number if more options/lines are added to the dhcpd.leases +##symptoms are a blank or wrong line in Table_IP + my @mac = (); + my @count = (); + + foreach (@liste_computer){ + @computer = split(/;/, $_) ; + + #we want to sort elements the array by mac address + + $computer[11] = uc($computer[11]) ; + push @mac, ($computer[11]); + my @count; + push @count , (grep /$computer[11]/ , @mac); + next if (scalar @count > 1); + + + #we start the table if it is a valid IP + if ( $computer[0] ) { + $computer[12] = uc($computer[12]) ; + my $datedeb = $computer[2] . "-" . $computer[3] ; + my $datefin = $computer[5] . "-" . $computer[6] ; + $status = $q->a ({href => $q->url (-absolute => 1) . + "?state=wake_up&MAC=" . $computer[11] . "&name=" . + $computer[12]}, $fm->localise('NOT_CHECKED')) ; + if ( $sme_conf{'check'} =~ /enabled/ ) { + use Net::Ping; + my($ping_obj) = Net::Ping->new("icmp"); + # formatage des dates + $computer[3] = substr($computer[3],0,5); + $computer[6] = substr($computer[6],0,5); + if ($ping_obj->ping("$computer[0]")) { + push(@liste_connected,$computer[12]) ; + $status = $fm->localise('ACTIVE_DEVICE'); + #alimentation de la liste des connect� + } + else { $status = $q->a ({href => $q->url (-absolute => 1) . + "?state=wake_up&MAC=" . $computer[11] . "&name=" . + $computer[12]}, $fm->localise('WAKE_UP_ACTION')); + } + } + else { + push(@liste_connected,$computer[12]) ; + + } + print $q->Tr (esmith::cgi::genSmallCell ($q, "$computer[0]"), + esmith::cgi::genSmallCell ($q, "$computer[12]"), + esmith::cgi::genSmallCell ($q, "
" ."$status" ), + esmith::cgi::genSmallCell ($q, "
" . "$datedeb" . "
"), + esmith::cgi::genSmallCell ($q, "
" . "$datefin" . "
"), + esmith::cgi::genSmallCell ($q, "$computer[11]"), + esmith::cgi::genSmallCell ($q, + $q->a ({href => $q->url (-absolute => 1) + . "?state=del_lease&host=" . $computer[0] . "&name=" . + $computer[12]}, $fm->localise('REMOVE_ACTION'))), + esmith::cgi::genSmallCell ($q, + $q->a ({href => $q->url (-absolute => 1) + . "?state=message&name=" . $computer[12]}, $fm->localise('WINPOPUP_ACTION'))) + ); + } + } + print ''; + } + else{ + print $q->p ($q->b ($fm->localise('NO_CONNECTED_COMPUTERS'))); + } + + print $q->p($fm->localise('CLICK_HERE_TO_MAIN_PANEL')); + + esmith::cgi::genFooter ($q); + exit; +} +# +#=============================================================================== +#SUBROUTINE: procedure qui sauve le checkip de la subroutine Table_ip +#=============================================================================== +sub Save_checkip ($){ + + ##Pull CGI object from parameters array + my $q = shift; + + ###Build Hash of config parameters to update from cgi submit + my $dhcpd_check = $q->param ('dhcp_check'); + + ##Initiate get method --> create record object + my $dbh_sme = esmith::ConfigDB->open('/home/e-smith/db/configuration'); + + my $sme_record = $dbh_sme->get('dhcpd'); + + $sme_record->set_prop('check' , $dhcpd_check); + + system ("/sbin/e-smith/signal-event","workgroup-update") == 0 + or die "Error while saving settings: $!"; + Table_IP($q, $fm->localise('SUCCESSFULLY_SAVED_SETTINGS')); + exit; +} +# +#=============================================================================== +#SUBROUTINE: procedure qui supprime tous les bail dans le dhcpd.leases +#=============================================================================== +sub Del_all_Lease ($){ + ###Pull CGI object from parameters array + $q = shift; + + ###Start Panel. + esmith::cgi::genHeaderNonCacheable ($q, \%conf, $fm->localise('REMOVE_DHCP_LEASE_TITLE')); + print $q->h3($fm->localise('REMOVE_DHCP_LEASE_WARNING')); + + print $q->startform (-method => 'POST', -action => $q->url (-absolute => 1)); + + + + print $q->p ( $fm->localise('REMOVE_DHCP_LEASE_WARNING2')); + + print $q->p ($q->b ($fm->localise('ARE_YOU_SURE'))); + + print $q->submit (-name => 'state', -value => $fm->localise('REMOVE_ALL_LEASES_ACTION')); + + print $q->p($fm->localise('CLICK_HERE_TO_MAIN_PANEL')); + + + print $q->endform; + esmith::cgi::genFooter ($q); + return; + +} +# +#=============================================================================== +#SUBROUTINE: supprime tous les bail dans le dhcpd.leases +#=============================================================================== +sub Perform_del_all_Lease ($){ + + system ('/bin/echo "" > /var/lib/dhcpd/dhcpd.leases') ==0 + or die "Error while removing all leases: $!"; + + system ("/sbin/e-smith/signal-event","workgroup-update") == 0 + or die "Error while saving settings: $!"; + + Table_IP($q, $fm->localise('SUCCESSFULLY_REMOVED_ALL_LEASES')); + exit; +} + +#=============================================================================== +#SUBROUTINE: Scan The Local Network +#=============================================================================== +sub Scan_Local_Network ($) { + + esmith::cgi::genHeaderNonCacheable ($q, \%conf, $fm->localise('SCANNING_NETWORK_TITLE')); + my $nmap_sme = esmith::ConfigDB->open('/home/e-smith/db/configuration'); + my $mask = $nmap_sme->get_value('LocalNetmask'); + my $network = $nmap_sme->get_prop('InternalInterface','Network'); + +#we start to calculate the method to find the cidr (we want to use network/cidr with nmap) + + sub dec2bin { + my $str = unpack("B32", pack("N", shift)); + return $str; +} + +sub netmask2cidr { + my ($mask, $network) = @_; + my @octet = split (/\./, $mask); + my @bits; + my $binmask; + my $binoct; + my $bitcount=0; + + foreach (@octet) { + $binoct = dec2bin($_); + $binmask = $binmask . substr $binoct, -8; + } + + # let's count the 1s + @bits = split (//,$binmask); + foreach (@bits) { + if ($_ eq "1") { + $bitcount++; + } + } + + my $cidr = $network . "/" . $bitcount; + return $cidr; +} + +#Then lets go to calculate the cidr + my $cidr = netmask2cidr($mask, $network); + +#ok go to use nmap with nmap -T4 -sP network/cidr + print $q->p ; + print $q->h3($fm->localise('NETWORK_VALUES_FOUND') . " $cidr \($mask\)"); + print $q->p ; + print $q->p($fm->localise('CLICK_HERE_TO_MAIN_PANEL')); + + foreach (`/usr/bin/nmap --script smb-os-discovery.nse -p U:137,T:139 $cidr| + /bin/grep -Ev "MAC|NetBIOS|OS CPE"| /bin/grep -E "scan|done|Computer|OS"| + /bin/sed -e 's/Nmap scan/-- Scan/g'|/bin/sed -e 's/done/Done/g'| + /bin/sed -e 's/Nmap//g'|/bin/sed -e 's/|/ /g'`) { + print $q->br($_);} + + print $q->p ; + + print $q->p($fm->localise('CLICK_HERE_TO_MAIN_PANEL')); + + esmith::cgi::genFooter ($q); + exit; + } + +__DATA__ +
+
diff --git a/root/usr/share/smanager/lib/SrvMngr/Controller/Dhcpd.pm b/root/usr/share/smanager/lib/SrvMngr/Controller/Dhcpd.pm new file mode 100644 index 0000000..1687214 --- /dev/null +++ b/root/usr/share/smanager/lib/SrvMngr/Controller/Dhcpd.pm @@ -0,0 +1,704 @@ +package SrvMngr::Controller::Dhcpd; + +#---------------------------------------------------------------------- +# heading : Network +# description : DHCP manager +# navigation : 6000 550 +# +# name : dhcpd, method : get, url : /dhcpd, ctlact : Dhcpd#main +# name : dhcpd1, method : get, url : /dhcpd1, ctlact : Dhcpd#do_leases +# name : dhcpd2, method : get, url : /dhcpd2, ctlact : Dhcpd#do_winpopup +# name : dhcpd3, method : get, url : /dhcpd3, ctlact : Dhcpd#do_scan +# name : dhcpd4, method : get, url : /dhcpd4, ctlact : Dhcpd#do_delete_all_leases +# name : dhcpd5, method : post, url : /dhcpd5, ctlact : Dhcpd#do_update_config +# name : dhcpd6, method : get, url : /dhcpd6, ctlact : Dhcpd#do_delete_one_lease +# name : dhcpd7, method : get, url : /dhcpd7, ctlact : Dhcpd#do_refresh_leases +# name : dhcpd8, method : get, url : /dhcpd8, ctlact : Dhcpd#do_winpopup +# name : dhcpd9, method : get, url : /dhcpd9, ctlact : Dhcpd#do_wol +# name : dhcpd10, method : post, url : /dhcpd10, ctlact : Dhcpd#do_update_check +# +# routes : end +# +# +# Documentation: https://wiki.koozali.org/Dhcpmanager +# +use strict; +use warnings; +use Mojo::Base 'Mojolicious::Controller'; + +use constant FALSE => 0; +use constant TRUE => 1; + +use Locale::gettext; +use SrvMngr::I18N; +use SrvMngr qw(theme_list init_session); + +use Data::Dumper; +use esmith::util; +use esmith::HostsDB; +use esmith::AccountsDB; +use Net::Ping; +use esmith::util::network qw(:all); +use Socket qw( inet_aton ); + + +#our $adb = esmith::AccountsDB->open() or die("Unable to open accounts DB"); + +my %dhcp_data = (); + +sub main { + # + # Initial page - full summary of parameters etc + # Initial para from the Wiki. + # + my $c = shift; + %dhcp_data = (); + do_display($c); +} + +sub do_display { + # + # Front parameters page + # + my $c = shift; + $c->app->log->info( $c->log_req ); + my $title = $c->l("dhcpd_DHCP manager"); + my $modul = ''; + my $trt = "SETTINGS"; + our $db = esmith::ConfigDB->open() or die("Unable to open Configuration DB"); + our %sme_conf = $db->get('dhcpd')->props; + our %smb_conf = $db->get('smb')->props; + $dhcp_data{trt} = $trt; + $dhcp_data{"status"} = [[$c->l('dhcpd_ENABLED'),'enabled'], + [$c->l('dhcpd_DISABLED'),'disabled'] + ]; + + $dhcp_data{"check"} = [[$c->l('dhcpd_ENABLED'),'enabled'], + [$c->l('dhcpd_DISABLED'),'disabled'] + ]; + if (! $sme_conf{'winscustom'} ) { + $sme_conf{'winscustom'} = 'disabled' ; + } + if (! $sme_conf{'dnscustom'} ) { + $sme_conf{'dnscustom'} = 'disabled' ; + } + if ( ! $sme_conf{'leasetime'} ) + { $sme_conf{'leasetime'} = "86400" ; + } + if (! $sme_conf{'gatewaycustom'} ) { + $sme_conf{'gatewaycustom'} = 'disabled' ; + } + # Accumulate parameters for Configuration DB + $dhcp_data{'params'} = \%sme_conf; + $dhcp_data{'smbparams'} = \%smb_conf; + $c->stash( title => $title, + modul => $modul, + dhcp_data => \%dhcp_data + ); + #die("here"); + $c->render( template => 'dhcpd' ); +} + +sub do_leases { + # + # Show a table of the leases + # + my $c = shift; + my $title = $c->l("dhcpd_MANAGING_DHCP_CLIENT"); + my $modul = ''; + my $trt = "LEASES"; + $dhcp_data{"check"} = [[$c->l('dhcpd_ENABLED'),'enabled'], + [$c->l('dhcpd_DISABLED'),'disabled'] + ]; + $dhcp_data{trt} = $trt; + $dhcp_data{"first"} = ''; + my @leases = get_leases_in_array($c); + $c->stash( title => $title, modul => $modul, dhcp_data => \%dhcp_data, leases=> \@leases ); + $c->render( template => 'dhcpd' ); +} + + +sub do_winpopup { + # + # call to win pop up + # + my $c = shift; + my $title = $c->l("dhcpd_GLOBAL_WINPOPUP"); + my $modul = ''; + my $trt = "WINPOPUP"; + $dhcp_data{trt} = $trt; + $dhcp_data{"first"} = ''; + #..... get winpopup details + $c->stash( title => $title, modul => $modul, dhcp_data => \%dhcp_data ); + $c->render( template => 'dhcpd' ); +} + +sub do_scan { + # + # call to show scan results + # + my $c = shift; + my $title = $c->l("dhcpd_SCANNING_NETWORK_TITLE"); + my $modul = ''; + my $trt = "SCAN"; + $dhcp_data{trt} = $trt; + $dhcp_data{"first"} = ''; + # ..... get scan results into stash for passing to html template + my $dhcp_scanresults = get_scan_results($c); + $c->stash( title => $title, modul => $modul, "dhcp_data" => \%dhcp_data, "scanresults" => $dhcp_scanresults); + $c->render( template => 'dhcpd' ); +} + +sub do_update_config { + # + # Update config dhcp parameters + # called through form submit. + # + my $c = shift; + # Input results are in $c->param(). + # If parameters do not validate, then return error message. + # else write into config DB, and... + # signal-event and ...return ok + $dhcp_data{"success"} =""; + my $ret = Main_Save($c); + if ($ret eq 'ok') { + $dhcp_data{"success"}="dhcpd_SUCCESSFULLY_SAVED_SETTINGS"; + } else { + $dhcp_data{"error"}=$ret; + } + do_display($c); + return; +} + +sub do_update_check { + #Just update the check parameter + my $c = shift; + my $dhcpd_check = $c->param ('dhcp_check'); + ###Update SME configuration dbase + my $dbh_sme = esmith::ConfigDB->open('/home/e-smith/db/configuration'); + ##Initiate get method --> create record object + my $sme_record = $dbh_sme->get('dhcpd'); + $sme_record->set_prop('check' , $dhcpd_check); + $dhcp_data{"success"}="dhcpd_SUCCESSFULLY_SAVED_SETTINGS"; + do_display($c); + return; +} + +sub Main_Save ($){ + + ##Pull CGI object from parameters array + my $q = shift; + + ###Build Hash of config parameters to update from cgi submit + my $dhcpd_status = $q->param ('dhcp_enable'); + my $dhcpd_winscustom = $q->param ('dhcp_winscustom'); + my $dhcpd_check = $q->param ('dhcp_check'); + my $dhcpd_start = $q->param ('dhcp_start'); + my $dhcpd_end = $q->param ('dhcp_end'); + my $dhcpd_winsserver = $q->param ('dhcp_winsserver'); + my $dhcpd_leasetime = $q->param ('dhcp_leasetime'); + my $dhcpd_dnscustom = $q->param ('dhcp_dnscustom'); + my $dhcpd_dns1server = $q->param ('dhcp_dns1server'); + my $dhcpd_dns2server = $q->param ('dhcp_dns2server'); + my $dhcpd_dns3server = $q->param ('dhcp_dns3server'); + my $dhcpd_gatewaycustom = $q->param ('dhcp_gatewaycustom'); + my $dhcpd_gateway = $q->param ('dhcp_gateway'); + + ###Update SME configuration dbase + my $dbh_sme = esmith::ConfigDB->open('/home/e-smith/db/configuration'); + + ##Initiate get method --> create record object + my $sme_record = $dbh_sme->get('dhcpd'); + #get localip of server + my $local_ip = $dbh_sme->get_value('LocalIP'); + + ##Set status of service + $sme_record->set_prop('status', $dhcpd_status); + $sme_record->set_prop('check' , $dhcpd_check); + $sme_record->set_prop('winscustom', $dhcpd_winscustom); + $sme_record->set_prop('leasetime' , $dhcpd_leasetime); + $sme_record->set_prop('dnscustom' , $dhcpd_dnscustom); + $sme_record->set_prop('gatewaycustom' , $dhcpd_gatewaycustom); + + #checkip to the dhcpserver, perform the save in DB configuration or display an error if value != of a valid ip or if dhcp_start is greater than dhcp_end + + + if ($dhcpd_status eq "enabled") + { + if ( isValidIP ($dhcpd_start) && isValidIP ($dhcpd_end)) + { + #check if $dhcpd_start is greater than $dhcpd_end and if yes, display an error message. + + if (inet_aton($dhcpd_start) ge inet_aton($dhcpd_end)) + { + return $q->l('dhcpd_DHCP_START_GREATER_DHCP_END_ERRORS') . ' (' . $dhcpd_start . '/' . $dhcpd_end .')'; + } + elsif ( ( (inet_aton($dhcpd_start) le inet_aton($local_ip) ) && ( inet_aton($dhcpd_end)) ge inet_aton($local_ip) ) ) + { + #display an error if the range of dhcp server include the ip of the server address + return $q->l('dhcpd_DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP') . ' (' . $local_ip . ')'; + } + else + { + #set value + my $dhcpd_start = cleanIP($dhcpd_start); + my $dhcpd_end = cleanIP($dhcpd_end); + + $sme_record->set_prop('end', $dhcpd_end); + $sme_record->set_prop('start', $dhcpd_start); + } + } + #if $dhcpd_start or $dhcpd_end are not valid ip then display an error + else + { + return $q->l('dhcpd_DHCP_RANGE_WITH_BAD_IP') . ' (' . $dhcpd_start . '/' . $dhcpd_end .')'; + } + } + + #checkip to the winserver perform the save in DB configuration or display an error if value != of a valid ip + if ($dhcpd_winscustom eq "enabled") + { + + if ( isValidIP ($dhcpd_winsserver) ) + { + #set value + my $dhcpd_winsserver = cleanIP($dhcpd_winsserver); + $dbh_sme->set_prop('smb','WINSServer', $dhcpd_winsserver); + } + else + { + #if $dhcpd_winsserver is not valid ip then display an error + return $q->l('dhcpd_WINSSERVER_BAD_IP') . ' (' . $dhcpd_winsserver .')'; + } + } + elsif ($dhcpd_winscustom eq "disabled") + { + my $delws = $dbh_sme->get('smb'); + $delws->delete_prop('WINSServer'); + } + + #checkip to the dnsserver custom, perform the save in DB configuration or display an error if value != of a valid ip + if ($dhcpd_dnscustom eq "enabled") + { + #check if $dhcpd_dns1server and ( $dhcpd_dns2server are valid ip or $dhcpd_dns2server = null ) + if ( isValidIP ($dhcpd_dns1server) && (isValidIP($dhcpd_dns2server) || ( $dhcpd_dns2server eq "") ) && (isValidIP($dhcpd_dns3server) || ( $dhcpd_dns3server eq "") ) ) + { + #set value + my $dhcpd_dns1server = cleanIP($dhcpd_dns1server); + $sme_record->set_prop('dns1server' , $dhcpd_dns1server); + my $dhcpd_dns2server = cleanIP($dhcpd_dns2server); + $sme_record->set_prop('dns2server' , $dhcpd_dns2server); + my $dhcpd_dns3server = cleanIP($dhcpd_dns3server); + $sme_record->set_prop('dns3server' , $dhcpd_dns3server); + } + else + { + ##if $dhcpd_dns1server or $dhcpd_dns2server or $dhcpd_dns3server are not valid ip then display an error + return $q->l('dhcpd_DNS_SERVER_WITH_BAD_IP') . ' (' . $dhcpd_dns1server . '/' . $dhcpd_dns2server . '/' . $dhcpd_dns3server .')'; + } + } + + #checkip to the gateway_custom perform the save in DB configuration or display an error if value != of a valid ip + if ($dhcpd_gatewaycustom eq "enabled") + { + if ( isValidIP ($dhcpd_gateway) ) + { + #set value + my $dhcpd_gateway = cleanIP($dhcpd_gateway); + $sme_record->set_prop('gateway' , $dhcpd_gateway); + } + else + { + #if $dhcpd_gateway is not valid ip then display an error + return $q->l('dhcpd_GATEWAY_BAD_IP') . ' (' . $dhcpd_gateway .')'; + } + } + + + # - 4 expand templates + # changed to new sme standard signal-event + system ("/sbin/e-smith/signal-event","workgroup-update") == 0 + or die "Error while saving settings: $!"; + return 'ok'; + exit; +} + + +sub do_delete_all_leases { + # + # Delete all the specified lease + # Called from button at top of leases list panel + # + my $c = shift; + my $ret = delete_all_leases($c); + if ($ret == 'ok') { + $dhcp_data{"success"}="dhcpd_SUCCESSFULLY_SAVED_SETTINGS"; + do_leases($c); + } + else {$dhcp_data{"error"}=$ret;} + return ; +} + +sub do_delete_one_lease { + # + # Delete the specified lease + # Called from link in table of leases + # + my $c = shift; + # Lease in $c->param("lease") + # Validate - if not return error message + # delete it + # If deletion not ok return message + # else return "ok" + my $ret = delete_one_lease($c); + if ($ret == 'ok') { + $dhcp_data{"success"}="dhcpd_SUCCESSFULLY_SAVED_SETTINGS"; + do_leases($c); + } + else {$dhcp_data{"error"}=$ret;} + return ; +} + +sub get_scan_results { + my $c = shift; + #...do it + return Scan_Local_Network($c); +} + + +sub update_config { + my $c = shift; + #...do it + return "ok"; +} + +sub delete_one_lease { + my $c = shift; + Perform_Del_Lease($c); + return "ok"; +} + +sub delete_all_leases { + my $c = shift; + Perform_del_all_Lease($c); + return "ok"; +} + +sub get_leases_in_array { + my $c = shift; + my @leases = Load_leases($c); + # ...do it + return @leases; +} + + +sub Perform_del_all_Lease ($){ + + system ('/bin/echo "" > /var/lib/dhcpd/dhcpd.leases') ==0 + or die "Error while removing all leases: $!"; + + system ("/sbin/e-smith/signal-event","workgroup-update") == 0 + or die "Error while saving settings: $!"; + + return 'ok'; + exit; +} + +#=============================================================================== +#SUBROUTINE: Perform delete lease +#=============================================================================== +sub Perform_Del_Lease($){ + + ###Pull CGI object from parameters array + my $c = shift; + +#my $fred = 1/0; + + ###Pull entry to delete + my $ip = $c->param('ip'); + my $name = $c->param('name'); + my $name_in_file = '/var/lib/dhcpd/dhcpd.leases' ; + my $name_tmp_file = '/var/lib/dhcpd/dhcpd.leases.tmp' ; + my $name_out_file = '/var/lib/dhcpd/dhcpd.leases~' ; + my $del_current = "0" ; + + open(INFILE,"<$name_in_file") || die "Read Error $name_in_file, Read: $!"; + open(OUTFILE,">$name_tmp_file") || die "Write error $name_in_file, Write: $!"; + while () { + if ( "$_" =~ /lease $ip/ ) { + $del_current = "1" ; + } + if ( $del_current == "0" ) { print OUTFILE "$_" ; } + if ( "$_" =~ /}/ ) { + $del_current = "0" ; + } + } + rename ($name_tmp_file,$name_in_file) ; + system ("/bin/cp","-f","$name_in_file","$name_out_file") ; + close(INFILE); + close(OUTFILE); + + # changed to new sme standard signal-event + system ("/sbin/e-smith/signal-event","workgroup-update") == 0 + or die "Error while saving settings: $!"; + ###Return action message + return $c->l('SUCCESSFULLY_DELETED_THE_CLIENT') . ' (' . $name . '/' . $ip .')'; +} + +#=============================================================================== +#SUBROUTINE: Scan The Local Network +#=============================================================================== +sub dec2bin { + my $str = unpack("B32", pack("N", shift)); + return $str; +} + +sub netmask2cidr { + my ($mask, $network) = @_; + my @octet = split (/\./, $mask); + my @bits; + my $binmask; + my $binoct; + my $bitcount=0; + + foreach (@octet) { + $binoct = dec2bin($_); + $binmask = $binmask . substr $binoct, -8; + } + + # let's count the 1s + @bits = split (//,$binmask); + foreach (@bits) { + if ($_ eq "1") { + $bitcount++; + } + } + my $cidr = $network . "/" . $bitcount; + return $cidr; +} + +sub get_mac_address { + # From the leases file + my ($ip, $file) = @_; + open(my $fh, '<', $file) or die "Could not open file '$file' $!"; + my $mac_address = undef; + my $lease_block; + while(my $line = <$fh>) { + if($line =~ /lease $ip {/ .. $line =~ /}/) { + $lease_block .= $line; + if($line =~ /}/) { + if($lease_block =~ /hardware ethernet (\S+);/) { + $mac_address = $1; + last; + } else { + $lease_block = ''; + } + } + } + } + close $fh; + return $mac_address; +} + +sub trim { my $s = shift; $s =~ s/^\s+|\s+$//g; return $s }; + +sub get_mac_address_by_ping { + my ($ip) = trim(@_); + # Ping the IP to ensure it's in the ARP table + my $ping_result = `ping -c 1 -W 1 $ip`; + #return $ping_result; + if($ping_result =~ m/1 packets transmitted, 1 received/) { + # Fetch the ARP table and find the line with the IP address + my $mac_result = `nmap -PR -sn $ip`; + #return "*$arp_result *$ip*"; + # If found, return the MAC address + #if ($arp_result =~ m/.*at ((?:[0-9a-f]{2}\:){5}[0-9a-f]{2})/) { + if ($mac_result =~ /MAC Address: (..:..:..:..:..:..) /) { + return $1; + } else { return "mac not in nmap result";} + } else { return "no ping";} + return undef; +} + + + +sub Scan_Local_Network ($) { + + my $nmap_sme = esmith::ConfigDB->open('/home/e-smith/db/configuration'); + my $mask = $nmap_sme->get_value('LocalNetmask'); + my $network = $nmap_sme->get_prop('InternalInterface','Network'); + +#we start to calculate the method to find the cidr (we want to use network/cidr with nmap) + my $cidr = netmask2cidr($mask, $network); + +#ok go to use nmap with nmap -T4 -sP network/cidr + my @nmap_output= `/usr/bin/nmap --script smb-os-discovery.nse -p U:137,T:139 $cidr| + /bin/grep -Ev "MAC|NetBIOS|OS CPE"| /bin/grep -E "scan|done|Computer|OS"| + /bin/sed -e 's/Nmap scan/-- Scan/g'|/bin/sed -e 's/done/Done/g'| + /bin/sed -e 's/Nmap//g'|/bin/sed -e 's/|/ /g'`; + + my @extracted_output; + my $leasefile = "/var/lib/dhcpd/dhcpd.leases"; + foreach my $line (@nmap_output) { + if ($line =~ m/Scan report for ([\w\.-]+) \(([\d\.\:]+)\)/) { + my $ip = $2; + my $mac = get_mac_address($ip,$leasefile); + if (!$mac){ + $mac = get_mac_address_by_ping($ip); + } +# if (!$mac) {$mac = "unknown";} + my %pair = ('Network' => $1, 'ip' => $ip, 'mac' => $mac); # $1 => PC Name, $2 => IP Address + push @extracted_output, \%pair; + } + } + return \@extracted_output; +} + + + +#========================================================================= +# Procedure qui charge le dhcpd.conf +# retourne un tableau contenant les informations +#========================================================================= +sub Load_leases ($){ + + my $q = shift; + #Definition de variable + use vars qw/ + @detail $work_line $header /; + my $name_file = '/var/lib/dhcpd/dhcpd.leases' ; + our @liste_computer = '' ; + our $db = esmith::ConfigDB->open() or die("Unable to open Configuration DB"); + our %sme_conf = $db->get('dhcpd')->props; + #Ouverture du fichier en lecture seule + open(FILE,"<$name_file") || die "Read error $name_file, Error: $!" ; + + #Parcours du fichier dhcpd.leases + while () { + # suppression des commentaires + if ($_ =~ /^#/) { next; } + + #spurresion des lignes vides + if ($_ =~ /^$/) { next; } + #supression de la ligne uid de windows + if ($_ =~ /uid/) { next; } + #supression de la ligne tstp de XP + if ($_ =~ /tstp/) { next; } + #supression de la ligne "binding state active" + if ($_ =~ /binding/) { next; } + #supression de la ligne "next binding state" + if ($_ =~ /next/) { next; } + #suprresion des commentaire et des ; + $_ =~ s/\s#.*$//; + $_ =~ s/(;|{) *$//; + + #supression des espace en debut de lignes + $_ =~ s/^ *\s//; + + #Suppression des retours chariot en fin de lignes. + chomp $_ ; + + #Chargement d'un tableau avec le contenu de la ligne. + (@detail) = split(/ /, $_) ; + + #initialisation d'un nouveau poste connect� + if ($_ =~ /lease/) { + $work_line = "" ; + } + + $header = shift(@detail); + $work_line = $work_line . ";" . join(" ",@detail) ; + + if ($header =~ /}/) { + $work_line =~ s/ /;/g; + $work_line =~ s/^;//; + $work_line =~ s/"//g; + $work_line =~ s/;$//; + #we want the last entry is the first element of the array + unshift(@liste_computer,$work_line) ; + } + } + close(FILE); + # Now check if up and extract details + my @mac = (); + my @count = (); + my @results = (); + my @liste_connected = (); + foreach (@liste_computer){ + my @computer = split(/;/, $_) ; + #we want to sort elements the array by mac address + $computer[11] = uc($computer[11]) ; + push @mac, ($computer[11]); + my @count; + push @count , (grep /$computer[11]/ , @mac); + next if (scalar @count > 1); + #we start the table if it is a valid IP + if ( $computer[0] ) { + $computer[12] = uc($computer[12]) ; + my $datedeb = $computer[2] . "-" . $computer[3] ; + my $datefin = $computer[5] . "-" . $computer[6] ; + my $status = 'dhcpd_NOT_CHECKED'; + #my $status = '".$q->l('dhcpd_NOT_CHECKED').""; + if ( $sme_conf{'check'} =~ /enabled/ ) { + use Net::Ping; + my($ping_obj) = Net::Ping->new("icmp"); + # formatage des dates + $computer[3] = substr($computer[3],0,5); + $computer[6] = substr($computer[6],0,5); + if ($ping_obj->ping("$computer[0]")) { + push(@liste_connected,$computer[12]) ; + $status = 'dhcpd_ACTIVE_DEVICE'; + #alimentation de la liste des connect� + } + else { $status = 'dhcpd_WAKE_UP_ACTION';} + #else { $status = '".$q->l('dhcpd_WAKE_UP_ACTION').""; + } + my %ipdetails = (ip=>$computer[0],name=>$computer[12],wol=>$status,start=>$datedeb,end=>$datefin,mac=>$computer[11]); + push(@results,\%ipdetails); + } + else { + push(@liste_connected,$computer[12]) ; + } + } + return @results; +} + +sub winpopup{ + my $c = shift; + # Message in $c->param("winpopupmsg") + # .... do it + return TRUE; +} + +sub do_wol{ + my $c = shift; + my $retVal = Perform_Wake_Up($c); + if ($retVal) {$dhcp_data{"success"} = $retVal;} + do_leases($c); + return TRUE; +} + + +#=============================================================================== +#SUBROUTINE: Perform wake UP +#=============================================================================== +sub Perform_Wake_Up($){ + + ###Pull CGI object from parameters array + my $q = shift; + + ###Get Mac Adress + my $mac = uc($q->param('mac')); + my $name = uc($q->param('name')); + + #Send Wake Up to the station + #Old version obsolete since 1.5.0 - system ("/usr/bin/wol","$mac") ; + system ("/sbin/ether-wake","$mac") ; + ###Return action message + return 'dhcpd_SUCCESSFULLY_CLIENT_WOL_REQUEST'; +} + + +1; + + diff --git a/root/usr/share/smanager/lib/SrvMngr/I18N/Modules/Dhcpd/dhcpd_en.lex b/root/usr/share/smanager/lib/SrvMngr/I18N/Modules/Dhcpd/dhcpd_en.lex new file mode 100644 index 0000000..bf79f8e --- /dev/null +++ b/root/usr/share/smanager/lib/SrvMngr/I18N/Modules/Dhcpd/dhcpd_en.lex @@ -0,0 +1,91 @@ + 'dhcpd_ACTION' => 'Action', + 'dhcpd_ACTIVE_DEVICE' => 'Active Device', + 'dhcpd_ALL_OF_THEM' => 'All of them', + 'dhcpd_CHECK_CLIENT_STATUS' => 'Always check the status of computers (Disabled is much faster)', + 'dhcpd_CLEAN_ALL_DHCPLEASES' => 'You may want to clean the dhcpd.leases', + 'dhcpd_CLICK_HERE_TO_MAIN_PANEL' => 'Return to the main panel', + 'dhcpd_CONNECTED_IP' => 'Show DHCP Clients', + 'dhcpd_CUSTOM_DNS_STATUS' => 'Custom DNS', + 'dhcpd_CUSTOM_DNS_TITLE' => 'Enable custom DNS servers.', + 'dhcpd_CUSTOM_GATEWAY_ADDRESS' => 'Gateway address', + 'dhcpd_CUSTOM_GATEWAY_STATUS' => 'Custom gateway', + 'dhcpd_CUSTOM_GATEWAY_TITLE' => 'Enable a custom gateway address.', + 'dhcpd_CUSTOM_LEASETIME' => 'Custom lease time', + 'dhcpd_CUSTOM_LEASETIME_TITLE' => 'Set the lease time (default is 86400 seconds).', + 'dhcpd_CUSTOM_WINSERVER_ADDRESS' => 'WINS Server address', + 'dhcpd_CUSTOM_WINSERVER_STATUS' => 'WINS Server', + 'dhcpd_CUSTOM_WINSERVER_TITLE' => 'Enable a WINS Server.', + 'dhcpd_DHCPD_SETTING_ERRORS' => 'DHCPd Settings ERRORS', + 'dhcpd_DHCPD_SETTINGS_TITLE' => 'DHCP server settings', + 'dhcpd_DHCPD_TITLE' => 'DHCP Manager', + 'dhcpd_DHCP_END' => 'DHCP End', + 'dhcpd_DHCP manager' => 'DHCP Manager', + 'dhcpd_DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP' =>'Incorrect range of IPs, the range of IP address allocation must not include the server address, Update unsuccessfull', + 'dhcpd_DHCP_RANGE_WITH_BAD_IP' => 'Incorrect IP in the DHCP range, Update unsuccessfull', + 'dhcpd_DHCP_START' => 'DHCP Start', + 'dhcpd_DHCP_START_GREATER_DHCP_END_ERRORS' =>'Incorrect range of IPs, the DHCP Start is greater than the DHCP End , Update unsuccessfull', + 'dhcpd_DISABLED' => 'Disabled', + 'dhcpd_DNS_SERVER_WITH_BAD_IP' => 'Incorrect IP for DNS servers, Update unsuccessfull', + 'dhcpd_DO_YOU_WANT_TO_SENT' => 'Do you want to send this message to', + 'dhcpd_ENABLED' => 'Enabled', + 'dhcpd_END_DATE' => 'End Date', + 'dhcpd_ERROR_WHILE_REMOVING_ALL_LEASES' => 'Error while removing all dhcpd Leases', + 'dhcpd_ERROR_WHILE_SAVING_SETTINGS' => 'Error while saving settings', + 'dhcpd_GATEWAY_BAD_IP' => 'Incorrect IP for Gateway, Update unsuccessfull', + 'dhcpd_GLOBAL_WINPOPUP' => 'Send Global Netsend WinPopup', + 'dhcpd_GLOBAL_WINPOPUP_TITLE' => 'Send a global WinPopup with the Net send protocol', + 'dhcpd_IP' => 'Ip Address', + 'dhcpd_MAC_ADDRESS' => 'MAC Address', + 'dhcpd_MANAGING_DHCP_CLIENT' => 'Managing DHCP clients', + 'dhcpd_NETWORK_NAME' => 'Network Name', + 'dhcpd_NETWORK_VALUES_FOUND' => 'Please wait .... Your subnet and your netmask appear to be :', + 'dhcpd_NO_CONNECTED_COMPUTERS' => 'There are no connected computers', + 'dhcpd_NOT_CHECKED' => 'Not Checked...', + 'dhcpd_PRIMARY_DNS_ADDRESS' => 'Primary DNS', + 'dhcpd_REFRESH_CONNECTED_IP_LIST' => 'You may want to refresh this list ?', + 'dhcpd_REFRESH' => 'Refresh the list', + 'dhcpd_REMOVE_ACTION' => 'Remove...', + 'dhcpd_REMOVE_A_DHCP_LEASE_ACTION' => 'You are about to remove a client from the dhcpd.leases file.', + 'dhcpd_REMOVE_A_DHCP_LEASE' => 'Remove a DHCP lease', + 'dhcpd_ARE_YOU_SURE' => 'are you sure ?', + 'dhcpd_REMOVE_A_DHCP_LEASE_TITLE' => 'Removing a DHCP Lease', + 'dhcpd_REMOVE_ALL_LEASES_ACTION' => 'Remove all dhcpd leases', + 'dhcpd_REMOVE_ALL_LEASES' => 'Remove all leases', + 'dhcpd_REMOVE_DHCP_LEASE_TITLE' => 'Removing all DHCP Lease', + 'dhcpd_REMOVE_DHCP_LEASE_WARNING' => 'Remove all entries in dhcpd.leases may cause issues', + 'dhcpd_REMOVE' => 'Remove', + 'dhcpd_SAVE/RESTART' => 'Save/Restart', + 'dhcpd_SAVE_TITLE' => 'After changing settings above, you must save and restart dhcpd.', + 'dhcpd_SCANNING_NETWORK_TITLE' => 'Scanning your network, the time needed depends of your subnet mask', + 'dhcpd_SCAN_YOUR_NETWORK' => 'Scan your network', + 'dhcpd_SCAN_YOUR_NETWORK_TITLE' => 'Scan your network to show active devices :', + 'dhcpd_SECONDARY_DNS_ADDRESS' => 'Secondary DNS', + 'dhcpd_SENDING_A_WINPOPUP' => 'Sending a WinPopup', + 'dhcpd_SENDING_A_WINPOPUP_TO' => 'You are about to send a WinPopup to ', + 'dhcpd_SEND_WINPOPUP_TO' => 'Send a WinPopup to', + 'dhcpd_SHOW_CONNECTED_IP_TITLE' => 'Show all devices connected to the dhcpd server :', + 'dhcpd_START_DATE' => 'Start Date', + 'dhcpd_STATUS_CLICK_FOR_WOL' => 'Status - click for WOL', + 'dhcpd_STATUS_DHCP_SERVER' => 'State of DHCPD', + 'dhcpd_STATUS_REPORT' => 'Operation status report :', + 'dhcpd_SUCCESSFULLY_CLIENT_WOL_REQUEST' =>'Successfull request to wake up the client. The computer may take time to wake up.', + 'dhcpd_SUCCESSFULLY_DELETED_THE_CLIENT' => 'Successfully deleted the client in dhcpd.leases : ', + 'dhcpd_SUCCESSFULLY_REMOVED_ALL_LEASES' => 'Successfully deleted all leases.', + 'dhcpd_SUCCESSFULLY_SAVED_SETTINGS' => 'Successfully saved settings', + 'dhcpd_SUCCESSFULLY_SENT_MESSAGE' => 'Successfully sent message popup to', + 'dhcpd_TERTIARY_DNS_ADDRESS' => 'Tertiary DNS', + 'dhcpd_WAKE_UP_ACTION' => 'Wake-Up...', + 'dhcpd_WAKE_UP' => 'Wake UP', + 'dhcpd_WAKING_A_REMOTE_COMPUTER_ACTION' => 'Are you sure you want to wake on lan the client : ', + 'dhcpd_WAKING_A_REMOTE_COMPUTER_TITLE' => 'Waking Up a remote computer', + 'dhcpd_WAKING_A_REMOTE_COMPUTER' => 'You are about to wake up a remote computer.', + 'dhcpd_WARNING_NO_WINPOPUP_GARANTY' =>'Warning, there is no guarantee that the popup will appear on the remote computer.', + 'dhcpd_WINPOPUP_ACTION' => 'WinPopup...', + 'dhcpd_WINSSERVER_BAD_IP' => 'Incorrect IP for WINS Server, Update unsuccessfull', + 'dhcpd_WRITE_YOUR_MESSAGE' => 'Write your message here', + 'dhcpd_YOUR_MESSAGE' => 'Your message', + 'dhcpd_REMOVE_DHCP_LEASE_WARNING2' => 'The lease file is a log-structured file - whenever a lease changes, the + contents of that lease are written to the end of the file. This means that it is entirely possible for there to be two + or more declarations of the same lease in the lease file at the same + time. In that case, the instance of that particular lease that + appears last in the file is the one that is in effect.', diff --git a/root/usr/share/smanager/lib/SrvMngr/I18N/Modules/Dhcpd/en.pm b/root/usr/share/smanager/lib/SrvMngr/I18N/Modules/Dhcpd/en.pm new file mode 100644 index 0000000..4b6abc1 --- /dev/null +++ b/root/usr/share/smanager/lib/SrvMngr/I18N/Modules/Dhcpd/en.pm @@ -0,0 +1,109 @@ +package SrvMngr::I18N::Modules::Dhcpd::en; +use strict; +use warnings; +use utf8; +use Mojo::Base 'SrvMngr::I18N'; + +use SrvMngr::I18N::Modules::General::en; + +my %lexicon = ( + 'dhcpd_ACTION' => 'Action', + 'dhcpd_ACTIVE_DEVICE' => 'Active Device', + 'dhcpd_ALL_OF_THEM' => 'All of them', + 'dhcpd_CHECK_CLIENT_STATUS' => 'Always check the status of computers (Disabled is much faster)', + 'dhcpd_CLEAN_ALL_DHCPLEASES' => 'You may want to clean the dhcpd.leases', + 'dhcpd_CLICK_HERE_TO_MAIN_PANEL' => 'Return to the main panel', + 'dhcpd_CONNECTED_IP' => 'Show DHCP Clients', + 'dhcpd_CUSTOM_DNS_STATUS' => 'Custom DNS', + 'dhcpd_CUSTOM_DNS_TITLE' => 'Enable custom DNS servers.', + 'dhcpd_CUSTOM_GATEWAY_ADDRESS' => 'Gateway address', + 'dhcpd_CUSTOM_GATEWAY_STATUS' => 'Custom gateway', + 'dhcpd_CUSTOM_GATEWAY_TITLE' => 'Enable a custom gateway address.', + 'dhcpd_CUSTOM_LEASETIME' => 'Custom lease time', + 'dhcpd_CUSTOM_LEASETIME_TITLE' => 'Set the lease time (default is 86400 seconds).', + 'dhcpd_CUSTOM_WINSERVER_ADDRESS' => 'WINS Server address', + 'dhcpd_CUSTOM_WINSERVER_STATUS' => 'WINS Server', + 'dhcpd_CUSTOM_WINSERVER_TITLE' => 'Enable a WINS Server.', + 'dhcpd_DHCPD_SETTING_ERRORS' => 'DHCPd Settings ERRORS', + 'dhcpd_DHCPD_SETTINGS_TITLE' => 'DHCP server settings', + 'dhcpd_DHCPD_TITLE' => 'DHCP Manager', + 'dhcpd_DHCP_END' => 'DHCP End', + 'dhcpd_DHCP manager' => 'DHCP Manager', + 'dhcpd_DHCP_RANGE_MUST_NOT_INCLUDE_SERVER_IP' =>'Incorrect range of IPs, the range of IP address allocation must not include the server address, Update unsuccessfull', + 'dhcpd_DHCP_RANGE_WITH_BAD_IP' => 'Incorrect IP in the DHCP range, Update unsuccessfull', + 'dhcpd_DHCP_START' => 'DHCP Start', + 'dhcpd_DHCP_START_GREATER_DHCP_END_ERRORS' =>'Incorrect range of IPs, the DHCP Start is greater than the DHCP End , Update unsuccessfull', + 'dhcpd_DISABLED' => 'Disabled', + 'dhcpd_DNS_SERVER_WITH_BAD_IP' => 'Incorrect IP for DNS servers, Update unsuccessfull', + 'dhcpd_DO_YOU_WANT_TO_SENT' => 'Do you want to send this message to', + 'dhcpd_ENABLED' => 'Enabled', + 'dhcpd_END_DATE' => 'End Date', + 'dhcpd_ERROR_WHILE_REMOVING_ALL_LEASES' => 'Error while removing all dhcpd Leases', + 'dhcpd_ERROR_WHILE_SAVING_SETTINGS' => 'Error while saving settings', + 'dhcpd_GATEWAY_BAD_IP' => 'Incorrect IP for Gateway, Update unsuccessfull', + 'dhcpd_GLOBAL_WINPOPUP' => 'Send Global Netsend WinPopup', + 'dhcpd_GLOBAL_WINPOPUP_TITLE' => 'Send a global WinPopup with the Net send protocol', + 'dhcpd_IP' => 'Ip Address', + 'dhcpd_MAC_ADDRESS' => 'MAC Address', + 'dhcpd_MANAGING_DHCP_CLIENT' => 'Managing DHCP clients', + 'dhcpd_NETWORK_NAME' => 'Network Name', + 'dhcpd_NETWORK_VALUES_FOUND' => 'Please wait .... Your subnet and your netmask appear to be :', + 'dhcpd_NO_CONNECTED_COMPUTERS' => 'There are no connected computers', + 'dhcpd_NOT_CHECKED' => 'Not Checked...', + 'dhcpd_PRIMARY_DNS_ADDRESS' => 'Primary DNS', + 'dhcpd_REFRESH_CONNECTED_IP_LIST' => 'You may want to refresh this list ?', + 'dhcpd_REFRESH' => 'Refresh the list', + 'dhcpd_REMOVE_ACTION' => 'Remove...', + 'dhcpd_REMOVE_A_DHCP_LEASE_ACTION' => 'You are about to remove a client from the dhcpd.leases file.', + 'dhcpd_REMOVE_A_DHCP_LEASE' => 'Remove a DHCP lease', + 'dhcpd_ARE_YOU_SURE' => 'are you sure ?', + 'dhcpd_REMOVE_A_DHCP_LEASE_TITLE' => 'Removing a DHCP Lease', + 'dhcpd_REMOVE_ALL_LEASES_ACTION' => 'Remove all dhcpd leases', + 'dhcpd_REMOVE_ALL_LEASES' => 'Remove all leases', + 'dhcpd_REMOVE_DHCP_LEASE_TITLE' => 'Removing all DHCP Lease', + 'dhcpd_REMOVE_DHCP_LEASE_WARNING' => 'Remove all entries in dhcpd.leases may cause issues', + 'dhcpd_REMOVE' => 'Remove', + 'dhcpd_SAVE/RESTART' => 'Save/Restart', + 'dhcpd_SAVE_TITLE' => 'After changing settings above, you must save and restart dhcpd.', + 'dhcpd_SCANNING_NETWORK_TITLE' => 'Scanning your network, the time needed depends on your subnet mask', + 'dhcpd_SCAN_YOUR_NETWORK' => 'Scan your network', + 'dhcpd_SCAN_YOUR_NETWORK_TITLE' => 'Scan your network to show active devices :', + 'dhcpd_SECONDARY_DNS_ADDRESS' => 'Secondary DNS', + 'dhcpd_SENDING_A_WINPOPUP' => 'Sending a WinPopup', + 'dhcpd_SENDING_A_WINPOPUP_TO' => 'You are about to send a WinPopup to ', + 'dhcpd_SEND_WINPOPUP_TO' => 'Send a WinPopup to', + 'dhcpd_SHOW_CONNECTED_IP_TITLE' => 'Show all devices connected to the dhcpd server :', + 'dhcpd_START_DATE' => 'Start Date', + 'dhcpd_STATUS_CLICK_FOR_WOL' => 'Status - click for WOL', + 'dhcpd_STATUS_DHCP_SERVER' => 'State of DHCPD', + 'dhcpd_STATUS_REPORT' => 'Operation status report :', + 'dhcpd_SUCCESSFULLY_CLIENT_WOL_REQUEST' =>'Successfull request to wake up the client. The computer may take time to wake up.', + 'dhcpd_SUCCESSFULLY_DELETED_THE_CLIENT' => 'Successfully deleted the client in dhcpd.leases : ', + 'dhcpd_SUCCESSFULLY_REMOVED_ALL_LEASES' => 'Successfully deleted all leases.', + 'dhcpd_SUCCESSFULLY_SAVED_SETTINGS' => 'Successfully saved settings', + 'dhcpd_SUCCESSFULLY_SENT_MESSAGE' => 'Successfully sent message popup to', + 'dhcpd_TERTIARY_DNS_ADDRESS' => 'Tertiary DNS', + 'dhcpd_WAKE_UP_ACTION' => 'Wake-Up...', + 'dhcpd_WAKE_UP' => 'Wake UP', + 'dhcpd_WAKING_A_REMOTE_COMPUTER_ACTION' => 'Are you sure you want to wake on lan the client : ', + 'dhcpd_WAKING_A_REMOTE_COMPUTER_TITLE' => 'Waking Up a remote computer', + 'dhcpd_WAKING_A_REMOTE_COMPUTER' => 'You are about to wake up a remote computer.', + 'dhcpd_WARNING_NO_WINPOPUP_GARANTY' =>'Warning, there is no guarantee that the popup will appear on the remote computer.', + 'dhcpd_WINPOPUP_ACTION' => 'WinPopup...', + 'dhcpd_WINSSERVER_BAD_IP' => 'Incorrect IP for WINS Server, Update unsuccessfull', + 'dhcpd_WRITE_YOUR_MESSAGE' => 'Write your message here', + 'dhcpd_YOUR_MESSAGE' => 'Your message', + 'dhcpd_REMOVE_DHCP_LEASE_WARNING2' => 'The lease file is a log-structured file - whenever a lease changes, the + contents of that lease are written to the end of the file. This means that it is entirely possible for there to be two + or more declarations of the same lease in the lease file at the same + time. In that case, the instance of that particular lease that + appears last in the file is the one that is in effect.', +); + +our %Lexicon = ( + %{ SrvMngr::I18N::Modules::General::en::Lexicon }, + %lexicon +); + + +1; diff --git a/root/usr/share/smanager/themes/default/templates/dhcpd.html.ep b/root/usr/share/smanager/themes/default/templates/dhcpd.html.ep new file mode 100644 index 0000000..3489d52 --- /dev/null +++ b/root/usr/share/smanager/themes/default/templates/dhcpd.html.ep @@ -0,0 +1,219 @@ +% layout 'default', title => "Sme server 2 - DHCP Manager", share_dir => './'; + +% content_for 'module' => begin + +
+ + % if ($config->{debug} == 1) { +

+ %= dumper $c->current_route +

+ % } + +

<%=$title%>

+ %= $modul + + %if ($dhcp_data->{first}) { +

+ %=$c->render_to_string(inline =>$c->l($dhcp_data->{first})) +

+ + %} elsif ($dhcp_data->{success}) { +
+

Operation Status Report - success

+ + %= $c->l($dhcp_data->{success}); + +

+
+ + %} elsif ($dhcp_data->{error}) { +
+

Operation Status Report - error

+ + %= $c->l($dhcp_data->{error}); + +

+
+ + %} elsif ($dhcp_data->{error}) { +
+

Operation Status Report - warning

+ + %= $c->l($dhcp_data->{error}); + +

+
+ + %} + + % if ($dhcp_data->{trt} eq 'LEASES') { + %= include 'partials/_dhcpd_leases' + %} elsif ($dhcp_data->{trt} eq 'SCAN') { + %= include 'partials/_dhcpd_scan' + %} else { #PARAMS + % my $ip_regex = '^((\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.){3}(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$'; + + + + +
+ %= button_to $c->l('dhcpd_CONNECTED_IP') => '/dhcpd1', onclick=>"showSpinnerLeases()", id=>"scanLeases" + + + %= button_to $c->l('dhcpd_SCAN_YOUR_NETWORK') => '/dhcpd3', onclick=>"showSpinnerNetwork()", id=>"scanNetwork" + +
+
+

+ %= $c->l("dhcpd_DHCPD_SETTINGS_TITLE") +

+ % my $btn = l('dhcpd_SAVE/RESTART'); + %= form_for '/dhcpd5' => (method => 'POST') => begin + + %=l 'dhcpd_CHECK_CLIENT_STATUS' + + % param dhcp_check=>$dhcp_data->{"params"}->{"check"}; + %=select_field dhcp_check=>$dhcp_data->{"check"} +
+
+ + %=l 'dhcpd_STATUS_DHCP_SERVER' + + % param dhcp_enable=>$dhcp_data->{"params"}->{"status"}; + %=select_field dhcp_enable=>$dhcp_data->{"status"} +
+ + + %=l 'dhcpd_DHCP_START' + + % param dhcp_start=>$dhcp_data->{"params"}->{"start"}; + %=text_field 'dhcp_start',minlength=>'7',maxlength=>"15",size=>"15",placeholder=>"nnn.nnn.nnn.nnn", pattern=>"$ip_regex" +
+ + + %=l 'dhcpd_DHCP_END' + + % param dhcp_end=>$dhcp_data->{"params"}->{"end"}; + %=text_field 'dhcp_end',minlength=>'7',maxlength=>"15",size=>"15",placeholder=>"nnn.nnn.nnn.nnn", pattern=>"$ip_regex" +

+ + %= $c->l("dhcpd_CUSTOM_WINSERVER_TITLE"); +
+ + + %=l 'dhcpd_CUSTOM_WINSERVER_STATUS' + + % param dhcp_winscustom=>$dhcp_data->{"params"}->{"winscustom"}; + %=select_field dhcp_winscustom=>$dhcp_data->{"status"} +
+ + + %=l 'dhcpd_CUSTOM_WINSERVER_ADDRESS' + + % param dhcp_winsserver=>$dhcp_data->{"smbparams"}->{"WINSServer"}; + %=text_field 'dhcp_winsserver' ,minlength=>'7',maxlength=>"15",size=>"15",placeholder=>"nnn.nnn.nnn.nnn", pattern=>"$ip_regex" +

+ + %= $c->l("dhcpd_CUSTOM_DNS_TITLE"); +
+ + %=l 'dhcpd_CUSTOM_DNS_STATUS' + + % param dhcp_dnscustom=>$dhcp_data->{"params"}->{"dnscustom"}; + %=select_field dhcp_dnscustom=>$dhcp_data->{"status"} +
+ + + %=l 'dhcpd_PRIMARY_DNS_ADDRESS' + + % param dhcp_dns1server=>$dhcp_data->{"params"}->{"dns1server"}; + %=text_field 'dhcp_dns1server' ,minlength=>'7',maxlength=>"15",size=>"15",placeholder=>"nnn.nnn.nnn.nnn", pattern=>"$ip_regex" +
+ + + %=l 'dhcpd_SECONDARY_DNS_ADDRESS' + + % param dhcp_dns2server=>$dhcp_data->{"params"}->{"dns2server"}; + %=text_field 'dhcp_dns2server' ,minlength=>'7',maxlength=>"15",size=>"15",placeholder=>"nnn.nnn.nnn.nnn", pattern=>"$ip_regex" +
+ + + %=l 'dhcpd_TERTIARY_DNS_ADDRESS' + + % param dhcp_dns3server=>$dhcp_data->{"params"}->{"dns3server"}; + %=text_field 'dhcp_dns3server' ,minlength=>'7',maxlength=>"15",size=>"15",placeholder=>"nnn.nnn.nnn.nnn", pattern=>"$ip_regex" +
+ + %= $c->l("dhcpd_CUSTOM_GATEWAY_TITLE"); +
+ + %=l 'dhcpd_CUSTOM_GATEWAY_STATUS' + + % param dhcp_gatewaycustom=>$dhcp_data->{"params"}->{"gatewaycustom"}; + %=select_field dhcp_gatewaycustom=>$dhcp_data->{"status"} +
+ + + %=l 'dhcpd_CUSTOM_GATEWAY_ADDRESS' + + % param dhcp_gateway=>$dhcp_data->{"params"}->{"gateway"}; + %=text_field 'dhcp_gateway' ,minlength=>'7',maxlength=>"15",size=>"15",placeholder=>"nnn.nnn.nnn.nnn", pattern=>"$ip_regex" +

+ %= $c->l("dhcpd_CUSTOM_LEASETIME_TITLE"); +
+ + %=l 'dhcpd_CUSTOM_LEASETIME' + + % param dhcp_leasetime=>$dhcp_data->{"params"}->{"leasetime"}; + %=number_field 'dhcp_leasetime' +

+ %= submit_button "$btn", class => 'action' + % end + %} + +
+ +%= javascript begin + if (document.getElementById("load")){document.getElementById("load").style.display="none";} + if (document.getElementById("loadingNetwork")){document.getElementById("loadingNetwork").style.display="none";} + + function showSpinnerLeases(){ + document.getElementById("scanLeases").style.display="none"; + document.getElementById("load").style.display="inline"; + } + + function showSpinnerNetwork(){ + document.getElementById("scanNetwork").style.display="none"; + document.getElementById("loadingNetwork").style.display="inline"; + } +%end + +%= stylesheet begin +.spinnerButtonOverlay, +.spinnerButtonOverlay:hover, +.spinnerButtonOverlay:any-link , +.spinnerButtonOverlay:focus , +.spinnerButtonOverlay:active { + appearance: auto; + user-select: none; + align-items: flex-start; + cursor: default; + box-sizing: border-box; + background-color: #efefef; + color: black; + padding: 1px 6px; + border-width: 2px; + border-style: outset; + border-color: darkgrey; + border-image: initial; +} +%end +%end +1; diff --git a/root/usr/share/smanager/themes/default/templates/partials/_dhcpd_leases.html.ep b/root/usr/share/smanager/themes/default/templates/partials/_dhcpd_leases.html.ep new file mode 100644 index 0000000..c9b44ae --- /dev/null +++ b/root/usr/share/smanager/themes/default/templates/partials/_dhcpd_leases.html.ep @@ -0,0 +1,113 @@ +
+ + +
+ %= button_to $c->l('dhcpd_REFRESH') => '/dhcpd1', onclick=>"showSpinnerLeases()", id=>"scanLeases" + + + + %= button_to $c->l('dhcpd_REMOVE_ALL_LEASES') => '/dhcpd4' +
+ + % my $btn = l('dhcpd_SAVE/RESTART'); + %= form_for '/dhcpd10' => (method => 'POST') => begin + + %=l 'dhcpd_CHECK_CLIENT_STATUS' + + % param dhcp_check=>$dhcp_data->{"params"}->{"check"}; + %=select_field dhcp_check=>$dhcp_data->{"check"} +
+
+ %= $c->l("dhcpd_SAVE_TITLE"); +
+ %= submit_button "$btn", class => 'action' + % end +
+ + + + + + + + + + + + + % foreach my $ip (@$leases) { + + %= t td => (class => 'sme-border') => $ip->{ip} + %= t td => (class => 'sme-border') => $ip->{name} + + %= t td => (class => 'sme-border') => $ip->{start} + %= t td => (class => 'sme-border') => $ip->{end} + %= t td => (class => 'sme-border') => $ip->{mac} + + + %} + +
+ %=l 'dhcpd_IP' + + %=l 'dhcpd_NETWORK_NAME' + + %=l 'dhcpd_STATUS_CLICK_FOR_WOL' + + %=l('dhcpd_START_DATE',"") + + %=l 'dhcpd_END_DATE' + + %=l 'dhcpd_MAC_ADDRESS' + + %=l 'dhcpd_ACTION' +
+ % if ($ip->{wol} =~ /ACTIVE/) { +
<%==l $ip->{wol}%>
+ %} else { +
<%==l $ip->{wol}%>
+ %} +
+
<%=l 'dhcpd_REMOVE'%>
+
+ %= hidden_field "hiddenmsg"=>"", id=>"hiddenmsg" +
+ %= button_to $c->l('dhcpd_CLICK_HERE_TO_MAIN_PANEL') => '/dhcpd' + + %= javascript begin + function Wol_confirm(event,msg,current){ + const getMAC = /.*MAC\=(.*)\&name.*/; + var MAC = current.href.match(getMAC)[1]; + if (confirm(msg+": MAC: "+MAC)) + { return true;} + else {event.preventDefault();return false;} + } + + function Winpop_confirm(event,msg,current){ + const getIP = /.*ip\=(.*)/; + var IP = ": IP: "+current.href.match(getIP)[1]; + msg = msg.replace("$",IP); + var retVal = prompt(msg); + if (retVal) { + //Write it away in a hidden field + $hidden = document.getElementById("hiddenMsg"); + $hidden.value = retVal; + return true; + } else {event.preventDefault();return false;} + } + + function Remove_lease_confirm(event,msg,current){ + const getIP = /.*ip\=(.*)/; + var IP = current.href.match(getIP)[1]; + if (confirm(msg+" IP: "+IP)) + { return true;} + else {event.preventDefault();return false;} + } + + %end + + +
diff --git a/root/usr/share/smanager/themes/default/templates/partials/_dhcpd_scan.html.ep b/root/usr/share/smanager/themes/default/templates/partials/_dhcpd_scan.html.ep new file mode 100644 index 0000000..b496ea0 --- /dev/null +++ b/root/usr/share/smanager/themes/default/templates/partials/_dhcpd_scan.html.ep @@ -0,0 +1,63 @@ +
+ + + +
+ %= button_to $c->l('dhcpd_REFRESH') => '/dhcpd3', onclick=>"showSpinnerNetwork1()", id=>"scanNetwork1" + + +
+ + + + + + + + + + % foreach my $ip (@$scanresults) { + + %= t td => (class => 'sme-border') => $ip->{Network} + %= t td => (class => 'sme-border') => $ip->{ip} + %= t td => (class => 'sme-border') => $ip->{mac} + + %} + +
+ %=l 'dhcpd_NETWORK_NAME' + + %=l 'dhcpd_IP' + + %=l 'dhcpd_MAC_ADDRESS' +
+ %= hidden_field "hiddenmsg"=>"", id=>"hiddenmsg" +
+ %= button_to $c->l('dhcpd_CLICK_HERE_TO_MAIN_PANEL') => '/dhcpd' + + %= javascript begin + function Wol_confirm(event,msg,current){ + const getMAC = /.*MAC\=(.*)\&name.*/; + var MAC = current.href.match(getMAC)[1]; + if (confirm(msg+": MAC: "+MAC)) + { return true;} + else {event.preventDefault();return false;} + } + + + %end + + +
+%= javascript begin + document.getElementById("loadingNetwork1").style.display="none"; + + function showSpinnerNetwork1(){ + document.getElementById("scanNetwork1").style.display="none"; + document.getElementById("loadingNetwork1").style.display="inline"; + } + +%end diff --git a/smeserver-dhcpmanager.spec b/smeserver-dhcpmanager.spec new file mode 100644 index 0000000..b514b4d --- /dev/null +++ b/smeserver-dhcpmanager.spec @@ -0,0 +1,173 @@ +%define name smeserver-dhcpmanager +%define version 2.0.4 +%define release 19 + +Summary: provide a dhcp panel in the server-manager for The SME Server +Name: %{name} +Version: %{version} +Release: %{release}%{?dist} +Source: %{name}-%{version}.tar.xz +License: GNU GPL version 2 +URL: http://www.contribs.org +Group: SMEserver/addon +BuildRoot: %{_tmppath}/%{name}-buildroot +#Prefix: %{_prefix} +BuildArchitectures: noarch +BuildRequires: e-smith-devtools +Requires: e-smith-release >= 9.0 +Requires: e-smith-base >= 5.8.0-93 +Requires: net-tools +Requires: nmap >= 2:6.25 +AutoReqProv: no + + +%description +Implementation of some feature arround dhcp clients like : wol, cleaning dhcpd.leases, Scan of your network etc// + +%changelog +* Sat Sep 07 2024 cvs2git.sh aka Brian Read 2.0.4-19.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. + +* Thu Sep 05 2024 Terry Fage 2.0.4-18.sme +- apply locale 2024-09-05.patch + +* Fri Mar 01 2024 Brian Read 2.0.4-17.sme +- Edit Menu entry to conform to new arrangements [SME: 12493] + + +* Wed Feb 07 2024 Brian Read 2.0.4-16.sme +- Fix JS error on load and typo in table class name [SME: 12468] + +* Sat Dec 30 2023 Brian Read 2.0.4-15.sme +- Add more fixes for SM2 panels [SME:11850] +- Add in Network scan page + +* Tue Dec 19 2023 Brian Read 2.0.4-14.sme +- More fixes for SM2 panels [SME:11850] +- Remove Winpopup facility (no longer supported by Windose) +- Show Leases page + +* Tue Jan 18 2022 Brian Read 2.0.4-13.sme +- Add panels for SM2 [SME: 11850] +- Initial panel with DHCP parameters + +* Sun Aug 22 2021 Terry Fage 2.0.4-12.sme +- apply locale 2021-08-22 patch + +* Tue Mar 30 2021 Jean-Philippe Pialasse 2.0.4-11.sme +- removing tmeplate custom, merged with core [SME: 11506] +- adding third DNS entry [SME: 11506] + +* Wed Mar 24 2021 Brian Read 2.0.4-10.sme +- Add Update event to createlinks [SME: 11029] + +* Wed Mar 24 2021 BogusDateBot +- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, + by assuming the date is correct and changing the weekday. + +* Mon Oct 12 2020 Brian Read 2.0.4-9.sme +- Import to SME10 tree - [SME: 11029 ] + +* Sat Dec 02 2017 SME Translation Server 2.0.4-8.sme +- apply locale 2017-12-02 patch + +* Sat Mar 25 2017 Jean-Philipe Pialasse 2.0.4-7.sme +- apply locale 2017-03-25 patch + +* Mon Mar 13 2017 Jean-Philipe Pialasse 2.0.4-6.sme +- Add Update event to createlinks issue with last patch deleting pt-br file [SME: 10150] + +* Wed Feb 01 2017 Jean-Philipe Pialasse 2.0.4-5.sme +- apply locale 2017-02-02.patch + +* Tue Jun 28 2016 stephane de Labrusse 2.0.4-4.sme +- sort the IP table by uniq mac address with the last dhcp lease + +* Wed Mar 09 2016 JP Pialasse 2.0.4-3.sme +- apply locale 2016-03-09 patch + +* Sat Sep 12 2015 stephane de Labrusse 2.0.4-2.sme +- Added smeserver-dhcpmanager-2.0.4-locale-2015-09-12.patch + +* Tue Aug 18 2015 stephane de Labrusse 2.0.4-1.sme +- new tarball 2.0.4 + +* Tue Aug 18 2015 stephane de Labrusse 2.0.3-1.sme +- new tarball 2.0.3 + +* Mon Aug 17 2015 stephane de Labrusse 2.0.2-2.sme +- added locale smeserver-dhcpmanager-2.0.2-locale-2015-08-17.patch + +* Thu Aug 13 2015 stephane de Labrusse 2.0.2-1.sme +- new sources in cvs + +* Wed Aug 12 2015 stephane de Labrusse 2.0.1-1.sme +- Initial release to contribs9 + +* Wed Aug 12 2015 Stephane de Labrusse smeserver-dhcpmanager-2.0-1.sme +-Translations added +-new WebUI + +* Sun May 18 2014 Stephane de Labrusse smeserver-dhcpmanager-1.5-12 +- First release to sme9 + +* Wed Feb 05 2014 Stephane de Labrusse smeserver-dhcpmanager-1.5-11 +- add default db values and change options to nmap in order to see name of computer + +* Mon Jan 13 2014 Stephane de Labrusse smeserver-dhcpmanager-1.5-10 +- english wording correction [sme:8122] +- change the nmap version to 6.25 (available in smecontribs) [sme:8120] +- add an option to remove all leases +- some subroutines added in the goal to save settings and stay on the same page (main page and connected IP) +- some menu setting box redesigned. + +* Sun Jan 05 2014 Stephane de Labrusse smeserver-dhcpmanager-1.5-5 +- Add a checkIP routine against wrong IP [sme:8015] +- Add a new panel to see connected IP [sme:8113] +- Add a counter of host up on the LAN (using nmap) [sme:8111] + +* Sun Dec 29 2013 Stephane de Labrusse smeserver-dhcpmanager-1.5-3 +- adaptation for SME Server 8.0 +* Thu Dec 23 2004 Thierry Quaak +- Last release of e-smith-dhcpmanager-1.5-1, thanks a lot for his work + +%prep +%setup + +rm -rf root/etc/e-smith/templates-custom + +%build +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 +if (systemctl list-unit-files |grep smanager) then + echo "Smanager restart in spec file" + /sbin/e-smith/signal-event smanager-refresh; +fi +true + + +%postun + +%files -f %{name}-%{version}-filelist +%defattr(-,root,root) +