slbackup-php-0.4.5/ChangeLog0000644000000000000000000000673712262112672012567 0ustar Sun, 05 Jan 2014 Mike Gabriel * Release 0.4.5: - Fix parsing of log file for the case that the server_destdir does not exist. - Handle scheduler time values as strings. Thanks to Cyril ETCHEVERRIA. - No line breaks in html_options fields as those get handled weirdly by Smarty3. Thanks to Cyril ETCHEVERRIA. Fri, 06 Jun 2013 Mike Gabriel * Release 0.4.4: - Fix installation/usage on non-Debian-Edu (i.e. vanilla Debian) systems. Esp. do not hard-code the host 'backup' as default backup host. - Add two more break statements when evaluating session arguments. - Store changes to the nonhttps session parameter back to the client-side session cookie if changes occur. Thu, 12 Jul 2012 Mike Gabriel * Release 0.4.3: - Add changes of 0.4.2 to this file, the ChangeLog maintenance had been forgotten for 0.4.2. Thu, 12 Jul 2012 Mike Gabriel * Release 0.4.2: - Avoid empty $bindir directory. - Fix building of .mo files. - Fix nonhttps URL parameter. * Pick packaging files from debian/0.4.1-1 (prep. uploaded to mentors.debian.net). Sun, 08 Jul 2012 Mike Gabriel * Release 0.4.1: - Stop shipping smarty-gettext-like code. - Do not update .po files on normal build/install. - po/sv.po got lost, re-created the file from an earlier version. * Drop smarty-gettext build-dependency. Sun, 01 Jul 2012 Mike Gabriel * Release 0.4.0: - Accept patch slbackup-php_cookie+request-merge.patch from Debian. - Accept patch slbackup-php_restore-paths-with-blanks.patch from Debian. - Accept patch slbackup-php_fix-failed-in-status-template.patch from Debian. - Accept patch slbackup-php_translate-status-for.patch from Debian. - Accept patch slbackup-php_i18n-pot-po-update.patch from Debian. - Accept patch slbackup-php_fix-language-detection.patch from Debian. - Accept patch slbackup-php_i18n-de.patch from Debian. - Accept patch slbackup-php_chmod-cron-file.patch from Debian. - Accept patch slbackup-php_i18n-fr.patch from Debian. - Use smarty3. - Split up smarty3-gettext code from functions.php. * Use packaging files from latest Debian package (0.3-3). Wed, 16 Jan 2007 Patrick Winnertz * Add --language=PHP to the xgettext options Wed, 25 Apr 2007 Finn-Arne Johansen * Release 0.2 * Added restore of snapshots of a single file Wed, 18 Apr 2007 Finn-Arne Johansen * Release 0.1 * Changed into a non-debian package * Added logout functionality * Added a status-page * Added restore of single-files * Added maintenance functionality (remove old backups) * Added localization (template and nb_NO) * Polished the debian-package stuff (mainly done by Morten Werner Olsen and Patrick Winnerts) Fri, 13 Apr 2007 Finn-Arne Johansen * Release 0.0.1 * First version reelased in public Copyright 2007 by Finn-Arne Johansen, BzzWare AS, Norway See the accompanying file "COPYRIGHT" for details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. slbackup-php-0.4.5/COPYING0000644000000000000000000004310312262112672012034 0ustar 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. Copyright (C) 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. , 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. slbackup-php-0.4.5/COPYRIGHT0000644000000000000000000000177412262112672012304 0ustar ###################################################################### # slbackup-php an administration tool for slbackup # Copyright (c) 2006 - 2007 Finn-Arne Johansen # BzzWare AS, Norway # # Web: http://www.bzz.no # # 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., 675 Mass Ave, Cambridge, MA 02139, USA. # ####################################################################### slbackup-php-0.4.5/debian/changelog0000644000000000000000000001152612262112672014101 0ustar slbackup-php (0.4.5-0) unstable; urgency=low * Upstream version (0.4.5): - Fix parsing of log file for the case that the server_destdir does not exist. - Handle scheduler time values as strings. Thanks to Cyril ETCHEVERRIA. - No line breaks in html_options fields as those get handled weirdly by Smarty3. Thanks to Cyril ETCHEVERRIA. * debian/*: + Make package compliant with Apache 2.4 packaging policy. -- Mike Gabriel Sun, 05 Jan 2014 00:09:54 +0100 slbackup-php (0.4.4-0) unstable; urgency=low * Upstream version (0.4.4): - Add 'break' statements after evaluating the nonhttps option and the selected option. Patch from Wolfgang Schweer. Thanks! - Write changes to nonhttps _SESSION option back to cookie. - As a host default use 'localhost', not 'backup'. The hostname 'backup' is set up on the Debian Edu mainserver by default, but not on vanilla Debian systems. The generic approach is: -> use 'localhost' in src/functions.php -> provide alternative backup hostname via /etc/slbackup-php/config.php. * Pick packaging files from debian/0.4.3-1. -- Mike Gabriel Fri, 07 Jun 2013 17:30:30 +0200 slbackup-php (0.4.3-0) unstable; urgency=low * Upstream version (0.4.3): - Formal release, upstream ChangeLog was not up-to-date for 0.4.2. -- Mike Gabriel Thu, 12 Jul 2012 14:36:15 +0200 slbackup-php (0.4.2-0) unstable; urgency=low * New upstream version (0.4.2): - Avoid empty $bindir directory. - Fix building of .mo files. - Fix nonhttps URL parameter. * Pick packaging files from debian/0.4.1-1 (prep. uploaded to mentors.debian.net). -- Mike Gabriel Thu, 12 Jul 2012 00:10:52 +0200 slbackup-php (0.4.1-0) unstable; urgency=low * New upstream version (0.4.1): - Drop smarty-gettext code, use the plugin provided in Debian or other distro. - Do not recreate .po files during make mo-files. Provide po-files stanza in Makefile for recreating .po files manually. * /debian/po/svn.po: + Replace sv.po for php GUI translations with svn.po for debconf template translations. -- Mike Gabriel Sun, 08 Jul 2012 16:31:52 +0200 slbackup-php (0.4.0-0) unstable; urgency=low [ Mike Gabriel ] * New upstream version (0.4.0): - Accept patch slbackup-php_cookie+request-merge.patch from Debian. - Accept patch slbackup-php_restore-paths-with-blanks.patch from Debian. - Accept patch slbackup-php_fix-failed-in-status-template.patch from Debian. - Accept patch slbackup-php_translate-status-for.patch from Debian. - Accept patch slbackup-php_i18n-pot-po-update.patch from Debian. - Accept patch slbackup-php_fix-language-detection.patch from Debian. - Accept patch slbackup-php_i18n-de.patch from Debian. - Accept patch slbackup-php_chmod-cron-file.patch from Debian. - Accept patch slbackup-php_i18n-fr.patch from Debian. - Use smarty3. - Split up smarty3-gettext code from functions.php. * Bump standards to 3.9.3. * Fix lintian warnings: debian-rules-missing-recommended-target build-arch, debian-rules-missing-recommended-target build-indep. * Accept more packaging files from Debian package. -- Mike Gabriel Sun, 01 Jul 2012 12:06:11 +0200 slbackup-php (0.3-2) unstable; urgency=low [ Finn-Arne Johansen ] * Make the list of snapshots sorted [ Patrick Winnertz ] * Added debian/po/nl.po . Thanks to Bart Cornelis -- Patrick Winnertz Mon, 17 Dec 2007 09:10:29 +0100 slbackup-php (0.3-1) unstable; urgency=low [Christian Perrier] * Debconf templates and debian/control reviewed by the debian-l10n- english team as part of the Smith review project. Closes: #429446 * Debconf translation updates: - Swedish. Closes: #430447 - German. Closes: #430453 - Galician. Closes: #430483 - Basque. Closes: #430512 - Vietnamese. Closes: #430537 - Portuguese. Closes: #430595 - Czech. Closes: #431257 - Russian. Closes: #431307 - French [Finn-Arne Johansen] * Added sl-style.css (Closes: 425820) [Patrick Winnertz] * Packaging new upstream release. * Merging changes from the l10n-Team into slbackup.php. Thanks to everybody who provided a translation! * Added translation of slbackup-php itself. Thanks to Daniel Nylander. * -- Patrick Winnertz Fri, 13 Jul 2007 21:16:33 +0200 slbackup-php (0.2-0) unstable; urgency=low * New upstream release -- Finn-Arne Johansen Wed, 25 Apr 2007 10:23:08 +0200 slbackup-php (0.1-1) unstable; urgency=low * Initial upload (Closes: 419839) -- Patrick Winnertz Wed, 18 Apr 2007 17:25:45 +0200 slbackup-php-0.4.5/debian/compat0000644000000000000000000000000212262112672013420 0ustar 5 slbackup-php-0.4.5/debian/config0000644000000000000000000000014612262112672013413 0ustar #!/bin/sh set -e . /usr/share/debconf/confmodule db_input high slbackup-php/use-ssl || true db_go slbackup-php-0.4.5/debian/control0000644000000000000000000000223612262112672013630 0ustar Source: slbackup-php Section: misc Priority: optional Maintainer: Debian Edu Packaging Team Uploaders: Mike Gabriel , Patrick Winnertz , Morten Werner Olsen , Finn-Arne Johansen Standards-Version: 3.9.4 Build-Depends: debhelper (>= 7.0.50~), po-debconf, Homepage: http://anonscm.debian.org/gitweb/?p=debian-edu/upstream/slbackup-php.git;a=summary Vcs-Git: git://git.debian.org/debian-edu/slbackup-php.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-edu/slbackup-php.git;a=summary Package: slbackup-php Architecture: all Depends: ${misc:Depends}, libapache2-mod-php5 | php5-cgi, ssh, php5-cli, smarty3, smarty-gettext (>= 1.0b1-7), Recommends: apache2 | httpd, Suggests: x-www-browser, Description: Web-based administration tool for slbackup Slbackup-php provides the necessary functions to maintain a slbackup repository. . Features: - scheduling of slbackup execution; - editing of the configuration file; - verifying SSH keys and successful backups; - restoring from backups; - removing old backups from the repository. slbackup-php-0.4.5/debian/copyright0000644000000000000000000000065312262112672014161 0ustar This package was debianized by upstream author Finn-Arne Johansen on Fri, 13 Apr 2007 11:30:00 +0200. Copyright: 2007 Finn-Arne Johansen BzzWare AS, Norway License: You are free to distribute this software under the terms of the GNU General Public License version 2. On Debian systems, the complete text of the GNU General Public License can be found in the file /usr/share/common-licenses/GPL-2. slbackup-php-0.4.5/debian/links0000644000000000000000000000011212262112672013257 0ustar etc/slbackup-php/apache.conf etc/apache2/conf-available/slbackup-php.conf slbackup-php-0.4.5/debian/po/cs.po0000644000000000000000000000250212262112672013604 0ustar # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: slbackup\n" "Report-Msgid-Bugs-To: patrick.winnertz@skolelinux.org\n" "POT-Creation-Date: 2007-06-24 01:04+0200\n" "PO-Revision-Date: 2007-06-25 09:16+0200\n" "Last-Translator: Miroslav Kure \n" "Language-Team: Czech \n" "Language: cs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Activate SSL support in slbackup-php?" msgstr "Aktivovat v slbackup-php podporu SSL?" #. Type: boolean #. Description #: ../templates:2001 msgid "" "Please note that SSL is needed to connect to the slbackup-php server. " "Activating it is therefore strongly recommended." msgstr "" "Protože je SSL pro připojení k serveru slbackup-php vyžadováno, doporučujeme " "souhlasit." #. Type: boolean #. Description #: ../templates:2001 msgid "" "However, SSL should also be activated in the web server which will not be " "done by choosing this option." msgstr "" "Nicméně SSL musí být aktivováno i na webovém serveru, což tato možnost " "nezajistí." slbackup-php-0.4.5/debian/po/da.po0000644000000000000000000000261212262112672013565 0ustar # Danish translation slbackup-php. # Copyright (C) 2010 slbackup-php & Joe Hansen. # This file is distributed under the same license as the slbackup-php package. # Joe Hansen , 2010. # msgid "" msgstr "" "Project-Id-Version: slbackup-php\n" "Report-Msgid-Bugs-To: patrick.winnertz@skolelinux.org\n" "POT-Creation-Date: 2007-06-24 01:04+0200\n" "PO-Revision-Date: 2010-05-10 17:30+01:00\n" "Last-Translator: Joe Hansen \n" "Language-Team: Danish \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Activate SSL support in slbackup-php?" msgstr "Aktiver SSL-understøttelse i slbackup-php?" #. Type: boolean #. Description #: ../templates:2001 msgid "" "Please note that SSL is needed to connect to the slbackup-php server. " "Activating it is therefore strongly recommended." msgstr "" "Bemærk venligst at SSL kræves for at forbinde til slbackup-php-serveren. " "Aktivering af SSL anbefales derfor stærkt." #. Type: boolean #. Description #: ../templates:2001 msgid "" "However, SSL should also be activated in the web server which will not be " "done by choosing this option." msgstr "" "Dog skal SSL også aktiveres i internetserveren, hvilket ikke vil blive gjort " "ved at vælge denne indstilling." slbackup-php-0.4.5/debian/po/de.po0000644000000000000000000000263012262112672013571 0ustar # German translation of slbackup-php templates # Helge Kreutzmann , 2007. # This file is distributed under the same license as the slbackup-php package. # msgid "" msgstr "" "Project-Id-Version: slbackup-php\n" "Report-Msgid-Bugs-To: patrick.winnertz@skolelinux.org\n" "POT-Creation-Date: 2007-06-24 01:04+0200\n" "PO-Revision-Date: 2007-06-24 19:55+0200\n" "Last-Translator: Helge Kreutzmann \n" "Language-Team: German \n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-15\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Activate SSL support in slbackup-php?" msgstr "SSL-Untersttzung in Slbackup-php aktivieren?" #. Type: boolean #. Description #: ../templates:2001 msgid "" "Please note that SSL is needed to connect to the slbackup-php server. " "Activating it is therefore strongly recommended." msgstr "" "Bitte beachten Sie, dass SSL zur Verbindung mit dem Slbackup-php-Server " "bentigt wird. Es wird daher nachdrcklich empfohlen, dieses zu aktivieren." #. Type: boolean #. Description #: ../templates:2001 msgid "" "However, SSL should also be activated in the web server which will not be " "done by choosing this option." msgstr "" "Allerdings sollte SSL auch in dem Webserver aktiviert werden. Dies erfolgt " "nicht durch Auswahl dieser Option." slbackup-php-0.4.5/debian/po/es.po0000644000000000000000000000436712262112672013621 0ustar # slbackup-php po-debconf translation to Spanish # Copyright (C) 2010 Software in the Public Interest # This file is distributed under the same license as the slbackup-php package. # # Changes: # - Initial translation # Omar Campagne , 2010 # # - Updates # TRANSLATOR # # Traductores, si no conocen el formato PO, merece la pena leer la # documentación de gettext, especialmente las secciones dedicadas a este # formato, por ejemplo ejecutando: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # # Equipo de traducción al español, por favor lean antes de traducir # los siguientes documentos: # # - El proyecto de traducción de Debian al español # http://www.debian.org/intl/spanish/ # especialmente las notas y normas de traducción en # http://www.debian.org/intl/spanish/notas # # - La guía de traducción de po's de debconf: # /usr/share/doc/po-debconf/README-trans # o http://www.debian.org/intl/l10n/po-debconf/README-trans # msgid "" msgstr "" "Project-Id-Version: slbackup-php 0.3-2\n" "Report-Msgid-Bugs-To: patrick.winnertz@skolelinux.org\n" "POT-Creation-Date: 2007-06-24 01:04+0200\n" "PO-Revision-Date: 2010-04-07 10:36+0200\n" "Last-Translator: Omar Campagne \n" "Language-Team: Debian l10n Spanish \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Activate SSL support in slbackup-php?" msgstr "¿Desea activar la compatibilidad de slbackup-php con SSL?" #. Type: boolean #. Description #: ../templates:2001 msgid "" "Please note that SSL is needed to connect to the slbackup-php server. " "Activating it is therefore strongly recommended." msgstr "" "Tenga en cuenta que necesita SSL para establecer una conexión con el " "servidor de slbackup-php. Por ello, se recomienda su activación." #. Type: boolean #. Description #: ../templates:2001 msgid "" "However, SSL should also be activated in the web server which will not be " "done by choosing this option." msgstr "" "Por otra parte, SSL se debería activar también en el servidor web, lo cual " "no ocurrirá al escoger esta opción." slbackup-php-0.4.5/debian/po/eu.po0000644000000000000000000000254612262112672013620 0ustar # slbackup-php-templates # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # Piarres Beobide , 2007. # msgid "" msgstr "" "Project-Id-Version: slbackup-php-debconf\n" "Report-Msgid-Bugs-To: patrick.winnertz@skolelinux.org\n" "POT-Creation-Date: 2007-06-24 01:04+0200\n" "PO-Revision-Date: 2007-06-25 11:00+0200\n" "Last-Translator: Piarres Beobide , 2007\n" "Language-Team: Euskara \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Activate SSL support in slbackup-php?" msgstr "Slbackup-php-en SSL onarpena gaiu?" #. Type: boolean #. Description #: ../templates:2001 msgid "" "Please note that SSL is needed to connect to the slbackup-php server. " "Activating it is therefore strongly recommended." msgstr "" "Kontutan izan SSL beharrezkoa dela slbackup-php zerbitzarira konektatu ahal " "izateko. Horregatik gaitzea oso gomendagarria da." #. Type: boolean #. Description #: ../templates:2001 msgid "" "However, SSL should also be activated in the web server which will not be " "done by choosing this option." msgstr "" "Hala ere, SSL web zerbitzarian ere gaitu behar da, aukera honekin ez da hori " "gaitzen." slbackup-php-0.4.5/debian/po/fi.po0000644000000000000000000000240412262112672013576 0ustar msgid "" msgstr "" "Project-Id-Version: slbackup-php 0.3-1\n" "Report-Msgid-Bugs-To: patrick.winnertz@skolelinux.org\n" "POT-Creation-Date: 2007-06-24 01:04+0200\n" "PO-Revision-Date: 2008-03-01 22:35+0200\n" "Last-Translator: Esko Arajärvi \n" "Language-Team: Finnish \n" "Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Finnish\n" "X-Poedit-Country: FINLAND\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Activate SSL support in slbackup-php?" msgstr "Otetaanko SSL-tuki käyttöön ohjelmassa slbackup-php?" #. Type: boolean #. Description #: ../templates:2001 msgid "" "Please note that SSL is needed to connect to the slbackup-php server. " "Activating it is therefore strongly recommended." msgstr "" "Otettaessa yhteyttä slbackup-php-palvelimeen tarvitaan SSL:ää. Sen ottaminen " "käyttöön on siksi hyvin suositeltavaa." #. Type: boolean #. Description #: ../templates:2001 msgid "" "However, SSL should also be activated in the web server which will not be " "done by choosing this option." msgstr "" "SSL tulisi kuitenkin ottaa käyttöön myös verkkopalvelimen asetuksissa, mitä " "tämä valinta ei tee." slbackup-php-0.4.5/debian/po/fr.po0000644000000000000000000000272212262112672013612 0ustar # Translation of slbackup-php templates to French # Copyright (C) 2007 Hugues NAULET # This file is distributed under the same license as the slbackup-php package. # Hugues Naulet , 2007. # # msgid "" msgstr "" "Project-Id-Version: slbackup-php 0.2-1\n" "Report-Msgid-Bugs-To: patrick.winnertz@skolelinux.org\n" "POT-Creation-Date: 2007-06-24 01:04+0200\n" "PO-Revision-Date: 2007-06-30 11:30+0200\n" "Last-Translator: Hugues Naulet \n" "Language-Team: French \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Activate SSL support in slbackup-php?" msgstr "Activer la gestion de SSL pour « slbackup-php » ?" #. Type: boolean #. Description #: ../templates:2001 msgid "" "Please note that SSL is needed to connect to the slbackup-php server. " "Activating it is therefore strongly recommended." msgstr "" "Veuillez noter que SSL est nécessaire pour se connecter au serveur « " "slbackup-php ».Son activation est donc fortement recommandée." #. Type: boolean #. Description #: ../templates:2001 msgid "" "However, SSL should also be activated in the web server which will not be " "done by choosing this option." msgstr "" "Cependant, SSL devrait également être activé sur le serveur Web, ce qui ne " "sera pas fait même en choisissant cette option." slbackup-php-0.4.5/debian/po/gl.po0000644000000000000000000000256512262112672013612 0ustar # Galician translation of slbackup-php's debconf templates # This file is distributed under the same license as the slbackup-php package. # Jacobo Tarrio , 2007. # msgid "" msgstr "" "Project-Id-Version: slbackup-php\n" "Report-Msgid-Bugs-To: patrick.winnertz@skolelinux.org\n" "POT-Creation-Date: 2007-06-24 01:04+0200\n" "PO-Revision-Date: 2007-06-25 00:41+0200\n" "Last-Translator: Jacobo Tarrio \n" "Language-Team: Galician \n" "Language: gl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Activate SSL support in slbackup-php?" msgstr "¿Activar o soporte de SSL en slbackup-php?" #. Type: boolean #. Description #: ../templates:2001 msgid "" "Please note that SSL is needed to connect to the slbackup-php server. " "Activating it is therefore strongly recommended." msgstr "" "Teña en conta que é necesario SSL para se conectar ao servidor de slbackup-" "php. Polo tanto, recoméndase encarecidamente que o active." #. Type: boolean #. Description #: ../templates:2001 msgid "" "However, SSL should also be activated in the web server which will not be " "done by choosing this option." msgstr "" "Nembargantes, tamén se debe activar SSL no servidor web, o que non se ha " "facer ao escoller esta opción." slbackup-php-0.4.5/debian/po/ja.po0000644000000000000000000000277112262112672013601 0ustar # Copyright (C) 2009 Patrick Winnertz # This file is distributed under the same license as slbackup-php package. # Hideki Yamane , 2009. # msgid "" msgstr "" "Project-Id-Version: slbackup-php 0.3-2\n" "Report-Msgid-Bugs-To: patrick.winnertz@skolelinux.org\n" "POT-Creation-Date: 2007-06-24 01:04+0200\n" "PO-Revision-Date: 2009-10-25 06:52+0900\n" "Last-Translator: Hideki Yamane (Debian-JP) \n" "Language-Team: Japanese \n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Activate SSL support in slbackup-php?" msgstr "slbackup-php で SSL のサポートを有効にしますか?" #. Type: boolean #. Description #: ../templates:2001 msgid "" "Please note that SSL is needed to connect to the slbackup-php server. " "Activating it is therefore strongly recommended." msgstr "" "slbackup-php サーバに接続するためには SSL が必要であることに注意してくださ" "い。従って、SSL を有効にするのを強くお勧めします。" #. Type: boolean #. Description #: ../templates:2001 msgid "" "However, SSL should also be activated in the web server which will not be " "done by choosing this option." msgstr "" "この設定を選んで SSL が有効にされないウェブサーバであっても、同様に SSL は有" "効にする必要があります。" slbackup-php-0.4.5/debian/po/nl.po0000644000000000000000000000261712262112672013617 0ustar # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE 'S COPYRIGHT HOLDER # This file is distributed under the same license as the package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: slbackup-php\n" "Report-Msgid-Bugs-To: patrick.winnertz@skolelinux.org\n" "POT-Creation-Date: 2007-06-24 01:04+0200\n" "PO-Revision-Date: 2007-10-26 13:30+0100\n" "Last-Translator: Bart Cornelis \n" "Language-Team: debian-l10n-dutch \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Dutch\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Activate SSL support in slbackup-php?" msgstr "Wilt u SSL-ondersteuning activeren voor slbackup-php?" #. Type: boolean #. Description #: ../templates:2001 msgid "" "Please note that SSL is needed to connect to the slbackup-php server. " "Activating it is therefore strongly recommended." msgstr "" "SSL is nodig om verbinding te kunnen maken met de slbackup-php-server, en " "dit activeren is dan ook sterk aanbevolen." #. Type: boolean #. Description #: ../templates:2001 msgid "" "However, SSL should also be activated in the web server which will not be " "done by choosing this option." msgstr "" "SSL dient echter ook geactiveerd te worden in de webserver en daar zorgt " "deze optie niet voor." slbackup-php-0.4.5/debian/po/POTFILES.in0000644000000000000000000000004412262112672014413 0ustar [type: gettext/rfc822deb] templates slbackup-php-0.4.5/debian/po/pt.po0000644000000000000000000000260712262112672013630 0ustar # Portuguese translation of slbackup-php's debconf messages. # Copyright (C) 2007 # This file is distributed under the same license as the slbackup-php package. # Ricardo Silva , 2007. # msgid "" msgstr "" "Project-Id-Version: slbackup-php \n" "Report-Msgid-Bugs-To: patrick.winnertz@skolelinux.org\n" "POT-Creation-Date: 2007-06-24 01:04+0200\n" "PO-Revision-Date: 2007-06-25 09:20+0000\n" "Last-Translator: Ricardo Silva \n" "Language-Team: Portuguese \n" "Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Activate SSL support in slbackup-php?" msgstr "Activar o suporte SSL no slbackup-php?" #. Type: boolean #. Description #: ../templates:2001 msgid "" "Please note that SSL is needed to connect to the slbackup-php server. " "Activating it is therefore strongly recommended." msgstr "" "Por favor repare que o SSL é necessário para se ligar ao servidor do " "slbackup-php. Activá-lo é portanto fortemente recomendado." #. Type: boolean #. Description #: ../templates:2001 msgid "" "However, SSL should also be activated in the web server which will not be " "done by choosing this option." msgstr "" "No entanto, o SSL também pode ser activado no servidor web, o que não será " "feito se escolher esta opção." slbackup-php-0.4.5/debian/po/ru.po0000644000000000000000000000332612262112672013632 0ustar # translation of templates-1.po to Russian # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Yuri Kozlov , 2007. msgid "" msgstr "" "Project-Id-Version: 0.2-1\n" "Report-Msgid-Bugs-To: patrick.winnertz@skolelinux.org\n" "POT-Creation-Date: 2007-06-24 01:04+0200\n" "PO-Revision-Date: 2007-07-01 19:18+0400\n" "Last-Translator: Yuri Kozlov \n" "Language-Team: Russian \n" "Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.11.4\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Activate SSL support in slbackup-php?" msgstr "Активировать поддержку SSL в slbackup-php?" #. Type: boolean #. Description #: ../templates:2001 msgid "" "Please note that SSL is needed to connect to the slbackup-php server. " "Activating it is therefore strongly recommended." msgstr "" "Заметим, что SSL требуется для подключения к серверу slbackup-php. Поэтому " "активация настоятельно рекомендуется." #. Type: boolean #. Description #: ../templates:2001 msgid "" "However, SSL should also be activated in the web server which will not be " "done by choosing this option." msgstr "" "Однако, SSL должен быть включён и на веб-сервере, но это не выполняется " "автоматически данной настройкой." slbackup-php-0.4.5/debian/postinst0000755000000000000000000000207112262112672014033 0ustar #!/bin/sh set -e . /usr/share/debconf/confmodule db_get slbackup-php/use-ssl || true if [ "$RET" = "true" ]; then if [ -x /usr/sbin/a2enmod ]; then a2enmod rewrite > /dev/null if [ -x /usr/sbin/invoke-rc.d ] ; then invoke-rc.d apache2 force-reload || : else [ -x /etc/init.d/apache2 ] && /etc/init.d/apache2 force-reload || : fi fi fi mkdir -p /var/spool/slbackup-php if [ -d /var/spool/slbackup-php ]; then chown www-data:www-data /var/spool/slbackup-php/ fi db_stop if [ "$1" = "configure" ] ; then CONF="slbackup-php" COMMON_STATE=$(dpkg-query -f '${Status}' -W 'apache2.2-common' 2>/dev/null | awk '{print $3}' || true) if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then . /usr/share/apache2/apache2-maintscript-helper apache2_invoke enconf $CONF || exit $? elif [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then if [ -d /etc/apache2/conf.d/ -a ! -L /etc/apache2/conf.d/$CONF.conf ]; then ln -s ../conf-available/$CONF.conf /etc/apache2/conf.d/$CONF.conf fi fi fi #DEBHELPER# slbackup-php-0.4.5/debian/postrm0000755000000000000000000000114712262112672013477 0ustar #!/bin/sh set -e if [ -d /var/spool/slbackup-php ]; then rm -rf /var/spool/slbackup-php/ fi if [ "$1" = "remove" ] || [ "$1" = "purge" ] ; then CONF="slbackup-php" COMMON_STATE=$(dpkg-query -f '${Status}' -W 'apache2.2-common' 2>/dev/null | awk '{print $3}' || true) if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then . /usr/share/apache2/apache2-maintscript-helper apache2_invoke disconf $CONF || exit $? elif [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then [ ! -L /etc/apache2/conf.d/$CONF.conf ] || rm /etc/apache2/conf.d/$CONF.conf fi fi #DEBHELPER# slbackup-php-0.4.5/debian/po/sv.po0000644000000000000000000000263512262112672013636 0ustar # Swedish translation for slbackup-php. # Copyright (C) 2007 Free Software Foundation, Inc. # This file is distributed under the same license as the slbackup-php package. # Daniel Nylander , 2007. # msgid "" msgstr "" "Project-Id-Version: slbackup-php\n" "Report-Msgid-Bugs-To: patrick.winnertz@skolelinux.org\n" "POT-Creation-Date: 2007-06-24 01:04+0200\n" "PO-Revision-Date: 2007-06-24 15:22+0200\n" "Last-Translator: Daniel Nylander \n" "Language-Team: Swedish \n" "Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Activate SSL support in slbackup-php?" msgstr "Aktivera SSL-stöd i slbackup-php?" #. Type: boolean #. Description #: ../templates:2001 msgid "" "Please note that SSL is needed to connect to the slbackup-php server. " "Activating it is therefore strongly recommended." msgstr "" "Observera att SSL behövs för att ansluta till slbackup-php-servern. Det " "rekommenderas därför att det aktiveras." #. Type: boolean #. Description #: ../templates:2001 msgid "" "However, SSL should also be activated in the web server which will not be " "done by choosing this option." msgstr "" "Dock bör även SSL aktiveras i webbservern vilket inte kommer att genomföras " "genom att välja det här alternativet." slbackup-php-0.4.5/debian/po/templates.pot0000644000000000000000000000207712262112672015370 0ustar # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: patrick.winnertz@skolelinux.org\n" "POT-Creation-Date: 2007-06-24 01:04+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Activate SSL support in slbackup-php?" msgstr "" #. Type: boolean #. Description #: ../templates:2001 msgid "" "Please note that SSL is needed to connect to the slbackup-php server. " "Activating it is therefore strongly recommended." msgstr "" #. Type: boolean #. Description #: ../templates:2001 msgid "" "However, SSL should also be activated in the web server which will not be " "done by choosing this option." msgstr "" slbackup-php-0.4.5/debian/po/vi.po0000644000000000000000000000272512262112672013624 0ustar # Vietnamese translation for slbackup-php. # Copyright © 2007 Free Software Foundation, Inc. # Clytie Siddall , 2007 # msgid "" msgstr "" "Project-Id-Version: slbackup-php\n" "Report-Msgid-Bugs-To: patrick.winnertz@skolelinux.org\n" "POT-Creation-Date: 2007-06-24 01:04+0200\n" "PO-Revision-Date: 2007-06-25 21:32+0930\n" "Last-Translator: Clytie Siddall \n" "Language-Team: Vietnamese \n" "Language: vi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: LocFactoryEditor 1.6.4a3\n" #. Type: boolean #. Description #: ../templates:2001 msgid "Activate SSL support in slbackup-php?" msgstr "Bật khả năng hỗ trợ giao thức SSL trong slbackup-php không?" #. Type: boolean #. Description #: ../templates:2001 msgid "" "Please note that SSL is needed to connect to the slbackup-php server. " "Activating it is therefore strongly recommended." msgstr "" "Ghi chú rằng giao thức SSL cần thiết để kết nối tới máy phục vụ slbackup-" "php. Vì thế rất khuyên bạn hiệu lực nó." #. Type: boolean #. Description #: ../templates:2001 msgid "" "However, SSL should also be activated in the web server which will not be " "done by choosing this option." msgstr "" "Tuy nhiên, cũng cần phải hiệu lực SSL trong trình phục vụ Mạng, một công " "việc riêng." slbackup-php-0.4.5/debian/README.source0000644000000000000000000000376512262112672014414 0ustar UPSTREAM -------- slbackup and slbackup-php upstream are developed on Alioth SVN: http://anonscm.debian.org/viewvc/slbackup/ PATCH SYSTEM ------------ This package uses quilt to manage all modifications to the upstream source. Changes are stored in the source package as diffs in debian/patches and applied during the build. To configure quilt to use debian/patches instead of patches, you want either to export QUILT_PATCHES=debian/patches in your environment or use this snippet in your ~/.quiltrc: for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then export QUILT_PATCHES=debian/patches break fi done To get the fully patched source after unpacking the source package, cd to the root level of the source package and run: quilt push -a The last patch listed in debian/patches/series will become the current patch. To add a new set of changes, first run quilt push -a, and then run: quilt new where is a descriptive name for the patch, used as the filename in debian/patches. Then, for every file that will be modified by this patch, run: quilt add before editing those files. You must tell quilt with quilt add what files will be part of the patch before making changes or quilt will not work properly. After editing the files, run: quilt refresh to save the results as a patch. Alternately, if you already have an external patch and you just want to add it to the build system, run quilt push -a and then: quilt import -P /path/to/patch quilt push -a (add -p 0 to quilt import if needed). as above is the filename to use in debian/patches. The last quilt push -a will apply the patch to make sure it works properly. To remove an existing patch from the list of patches that will be applied, run: quilt delete You may need to run quilt pop -a to unapply patches first before running this command. slbackup-php-0.4.5/debian/rules0000755000000000000000000000174712262112672013313 0ustar #!/usr/bin/make -f # -*- makefile -*- build: build-arch build-indep build-arch: # nothing to do for build-arch build-indep: build-stamp build-stamp: debconf-updatepo build-stamp: dh_testdir $(MAKE) touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp [ ! -f Makefile ] || $(MAKE) clean dh_clean install: build dh_testdir dh_testroot dh_clean -$(MAKE) mo-files dh_installdirs $(MAKE) install DESTDIR=$(CURDIR)/debian/slbackup-php prefix=/usr dh_install binary-arch: binary-indep: build install dh_testdir dh_testroot dh_installchangelogs dh_installdocs ./ChangeLog mv $(CURDIR)/debian/slbackup-php/usr/share/doc/slbackup-php/ChangeLog $(CURDIR)/debian/slbackup-php/usr/share/doc/slbackup-php/changelog dh_installcron dh_installdebconf dh_installman dh_link dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install slbackup-php-0.4.5/debian/slbackup.desktop0000644000000000000000000000050012262112672015414 0ustar [Desktop Entry] Encoding=UTF-8 Name=slbackup-php GenericName=SLBackup configuration tool Comment=Webpage for configuring slbackup Version=1.0 TryExec=x-www-browser https://tjener/slbackup-php/ Exec=x-www-browser https://tjener/slbackup-php/ Terminal=false Type=Application Categories=Application;Network;System;Security slbackup-php-0.4.5/debian/slbackup-php.desktop0000644000000000000000000000052112262112672016204 0ustar [Desktop Entry] Name=slbackup-php GenericName=SLBackup configuration tool Comment=Webpage for configuring slbackup Version=1.0 TryExec=x-www-browser http://localhost/slbackup-php/?nonhttps=warn Exec=x-www-browser http://localhost/slbackup-php/?nonhttps=warn Terminal=false Type=Application Categories=Application;Network;System;Security slbackup-php-0.4.5/debian/slbackup-php.install0000644000000000000000000000006312262112672016202 0ustar debian/slbackup-php.desktop usr/share/applications/slbackup-php-0.4.5/debian/source/format0000644000000000000000000000001512262112672014731 0ustar 3.0 (native) slbackup-php-0.4.5/debian/templates0000644000000000000000000000123112262112672014140 0ustar # These templates have been reviewed by the debian-l10n-english # team # # If modifications/additions/rewording are needed, please ask # for an advice to debian-l10n-english@lists.debian.org # # Even minor modifications require translation updates and such # changes should be coordinated with translators and reviewers. Template: slbackup-php/use-ssl Type: boolean Default: false _Description: Activate SSL support in slbackup-php? Please note that SSL is needed to connect to the slbackup-php server. Activating it is therefore strongly recommended. . However, SSL should also be activated in the web server which will not be done by choosing this option. slbackup-php-0.4.5/etc/apache.conf0000644000000000000000000000072512262112672013647 0ustar RewriteEngine on RewriteCond %{HTTPS} !^on$ [NC] RewriteRule . https://%{HTTP_HOST}%{REQUEST_URI} [L] Alias /slbackup-php "/usr/share/slbackup-php/web" DirectoryIndex index.php Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all slbackup-php-0.4.5/Makefile0000644000000000000000000000542412262112672012445 0ustar PACKAGE = slbackup-php LIBS= \ index.php \ sl-style.css \ functions.php SCRIPTS= \ mypass.sh CONFS= \ apache.conf SAMPLES= DOCS= \ COPYRIGHT BIN= INSTALL = install -p -m 755 INSTALL_DATA= install -D -p -m 644 LANG=C prefix = /usr/local sysconfdir = /etc/$(PACKAGE) sharedir = $(prefix)/share/$(PACKAGE) webdir = $(sharedir)/web scriptdir = $(sharedir)/script templatedir= $(sharedir)/templates localedir = $(sharedir)/locales docdir = $(prefix)/share/doc/$(PACKAGE) htmldocdir = $(prefix)/share/doc/$(PACKAGE)/html sampledir = $(prefix)/share/doc/$(PACKAGE)/examples bindir = $(prefix)/bin all: po/*.po: po/slbackup-php.pot cp $@ $@.bak ; \ msgmerge $@.bak $^ > $@ locales/mo-stamp: for po in po/*.po ; do \ locale=$$(basename $$po .po) ; \ echo $$locale ; \ mkdir -p locales/$$locale/LC_MESSAGES ; \ msgfmt --statistics -o locales/$$locale/LC_MESSAGES/$(PACKAGE).mo $$po ; \ done touch locales/mo-stamp mo-files: locales/mo-stamp po/slbackup-php.pot: src/*.php templates/*.tpl tsmarty2c.php templates | \ xgettext --add-comments --language=PHP --default-domain=slbackup-php \ - src/*.php --output po/slbackup-php.pot po-files: po/*.po install: all install -d $(DESTDIR)$(sharedir) install -d $(DESTDIR)$(sysconfdir) install -d $(DESTDIR)$(docdir) #install -d $(DESTDIR)$(htmldocdir) #install -d $(DESTDIR)$(sampledir) install -d $(DESTDIR)$(webdir) install -d $(DESTDIR)$(scriptdir) install -d $(DESTDIR)$(templatedir) install -d $(DESTDIR)$(localedir) #install -d $(DESTDIR)$(bindir) for locale in $$(find locales -type f -name $(PACKAGE).mo -printf "%P ") ; do \ install -d $(DESTDIR)$(localedir)/$$(dirname $$locale) ; \ $(INSTALL_DATA) locales/$$locale $(DESTDIR)$(localedir)/$$(dirname $$locale) ; \ done for templates in $$(find templates -type f -name "*.tpl" -printf "%P ") ; do \ $(INSTALL_DATA) templates/$$templates $(DESTDIR)$(templatedir) ; \ done for script in $(SCRIPTS); do \ $(INSTALL) script/$$script $(DESTDIR)$(scriptdir); \ done for lib in $(LIBS); do \ $(INSTALL_DATA) src/$$lib $(DESTDIR)$(webdir) ; \ done for conf in $(CONFS); do \ $(INSTALL_DATA) etc/$$conf $(DESTDIR)$(sysconfdir) ; \ done for doc in $(DOCS); do \ $(INSTALL_DATA) $$doc $(DESTDIR)$(docdir) ; \ done for htmldoc in $$(find doc -type f -name "*.html" -printf "%P ") ; do \ $(INSTALL_DATA) doc/$$htmldoc $(DESTDIR)$(htmldocdir) ; \ done for sample in $(SAMPLES); do \ $(INSTALL_DATA) examples/$$sample $(DESTDIR)$(sampledir) ; \ done for bin in $(BIN); do \ $(INSTALL) bin/$$bin $(DESTDIR)$(bindir) ; \ done clean: # Remove CVS cruft find . -type f -name '.#*' -o -name "*.bak" -o -name "*~" | xargs -r rm -v # Removed completed translations rm -rf locales dist: debuild -us -uc slbackup-php-0.4.5/po/de.po0000644000000000000000000001474712262112672012363 0ustar # translation of de.po to # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: de\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-01-17 20:54+0100\n" "PO-Revision-Date: 2012-01-17 20:55+0100\n" "Last-Translator: Mike Gabriel \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.11.1\n" #. templates/config.tpl #: standard input:2 msgid "Server scheduler" msgstr "Datensicherung planen" #. templates/config.tpl #: standard input:5 msgid "Backup enabled" msgstr "Backups aktiviert" #. templates/config.tpl #: standard input:8 msgid "Run backup at" msgstr "Datensicherung ausführen um" #. templates/config.tpl #: standard input:11 #: input:32 #: src/index.php:938 msgid "Update" msgstr "Aktualisieren" #. templates/config.tpl #. templates/login.tpl #: standard input:14 #: input:35 #: input:65 #: input:161 msgid "Reset" msgstr "Zurücksetzen" #. templates/config.tpl #: standard input:17 msgid "Server config" msgstr "Server-Konfiguration" #. templates/config.tpl #: standard input:20 #: input:53 msgid "Address" msgstr "Adresse" #. templates/config.tpl #: standard input:23 msgid "Destdir" msgstr "Zielverzeichnis" #. templates/config.tpl #: standard input:26 msgid "Servertype" msgstr "Server-Typ" #. templates/config.tpl #: standard input:29 #: input:62 msgid "User" msgstr "Benutzer" #. templates/config.tpl #: standard input:38 msgid "Client config" msgstr "Client-Konfiguration" #. templates/config.tpl #: standard input:41 msgid "Client:" msgstr "Client-System:" #. templates/config.tpl #. templates/restore.tpl #. templates/maint.tpl #: standard input:44 #: input:113 #: input:167 msgid "Choose" msgstr "Auswählen" #. templates/config.tpl #: standard input:47 msgid "New" msgstr "Neu" #. templates/config.tpl #: standard input:50 msgid "Remove" msgstr "Entfernen" #. templates/config.tpl #: standard input:56 msgid "Backup Age" msgstr "Backup-Alter" #. templates/config.tpl #: standard input:59 msgid "Clienttype" msgstr "Client-Typ" #. templates/config.tpl #. templates/restore.tpl #: standard input:68 #: input:116 msgid "Locations:" msgstr "Speicherorte:" #. templates/config.tpl #: standard input:71 #: src/index.php:936 msgid "Add" msgstr "Hinzufügen" #. templates/config.tpl #: standard input:74 msgid "Delete" msgstr "Löschen" #. templates/status.tpl #: standard input:77 msgid "Clients" msgstr "Client-Systeme" #. templates/status.tpl #: standard input:80 msgid "Status for %1" msgstr "Status für %1" #. templates/status.tpl #: standard input:83 msgid "OK at %1" msgstr "Erfolgreich ausgeführt um %1" #. templates/status.tpl #: standard input:86 msgid "Failed at %1" msgstr "Fehlgeschlagen um %1" #. templates/status.tpl #: standard input:89 msgid "Client never backed up" msgstr "Client-System wurde noch nie gesichert" #. templates/status.tpl #: standard input:92 msgid "ssh-keys are working" msgstr "SSH-Schlüssel sind einsatzbereit" #. templates/status.tpl #: standard input:95 msgid "rdiff-backup-versions differ" msgstr "rdiff-Backup Versionen sind unterschiedlich" #. templates/status.tpl #: standard input:98 msgid "ssh-keys are not working" msgstr "SSH-Schlüssel funktionieren nicht" #. templates/status.tpl #: standard input:101 msgid "Backup status" msgstr "Backup-Status" #. templates/status.tpl #: standard input:104 msgid "Backup last finished at %1" msgstr "Letzte Datensicherung beendet um %1" #. templates/status.tpl #: standard input:107 msgid "A new backup started at %1" msgstr "Eine neue Sicherung wurde um %1 gestartet" #. templates/restore.tpl #: standard input:110 msgid "Client to restore" msgstr "Wiederherzustellendes Client-System auswählen" #. templates/restore.tpl #: standard input:119 msgid "Browse" msgstr "Durchsuchen" #. templates/restore.tpl #: standard input:122 msgid "Restore of %1" msgstr "Wiederherstellung von %1" #. templates/restore.tpl #: standard input:125 msgid "Deleted" msgstr "Gelöscht" #. templates/header.tpl #: standard input:128 msgid "SLBackup Configuration" msgstr "SL-Backup Konfiguration" #. templates/header.tpl #: standard input:131 msgid "Status" msgstr "Status" #. templates/header.tpl #: standard input:134 msgid "Config" msgstr "Konfiguration" #. templates/header.tpl #: standard input:137 msgid "Restore" msgstr "Wiederherstellen" #. templates/header.tpl #. templates/maint.tpl #: standard input:140 #: input:164 msgid "Maintenance" msgstr "Wartung" #. templates/header.tpl #: standard input:143 msgid "Logout" msgstr "Abmelden" #. templates/login.tpl #: standard input:146 msgid "To read the configuration, you must log in as %1 on %2." msgstr "Um die Konfiguration einzusehen, müssen Sie sich als %1 auf %2 anmelden." #. templates/login.tpl #: standard input:149 msgid "Please enter the password for the %1 account on %2:" msgstr "Bitte das Kennwort für das Konto %1 auf %2 eingeben:" #. templates/login.tpl #: standard input:152 msgid "WARNING: you are about to send you password over an unencrypted link, please ask your administrator to enable https" msgstr "WARNUNG: Sie sind kurz davor, Ihr Kennwort über eine nicht-verschlüsselte Verbindung zu schicken. Bitten Sie Ihren System-Administrator darum, Verschlüsselung für die SL-Backup Seite zu aktivieren." #. templates/login.tpl #: standard input:155 msgid "Login to this application is denied without the use of https. Please ask your administrator to enable https" msgstr "Anmeldung an dieser Anwendung wird verweigert, wenn Webseiten-Verschlüsselung (https) deaktiviert ist. Bitten Sie Ihren System-Administrator darum, Verschlüsselung für die SL-Backup Seite zu aktivieren." #. templates/login.tpl #: standard input:158 msgid "Login" msgstr "Anmeldung" #. templates/maint.tpl #: standard input:170 msgid "Oldest snapshot to keep:" msgstr "Älteste Sicherungskopie, die aufbewahrt werden soll:" #. templates/maint.tpl #: standard input:173 msgid "Delete older" msgstr "Ältere löschen" #: src/index.php:749 #, php-format msgid "No client specified :(" msgstr "Kein Client-System ausgewählt :(" #: src/index.php:754 #, php-format msgid "Unable to find %s in the list of clients." msgstr "Kann %s nicht in der Liste der Client-Systeme finden." #: src/index.php:788 #, php-format msgid "Unable to find %s in the locations of %s." msgstr "Kann %s nicht unter den gesicherten Verzeichnissen von %s finden." slbackup-php-0.4.5/po/es.po0000644000000000000000000001431112262112672012365 0ustar # translation of es.po to # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: es\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-01-17 20:55+0100\n" "PO-Revision-Date: 2012-01-17 20:44+0100\n" "Last-Translator: Mike Gabriel \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.11.1\n" #. templates/config.tpl #: standard input:2 msgid "Server scheduler" msgstr "Programar el servidor" #. templates/config.tpl #: standard input:5 msgid "Backup enabled" msgstr "Copia de seguridad habilitada" #. templates/config.tpl #: standard input:8 msgid "Run backup at" msgstr "Ejecutar la copia de seguridad a las" #. templates/config.tpl #: standard input:11 input:32 src/index.php:938 msgid "Update" msgstr "Actualizar" #. templates/config.tpl #. templates/login.tpl #: standard input:14 input:35 input:65 input:161 msgid "Reset" msgstr "Reiniciar" #. templates/config.tpl #: standard input:17 msgid "Server config" msgstr "Configuración del servidor" #. templates/config.tpl #: standard input:20 input:53 msgid "Address" msgstr "Dirección" #. templates/config.tpl #: standard input:23 msgid "Destdir" msgstr "DirecciónFinal" #. templates/config.tpl #: standard input:26 msgid "Servertype" msgstr "TipoServidor" #. templates/config.tpl #: standard input:29 input:62 msgid "User" msgstr "Usuario" #. templates/config.tpl #: standard input:38 msgid "Client config" msgstr "Configuración del cliente" #. templates/config.tpl #: standard input:41 msgid "Client:" msgstr "Cliente:" #. templates/config.tpl #. templates/restore.tpl #. templates/maint.tpl #: standard input:44 input:113 input:167 msgid "Choose" msgstr "Elija" #. templates/config.tpl #: standard input:47 msgid "New" msgstr "Nuevo" #. templates/config.tpl #: standard input:50 msgid "Remove" msgstr "Eliminar" #. templates/config.tpl #: standard input:56 msgid "Backup Age" msgstr "Antiguedad de la copia" #. templates/config.tpl #: standard input:59 msgid "Clienttype" msgstr "TipoCliente" #. templates/config.tpl #. templates/restore.tpl #: standard input:68 input:116 msgid "Locations:" msgstr "Lugares:" #. templates/config.tpl #: standard input:71 src/index.php:936 msgid "Add" msgstr "Añadir" #. templates/config.tpl #: standard input:74 msgid "Delete" msgstr "Borrar" #. templates/status.tpl #: standard input:77 msgid "Clients" msgstr "Clientes" #. templates/status.tpl #: standard input:80 msgid "Status for %1" msgstr "Estado para %1" #. templates/status.tpl #: standard input:83 msgid "OK at %1" msgstr "OK en %1" #. templates/status.tpl #: standard input:86 msgid "Failed at %1" msgstr "Falló en %1" #. templates/status.tpl #: standard input:89 msgid "Client never backed up" msgstr "Nunca se ha hecho copia de ese cliente" #. templates/status.tpl #: standard input:92 msgid "ssh-keys are working" msgstr "las claves de ssh funcionan" #. templates/status.tpl #: standard input:95 msgid "rdiff-backup-versions differ" msgstr "las versiones de diferencia de copias no son iguales" #. templates/status.tpl #: standard input:98 msgid "ssh-keys are not working" msgstr "las claves de ssh no funcionan" #. templates/status.tpl #: standard input:101 msgid "Backup status" msgstr "Estado de la copia" #. templates/status.tpl #: standard input:104 msgid "Backup last finished at %1" msgstr "La última copia de seguridad acabó a las %1" #. templates/status.tpl #: standard input:107 msgid "A new backup started at %1" msgstr "Una nueva copia de seguridad comenzó a las %1" #. templates/restore.tpl #: standard input:110 msgid "Client to restore" msgstr "Cliente a restaurar" #. templates/restore.tpl #: standard input:119 msgid "Browse" msgstr "Explorar" #. templates/restore.tpl #: standard input:122 msgid "Restore of %1" msgstr "Restauración de %1" #. templates/restore.tpl #: standard input:125 msgid "Deleted" msgstr "Borrado" #. templates/header.tpl #: standard input:128 msgid "SLBackup Configuration" msgstr "Configuración de SLBackup" #. templates/header.tpl #: standard input:131 msgid "Status" msgstr "Estado" #. templates/header.tpl #: standard input:134 msgid "Config" msgstr "Configuración" #. templates/header.tpl #: standard input:137 msgid "Restore" msgstr "Restaurar" #. templates/header.tpl #. templates/maint.tpl #: standard input:140 input:164 msgid "Maintenance" msgstr "Mantenimiento" #. templates/header.tpl #: standard input:143 msgid "Logout" msgstr "Salir" #. templates/login.tpl #: standard input:146 msgid "To read the configuration, you must log in as %1 on %2." msgstr "Para leer la configuración, debe entrar como %1 en %2." #. templates/login.tpl #: standard input:149 msgid "Please enter the password for the %1 account on %2:" msgstr "Introduzca la contraseña para la cuenta %1 en %2:" #. templates/login.tpl #: standard input:152 msgid "" "WARNING: you are about to send you password over an unencrypted link, please " "ask your administrator to enable https" msgstr "" "AVISO: Está a punto de enviar su contraseña por un enlace sin encriptar, " "solicite a su administrador que habilite https" #. templates/login.tpl #: standard input:155 msgid "" "Login to this application is denied without the use of https. Please ask " "your administrator to enable https" msgstr "" "No está autorizado entrar en esta aplicación sin usar https. Solicite a su " "administrador que habilite https" #. templates/login.tpl #: standard input:158 msgid "Login" msgstr "Entrar" #. templates/maint.tpl #: standard input:170 msgid "Oldest snapshot to keep:" msgstr "La copia más antigua a mantener:" #. templates/maint.tpl #: standard input:173 msgid "Delete older" msgstr "Borrar lo más viejo" #: src/index.php:749 #, php-format msgid "No client specified :(" msgstr "No se ha especificado un cliente :(" #: src/index.php:754 #, php-format msgid "Unable to find %s in the list of clients." msgstr "No se ha podido encontrar a %s en la lista de clientes." #: src/index.php:788 #, php-format msgid "Unable to find %s in the locations of %s." msgstr "No se ha podido encontrar a %s en los lugares de %s." slbackup-php-0.4.5/po/fr.po0000644000000000000000000001455412262112672012376 0ustar # Translation of slbackup-php to French # Copyright (C) 2012 Debian French l10n team # This file is distributed under the same license as the slbackup-php package. # # David Prévot , 2012. msgid "" msgstr "" "Project-Id-Version: slbackup-php\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-01-17 20:55+0100\n" "PO-Revision-Date: 2012-03-18 21:58-0400\n" "Last-Translator: David Prévot \n" "Language-Team: French \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Lokalize 1.2\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. templates/config.tpl #: standard input:2 msgid "Server scheduler" msgstr "Programmation du serveur" #. templates/config.tpl #: standard input:5 msgid "Backup enabled" msgstr "Sauvegarde activée" #. templates/config.tpl #: standard input:8 msgid "Run backup at" msgstr "Démarrer la sauvegarde à" #. templates/config.tpl #: standard input:11 input:32 src/index.php:938 msgid "Update" msgstr "Mettre à jour" #. templates/config.tpl #. templates/login.tpl #: standard input:14 input:35 input:65 input:161 msgid "Reset" msgstr "Réinitialiser" #. templates/config.tpl #: standard input:17 msgid "Server config" msgstr "Configuration du serveur" #. templates/config.tpl #: standard input:20 input:53 msgid "Address" msgstr "Adresse" #. templates/config.tpl #: standard input:23 msgid "Destdir" msgstr "Rép. dest." #. templates/config.tpl #: standard input:26 msgid "Servertype" msgstr "Type serveur" #. templates/config.tpl #: standard input:29 input:62 msgid "User" msgstr "Utilisateur" #. templates/config.tpl #: standard input:38 msgid "Client config" msgstr "Configuration du client" #. templates/config.tpl #: standard input:41 msgid "Client:" msgstr "Client :" #. templates/config.tpl #. templates/restore.tpl #. templates/maint.tpl #: standard input:44 input:113 input:167 msgid "Choose" msgstr "Choisir" #. templates/config.tpl #: standard input:47 msgid "New" msgstr "Nouveau" #. templates/config.tpl #: standard input:50 msgid "Remove" msgstr "Retirer" #. templates/config.tpl #: standard input:56 msgid "Backup Age" msgstr "Âge de la sauvegarde" #. templates/config.tpl #: standard input:59 msgid "Clienttype" msgstr "Type client" #. templates/config.tpl #. templates/restore.tpl #: standard input:68 input:116 msgid "Locations:" msgstr "Emplacements :" #. templates/config.tpl #: standard input:71 src/index.php:936 msgid "Add" msgstr "Ajouter" #. templates/config.tpl #: standard input:74 msgid "Delete" msgstr "Supprimer" #. templates/status.tpl #: standard input:77 msgid "Clients" msgstr "Clients" #. templates/status.tpl #: standard input:80 msgid "Status for %1" msgstr "État de %1" #. templates/status.tpl #: standard input:83 msgid "OK at %1" msgstr "Bon à %1" #. templates/status.tpl #: standard input:86 msgid "Failed at %1" msgstr "Échoué à %1" #. templates/status.tpl #: standard input:89 msgid "Client never backed up" msgstr "Client jamais sauvegardé" #. templates/status.tpl #: standard input:92 msgid "ssh-keys are working" msgstr "Les clefs SSH fonctionnent" #. templates/status.tpl #: standard input:95 msgid "rdiff-backup-versions differ" msgstr "Les versions de rdiff-backup sont différentes" #. templates/status.tpl #: standard input:98 msgid "ssh-keys are not working" msgstr "Les clefs SSH ne fonctionnent pas" #. templates/status.tpl #: standard input:101 msgid "Backup status" msgstr "État de sauvegarde" #. templates/status.tpl #: standard input:104 msgid "Backup last finished at %1" msgstr "La dernière sauvegarde s'est terminée à %1" #. templates/status.tpl #: standard input:107 msgid "A new backup started at %1" msgstr "Une nouvelle sauvegarde a commencé à %1" #. templates/restore.tpl #: standard input:110 msgid "Client to restore" msgstr "Client à restaurer" #. templates/restore.tpl #: standard input:119 msgid "Browse" msgstr "Parcourir" #. templates/restore.tpl #: standard input:122 msgid "Restore of %1" msgstr "Restauration de %1" #. templates/restore.tpl #: standard input:125 msgid "Deleted" msgstr "Supprimé" #. templates/header.tpl #: standard input:128 msgid "SLBackup Configuration" msgstr "Configuration de SLBackup" #. templates/header.tpl #: standard input:131 msgid "Status" msgstr "État" #. templates/header.tpl #: standard input:134 msgid "Config" msgstr "Configuration" #. templates/header.tpl #: standard input:137 msgid "Restore" msgstr "Restaurer" #. templates/header.tpl #. templates/maint.tpl #: standard input:140 input:164 msgid "Maintenance" msgstr "Maintenance" #. templates/header.tpl #: standard input:143 msgid "Logout" msgstr "Déconnexion" #. templates/login.tpl #: standard input:146 msgid "To read the configuration, you must log in as %1 on %2." msgstr "" "Pour lire la configuration, vous devez vous connecter en tant que %1 sur %2." #. templates/login.tpl #: standard input:149 msgid "Please enter the password for the %1 account on %2:" msgstr "Veuillez entrer le mot de passe du compte %1 sur %2 :" #. templates/login.tpl #: standard input:152 msgid "" "WARNING: you are about to send you password over an unencrypted link, please " "ask your administrator to enable https" msgstr "" "Attention : vous allez envoyer votre mot de passe sur un lien non chiffré, " "veuillez demander à l'administrateur d'activer HTTPS." #. templates/login.tpl #: standard input:155 msgid "" "Login to this application is denied without the use of https. Please ask " "your administrator to enable https" msgstr "" "La connexion à cette application n'est pas permise sans HTTPS. Veuillez " "demander à l'administrateur d'activer HTTPS." #. templates/login.tpl #: standard input:158 msgid "Login" msgstr "Connexion" #. templates/maint.tpl #: standard input:170 msgid "Oldest snapshot to keep:" msgstr "Plus vieil instantané à garder :" #. templates/maint.tpl #: standard input:173 msgid "Delete older" msgstr "Effacer les plus anciens" #: src/index.php:749 #, php-format msgid "No client specified :(" msgstr "Pas de client indiqué" #: src/index.php:754 #, php-format msgid "Unable to find %s in the list of clients." msgstr "Impossible de trouver %s dans la liste des clients." #: src/index.php:788 #, php-format msgid "Unable to find %s in the locations of %s." msgstr "Impossible de trouver %s dans les emplacements de %s." slbackup-php-0.4.5/po/nb_NO.po0000644000000000000000000001423512262112672012756 0ustar # Norwegian translation for slbackup-php # Copyright (C) 2006 Finn-Arne Johansen # This file is distributed under the same license as the slbackup-php package. # Finn-Arne Johansen , 2007 # msgid "" msgstr "" "Project-Id-Version: slbackup 0.0.1\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-01-17 20:55+0100\n" "PO-Revision-Date: 2012-01-17 20:47+0100\n" "Last-Translator: Mike Gabriel \n" "Language-Team: Norsk bokmål\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" #. templates/config.tpl #: standard input:2 msgid "Server scheduler" msgstr "Tidsplanlegging" #. templates/config.tpl #: standard input:5 msgid "Backup enabled" msgstr "Sikkerhetskopiering aktivert" #. templates/config.tpl #: standard input:8 msgid "Run backup at" msgstr "Kjør sikkerhetskopiering klokken" #. templates/config.tpl #: standard input:11 input:32 src/index.php:938 msgid "Update" msgstr "Oppdater" #. templates/config.tpl #. templates/login.tpl #: standard input:14 input:35 input:65 input:161 msgid "Reset" msgstr "Tilbakestill" #. templates/config.tpl #: standard input:17 msgid "Server config" msgstr "Konfigurasjon for tjener" #. templates/config.tpl #: standard input:20 input:53 msgid "Address" msgstr "Adresse" #. templates/config.tpl #: standard input:23 msgid "Destdir" msgstr "Målkatalog" #. templates/config.tpl #: standard input:26 msgid "Servertype" msgstr "Type" #. templates/config.tpl #: standard input:29 input:62 msgid "User" msgstr "Bruker" #. templates/config.tpl #: standard input:38 msgid "Client config" msgstr "Konfigurasjon av klienter" #. templates/config.tpl #: standard input:41 msgid "Client:" msgstr "Klient:" #. templates/config.tpl #. templates/restore.tpl #. templates/maint.tpl #: standard input:44 input:113 input:167 msgid "Choose" msgstr "Velg" #. templates/config.tpl #: standard input:47 msgid "New" msgstr "Ny" #. templates/config.tpl #: standard input:50 msgid "Remove" msgstr "Slett" #. templates/config.tpl #: standard input:56 msgid "Backup Age" msgstr "Alder på backup" #. templates/config.tpl #: standard input:59 msgid "Clienttype" msgstr "Type" #. templates/config.tpl #. templates/restore.tpl #: standard input:68 input:116 msgid "Locations:" msgstr "Kataloger:" #. templates/config.tpl #: standard input:71 src/index.php:936 msgid "Add" msgstr "Legg til" #. templates/config.tpl #: standard input:74 msgid "Delete" msgstr "Slett" #. templates/status.tpl #: standard input:77 msgid "Clients" msgstr "Klient" #. templates/status.tpl #: standard input:80 msgid "Status for %1" msgstr "Status for %1" #. templates/status.tpl #: standard input:83 msgid "OK at %1" msgstr "OK %1" #. templates/status.tpl #: standard input:86 msgid "Failed at %1" msgstr "Feiler %1" #. templates/status.tpl #: standard input:89 msgid "Client never backed up" msgstr "Det er aldri tatt sikkerhetskopi av klienten" #. templates/status.tpl #: standard input:92 msgid "ssh-keys are working" msgstr "sshnøkler er satt rett opp" #. templates/status.tpl #: standard input:95 msgid "rdiff-backup-versions differ" msgstr "Det er forskjellig versjon av rdiff-backup" #. templates/status.tpl #: standard input:98 msgid "ssh-keys are not working" msgstr "sshnøkler er ikke satt korrekt opp" #. templates/status.tpl #: standard input:101 msgid "Backup status" msgstr "Status for Sikkerhetskopiering" #. templates/status.tpl #: standard input:104 msgid "Backup last finished at %1" msgstr "Sikkerhetskopiering ble fullført %1" #. templates/status.tpl #: standard input:107 msgid "A new backup started at %1" msgstr "En ny sikkerhetskopieringsjobb ble startet %1" #. templates/restore.tpl #: standard input:110 msgid "Client to restore" msgstr "Klient som skal gjenskapes" #. templates/restore.tpl #: standard input:119 msgid "Browse" msgstr "Bla" #. templates/restore.tpl #: standard input:122 msgid "Restore of %1" msgstr "Gjennoppretting av %1" #. templates/restore.tpl #: standard input:125 msgid "Deleted" msgstr "Slettet" #. templates/header.tpl #: standard input:128 msgid "SLBackup Configuration" msgstr "SLBackup Konfigurasjon" #. templates/header.tpl #: standard input:131 msgid "Status" msgstr "Status" #. templates/header.tpl #: standard input:134 msgid "Config" msgstr "Konfigurasjon" #. templates/header.tpl #: standard input:137 msgid "Restore" msgstr "Gjennopprett" #. templates/header.tpl #. templates/maint.tpl #: standard input:140 input:164 msgid "Maintenance" msgstr "Vedlikehold" #. templates/header.tpl #: standard input:143 msgid "Logout" msgstr "Logg ut" #. templates/login.tpl #: standard input:146 msgid "To read the configuration, you must log in as %1 on %2." msgstr "" "For å se på konfigurasjonen, må du logge inn som bruker %1 på maskinen %2" #. templates/login.tpl #: standard input:149 msgid "Please enter the password for the %1 account on %2:" msgstr "Legg inn passordet for bruker %1 på %2:" #. templates/login.tpl #: standard input:152 msgid "" "WARNING: you are about to send you password over an unencrypted link, please " "ask your administrator to enable https" msgstr "" "ADVARSEL: Denne fobindelsen er ikke kryptert, og passordet vil kunne leses i " "klartekst om noen lytter på linjen. Be administratoren om å aktivere https " "for denne applikasjonen" #. templates/login.tpl #: standard input:155 msgid "" "Login to this application is denied without the use of https. Please ask " "your administrator to enable https" msgstr "" "Det er ikke mulig å logge inn uten bruk av https. Be din administrator om å " "sette opp bruken av https" #. templates/login.tpl #: standard input:158 msgid "Login" msgstr "Logg inn" #. templates/maint.tpl #: standard input:170 msgid "Oldest snapshot to keep:" msgstr "Eldste kopi som skal beholdes:" #. templates/maint.tpl #: standard input:173 msgid "Delete older" msgstr "Slett eldre" #: src/index.php:749 #, php-format msgid "No client specified :(" msgstr "Ingen klient ble valgt å slette" #: src/index.php:754 #, php-format msgid "Unable to find %s in the list of clients." msgstr "Fant ikke klienten %s i listen." #: src/index.php:788 #, php-format msgid "Unable to find %s in the locations of %s." msgstr "Finner ikke %s i listen av kataloger." slbackup-php-0.4.5/po/slbackup-php.pot0000644000000000000000000001205012262112672014531 0ustar # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-01-17 20:55+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #. templates/config.tpl #: standard input:2 msgid "Server scheduler" msgstr "" #. templates/config.tpl #: standard input:5 msgid "Backup enabled" msgstr "" #. templates/config.tpl #: standard input:8 msgid "Run backup at" msgstr "" #. templates/config.tpl #: standard input:11 standard input:32 src/index.php:938 msgid "Update" msgstr "" #. templates/config.tpl #. templates/login.tpl #: standard input:14 standard input:35 standard input:65 standard input:161 msgid "Reset" msgstr "" #. templates/config.tpl #: standard input:17 msgid "Server config" msgstr "" #. templates/config.tpl #: standard input:20 standard input:53 msgid "Address" msgstr "" #. templates/config.tpl #: standard input:23 msgid "Destdir" msgstr "" #. templates/config.tpl #: standard input:26 msgid "Servertype" msgstr "" #. templates/config.tpl #: standard input:29 standard input:62 msgid "User" msgstr "" #. templates/config.tpl #: standard input:38 msgid "Client config" msgstr "" #. templates/config.tpl #: standard input:41 msgid "Client:" msgstr "" #. templates/config.tpl #. templates/restore.tpl #. templates/maint.tpl #: standard input:44 standard input:113 standard input:167 msgid "Choose" msgstr "" #. templates/config.tpl #: standard input:47 msgid "New" msgstr "" #. templates/config.tpl #: standard input:50 msgid "Remove" msgstr "" #. templates/config.tpl #: standard input:56 msgid "Backup Age" msgstr "" #. templates/config.tpl #: standard input:59 msgid "Clienttype" msgstr "" #. templates/config.tpl #. templates/restore.tpl #: standard input:68 standard input:116 msgid "Locations:" msgstr "" #. templates/config.tpl #: standard input:71 src/index.php:936 msgid "Add" msgstr "" #. templates/config.tpl #: standard input:74 msgid "Delete" msgstr "" #. templates/status.tpl #: standard input:77 msgid "Clients" msgstr "" #. templates/status.tpl #: standard input:80 msgid "Status for %1" msgstr "" #. templates/status.tpl #: standard input:83 msgid "OK at %1" msgstr "" #. templates/status.tpl #: standard input:86 msgid "Failed at %1" msgstr "" #. templates/status.tpl #: standard input:89 msgid "Client never backed up" msgstr "" #. templates/status.tpl #: standard input:92 msgid "ssh-keys are working" msgstr "" #. templates/status.tpl #: standard input:95 msgid "rdiff-backup-versions differ" msgstr "" #. templates/status.tpl #: standard input:98 msgid "ssh-keys are not working" msgstr "" #. templates/status.tpl #: standard input:101 msgid "Backup status" msgstr "" #. templates/status.tpl #: standard input:104 msgid "Backup last finished at %1" msgstr "" #. templates/status.tpl #: standard input:107 msgid "A new backup started at %1" msgstr "" #. templates/restore.tpl #: standard input:110 msgid "Client to restore" msgstr "" #. templates/restore.tpl #: standard input:119 msgid "Browse" msgstr "" #. templates/restore.tpl #: standard input:122 msgid "Restore of %1" msgstr "" #. templates/restore.tpl #: standard input:125 msgid "Deleted" msgstr "" #. templates/header.tpl #: standard input:128 msgid "SLBackup Configuration" msgstr "" #. templates/header.tpl #: standard input:131 msgid "Status" msgstr "" #. templates/header.tpl #: standard input:134 msgid "Config" msgstr "" #. templates/header.tpl #: standard input:137 msgid "Restore" msgstr "" #. templates/header.tpl #. templates/maint.tpl #: standard input:140 standard input:164 msgid "Maintenance" msgstr "" #. templates/header.tpl #: standard input:143 msgid "Logout" msgstr "" #. templates/login.tpl #: standard input:146 msgid "To read the configuration, you must log in as %1 on %2." msgstr "" #. templates/login.tpl #: standard input:149 msgid "Please enter the password for the %1 account on %2:" msgstr "" #. templates/login.tpl #: standard input:152 msgid "" "WARNING: you are about to send you password over an unencrypted link, please " "ask your administrator to enable https" msgstr "" #. templates/login.tpl #: standard input:155 msgid "" "Login to this application is denied without the use of https. Please ask " "your administrator to enable https" msgstr "" #. templates/login.tpl #: standard input:158 msgid "Login" msgstr "" #. templates/maint.tpl #: standard input:170 msgid "Oldest snapshot to keep:" msgstr "" #. templates/maint.tpl #: standard input:173 msgid "Delete older" msgstr "" #: src/index.php:749 #, php-format msgid "No client specified :(" msgstr "" #: src/index.php:754 #, php-format msgid "Unable to find %s in the list of clients." msgstr "" #: src/index.php:788 #, php-format msgid "Unable to find %s in the locations of %s." msgstr "" slbackup-php-0.4.5/po/sv.po0000644000000000000000000001426512262112672012416 0ustar # Swedish translation for slbackup-php. # Copyright (C) 2007 Free Software Foundation, Inc. # This file is distributed under the same license as the slbackup-php package. # Daniel Nylander , 2007. # msgid "" msgstr "" "Project-Id-Version: slbackup-php\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-01-17 20:55+0100\n" "PO-Revision-Date: 2012-01-17 20:48+0100\n" "Last-Translator: Mike Gabriel \n" "Language-Team: Swedish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" #. templates/config.tpl #: standard input:2 msgid "Server scheduler" msgstr "Schemaläggare" #. templates/config.tpl #: standard input:5 msgid "Backup enabled" msgstr "Säkerhetskopiering aktiverad" #. templates/config.tpl #: standard input:8 msgid "Run backup at" msgstr "Kör säkerhetskopiering klockan" #. templates/config.tpl #: standard input:11 input:32 src/index.php:938 msgid "Update" msgstr "Uppdatera" #. templates/config.tpl #. templates/login.tpl #: standard input:14 input:35 input:65 input:161 msgid "Reset" msgstr "Nollställ" #. templates/config.tpl #: standard input:17 msgid "Server config" msgstr "Serverkonfiguration" #. templates/config.tpl #: standard input:20 input:53 msgid "Address" msgstr "Adress" #. templates/config.tpl #: standard input:23 msgid "Destdir" msgstr "Målkatalog" #. templates/config.tpl #: standard input:26 msgid "Servertype" msgstr "Servertyp" #. templates/config.tpl #: standard input:29 input:62 msgid "User" msgstr "Användare" #. templates/config.tpl #: standard input:38 msgid "Client config" msgstr "Klientkonfiguration" #. templates/config.tpl #: standard input:41 msgid "Client:" msgstr "Klient:" #. templates/config.tpl #. templates/restore.tpl #. templates/maint.tpl #: standard input:44 input:113 input:167 msgid "Choose" msgstr "Välj" #. templates/config.tpl #: standard input:47 msgid "New" msgstr "Ny" #. templates/config.tpl #: standard input:50 msgid "Remove" msgstr "Ta bort" #. templates/config.tpl #: standard input:56 msgid "Backup Age" msgstr "Ålder för säkerhetskopior" #. templates/config.tpl #: standard input:59 msgid "Clienttype" msgstr "Klienttyp" #. templates/config.tpl #. templates/restore.tpl #: standard input:68 input:116 msgid "Locations:" msgstr "Platser:" #. templates/config.tpl #: standard input:71 src/index.php:936 msgid "Add" msgstr "Lägg till" #. templates/config.tpl #: standard input:74 msgid "Delete" msgstr "Ta bort" #. templates/status.tpl #: standard input:77 msgid "Clients" msgstr "Klienter" #. templates/status.tpl #: standard input:80 msgid "Status for %1" msgstr "Status för %1" #. templates/status.tpl #: standard input:83 msgid "OK at %1" msgstr "OK %1" #. templates/status.tpl #: standard input:86 msgid "Failed at %1" msgstr "Misslyckades %1" #. templates/status.tpl #: standard input:89 msgid "Client never backed up" msgstr "Klienten har aldrig säkerhetskopierats" #. templates/status.tpl #: standard input:92 msgid "ssh-keys are working" msgstr "ssh-nycklarna är rätt konfigurerade" #. templates/status.tpl #: standard input:95 msgid "rdiff-backup-versions differ" msgstr "rdiff-backup-versionerna stämmer inte överens" #. templates/status.tpl #: standard input:98 msgid "ssh-keys are not working" msgstr "ssh-nycklarna är felkonfigurerade" #. templates/status.tpl #: standard input:101 msgid "Backup status" msgstr "Status för säkerhetskopiering" #. templates/status.tpl #: standard input:104 msgid "Backup last finished at %1" msgstr "Säkerhetskopieringen färdigställdes %1" #. templates/status.tpl #: standard input:107 msgid "A new backup started at %1" msgstr "En ny säkerhetskopiering startades %1" #. templates/restore.tpl #: standard input:110 msgid "Client to restore" msgstr "Klient att återskapa" #. templates/restore.tpl #: standard input:119 msgid "Browse" msgstr "Bläddra" #. templates/restore.tpl #: standard input:122 msgid "Restore of %1" msgstr "Återskapandet av %1" #. templates/restore.tpl #: standard input:125 msgid "Deleted" msgstr "Borttaget" #. templates/header.tpl #: standard input:128 msgid "SLBackup Configuration" msgstr "Konfiguration av SLBackup" #. templates/header.tpl #: standard input:131 msgid "Status" msgstr "Status" #. templates/header.tpl #: standard input:134 msgid "Config" msgstr "Konfiguration" #. templates/header.tpl #: standard input:137 msgid "Restore" msgstr "Återskapa" #. templates/header.tpl #. templates/maint.tpl #: standard input:140 input:164 msgid "Maintenance" msgstr "Underhåll" #. templates/header.tpl #: standard input:143 msgid "Logout" msgstr "Logga ut" #. templates/login.tpl #: standard input:146 msgid "To read the configuration, you must log in as %1 on %2." msgstr "För att läsa konfiguration måste du logga in som %1 på %2." #. templates/login.tpl #: standard input:149 msgid "Please enter the password for the %1 account on %2:" msgstr "Ange lösenordet för %1-kontot på %2:" #. templates/login.tpl #: standard input:152 msgid "" "WARNING: you are about to send you password over an unencrypted link, please " "ask your administrator to enable https" msgstr "" "VARNING: du är på väg att skicka ditt lösenord över en okrypterad " "förbindelse, be din administratör att aktivera https" #. templates/login.tpl #: standard input:155 msgid "" "Login to this application is denied without the use of https. Please ask " "your administrator to enable https" msgstr "" "Inloggning till det här programmet nekas därför att https inte används. Be " "din administratör att aktivera https" #. templates/login.tpl #: standard input:158 msgid "Login" msgstr "Logga in" #. templates/maint.tpl #: standard input:170 msgid "Oldest snapshot to keep:" msgstr "Äldsta ögonblicksbild att spara:" #. templates/maint.tpl #: standard input:173 msgid "Delete older" msgstr "Ta bort äldre" #: src/index.php:749 #, php-format msgid "No client specified :(" msgstr "Ingen klient angiven :(" #: src/index.php:754 #, php-format msgid "Unable to find %s in the list of clients." msgstr "Kunde inte hitta %s i listan över klienter." #: src/index.php:788 #, php-format msgid "Unable to find %s in the locations of %s." msgstr "Kunde inte hitta %s i platserna för %s." slbackup-php-0.4.5/script/mypass.sh0000755000000000000000000000005312262112672014155 0ustar #!/bin/sh read PASS cat << EOF $PASS EOF slbackup-php-0.4.5/src/functions.php0000644000000000000000000001256212262112672014316 0ustar BzzWare AS, Norway 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. */ function loadConfig () { global $backuphost, $backupuser, $backupconf, $backupcron, $ssh_options, $logfile, $nonhttps, $smarty_templ, $smarty_compile ; @include_once ("/etc/slbackup-php/config.php") ; if (empty ($nonhttps)) $nonhttps = $_COOKIE ['nonhttps'] ; if (empty ($smarty_templ)) $smarty_templ = $_COOKIE ['smarty_templ'] ; if (empty ($smarty_compile)) $smarty_compile = $_COOKIE ['smarty_compile'] ; if (empty ($backuphost)) $backuphost="localhost" ; if (empty ($backupuser)) $backupuser="root" ; if (empty ($backupconf)) $backupconf="/etc/slbackup/slbackup.conf" ; if (empty ($backupcron)) $backupcron="/etc/cron.d/slbackup" ; if (empty ($ssh_options)) $ssh_options="-o StrictHostKeyChecking=no" ; if (empty ($logfile)) $logfile="/var/log/slbackup/slbackup.log" ; switch ($nonhttps) { case "warn": case "allow": case "deny": break ; default: $nonhttps = "deny" ; setcookie ('nonhttps', $nonhttps) ; break ; } if (empty ($smarty_templ)) { $smarty_templ = realpath ("../templates") ; setcookie ('smarty_templ', $smarty_templ) ; } if (empty ($smarty_compile)) { $smarty_compile = "/var/spool/slbackup-php" ; if (! is_dir ($smarty_compile)) $smarty_compile = "/var/tmp" ; setcookie ('smarty_compile', $smarty_compile) ; } } function loadLocale () { $found_locale = ""; if (array_key_exists('locale', $_COOKIE)) $found_locale = $_COOKIE['locale']; if ($found_locale == "" && $handle = @opendir ('../locales')) { $translations = array () ; while (false !== ($file = readdir ($handle))) { if (is_dir ('../locales/' . $file . '/LC_MESSAGES')) { $translations = array_merge ($translations, array ($file)) ; } } closedir ($handle) ; $lang_accept = array () ; $lang_accept = explode (",", $_SERVER['HTTP_ACCEPT_LANGUAGE']); for ($i = 0 ; $i < count ($lang_accept) ; $i++ ) { $lang_accept[$i] = split(";", $lang_accept[$i]) ; $lang_accept[$i] = $lang_accept[$i][0] ; } if (!empty($lang_accept[0])) { foreach ($lang_accept as $lang) { if (!isset ($locale_exact)) { foreach ($translations as $translation) { if ($translation == $lang) $locale_exact = $lang ; elseif (!isset ($locale_match)) { if (strpos ($translation, $lang) === 0) $locale_match = $translation ; } } } } if (isset ($locale_exact)) $found_locale=$locale_exact ; elseif (isset ($locale_match)) $found_locale=$locale_match ; } $locales = array(); $locales_utf8 = array(); if (isset($found_locale) && !empty($lang_accept[0])) { $found_locale_tuple = split('_', $found_locale); if (count($found_locale_tuple) > 1) { $locales[] = $found_locale; $locales_utf8[] = $found_locale.'.UTF-8'; } foreach ($lang_accept as $lang) { $lang_tuple = split('-',$lang); if (count($lang_tuple) > 1) { $language = strtolower($lang_tuple[0]); $country = strtoupper($lang_tuple[1]); $locales[] = $language . '_' . $country; $locales_utf8[] = $language . '_' . $country . '.UTF-8'; } } $locales_all = array_merge ($locales_utf8, $locales); $found_locale = setlocale (LC_ALL, $locales_all) ; } if (isset ($found_locale)) setcookie ( 'locale', $found_locale) ; unset ($all_locales, $lang_accept, $locale_match, $locale_exact, $lang, $locales) ; } if (isset ($found_locale)) { $locale = setlocale (LC_ALL, $found_locale) ; if (empty($locale)) $locale = setlocale (LC_ALL, $found_locale . ".UTF8"); bindtextdomain ("slbackup-php", "../locales/"); bind_textdomain_codeset ("slbackup-php", "UTF-8"); textdomain ("slbackup-php"); } header('Content-Type: text/html; charset=UTF-8') ; } function xorstring ($key, $xor) { $keylen=strlen ($key) ; if (! $keylen) return "" ; $newstr="" ; $index=0 ; $keyindex = $index ; while ($index < strlen ($xor)) { $newstr .= chr(ord($xor[$index]) ^ ord ($key[$keyindex])) ; $index ++ ; $keyindex= $index % $keylen ; } if ($keyindex == 0) { $last=strpos ($newstr, chr(0)); if ($last === false) { return $newstr ; } return(substr ($newstr, 0, $last)) ; } while ($keyindex != 0) { $newstr .= $key[$keyindex] ; $index ++ ; $keyindex= $index % $keylen ; } return ($newstr) ; } function debug ($mixed) { echo "
\n" ; 
    print_r ($mixed);
    echo "\n
\n" ; } ?> slbackup-php-0.4.5/src/index.php0000644000000000000000000007725712262112672013431 0ustar BzzWare AS, Norway 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. */ function checkkeysandversions ($passwd, $config) { global $backuphost, $backupuser, $ssh_options, $ssh_askpass ; $out = array () ; $desc[0] = array ("pipe", "r") ; $desc[1] = array ("pipe", "w") ; $desc[2] = array ("file", "/tmp/error.log", "a") ; $env = array ('SSH_ASKPASS' => $ssh_askpass, 'DISPLAY' => ':nowhere') ; $cmd = sprintf ("ssh %s %s@%s 'rdiff-backup --version'", $ssh_options, $backupuser, $backuphost) ; $proc = proc_open ($cmd, $desc, $pipes, '/tmp', $env) ; if (is_resource ($proc)) { fprintf ($pipes[0], "%s\n", $passwd) ; fclose ($pipes[0]) ; while ($line = fgets ($pipes[1], 1024)) { $out["version"] = trim($line) ; } fclose ($pipes[1]) ; proc_close ($proc) ; } foreach ($config["clients"] as $key => $value) { if ($key["type"] <> "local") { $out["clients"][$key]["ssh"] = "failed" ; $cmd = sprintf ("ssh %s %s@%s 'ssh %s echo ssh ok \; rdiff-backup --version'", $ssh_options, $backupuser, $backuphost, $value["address"]) ; $proc = proc_open ($cmd, $desc, $pipes, '/tmp', $env) ; if (is_resource ($proc)) { fprintf ($pipes[0], "%s\n", $passwd) ; fclose ($pipes[0]) ; while ($line = fgets ($pipes[1], 1024)) { list ($test, $result) = explode (" ", trim($line)) ; $out["clients"][$key][$test] = $result ; } fclose ($pipes[1]) ; proc_close ($proc) ; } } } return ($out) ; } function removesnapshots ($passwd, $clientdir, $snapshot) { global $backuphost, $backupuser, $ssh_options, $ssh_askpass ; $cmd = sprintf ("ssh %s %s@%s 'rdiff-backup --force --remove-older-than %s \"%s\"'", $ssh_options, $backupuser, $backuphost, $snapshot, $clientdir) ; $snapshots = array () ; $desc[0] = array ("pipe", "r") ; $desc[1] = array ("pipe", "w") ; $desc[2] = array ("file", "/tmp/error.log", "a") ; $env = array ('SSH_ASKPASS' => $ssh_askpass, 'DISPLAY' => ':nowhere') ; $proc = proc_open ($cmd, $desc, $pipes, '/tmp', $env) ; if (is_resource ($proc)) { fprintf ($pipes[0], "%s\n", $passwd) ; fclose ($pipes[0]) ; while ($line = fgets ($pipes[1], 1024)) { $snapshots[] = $line ; } fclose ($pipes[1]) ; proc_close ($proc) ; } return $snapshots ; } function listsnapshots ($passwd, $clientdir) { global $backuphost, $backupuser, $ssh_options, $ssh_askpass ; $cmd = sprintf ("ssh %s %s@%s 'find \"%s/rdiff-backup-data\" -maxdepth 1 -name \"increments.*\" -printf %s | sort '", $ssh_options, $backupuser, $backuphost, $clientdir, '"%P\n"') ; $snapshots = array () ; $desc[0] = array ("pipe", "r") ; $desc[1] = array ("pipe", "w") ; $desc[2] = array ("file", "/tmp/error.log", "a") ; $env = array ('SSH_ASKPASS' => $ssh_askpass, 'DISPLAY' => ':nowhere') ; $proc = proc_open ($cmd, $desc, $pipes, '/tmp', $env) ; if (is_resource ($proc)) { fprintf ($pipes[0], "%s\n", $passwd) ; fclose ($pipes[0]) ; while ($line = fgets ($pipes[1], 1024)) { $snapshots[] = substr ($line, 11, 25) ; } fclose ($pipes[1]) ; proc_close ($proc) ; } return $snapshots ; } function fetchfile ($passwd, $clientdir, $location, $file) { global $backuphost, $backupuser, $ssh_options, $ssh_askpass ; $cmd = sprintf ("ssh %s %s@%s 'cat \"%s%s/%s\"'", $ssh_options, $backupuser, $backuphost, $clientdir, $location, $file ) ; $desc[0] = array ("pipe", "r") ; $desc[1] = array ("pipe", "w") ; $desc[2] = array ("file", "/tmp/error.log", "a") ; $env = array ('SSH_ASKPASS' => $ssh_askpass, 'DISPLAY' => ':nowhere') ; $proc = proc_open ($cmd, $desc, $pipes, '/tmp', $env) ; if (is_resource ($proc)) { fprintf ($pipes[0], "%s\n", $passwd) ; fclose ($pipes[0]) ; $out = stream_get_contents($pipes[1]) ; fclose ($pipes[1]) ; proc_close ($proc) ; } else unset ($out) ; return $out ; } function fetchsnapshot ($passwd, $clientdir, $location, $file) { global $backuphost, $backupuser, $ssh_options, $ssh_askpass ; $desc[0] = array ("pipe", "r") ; $desc[1] = array ("pipe", "w") ; $desc[2] = array ("file", "/tmp/error.log", "a") ; $env = array ('SSH_ASKPASS' => $ssh_askpass, 'DISPLAY' => ':nowhere') ; $cmd = sprintf ("ssh %s %s@%s 'mktemp'", $ssh_options, $backupuser, $backuphost) ; $proc = proc_open ($cmd, $desc, $pipes, '/tmp', $env) ; if (is_resource ($proc)) { fprintf ($pipes[0], "%s\n", $passwd) ; fclose ($pipes[0]) ; $tempfile = stream_get_contents($pipes[1]) ; fclose ($pipes[1]) ; proc_close ($proc) ; } else unset ($tempfile) ; if (empty($tempfile)) return ; $cmd = sprintf ("ssh %s %s@%s 'rdiff-backup --force \"%s/rdiff-backup-data/increments%s/%s %s\"'", $ssh_options, $backupuser, $backuphost, $clientdir, $location, $file, $tempfile ) ; $proc = proc_open ($cmd, $desc, $pipes, '/tmp', $env) ; if (is_resource ($proc)) { fprintf ($pipes[0], "%s\n", $passwd) ; fclose ($pipes[0]) ; fclose ($pipes[1]) ; proc_close ($proc) ; } $cmd = sprintf ("ssh %s %s@%s 'cat \"%s\" && rm \"%s\"'", $ssh_options, $backupuser, $backuphost, $tempfile, $tempfile) ; $proc = proc_open ($cmd, $desc, $pipes, '/tmp', $env) ; if (is_resource ($proc)) { fprintf ($pipes[0], "%s\n", $passwd) ; fclose ($pipes[0]) ; $out = stream_get_contents($pipes[1]) ; fclose ($pipes[1]) ; proc_close ($proc) ; } else unset ($out) ; return $out ; } function listfile ($passwd, $clientdir, $location, $file) { global $backuphost, $backupuser, $ssh_options, $ssh_askpass ; $out = array() ; $parent = dirname ($file) ; $base = basename ($file) ; if (empty($file)) return $out ; if ($parent == ".") $parent="" ; $out[] = array ('type' => 'parent', 'name' => "Parent directory", 'sub' => trim ($parent)) ; $desc[0] = array ("pipe", "r") ; $desc[1] = array ("pipe", "w") ; $desc[2] = array ("file", "/tmp/error.log", "a") ; $env = array ('SSH_ASKPASS' => $ssh_askpass, 'DISPLAY' => ':nowhere') ; $cmd = sprintf ("ssh %s %s@%s 'find \"%s%s/%s\" -maxdepth 1 -mindepth 1 -type f -name \"%s\"'", $ssh_options, $backupuser, $backuphost, $clientdir, $location, $parent, $base ) ; $proc = proc_open ($cmd, $desc, $pipes, '/tmp', $env) ; if (is_resource ($proc)) { fprintf ($pipes[0], "%s\n", $passwd) ; fclose ($pipes[0]) ; while ($line = fgets ($pipes[1], 1024)) { $out[] = array ('type' => 'currentfile', 'name' => basename (trim($line)), 'sub' => substr (trim ($line), strlen ($clientdir) + strlen ($location) + 1)) ; } fclose ($pipes[1]) ; proc_close ($proc) ; } $baselen= strlen ($base) ; $cmd = sprintf ("ssh %s %s@%s 'find \"%s/rdiff-backup-data/increments%s/%s\" -maxdepth 1 -mindepth 1 -type f -name \"%s*.gz\"'", $ssh_options, $backupuser, $backuphost, $clientdir, $location, $parent, $base ) ; $proc = proc_open ($cmd, $desc, $pipes, '/tmp', $env) ; if (is_resource ($proc)) { fprintf ($pipes[0], "%s\n", $passwd) ; fclose ($pipes[0]) ; while ($line = fgets ($pipes[1], 1024)) { $gzbase = basename (trim($line)) ; $type = substr ($gzbase, $baselen + 27) ; $ts = substr($gzbase, $baselen + 1, 25) ; $revision = $gzbase ; while (($pos = strpos ($revision, '+')) !== false) $revision = substr ($revision, 0,$pos) . '%2B' . substr ($revision, $pos + 1 ) ; switch ($type) { case "snapshot.gz": case "diff.gz": default: $out[] = array ('type' => $type, 'ts' => $ts, 'name' => $base, 'revision' => $revision, 'parent' => sprintf ("%s/%s", $sub, $parent)) ; break ; } } fclose ($pipes[1]) ; proc_close ($proc) ; } return $out ; } function listloc ($passwd, $clientdir, $location, $sub = "") { global $backuphost, $backupuser, $ssh_options, $ssh_askpass ; $loc = array() ; $parent = dirname ($sub) ; if (!empty($sub)) { if ($parent == ".") $parent="" ; $loc[] = array ('type' => 'parent', 'name' => "Parent directory", 'sub' => trim ($parent)) ; } $desc[0] = array ("pipe", "r") ; $desc[1] = array ("pipe", "w") ; $desc[2] = array ("file", "/tmp/error.log", "a") ; $env = array ('SSH_ASKPASS' => $ssh_askpass, 'DISPLAY' => ':nowhere') ; $cmd = sprintf ("ssh %s %s@%s 'find \"%s%s/%s\" -maxdepth 1 -mindepth 1 -type d'", $ssh_options, $backupuser, $backuphost, $clientdir, $location, $sub ) ; $proc = proc_open ($cmd, $desc, $pipes, '/tmp', $env) ; if (is_resource ($proc)) { fprintf ($pipes[0], "%s\n", $passwd) ; fclose ($pipes[0]) ; while ($line = fgets ($pipes[1], 1024)) { $loc[] = array ('type' => 'dir', 'name' => basename (trim($line)), 'sub' => substr (trim ($line), strlen ($clientdir) + strlen ($location) + 1)) ; } fclose ($pipes[1]) ; proc_close ($proc) ; } $cmd = sprintf ("ssh %s %s@%s 'find \"%s/rdiff-backup-data/increments%s/%s\" -maxdepth 1 -mindepth 1 -type d'", $ssh_options, $backupuser, $backuphost, $clientdir, $location, $sub ) ; $proc = proc_open ($cmd, $desc, $pipes, '/tmp', $env) ; if (is_resource ($proc)) { fprintf ($pipes[0], "%s\n", $passwd) ; fclose ($pipes[0]) ; while ($line = fgets ($pipes[1], 1024)) { $found=false ; foreach ($loc as $key => $value) if ($value["type"] == "dir" and $value["name"] == basename(trim ($line))) $found = true ; if (!$found) $loc[] = array ('type' => 'deldir', 'name' => basename (trim($line)), 'sub' => substr (trim ($line), strlen ($clientdir) + strlen ($location) + 30)) ; } fclose ($pipes[1]) ; proc_close ($proc) ; } $cmd = sprintf ("ssh %s %s@%s 'find \"%s%s/%s\" -maxdepth 1 -mindepth 1 -type f'", $ssh_options, $backupuser, $backuphost, $clientdir, $location, $sub ) ; $proc = proc_open ($cmd, $desc, $pipes, '/tmp', $env) ; if (is_resource ($proc)) { fprintf ($pipes[0], "%s\n", $passwd) ; fclose ($pipes[0]) ; while ($line = fgets ($pipes[1], 1024)) { $base = basename (trim($line)) ; $loc[] = array ('type' => 'file', 'name' => $base, 'sub' => sprintf ("%s/%s", $sub, $base)) ; } fclose ($pipes[1]) ; proc_close ($proc) ; } $cmd = sprintf ("ssh %s %s@%s 'find \"%s/rdiff-backup-data/increments%s/%s\" -maxdepth 1 -mindepth 1 -type f -name \"*.snapshot.gz\"'", $ssh_options, $backupuser, $backuphost, $clientdir, $location, $sub ) ; $proc = proc_open ($cmd, $desc, $pipes, '/tmp', $env) ; if (is_resource ($proc)) { fprintf ($pipes[0], "%s\n", $passwd) ; fclose ($pipes[0]) ; while ($line = fgets ($pipes[1], 1024)) { $found=false ; $base = basename (trim($line)) ; $base = substr($base, 0, strlen($base) - 38) ; foreach ($loc as $key => $value) if ($value["type"] == "file" and $value["name"] == $base) $found = true ; if (!$found) $loc[] = array ('type' => 'delfile', 'name' => $base, 'sub' => sprintf ("%s/%s", $sub, $base)) ; } fclose ($pipes[1]) ; proc_close ($proc) ; } return $loc ; } function readcron ($passwd) { global $backuphost, $backupuser, $backupcron, $ssh_options, $ssh_askpass ; $cron = array() ; $cmd = sprintf ("ssh %s %s@%s cat %s", $ssh_options, $backupuser, $backuphost, $backupcron) ; $desc[0] = array ("pipe", "r") ; $desc[1] = array ("pipe", "w") ; $desc[2] = array ("file", "/tmp/error.log", "a") ; $env = array ('SSH_ASKPASS' => $ssh_askpass, 'DISPLAY' => ':nowhere') ; $proc = proc_open ($cmd, $desc, $pipes, '/tmp', $env) ; if (is_resource ($proc)) { fprintf ($pipes[0], "%s\n", $passwd) ; fclose ($pipes[0]) ; while ($line = fgets ($pipes[1], 1024)) $cron[] = trim ($line) ; fclose ($pipes[1]) ; proc_close ($proc) ; } return $cron ; } function writecron ($passwd, $cron) { global $backuphost, $backupuser, $backupcron, $ssh_options, $ssh_askpass ; $cmd = sprintf ("ssh %s %s@%s 'cat > %s'", $ssh_options, $backupuser, $backuphost, $backupcron) ; $desc[0] = array ("pipe", "r") ; $desc[1] = array ("pipe", "w") ; $desc[2] = array ("file", "/tmp/error.log", "a") ; $env = array ('SSH_ASKPASS' => $ssh_askpass, 'DISPLAY' => ':nowhere') ; // cat crontab file on remote backup server $proc = proc_open ($cmd, $desc, $pipes, '/tmp', $env) ; if (is_resource ($proc)) { fprintf ($pipes[0], "%s\n", $passwd) ; fprintf ($pipes[0], "%s", $cron) ; fclose ($pipes[1]) ; fclose ($pipes[0]) ; proc_close ($proc) ; } // chmod on the remote backup job file $cmd = sprintf ("ssh %s %s@%s 'chmod 0644 %s'", $ssh_options, $backupuser, $backuphost, $backupcron) ; $proc = proc_open ($cmd, $desc, $pipes, '/tmp', $env) ; if (is_resource ($proc)) { fprintf ($pipes[0], "%s\n", $passwd) ; fclose ($pipes[1]) ; fclose ($pipes[0]) ; proc_close ($proc) ; } } function writeconf ($passwd, $config) { global $backuphost, $backupuser, $backupconf, $ssh_options, $ssh_askpass ; $out = sprintf ("\n") ; foreach ($config["clients"] as $key => $value) { $out .= sprintf (" <%s>\n", $key) ; $out .= sprintf (" address %s\n", $value["address"]) ; $out .= sprintf (" keep %s\n", $value["keep"]) ; foreach ($value["location"] as $loc) $out .= sprintf (" location %s\n", $loc) ; $out .= sprintf (" type %s\n", $value["type"]) ; $out .= sprintf (" user %s\n", $value["user"]) ; $out .= sprintf (" \n", $key) ; } $out .= sprintf ("\n") ; $out .= sprintf ("server_address %s\n", $config["server_address"]) ; $out .= sprintf ("server_destdir %s\n", $config["server_destdir"]) ; $out .= sprintf ("server_type %s\n", $config["server_type"]) ; $out .= sprintf ("server_user %s\n", $config["server_user"]) ; $cmd = sprintf ("ssh %s %s@%s 'cat > %s'", $ssh_options, $backupuser, $backuphost, $backupconf) ; $desc[0] = array ("pipe", "r") ; $desc[1] = array ("pipe", "w") ; $desc[2] = array ("file", "/tmp/error.log", "a") ; $env = array ('SSH_ASKPASS' => $ssh_askpass, 'DISPLAY' => ':nowhere') ; $proc = proc_open ($cmd, $desc, $pipes, '/tmp', $env) ; if (is_resource ($proc)) { fprintf ($pipes[0], "%s\n", $passwd) ; fprintf ($pipes[0], "%s\n", $out) ; fclose ($pipes[1]) ; fclose ($pipes[0]) ; proc_close ($proc) ; } } function readconf ($passwd) { global $backuphost, $backupuser, $backupconf, $ssh_options, $ssh_askpass ; $cmd = sprintf ("ssh %s %s@%s cat %s", $ssh_options, $backupuser, $backuphost, $backupconf) ; $desc[0] = array ("pipe", "r") ; $desc[1] = array ("pipe", "w") ; $desc[2] = array ("file", "/tmp/error.log", "a") ; $env = array ('SSH_ASKPASS' => $ssh_askpass, 'DISPLAY' => ':nowhere') ; $proc = proc_open ($cmd, $desc, $pipes, '/tmp', $env) ; if (is_resource ($proc)) { fprintf ($pipes[0], "%s\n", $passwd) ; fclose ($pipes[0]) ; while (fscanf ($pipes[1], "\t%s\t%s", $key, $value)) { if (isset ($value)) { switch (strtolower($key)) { case "address": case "keep": case "type": case "user": $clientconf[$key] = $value ; break ; case "location": $clientconf[$key][] = $value ; break ; case "server_address": case "server_destdir": case "server_type": case "server_user": $config[$key] = $value ; break ; } } else { switch ($key) { case "": $readclient = true ; break ; case "": $readclient = false ; break ; default: if ($readclient && empty ($newclient)) { $newclient = trim ($key, "<>") ; $clientconf = array () ; $clientconf["location"] = array () ; } elseif ($readclient && $key == "") { $config["clients"][$newclient] = $clientconf ; unset ($newclient) ; unset ($clientconf) ; } break ; } } unset ($value) ; unset ($key) ; } fclose ($pipes[1]) ; proc_close ($proc) ; } return $config ; } function readlog ($passwd, $log) { global $backuphost, $backupuser, $logfile, $ssh_options, $ssh_askpass ; $cmd = sprintf ("ssh %s %s@%s cat %s", $ssh_options, $backupuser, $backuphost, $logfile) ; $desc[0] = array ("pipe", "r") ; $desc[1] = array ("pipe", "w") ; $desc[2] = array ("file", "/tmp/error.log", "a") ; $env = array ('SSH_ASKPASS' => $ssh_askpass, 'DISPLAY' => ':nowhere') ; $proc = proc_open ($cmd, $desc, $pipes, '/tmp', $env) ; if (is_resource ($proc)) { fprintf ($pipes[0], "%s\n", $passwd) ; fclose ($pipes[0]) ; while ($line = fgets ($pipes[1], 1024)) { list ($timestamp, $info) = explode (" - ", trim($line)) ; if ($info == "Starting slbackup:") $log["start"] = strtotime($timestamp) ; elseif ($info == "Finished slbackup.") $log["end"] = strtotime($timestamp) ; elseif (strpos ($line, "Starting backup of client ") !== false) { sscanf ($info, "Starting backup of client %s", $client) ; if (!empty ($client)) $log["clients"][$client]["start"] = strtotime($timestamp) ; } elseif (strpos ($line, "Failed backing up client ") !== false) { sscanf ($info, "Failed backing up client %s", $client) ; if (!empty ($client)) $log["clients"][$client]["failed"] = strtotime($timestamp) ; } elseif (strpos ($line, "Successfully finished backing up client ") !== false) { sscanf ($info, "Successfully finished backing up client %s", $client) ; if (!empty ($client)) $log["clients"][$client]["ok"] = strtotime($timestamp) ; } } fclose ($pipes[1]) ; proc_close ($proc) ; } return $log ; } require_once ('functions.php') ; loadConfig () ; require('/usr/share/php/smarty3/Smarty.class.php') ; session_start() ; loadLocale () ; ob_start (); $smarty = new Smarty(); $smarty->template_dir = $smarty_templ ; $smarty->compile_dir = $smarty_compile ; unset ($_COOKIE['smarty_templ']); unset ($_COOKIE['smarty_compile']); # fetch script to use whith passing the ssh-password $ssh_askpass = sprintf ("%s/script/mypass.sh", dirname (dirname ($_SERVER["SCRIPT_FILENAME"]))); $arguments = $_REQUEST; # merge _COOKIE and _REQUEST $allowed_cookie_keys = array('nonhttps', 'xorstring', 'PHPSESSID', 'locale',); foreach ($_COOKIE as $key => $value) { if ((! array_key_exists($key, $arguments)) && (in_array($key, $allowed_cookie_keys))) { if (is_string($key) && is_string($value)) { $arguments[$key] = $value; } } } # Fetch arguments passed as the script is executed foreach ($arguments as $key => $value) { switch ($key) { case "smarty_templ": case "smarty_compile": case "locale": case "PHPSESSID": break ; case "nonhttps": $nonhttps = $value ; break ; case "Passwd": $passwd = $value ; $submit = "status" ; break ; case "xorstring": if (empty($passwd)) $xorstring = base64_decode($value) ; else break ; if (empty ($value)) break ; $encrypt = $_SESSION["encrypt"] ; $passwd = xorstring ($encrypt, $xorstring) ; break ; case "status": case "config": case "addclient": case "server": case "chooseclient": case "delclient": case "clientconfig": case "delloc": case "addloc": case "scheduler": case "restore": case "restoreclient": case "restorelocation": case "restorefile": case "maint": case "removesnapshot": case "logout": $submit=$key ; break ; case "selected": $selected=$value ; break ; case "snapshot": $snapshot=$value ; break ; case "client": $client=htmlspecialchars(trim($value)) ; break ; case "revision": $revision=htmlspecialchars(trim($value)) ; break ; default: $newconf[$key] = htmlspecialchars(trim($value)) ; break ; } } unset ($arguments); if ($submit == "logout") { unset ($passwd) ; unset ($xorstring) ; $_SESSION['encrypt'] = "" ; setcookie ('xorstring', '') ; } if (isset ($passwd)) $config = readconf ($passwd) ; if (empty ($config)) { if (empty ($_SERVER["HTTPS"])) { $smarty->assign ('nonhttps', $nonhttps) ; if ($nonhttps != $_COOKIE['nonhttps']) setcookie ('nonhttps', $nonhttps); } $smarty->assign ('backupuser', $backupuser) ; $smarty->assign ('backuphost', $backuphost) ; $smarty->display ('login.tpl') ; return ; } if (empty($encrypt) || empty ($xorstring)) { $encrypt = crypt(strrev(sprintf (gettimeofday (true)))) ; $_SESSION['encrypt'] = $encrypt ; $xorstring = xorstring ($encrypt, $passwd) ; } setcookie ('xorstring', base64_encode($xorstring)) ; $scheduler = readcron ($passwd) ; foreach ($scheduler as $line) { if ($line[0] == "#") continue ; if (strpos ($line, "slbackup-cron") === false) continue ; $config["active"] = true ; $array = explode (" ", $line) ; sscanf ($array[0], "%s", $config["minutes"]) ; sscanf ($array[1], "%s", $config["hours"]) ; } unset ($revisions) ; switch ($submit) { case "scheduler": $newsched = "" ; foreach ($scheduler as $line) { if ($line[0] == "#") $newsched .= sprintf ("%s\n", $line) ; elseif (strpos ($line, "slbackup-cron") === false) $newsched .= sprintf ("%s\n", $line) ; elseif (empty ($newconf["active"])) { $newsched .= sprintf ("#%s\n", $line) ; $changed = true ; $config["active"] = false ; } else { if ($config["minutes"] <> $newconf ["minutes"]) $changed = true ; if ($config["hours"] <> $newconf ["hours"]) $changed = true ; if ($changed) { $config["active"] = true ; $config["minutes"] = $newconf ["minutes"] ; $config["hours"] = $newconf ["hours"] ; $newsched .= sprintf ("%02d %02d * * * root if [ -x /usr/share/slbackup/slbackup-cron -a -f /etc/slbackup/slbackup.conf ]; then /usr/share/slbackup/slbackup-cron ; fi\n", $newconf["minutes"], $newconf["hours"]) ; } else $newsched .= sprintf ("%s\n", $line) ; } } if (!$changed and empty($config["active"]) and $newconf["active"] == "on") { $config["active"] = true ; $config["minutes"] = $newconf ["minutes"] ; $config["hours"] = $newconf ["hours"] ; $newsched .= sprintf ("%02d %02d * * * root if [ -x /usr/share/slbackup/slbackup-cron -a -f /etc/slbackup/slbackup.conf ]; then /usr/share/slbackup/slbackup-cron ; fi\n", $newconf["minutes"], $newconf["hours"]) ; $changed = true ; } if ($changed) { writecron ($passwd, $newsched); } break ; case "server": foreach (array ("server_address", "server_destdir", "server_user", "server_type") as $key) { if ($newconf[$key] <> $config[$key]) { $changed = true ; $config[$key] = $newconf[$key] ; } } if ($changed) writeconf ($passwd, $config) ; break ; case "delclient": if (empty ($client)) { printf (_("No client specified :(") . "
\n") ; break ; } $pos = array_search($client, array_keys ($config["clients"])) ; if ($pos === false) printf (_("Unable to find %s in the list of clients.") . "
\n", $client) ; else { array_splice ($config["clients"], $pos,1) ; writeconf ($passwd, $config) ; } unset ($client) ; break ; case "addclient": $client="" ; $config["clients"][$client]["keep"]="185" ; $config["clients"][$client]["user"]="root" ; break ; case "clientconfig": if ($client == "<new>") { $client = $newconf["client_address"] ; $config["clients"][$client]["location"] = array () ; } foreach (array ("address", "keep", "user", "type") as $key) { if ($newconf["client_".$key] <> $config["clients"][$client][$key]) { $changed = true ; $config["clients"][$client][$key] = $newconf["client_" . $key] ; } } if ($changed) writeconf ($passwd, $config) ; break ; case "delloc": if (empty ($newconf["location"])) break ; $pos = array_search ($newconf["location"], $config["clients"][$client]["location"]) ; if ($pos === false) printf (_("Unable to find %s in the locations of %s.") . "
\n", $newconf["location"], $client) ; else array_splice ($config["clients"][$client]["location"], $pos,1) ; writeconf ($passwd, $config) ; break ; case "addloc": if (empty ($newconf["newloc"])) break ; if (in_array ($newconf["newloc"], $config["clients"][$client]["location"])) break ; $config["clients"][$client]["location"][] = $newconf["newloc"] ; writeconf ($passwd, $config) ; break ; case "restorefile": if (empty($client) || empty ($newconf["location"])) break ; switch ($revision) { case "current": $out = fetchfile ($passwd, sprintf ("%s/%s", $config["server_destdir"], $client), $newconf["location"], $newconf["file"]) ; header ('Content-Type: binary/raw') ; header ('Content-Length: ' . strlen ($out)) ; header (sprintf ("Content-Disposition: attachment; filename=\"%s\"", basename ($newconf["file"]))) ; echo $out ; exit ; default: if (empty($revision)) $revisions = listfile ($passwd, sprintf ("%s/%s", $config["server_destdir"], $client), $newconf["location"], $newconf["sub"]) ; else { $out = fetchsnapshot ($passwd, sprintf ("%s/%s", $config["server_destdir"], $client), $newconf["location"], sprintf ("%s/%s", $newconf["parent"], $revision)) ; header ('Content-Type: binary/raw') ; header ('Content-Length: ' . strlen ($out)) ; header (sprintf ("Content-Disposition: attachment; filename=\"%s\"", $newconf["name"])) ; echo $out ; exit ; // debug (array ('client' => $client, 'serverdir' => $config['server_destdir'], 'revision' => $revision , 'newconf' => $newconf)) ; } break ; } break ; case "restorelocation": if (empty($client) || empty ($newconf["location"])) break ; if (empty($newconf["sub"])) $loc = listloc ($passwd, sprintf ("%s/%s", $config["server_destdir"], $client), $newconf["location"]) ; else $loc = listloc ($passwd, sprintf ("%s/%s", $config["server_destdir"], $client), $newconf["location"], $newconf["sub"]) ; break ; case "removesnapshot": if (!empty ($snapshot) and ($selected == $client)) $smarty->assign ('removed', removesnapshots ($passwd, sprintf ("%s/%s", $config["server_destdir"], $client), $snapshot)) ; case "maint": if (!empty($client)) { $smarty->assign ('snapshots', listsnapshots ($passwd, sprintf ("%s/%s", $config["server_destdir"], $client))) ; } break ; case "config": break ; default: $log = array ('start' => '', 'end' => '') ; foreach ($config["clients"] as $key => $value) $log["clients"][$key] = array ('start' => '', 'failed' => '', 'ok' => '') ; $log = readlog ($passwd, $log) ; $smarty->assign ('checkkeysandversions', checkkeysandversions ($passwd, $config)) ; break ; } switch ($submit) { case "restorefile": if (empty($revisions)) $revisions=array() ; $smarty->assign ('revisions', $revisions) ; case "restorelocation": $smarty->assign ('loc', $loc) ; $smarty->assign ('location', $newconf["location"]) ; $smarty->assign ('sub', $newconf["sub"]) ; case "restoreclient": case "restore": $clients = array_keys($config["clients"]) ; $smarty->assign ('clients', $clients) ; if (empty($client)) $client = $clients[0] ; $smarty->assign ('client', $client) ; $smarty->assign ('locations', $config["clients"][$client]["location"]) ; $smarty->display ('restore.tpl') ; break ; case "removesnapshot": case "maint": $clients = array_keys($config["clients"]) ; $smarty->assign ('clients', $clients) ; $smarty->assign ('client', $client) ; $smarty->display ('maint.tpl') ; break ; case "config": case "addclient": case "server": case "chooseclient": case "delclient": case "clientconfig": case "delloc": case "addloc": case "scheduler": if ($config["active"]) $smarty->assign ('active', "checked") ; for ($i = 0 ; $i < 60 ; $i += 5) $amin[] = sprintf ("%02d", $i) ; $smarty->assign ('a_minutes', $amin); $smarty->assign ('minutes', $config["minutes"]) ; for ($i = 0 ; $i < 24 ; $i++) $ahour[] = sprintf ("%02d", $i) ; $smarty->assign ('a_hours', $ahour); $smarty->assign ('hours', $config["hours"]) ; $smarty->assign ('server_address', $config["server_address"]) ; $smarty->assign ('server_destdir', $config["server_destdir"]) ; $smarty->assign ('server_type', $config["server_type"]) ; $smarty->assign ('server_user', $config["server_user"]) ; $smarty->assign ('types', array ('local', 'remote')) ; $clients = array_keys($config["clients"]) ; $smarty->assign ('clients', $clients) ; if (empty($client)) $client = $clients[0] ; $smarty->assign ('client', $client) ; $smarty->assign ('clientaddress', $config["clients"][$client]["address"]) ; $smarty->assign ('clientkeep', $config["clients"][$client]["keep"]) ; $smarty->assign ('client_type', $config["clients"][$client]["type"]) ; $smarty->assign ('clientuser', $config["clients"][$client]["user"]) ; if ($submit == "addclient") $smarty->assign ('clientsubmit', _("Add")) ; else $smarty->assign ('clientsubmit', _("Update")) ; $smarty->assign ('locations', $config["clients"][$client]["location"]) ; $smarty->display ('config.tpl') ; break ; default: $smarty->assign ('log', $log) ; $smarty->display ('status.tpl') ; break ; } ?> slbackup-php-0.4.5/src/sl-style.css0000644000000000000000000000210312262112672014051 0ustar body { color: black; background: #F5F5E5; padding: 1ex; background-position: top right; } h1 { text-align: center; letter-spacing: 0.2em; font-family: serif; font-size: 2em; font-variant: small-caps; } h2 { color: #881133; } h2.menu { color: #6699BB; background: #E5FAFF; text-align: right; font-family: serif; font-size: 1.5em; font-variant: small-caps; padding-right: 1ex; } body>div.hbar { background: #991111; width: 100%; height: 1ex; } div.body { margin-top: 1ex; padding-left: 1ex; padding-right: 1em; padding-top: 1em; padding-bottom: 1ex; margin-right: 26ex; } div.menu { background: #CCEEF5; margin-top: 1ex; padding: 1px 5px 2em; line-height: 1.3; float: right; position: fixed; width: 25ex; top: 1em; right: 1em; bottom: auto; left: auto; } div.form { margin-top: 1ex; margin-right: 30ex; } a:link { font-weight: bold; } a:active { text-decoration: overline; } a:visited { font-weight: bold; } @media print { div.menu {visibility: hidden} div.body {margin-right: 2ex} } slbackup-php-0.4.5/templates/config.tpl0000644000000000000000000000703512262112672014771 0ustar {* slbackup-php, an administration tool for slbackup Copyright (C) 2007 Finn-Arne Johansen , Bzzware AS, Norway 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. *} {include file="header.tpl"}

{t}Server scheduler{/t}

{t}Backup enabled{/t} {t}Run backup at{/t} {html_options name=hours values=$a_hours output=$a_hours selected=$hours} : {html_options name=minutes values=$a_minutes output=$a_minutes selected=$minutes}

{t}Server config{/t}

{t}Address{/t} {t}Destdir{/t}
{t}Servertype{/t} {html_options name=server_type values=$types output=$types selected=$server_type} {t}User{/t}

{t}Client config{/t}

{t}Client:{/t} {html_options name=client values=$clients output=$clients selected=$client}
{t}Address{/t} {t}Backup Age{/t}
{t}Clienttype{/t} {html_options name=client_type values=$types output=$types selected=$client_type} {t}User{/t}
{t}Locations:{/t}
slbackup-php-0.4.5/templates/header.tpl0000644000000000000000000000267212262112672014756 0ustar {* slbackup-php, an administration tool for slbackup Copyright (C) 2007 Finn-Arne Johansen , Bzzware AS, Norway 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. *} {t}SLBackup Configuration{/t} slbackup-php-0.4.5/templates/login.tpl0000644000000000000000000000331212262112672014626 0ustar {* slbackup-php, an administration tool for slbackup Copyright (C) 2007 Finn-Arne Johansen , Bzzware AS, Norway 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. *} {include file="header.tpl"}
{t 1=$backupuser 2=$backuphost}To read the configuration, you must log in as %1 on %2.{/t}
{t 1=$backupuser 2=$backuphost}Please enter the password for the %1 account on %2:{/t}
{if $nonhttps == "warn"} {t}WARNING: you are about to send you password over an unencrypted link, please ask your administrator to enable https{/t}
{/if} {if $nonhttps == "deny"} {t}Login to this application is denied without the use of https. Please ask your administrator to enable https{/t}
{else}
{/if}
slbackup-php-0.4.5/templates/maint.tpl0000644000000000000000000000270312262112672014631 0ustar {* slbackup-php, an administration tool for slbackup Copyright (C) 2007 Finn-Arne Johansen , Bzzware AS, Norway 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. *} {include file="header.tpl"}

{t}Maintenance{/t}

{html_options name=client values=$clients output=$clients selected=$client} {if $client <> ""} {t}Oldest snapshot to keep:{/t} {html_options name=snapshot values=$snapshots output=$snapshots selected=$snapshot} {/if}
{foreach item=removedss from=$removed} {$removedss}
{/foreach}
slbackup-php-0.4.5/templates/restore.tpl0000644000000000000000000000647212262112672015213 0ustar {* slbackup-php, an administration tool for slbackup Copyright (C) 2007 Finn-Arne Johansen , Bzzware AS, Norway 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. *} {include file="header.tpl"}

{t}Client to restore{/t}

{html_options name=client values=$clients output=$clients selected=$client} {t}Locations:{/t} {html_options name=location values=$locations output=$locations selected=$location}
{if $sub <> ""}

{t 1=$sub}Restore of %1{/t}

{/if} {foreach item=dir name=dir from=$loc} {if $dir.type == "parent"} [DIR] {elseif $dir.type == "dir"} [DIR] {elseif $dir.type == "deldir"} [DIR] {else} [   ] {/if} {if $dir.type == "file"} {$dir.name} {elseif $dir.type == "delfile"} {$dir.name}(deleted) {elseif $dir.type == deldir} {$dir.name} ({t}Deleted{/t}) {else} {$dir.name} {/if}
{/foreach} {foreach item=version name=version from=$revisions} {if $version.type == "parent"} [DIR] {else} [   ] {/if} {if $version.type == "parent"} {$version.name} {elseif $version.type == "currentfile"} current {elseif $version.type == "diff.gz"} {$version.ts} {elseif $version.type == "snapshot.gz"} {$version.ts} {else} unknown snapshot type $version.type {/if}
{/foreach}
slbackup-php-0.4.5/templates/status.tpl0000644000000000000000000000411512262112672015043 0ustar {* slbackup-php, an administration tool for slbackup Copyright (C) 2007 Finn-Arne Johansen , Bzzware AS, Norway 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. *} {include file="header.tpl"}

{t}Clients{/t}

    {foreach from=$log.clients key=client item=values}
  • {t 1=$client}Status for %1{/t}
    {if $values.started > $values.ok and $values.started > $values.failed} Backup started as {$values.started|date_format:"%c"}, and is still in progress
    {/if} {if $values.ok > $values.failed} {t 1=$values.ok|date_format:"%c"}OK at %1{/t} {elseif $values.failed <> ''} {t 1=$values.failed|date_format:"%c"}Failed at %1{/t} {elseif $values.started == ''} {t}Client never backed up{/t} {/if}
    {if $checkkeysandversions.clients.$client.ssh == 'ok'} {t}ssh-keys are working{/t}
    {if $checkkeysandversions.clients.$client.rdiff-backup <> $checkkeysandversions.version} {t}rdiff-backup-versions differ{/t} {/if} {else} {t}ssh-keys are not working{/t} {/if}
  • {/foreach}

{t}Backup status{/t}

{t 1=$log.end|date_format:"%c"}Backup last finished at %1{/t}
{if $log.start > $log.end} {t 1=$log.start|date_format:"%c"}A new backup started at %1{/t}
{/if}