1
0
Fork 0
Dieser Commit ist enthalten in:
DSB 2011-06-10 22:58:43 +00:00
Commit 4c30c06d4d
145 geänderte Dateien mit 15541 neuen und 0 gelöschten Zeilen

62
ReadMe/install_deutsch.txt Normale Datei
Datei anzeigen

@ -0,0 +1,62 @@
Installation:
- lade den Ordner mysqldumper auf Deinen Webspace hoch
- gebe der Datei config.php die Rechte 777
- Starte das Script im Browser (http://www.deineDomain.de/mysqldumper/)
- Folge der Installation
- in Schritt 2 (Konfiguration) ändere die Daten (Host, Name, Passwort) der zu verwaltenden Datenbanken
- im Falle von safe_mode=1 müssen die Ordner manuell erstellt werden.
erzeuge im MySQLDumper-Verzeichnis die Ordner
- work
- work/backup
- work/config
- work/structure
- work/log
und gebe diesen Ordnern die Rechte 777
- Fertig !
Anleitung für das Perlskript:
Wer Perl in allen Verzeichnissen ausführen kann, dem reichen folgende Schritte:
1. Rufe im MySQLDumper die Seite Backup auf.
2. Kopiere den Pfad, der hinter Eintrag in crondump.pl für $absolute_path_of_configdir: steht.
3. öffne die Datei "crondump.pl" im Editor
4. trage den kopierten Pfad dort bei absolute_path_of_configdir ein (keine Leerzeichen)
5. Speicher crondump.pl
6. gebe den Datein die Rechte 755
6b. Wenn die Endung cgi gewünscht ist, ändere bei allen 3 Dateien die Endung von pl -> cgi (umbenennen)
(ev. 10b+11 von oben)
Fertig.
--------------------
Wenn bei Dir Perl nur innerhalb des Verzeichnisses "cgi-bin" ausgeführt werden kann:
1. Rufe im MySQLDumper die Seite Backup auf und klicke auf "Backup Perl".
2. Kopiere den Pfad, der hinter Eintrag in crondump.pl für $absolute_path_of_configdir: steht.
3. öffne die Datei "crondump.pl" im Editor
4. trage den kopierten Pfad dort bei absolute_path_of_configdir ein (keine Leerzeichen)
5. Speicher crondump.pl
6. kopiere crondump.pl, sowie perltest.pl und simpletest.pl ins cgi-bin-Verzeichnis (Ascii-Modus im FTP)
7. gebe den Dateien die Rechte 755
7b. Wenn die Endung cgi gewünscht ist, ändere bei allen 3 Dateien die Endung von pl -> cgi (umbenennen)
8. Rufe die Konfiguration im MySQLDumper auf
9. wähle Seite Cronscript
10. ändere Perl Ausführungspfad in /cgi-bin/
10b. wenn die Scripte .pl haben, ändere die Dateiendung auf .cgi
11. speicher die Konfiuguration
------------------------
fertig, die Skripte lassen sich nun von der Backupseite aufrufen
Windowsuser müssen bei allen Scripten die erste Zeile ändern, dort steht der Pfad von Perl. Beispiel:
statt: #!/usr/bin/perl -w
jetzt #!C:\perl\bin\perl.exe -w

70
ReadMe/install_english.txt Normale Datei
Datei anzeigen

@ -0,0 +1,70 @@
Installation:
- upload the folder mysqldumper to your webspace
- chmod the file "config.php" to 777
- start the script in your browser (http://www.deineDomain.de/mysqldumper/)
- Follow the Installationscript
- in step 2 (Configuration) change Data (Host, Name, Password) of your databaseconnection and save
- in case of safe_mode=1 you must create the folders manually.
create following folders in the Scriptdir:
- work
- work/backup
- work/config
- work/structure
- work/log
and chmod these folders to 0777
- Ready !
Guidance for the Perl script:
When you can execute Perl anywhere:
1. In MySQLDumper switch to the page Backup.
2. Copy the path, that stands behind entry in crondump.pl for $absolute_path_of_configdir:
3. open the file "crondump.pl" in the editor
4. paste the copied path there to the $absolute_path_of_configdir-variable (no blanks,no new line)
5. Save crondump.pl
6. chmod the scripts to 0755.
7. If the ending .cgi is desired, change the ending of all 3 files from .pl to .cgi (rename)
8. If the Scripts are renamed to *.cgi , change Fileextension to cgi in the MySQLDumper Configuration (cronscript)
Done.
--------------------------------------
When perl is only allowed in cgi-bin:
Many user have a cgi-bin directory, in which Perl can be executed.
This is usually available via Browser http://www.domain.com/cgi-bin/ .
In this casse do the following steps:
1. in MySQLDumper call the page Backup and click "Backup Perl".
2. Copy the path, that stands behind entry in crondump.pl for $absolute_path_of_configdir:
3. open the file "crondump.pl" in the editor
4. paste the copied path there with absolute_path_of_configdir (no blanks, no new line)
5. Save crondump.pl
6. copy crondump.pl, as well as perltest.pl and simpletest.pl to the cgi-bin directory (ASCII mode in the ftp-client!)
7. chmod 755 the scripts to 0755.
7b. If the ending cgi is desired, change the ending of all 3 files .pl to .cgi (rename)
8. in MySQLDumper switch to the page Configuration
9. click on Cronscript
10. change the Perl execution path to /cgi-bin/ or ./../cgi-bin (depending on your file-structure. Path is relative from MSD-Dir)
10b. if the Scripts are renamed to *.cgi , change Fileextension to cgi
11 save the Configuration
-------------------------------------
Ready ! The scripts are now available from the Page "Backup".
Windowsuser must change the first line of all Perlscripts, to the path of Perl.
Example:
instead of: #!/usr/bin/perl w
now #!C:\perl\bin\perl.exe w

65
ReadMe/install_italiano.txt Normale Datei
Datei anzeigen

@ -0,0 +1,65 @@
Installazione:
- carica la cartella mysqldumper sul tuo spazio web
- metti i diritti del file config.php a 777
- fai partire lo script nel tuo Browser (http://www.il tuo dominio.it/mysqldumper/)
- segui la installazione
- nel secondo passo (configurazione) cambia i tuoi dati (Host, nome, password) della banca dati da gestire
- nel caso di safe_mode=1 dovete creare le cartelle manualmente.
crea nella cartella di MySQLDumper le cartelle
- works
- works/backup
- works/config
- works/sturcture
- works/log
metti i diritti delle cartelle a 777
- finito !
Istruzioni Perlskript:
Molti hanno un elenco con cartella cgi-bin in cui puo essere efettuato Perl.
A maggior parte dei casi questo e raggingibile tramite Browser http://www.domain.de/cgi-bin/.
Chi puo usare Perl in tutti gli elenchi deve seguire semplicemente i seguenti passi:
1. Chiama nel MySQLDumper la pagina Backup.
2. Copia il cammino, che è scritto nella crondump.pl per $absolute_path_of_configdir.
3. Apri il dato "crondump.pl" in editor
4. Porta il cammino dove c`è absolute_path_of_configdir (senza spazi)
5. Salva crondump.pl
6. Metti i permessi dei dati a CHMOD 755
6b. Se preferite cgi, cambiate tutti i 3 dati da pl -> cgi (rinominare)
(ev. 10b+11 da sopra)
finito.
---------------------
Nel caso che puoi effettuare Perl in "cgi-bin"consigliamo di effettuare i seguenti passi:
1. Chiama nel MySQLDumper la pagina Backup e clicca "Backup Perl".
2. Copia il cammino, che è scritto nella crondump.pl per $absolute_path_of_configdir:
3. Apri il dato "crondump.pl" in editor
4. Porta il cammino dove c`è absolute_path_of_configdir (senza spazi)
5. Salva crondump.pl
6. Copia crondump.pl, perltest.pl e simpletest.pl nel elenco cgi-bin (nel modo Ascii con FTP)
7. Metti i permessi dei dati in CHMOD 755
7b. Se preferite cgi come nome del dato, allora cambiate tutti i 3 dati da pl -> cgi (rinominare)
8. Chiama la configurazione nel MySQLDumper
9. Scegli la pagina Cronscript
10. Cambia l`esecuzione di cammino di Perl in /cgi-bin/
10b.Se gli script hanno .pl, cambiali in .cgi
11. Salva la configurazione.
---------------------
Hai finito, i tuoi script si fanno caricare nella tua pagina backup.
Se usate Windows dovete cambiare in tutti i dati la prima riga; dove trovate il cammino di Perl. Esempio:
aposto di: #!/usr/bin/perl -w
adesso #!C:\perl\bin\perl.exe -w

105
ReadMe/license_deutsch.txt Normale Datei
Datei anzeigen

@ -0,0 +1,105 @@
GNU General Public License
Deutsche Übersetzung der Version 2, Juni 1991
Copyright © 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
Diese Übersetzung ist kein rechtskräftiger Ersatz für die englischsprachige Originalversion!
Vorwort
Die meisten Softwarelizenzen sind daraufhin entworfen worden, Ihnen die Freiheit zu nehmen, die Software weiterzugeben und zu verändern. Im Gegensatz dazu soll Ihnen die GNU General Public License , die Allgemeine Öffentliche GNU-Lizenz, ebendiese Freiheit garantieren. Sie soll sicherstellen, daß die Software für alle Benutzer frei ist. Diese Lizenz gilt für den Großteil der von der Free Software Foundation herausgegebenen Software und für alle anderen Programme, deren Autoren ihr Datenwerk dieser Lizenz unterstellt haben. Auch Sie können diese Möglichkeit der Lizenzierung für Ihre Programme anwenden. (Ein anderer Teil der Software der Free Software Foundation unterliegt stattdessen der GNU Library General Public License , der Allgemeinen Öffentlichen GNU-Lizenz für Bibliotheken.) [Mittlerweile wurde die GNU Library Public License von der GNU Lesser Public License abgelöst - Anmerkung des Übersetzers.]
Die Bezeichnung ,,freie`` Software bezieht sich auf Freiheit, nicht auf den Preis. Unsere Lizenzen sollen Ihnen die Freiheit garantieren, Kopien freier Software zu verbreiten (und etwas für diesen Service zu berechnen, wenn Sie möchten), die Möglichkeit, die Software im Quelltext zu erhalten oder den Quelltext auf Wunsch zu bekommen. Die Lizenzen sollen garantieren, daß Sie die Software ändern oder Teile davon in neuen freien Programmen verwenden dürfen - und daß Sie wissen, daß Sie dies alles tun dürfen.
Um Ihre Rechte zu schützen, müssen wir Einschränkungen machen, die es jedem verbieten, Ihnen diese Rechte zu verweigern oder Sie aufzufordern, auf diese Rechte zu verzichten. Aus diesen Einschränkungen folgen bestimmte Verantwortlichkeiten für Sie, wenn Sie Kopien der Software verbreiten oder sie verändern.
Beispielsweise müssen Sie den Empfängern alle Rechte gewähren, die Sie selbst haben, wenn Sie - kostenlos oder gegen Bezahlung - Kopien eines solchen Programms verbreiten. Sie müssen sicherstellen, daß auch die Empfänger den Quelltext erhalten bzw. erhalten können. Und Sie müssen ihnen diese Bedingungen zeigen, damit sie ihre Rechte kennen.
Wir schützen Ihre Rechte in zwei Schritten: (1) Wir stellen die Software unter ein Urheberrecht (Copyright), und (2) wir bieten Ihnen diese Lizenz an, die Ihnen das Recht gibt, die Software zu vervielfältigen, zu verbreiten und/oder zu verändern.
Um die Autoren und uns zu schützen, wollen wir darüberhinaus sicherstellen, daß jeder erfährt, daß für diese freie Software keinerlei Garantie besteht. Wenn die Software von jemand anderem modifiziert und weitergegeben wird, möchten wir, daß die Empfänger wissen, daß sie nicht das Original erhalten haben, damit irgendwelche von anderen verursachte Probleme nicht den Ruf des ursprünglichen Autors schädigen.
Schließlich und endlich ist jedes freie Programm permanent durch Software-Patente bedroht. Wir möchten die Gefahr ausschließen, daß Distributoren eines freien Programms individuell Patente lizensieren - mit dem Ergebnis, daß das Programm proprietär würde. Um dies zu verhindern, haben wir klargestellt, daß jedes Patent entweder für freie Benutzung durch jedermann lizenziert werden muß oder überhaupt nicht lizenziert werden darf.
Es folgen die genauen Bedingungen für die Vervielfältigung, Verbreitung und Bearbeitung:
Allgemeine Öffentliche GNU-Lizenz
Bedingungen für die Vervielfältigung,
Verbreitung und Bearbeitung
§0. Diese Lizenz gilt für jedes Programm und jedes andere Datenwerk, in dem ein entsprechender Vermerk des Copyright-Inhabers darauf hinweist, daß das Datenwerk unter den Bestimmungen dieser General Public License verbreitet werden darf. Im folgenden wird jedes derartige Programm oder Datenwerk als ,,das Programm`` bezeichnet; die Formulierung ,,auf dem Programm basierendes Datenwerk`` bezeichnet das Programm sowie jegliche Bearbeitung des Programms im urheberrechtlichen Sinne, also ein Datenwerk, welches das Programm, auch auszugsweise, sei es unverändert oder verändert und/oder in eine andere Sprache übersetzt, enthält. (Im folgenden wird die Übersetzung ohne Einschränkung als ,,Bearbeitung`` eingestuft.) Jeder Lizenznehmer wird im folgenden als ,,Sie`` angesprochen.
Andere Handlungen als Vervielfältigung, Verbreitung und Bearbeitung werden von dieser Lizenz nicht berührt; sie fallen nicht in ihren Anwendungsbereich. Der Vorgang der Ausführung des Programms wird nicht eingeschränkt, und die Ausgaben des Programms unterliegen dieser Lizenz nur, wenn der Inhalt ein auf dem Programm basierendes Datenwerk darstellt (unabhängig davon, daß die Ausgabe durch die Ausführung des Programmes erfolgte). Ob dies zutrifft, hängt von den Funktionen des Programms ab.
§1. Sie dürfen auf beliebigen Medien unveränderte Kopien des Quelltextes des Programms, wie sie ihn erhalten haben, anfertigen und verbreiten. Voraussetzung hierfür ist, daß Sie mit jeder Kopie einen entsprechenden Copyright-Vermerk sowie einen Haftungsausschluß veröffentlichen, alle Vermerke, die sich auf diese Lizenz und das Fehlen einer Garantie beziehen, unverändert lassen und desweiteren allen anderen Empfängern des Programms zusammen mit dem Programm eine Kopie dieser Lizenz zukommen lassen.
Sie dürfen für den eigentlichen Kopiervorgang eine Gebühr verlangen. Wenn Sie es wünschen, dürfen Sie auch gegen Entgeld eine Garantie für das Programm anbieten.
§2. Sie dürfen Ihre Kopie(n) des Programms oder eines Teils davon verändern, wodurch ein auf dem Programm basierendes Datenwerk entsteht; Sie dürfen derartige Bearbeitungen unter den Bestimmungen von Paragraph 1 vervielfältigen und verbreiten, vorausgesetzt, daß zusätzlich alle im folgenden genannten Bedingungen erfüllt werden:
1.
Sie müssen die veränderten Dateien mit einem auffälligen Vermerk versehen, der auf die von Ihnen vorgenommene Modifizierung und das Datum jeder Änderung hinweist.
2.
Sie müssen dafür sorgen, daß jede von Ihnen verbreitete oder veröffentlichte Arbeit, die ganz oder teilweise von dem Programm oder Teilen davon abgeleitet ist, Dritten gegenüber als Ganzes unter den Bedingungen dieser Lizenz ohne Lizenzgebühren zur Verfügung gestellt wird.
3.
Wenn das veränderte Programm normalerweise bei der Ausführung interaktiv Kommandos einliest, müssen Sie dafür sorgen, daß es, wenn es auf dem üblichsten Wege für solche interaktive Nutzung gestartet wird, eine Meldung ausgibt oder ausdruckt, die einen geeigneten Copyright-Vermerk enthält sowie einen Hinweis, daß es keine Gewährleistung gibt (oder anderenfalls, daß Sie Garantie leisten), und daß die Benutzer das Programm unter diesen Bedingungen weiter verbreiten dürfen. Auch muß der Benutzer darauf hingewiesen werden, wie er eine Kopie dieser Lizenz ansehen kann. (Ausnahme: Wenn das Programm selbst interaktiv arbeitet, aber normalerweise keine derartige Meldung ausgibt, muß Ihr auf dem Programm basierendes Datenwerk auch keine solche Meldung ausgeben).
Diese Anforderungen gelten für das bearbeitete Datenwerk als Ganzes. Wenn identifizierbare Teile des Datenwerkes nicht von dem Programm abgeleitet sind und vernünftigerweise als unabhängige und eigenständige Datenwerke für sich selbst zu betrachten sind, dann gelten diese Lizenz und ihre Bedingungen nicht für die betroffenen Teile, wenn Sie diese als eigenständige Datenwerke weitergeben. Wenn Sie jedoch dieselben Abschnitte als Teil eines Ganzen weitergeben, das ein auf dem Programm basierendes Datenwerk darstellt, dann muß die Weitergabe des Ganzen nach den Bedingungen dieser Lizenz erfolgen, deren Bedingungen für weitere Lizenznehmer somit auf das gesamte Ganze ausgedehnt werden - und somit auf jeden einzelnen Teil, unabhängig vom jeweiligen Autor.
Somit ist es nicht die Absicht dieses Abschnittes, Rechte für Datenwerke in Anspruch zu nehmen oder Ihnen die Rechte für Datenwerke streitig zu machen, die komplett von Ihnen geschrieben wurden; vielmehr ist es die Absicht, die Rechte zur Kontrolle der Verbreitung von Datenwerken, die auf dem Programm basieren oder unter seiner auszugsweisen Verwendung zusammengestellt worden sind, auszuüben.
Ferner bringt auch das einfache Zusammenlegen eines anderen Datenwerkes, das nicht auf dem Programm basiert, mit dem Programm oder einem auf dem Programm basierenden Datenwerk auf ein- und demselben Speicher- oder Vertriebsmedium dieses andere Datenwerk nicht in den Anwendungsbereich dieser Lizenz.
§3. Sie dürfen das Programm (oder ein darauf basierendes Datenwerk gemäß Paragraph 2) als Objectcode oder in ausführbarer Form unter den Bedingungen der Paragraphen 1 und 2 kopieren und weitergeben - vorausgesetzt, daß Sie außerdem eine der folgenden Leistungen erbringen:
1.
Liefern Sie das Programm zusammen mit dem vollständigen zugehörigen maschinenlesbaren Quelltext auf einem für den Datenaustausch üblichen Medium aus, wobei die Verteilung unter den Bedingungen der Paragraphen 1 und 2 erfolgen muß. Oder:
2.
Liefern Sie das Programm zusammen mit einem mindestens drei Jahre lang gültigen schriftlichen Angebot aus, jedem Dritten eine vollständige maschinenlesbare Kopie des Quelltextes zur Verfügung zu stellen - zu nicht höheren Kosten als denen, die durch den physikalischen Kopiervorgang anfallen -, wobei der Quelltext unter den Bedingungen der Paragraphen 1 und 2 auf einem für den Datenaustausch üblichen Medium weitergegeben wird. Oder:
3.
Liefern Sie das Programm zusammen mit dem schriftlichen Angebot der Zurverfügungstellung des Quelltextes aus, das Sie selbst erhalten haben. (Diese Alternative ist nur für nicht-kommerzielle Verbreitung zulässig und nur, wenn Sie das Programm als Objectcode oder in ausführbarer Form mit einem entsprechenden Angebot gemäß Absatz b erhalten haben.)
Unter dem Quelltext eines Datenwerkes wird diejenige Form des Datenwerkes verstanden, die für Bearbeitungen vorzugsweise verwendet wird. Für ein ausführbares Programm bedeutet ,,der komplette Quelltext``: Der Quelltext aller im Programm enthaltenen Module einschließlich aller zugehörigen Modulschnittstellen-Definitionsdateien sowie der zur Compilation und Installation verwendeten Skripte. Als besondere Ausnahme jedoch braucht der verteilte Quelltext nichts von dem zu enthalten, was üblicherweise (entweder als Quelltext oder in binärer Form) zusammen mit den Hauptkomponenten des Betriebssystems (Kernel, Compiler usw.) geliefert wird, unter dem das Programm läuft - es sei denn, diese Komponente selbst gehört zum ausführbaren Programm.
Wenn die Verbreitung eines ausführbaren Programms oder von Objectcode dadurch erfolgt, daß der Kopierzugriff auf eine dafür vorgesehene Stelle gewährt wird, so gilt die Gewährung eines gleichwertigen Zugriffs auf den Quelltext als Verbreitung des Quelltextes, auch wenn Dritte nicht dazu gezwungen sind, den Quelltext zusammen mit dem Objectcode zu kopieren.
§4. Sie dürfen das Programm nicht vervielfältigen, verändern, weiter lizenzieren oder verbreiten, sofern es nicht durch diese Lizenz ausdrücklich gestattet ist. Jeder anderweitige Versuch der Vervielfältigung, Modifizierung, Weiterlizenzierung und Verbreitung ist nichtig und beendet automatisch Ihre Rechte unter dieser Lizenz. Jedoch werden die Lizenzen Dritter, die von Ihnen Kopien oder Rechte unter dieser Lizenz erhalten haben, nicht beendet, solange diese die Lizenz voll anerkennen und befolgen.
§5. Sie sind nicht verpflichtet, diese Lizenz anzunehmen, da Sie sie nicht unterzeichnet haben. Jedoch gibt Ihnen nichts anderes die Erlaubnis, das Programm oder von ihm abgeleitete Datenwerke zu verändern oder zu verbreiten. Diese Handlungen sind gesetzlich verboten, wenn Sie diese Lizenz nicht anerkennen. Indem Sie das Programm (oder ein darauf basierendes Datenwerk) verändern oder verbreiten, erklären Sie Ihr Einverständnis mit dieser Lizenz und mit allen ihren Bedingungen bezüglich der Vervielfältigung, Verbreitung und Veränderung des Programms oder eines darauf basierenden Datenwerks.
§6. Jedesmal, wenn Sie das Programm (oder ein auf dem Programm basierendes Datenwerk) weitergeben, erhält der Empfänger automatisch vom ursprünglichen Lizenzgeber die Lizenz, das Programm entsprechend den hier festgelegten Bestimmungen zu vervielfältigen, zu verbreiten und zu verändern. Sie dürfen keine weiteren Einschränkungen der Durchsetzung der hierin zugestandenen Rechte des Empfängers vornehmen. Sie sind nicht dafür verantwortlich, die Einhaltung dieser Lizenz durch Dritte durchzusetzen.
§7. Sollten Ihnen infolge eines Gerichtsurteils, des Vorwurfs einer Patentverletzung oder aus einem anderen Grunde (nicht auf Patentfragen begrenzt) Bedingungen (durch Gerichtsbeschluß, Vergleich oder anderweitig) auferlegt werden, die den Bedingungen dieser Lizenz widersprechen, so befreien Sie diese Umstände nicht von den Bestimmungen dieser Lizenz. Wenn es Ihnen nicht möglich ist, das Programm unter gleichzeitiger Beachtung der Bedingungen in dieser Lizenz und Ihrer anderweitigen Verpflichtungen zu verbreiten, dann dürfen Sie als Folge das Programm überhaupt nicht verbreiten. Wenn zum Beispiel ein Patent nicht die gebührenfreie Weiterverbreitung des Programms durch diejenigen erlaubt, die das Programm direkt oder indirekt von Ihnen erhalten haben, dann besteht der einzige Weg, sowohl das Patentrecht als auch diese Lizenz zu befolgen, darin, ganz auf die Verbreitung des Programms zu verzichten.
Sollte sich ein Teil dieses Paragraphen als ungültig oder unter bestimmten Umständen nicht durchsetzbar erweisen, so soll dieser Paragraph seinem Sinne nach angewandt werden; im übrigen soll dieser Paragraph als Ganzes gelten.
Zweck dieses Paragraphen ist nicht, Sie dazu zu bringen, irgendwelche Patente oder andere Eigentumsansprüche zu verletzen oder die Gültigkeit solcher Ansprüche zu bestreiten; dieser Paragraph hat einzig den Zweck, die Integrität des Verbreitungssystems der freien Software zu schützen, das durch die Praxis öffentlicher Lizenzen verwirklicht wird. Viele Leute haben großzügige Beiträge zu dem großen Angebot der mit diesem System verbreiteten Software im Vertrauen auf die konsistente Anwendung dieses Systems geleistet; es liegt am Autor/Geber, zu entscheiden, ob er die Software mittels irgendeines anderen Systems verbreiten will; ein Lizenznehmer hat auf diese Entscheidung keinen Einfluß.
Dieser Paragraph ist dazu gedacht, deutlich klarzustellen, was als Konsequenz aus dem Rest dieser Lizenz betrachtet wird.
§8. Wenn die Verbreitung und/oder die Benutzung des Programms in bestimmten Staaten entweder durch Patente oder durch urheberrechtlich geschützte Schnittstellen eingeschränkt ist, kann der Urheberrechtsinhaber, der das Programm unter diese Lizenz gestellt hat, eine explizite geographische Begrenzung der Verbreitung angeben, in der diese Staaten ausgeschlossen werden, so daß die Verbreitung nur innerhalb und zwischen den Staaten erlaubt ist, die nicht ausgeschlossen sind. In einem solchen Fall beinhaltet diese Lizenz die Beschränkung, als wäre sie in diesem Text niedergeschrieben.
§9. Die Free Software Foundation kann von Zeit zu Zeit überarbeitete und/oder neue Versionen der General Public License veröffentlichen. Solche neuen Versionen werden vom Grundprinzip her der gegenwärtigen entsprechen, können aber im Detail abweichen, um neuen Problemen und Anforderungen gerecht zu werden.
Jede Version dieser Lizenz hat eine eindeutige Versionsnummer. Wenn in einem Programm angegeben wird, daß es dieser Lizenz in einer bestimmten Versionsnummer oder ,,jeder späteren Version`` (``any later version'') unterliegt, so haben Sie die Wahl, entweder den Bestimmungen der genannten Version zu folgen oder denen jeder beliebigen späteren Version, die von der Free Software Foundation veröffentlicht wurde. Wenn das Programm keine Versionsnummer angibt, können Sie eine beliebige Version wählen, die je von der Free Software Foundation veröffentlicht wurde.
§10. Wenn Sie den Wunsch haben, Teile des Programms in anderen freien Programmen zu verwenden, deren Bedingungen für die Verbreitung anders sind, schreiben Sie an den Autor, um ihn um die Erlaubnis zu bitten. Für Software, die unter dem Copyright der Free Software Foundation steht, schreiben Sie an die Free Software Foundation ; wir machen zu diesem Zweck gelegentlich Ausnahmen. Unsere Entscheidung wird von den beiden Zielen geleitet werden, zum einen den freien Status aller von unserer freien Software abgeleiteten Datenwerke zu erhalten und zum anderen das gemeinschaftliche Nutzen und Wiederverwenden von Software im allgemeinen zu fördern.
Keine Gewährleistung
§11. Da das Programm ohne jegliche Kosten lizenziert wird, besteht keinerlei Gewährleistung für das Programm, soweit dies gesetzlich zulässig ist. Sofern nicht anderweitig schriftlich bestätigt, stellen die Copyright-Inhaber und/oder Dritte das Programm so zur Verfügung, ,,wie es ist``, ohne irgendeine Gewährleistung, weder ausdrücklich noch implizit, einschließlich - aber nicht begrenzt auf - Marktreife oder Verwendbarkeit für einen bestimmten Zweck. Das volle Risiko bezüglich Qualität und Leistungsfähigkeit des Programms liegt bei Ihnen. Sollte sich das Programm als fehlerhaft herausstellen, liegen die Kosten für notwendigen Service, Reparatur oder Korrektur bei Ihnen.
§12. In keinem Fall, außer wenn durch geltendes Recht gefordert oder schriftlich zugesichert, ist irgendein Copyright-Inhaber oder irgendein Dritter, der das Programm wie oben erlaubt modifiziert oder verbreitet hat, Ihnen gegenüber für irgendwelche Schäden haftbar, einschließlich jeglicher allgemeiner oder spezieller Schäden, Schäden durch Seiteneffekte (Nebenwirkungen) oder Folgeschäden, die aus der Benutzung des Programms oder der Unbenutzbarkeit des Programms folgen (einschließlich - aber nicht beschränkt auf - Datenverluste, fehlerhafte Verarbeitung von Daten, Verluste, die von Ihnen oder anderen getragen werden müssen, oder dem Unvermögen des Programms, mit irgendeinem anderen Programm zusammenzuarbeiten), selbst wenn ein Copyright-Inhaber oder Dritter über die Möglichkeit solcher Schäden unterrichtet worden war.
Ende der Bedingungen

88
ReadMe/license_english.txt Normale Datei
Datei anzeigen

@ -0,0 +1,88 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too.
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.
Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and modification follow.
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

15
ReadMe/readme.txt Normale Datei
Datei anzeigen

@ -0,0 +1,15 @@
MySqlDumper Copyright (C)2004 Daniel Schlichtholz (admin@daniel-schlichtholz.de) & Steffen Kamper
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.

159
mysqldumper/config.php Normale Datei
Datei anzeigen

@ -0,0 +1,159 @@
<?php
//////////////////////////////////////////////////////////
// MySQL Dumper Configuration
//////////////////////////////////////////////////////////
// Test
// The Connection-Data for MySQL
//
// Host-Adress, default 'localhost'
$config['dbhost'] = 'localhost';
// port - if empty, mysql uses default
$config['dbport'] = '';
// socket - if empty, mysql uses default
$config['dbsocket'] = '';
// Username
$config['dbuser'] = 'root';
//User-Pass. For no Password leave empty
$config['dbpass'] = '';
//Use 0 if the Script and MySQL-Server is not on the same server
$config['direct_connection']=1;
//Speed Values between 50 and 1000000
//use low values if you have bad connection or slow machines
$config['minspeed']=100;
$config['maxspeed']=5000;
// Your Interface language. Use 'de' for german, 'en' for english
$config['language']="de";
//Shows the Serveradress on top if 1
$config['interface_server_caption']=1;
$config['interface_server_captioncolor']="#ff9966";
//Position of the Serveradress 0=left, 1=right
$config['interface_server_caption_position']=0;
//select your stylesheet
$config['theme']="msd";
//Height of the SQL-Box in Mini-SQL in pixel
$config['interface_sqlboxsize']=70;
$config['interface_table_compact']=0;
// Determine the maximum Amount for Memory Use in Bytes, 0 for no limit
$config['memory_limit']=100000;
// For gz-Compression set to 1, without compression set to 0
$config['compression']=1;
//The Backupformat
$config['backup_complete_inserts']=1;
$config['backup_extended_inserts']=0;
$config['backup_ignore_inserts']=0;
$config['backup_delayed_inserts']=0;
$config['backup_downgrade']=0;
//Lock tables if 1
$config['backup_lock_tables']=0;
//Refreshtime for MySQL processlist in msec, use any value >1000
$config['processlist_refresh']=2000;
//Disable all .htaccess-Functions with value 1
$config['no_htaccess']=0;
$config['empty_db_before_restore']=0;
$config['optimize_tables_beforedump']=1;
$config['stop_with_error']=1;
// For sending a mail after backup set send_mail to 1, otherless set to 0
$config['send_mail']=0;
// Attach the backup 0=no 1=yes
$config['send_mail_dump']=0;
// set the recieve adress for the mail
$config['email_recipient']="";
// set the sender adress (the script)
$config['email_sender']="";
//max. Size of Email-Attach, here 3 MB
$config['email_maxsize1']=3;
$config['email_maxsize2']=2;
// For FTP-Transfer of Backupfiles set ftp_transfer to 1
$config['ftp_transfer']=0;
// FTP Server Configuration for Transfer
$config['ftp_connectionindex']=0;
$config['ftp_server'][0]=""; // Adress of FTP-Server
$config['ftp_port'][0]="21"; // Port
$config['ftp_user'][0]=""; // Username
$config['ftp_pass'][0]=""; // Password
$config['ftp_dir'][0]=""; // Upload-Directory
$config['ftp_server'][1]=""; // Adress of FTP-Server
$config['ftp_port'][1]="21"; // Port
$config['ftp_user'][1]=""; // Username
$config['ftp_pass'][1]=""; // Password
$config['ftp_dir'][1]=""; // Upload-Directory
$config['ftp_server'][2]=""; // Adress of FTP-Server
$config['ftp_port'][2]="21"; // Port
$config['ftp_user'][2]=""; // Username
$config['ftp_pass'][2]=""; // Password
$config['ftp_dir'][2]=""; // Upload-Directory
$config['ftp_timeout']=30;
$config['ftp_useSSL']=0;
$config['ftp_mode']=0;
//Multipart 0=off 1=on
$config['multi_part']=0;
$config['multipartgroesse1']=1;
$config['multipartgroesse2']=2;
$config['multipart_groesse']=0;
//Auto-Delete 0=off 1=on
$config['auto_delete']=0;
$config['del_files_after_days']=0;
$config['max_backup_files']=3;
$config['max_backup_files_each']=0;
//configuration file
$config['cron_configurationfile']="mysqldumper.conf";
//path to perl, for windows use e.g. C:perlbinperl.exe
$config['cron_perlpath']="/usr/bin/perl";
//mailer use sendmail(1) or SMTP(0)
$config['cron_use_sendmail']=1;
//path to sendmail
$config['cron_sendmail']="/usr/lib/sendmail";
//adress of smtp-server
$config['cron_smtp']="localhost";
//smtp-port
$config['cron_smtp_port']=25;
$config['cron_samedb']=0;
$config['cron_timelimit']=360;
$config['cron_extender']=0;
$config['cron_mail']=0;
$config['cron_mail_dump']=0;
$config['cron_ftp']=0;
$config['cron_compression']=1;
$config['cron_printout']=1;
$config['cron_completelog']=1;
$config['multi_dump']=0;
$config['logcompression'] = "1";
$config['log_maxsize1'] = "1";
$config['log_maxsize2'] = "2";
$config['log_maxsize'] = "1048576";
?>

Datei anzeigen

@ -0,0 +1,687 @@
<?php
// wenn neue Sprache angewählt wurde schon vor dem includen übernehmen
if (isset($_POST['save']) && $_POST['language']!=$_POST['lang_old']) {
$config['language']=$_POST['language'];
$temp_lang=$config['language'];
include_once('./inc/header.php'); // Normal prodecure (resets config[language])
$config['language']=$temp_lang; // re-set language
include('./language/lang_list.php'); // This re-initializes $lang[] and loads appropiate language files
}
else include_once('./inc/header.php'); // language not changed, go on as usual
include_once('./language/'.$config['language'].'/lang_help.php');
include_once('./language/'.$config['language'].'/lang_config_overview.php');
include_once('./language/'.$config['language'].'/lang_sql.php');
include_once('./inc/runtime.php');
include_once('./inc/functions_sql.php');
$config['theme']=(!isset($config['theme'])) ? 'msd' : $config['theme'];
$config['interface_server_caption']=(!isset($config['interface_server_caption'])) ? 0 : $config['interface_server_caption'];
$config['interface_server_caption_position']=(!isset($config['interface_server_caption_position'])) ? 0 : $config['interface_server_caption_position'];
$config['cron_smtp_port']=(!isset($config['cron_smtp_port'])) ? 25 : $config['cron_smtp_port'];
$config['interface_table_compact']=(isset($_POST['interface_table_compact'])) ? $_POST['interface_table_compact'] : $config['interface_table_compact'];
$msg='';
$sel=(isset($_POST['sel'])) ? $_POST['sel'] : 'db';
if (!isset($command)) $command=0;
$ftptested=-1;
if ( (isset($_POST['testFTP0'])) || (isset($_POST['testFTP1'])) || (isset($_POST['testFTP2'])))
{
$config['ftp_transfer']=(isset($_POST['ftp_transfer'])) ? $_POST['ftp_transfer']:0;
$config['ftp_connectionindex']=(isset($_POST['ftp_transferconn'])) ? $_POST['ftp_transferconn']:0;
$config['ftp_timeout']=(isset($_POST['ftp_timeout'])) ? $_POST['ftp_timeout']:30;
$config['ftp_useSSL']=(isset($_POST['ftp_useSSL'])) ? $_POST['ftp_useSSL'] : 0;
$config['ftp_mode']=(isset($_POST['ftp_mode'])) ? 1 : 0;
for($i=0;$i<3;$i++) {
$checkFTP[$i]="";
$config['ftp_server'][$i]=(isset($_POST['ftp_server'.$i])) ? $_POST['ftp_server'.$i]:'';
$config['ftp_port'][$i]=(isset($_POST['ftp_port'.$i])) ? $_POST['ftp_port'.$i]:21;
$config['ftp_user'][$i]=(isset($_POST['ftp_user'.$i])) ? $_POST['ftp_user'.$i]:'';
$config['ftp_pass'][$i]=(isset($_POST['ftp_pass'.$i])) ? $_POST['ftp_pass'.$i]:'';
$config['ftp_dir'][$i]=(isset($_POST['ftp_dir'.$i])) ? stripslashes($_POST['ftp_dir'.$i]):'/';
if($config['ftp_dir'][$i]=="" || (strlen($config['ftp_dir'][$i])>1 && substr($config['ftp_dir'][$i],-1)!="/")) $config['ftp_dir'][$i].="/";
}
}
$oldtheme=$config['theme'];
$oldscposition=$config['interface_server_caption_position'];
$checkFTP=Array("&nbsp;<br><br>&nbsp;<br>&nbsp;","&nbsp;<br><br>&nbsp;<br>&nbsp;","&nbsp;<br><br>&nbsp;<br>&nbsp;");
if(isset($_POST['testFTP0'])) {
$checkFTP[0]='<div class="ssmall">'.$lang['testconnection'].' FTP-Connection 1<br><br>'.TesteFTP($_POST['ftp_server0'],$_POST['ftp_port0'],$_POST['ftp_user0'],$_POST['ftp_pass0'],$_POST['ftp_dir0']).'</div>';
$ftptested=0;
}
if(isset($_POST['testFTP1'])) {
$checkFTP[1]='<div class="ssmall">'.$lang['testconnection'].' FTP-Connection 2<br><br>'.TesteFTP($_POST['ftp_server1'],$_POST['ftp_port1'],$_POST['ftp_user1'],$_POST['ftp_pass1'],$_POST['ftp_dir1']).'</div>';
$ftptested=1;
}
if(isset($_POST['testFTP2'])) {
$checkFTP[2]='<div class="ssmall">'.$lang['testconnection'].' FTP-Connection 3<br><br>'.TesteFTP($_POST['ftp_server2'],$_POST['ftp_port2'],$_POST['ftp_user2'],$_POST['ftp_pass2'],$_POST['ftp_dir2']).'</div>';
$ftptested=2;
}
if($ftptested>-1) {
$ftp_server[$ftptested]=$_POST['ftp_server'.$ftptested];
$ftp_port[$ftptested]=$_POST['ftp_port'.$ftptested];
$ftp_user[$ftptested]=$_POST['ftp_user'.$ftptested];
$ftp_pass[$ftptested]=$_POST['ftp_pass'.$ftptested];
$ftp_dir[$ftptested]=stripslashes($_POST['ftp_dir'.$ftptested]);
if($ftp_dir[$ftptested]=="" || (strlen($ftp_dir[$ftptested])>1 && substr($ftp_dir[$ftptested],-1)!="/")) $ftp_dir[$ftptested].="/";
}
if (isset($_POST['load']))
{
$msg=SetDefault(true);
$msg=nl2br($msg)."<br>". $lang['load_success']."<br>";
echo '<script language="JavaScript">parent.MySQL_Dumper_menu.location.href="menu.php";</script>';
}
if (isset($_POST['save']))
{
//Parameter auslesen
$config['multi_dump']=(isset($_POST['MultiDBDump'])) ? $_POST['MultiDBDump'] : 0;
$databases['db_actual_cronpraefix']=$_POST['dbcronpraefix'];
$config['compression']=$_POST['compression'];
$config['language']=$_POST['language'];
$config['interface_server_caption']=$_POST['server_caption'];
$config['interface_server_caption_position']=$_POST['server_caption_position'];
$config['interface_sqlboxsize']=$_POST['sqlboxsize'];
$config['theme']=$_POST['theme'];
$config['interface_table_compact']=(isset($_POST['interface_table_compact'])) ? $_POST['interface_table_compact'] : 1;
$config['email_recipient']=$_POST['email0'];
$config['email_sender']=$_POST['email1'];
$config['send_mail']=$_POST['send_mail'];
$config['send_mail_dump']=$_POST['send_mail_dump'];
$config['email_maxsize1']=$_POST['email_maxsize1']; if($config['email_maxsize1']=="") $config['email_maxsize1']=0;
$config['email_maxsize2']=$_POST['email_maxsize2'];
$config['email_maxsize']=$config['email_maxsize1']*(($config['email_maxsize2']==1) ? 1024 : 1024*1024);
$config['backup_complete_inserts']=(isset($_POST['backup_complete_inserts'])) ? 1 : 0;
$config['backup_extended_inserts']=(isset($_POST['backup_extended_inserts'])) ? 1 : 0;
$config['backup_delayed_inserts']=(isset($_POST['backup_delayed_inserts'])) ? 1 : 0;
$config['backup_ignore_inserts']=(isset($_POST['backup_ignore_inserts'])) ? 1 : 0;
$config['backup_lock_tables']=(isset($_POST['backup_lock_tables'])) ? 1 : 0;
$config['backup_downgrade']=(isset($_POST['backup_downgrade'])) ? 1 : 0;
$config['memory_limit']=$_POST['memory_limit']; if($config['memory_limit']=="") $config['memory_limit']=0;
$config['minspeed']=$_POST['minspeed']; if($config['minspeed']<50) $config['minspeed']=50;
$config['maxspeed']=$_POST['maxspeed'];
$config['stop_with_error']=$_POST['stop_with_error'];
$config['multi_part']=$_POST['multi_part'];
$config['multipartgroesse1']=$_POST['multipartgroesse1'];
$config['multipartgroesse2']=$_POST['multipartgroesse2'];
if($config['multipartgroesse1']<100 && $config['multipartgroesse2']==1)$config['multipartgroesse1']=100;
$oldlogcompression=$config['logcompression'];
$config['logcompression']=(isset($_POST['logcompression']) && $_POST['logcompression']==1) ? 1 : 0;
$config['log_maxsize1']=$_POST['log_maxsize1']; if($config['log_maxsize1']=="") $config['log_maxsize1']=0;
$config['log_maxsize2']=$_POST['log_maxsize2'];
$config['log_maxsize']=$config['log_maxsize1']*(($config['log_maxsize2']==1) ? 1024 : 1024*1024);
$config['auto_delete']=$_POST['auto_delete'];
$config['del_files_after_days']=$_POST['del_files_after_days'];
$config['max_backup_files']=$_POST['max_backup_files'];
$config['max_backup_files_each']=$_POST['max_backup_files_each'];
$config['empty_db_before_restore']=$_POST['empty_db_before_restore'];
$config['optimize_tables_beforedump']=$_POST['optimize_tables'];
$config['cron_samedb']=$_POST['cron_samedb'];
$config['cron_extender']=$_POST['cron_extender'];
// cron_select_savepath/
if(isset($_POST['cron_savepath_new']) && !empty($_POST['cron_savepath_new']))
$config['cron_configurationfile']=$_POST['cron_savepath_new'].".conf";
else
$config['cron_configurationfile']=$_POST['cron_select_savepath'].".conf";
$config['cron_execution_path']=$_POST['cron_execution_path'];
if($config['cron_execution_path']=="")$config['cron_execution_path']="msd_cron/";
if(strlen($config['cron_execution_path'])>1 && substr($config['cron_execution_path'],-1)!="/") $config['cron_execution_path'].="/";
$config['cron_mail']=$_POST['cron_mail'];
$config['cron_mail_dump']=$_POST['cron_mail_dump'];
$config['cron_use_sendmail']=$_POST['cron_use_sendmail'];
$config['cron_sendmail']=$_POST['cron_sendmail'];
$config['cron_smtp']=$_POST['cron_smpt'];
$config['cron_printout']=$_POST['cron_printout'];
$config['cron_completelog']=$_POST['cron_completelog'];
$config['cron_ftp']=$_POST['cron_ftp'];
$config['cron_compression']=$_POST['cron_compression'];
$config['cron_comletelog']=$_POST['cron_completelog'];
$databases['multi']=Array();
$databases['multi_praefix']=Array();
$databases['multi_commandbeforedump']=Array();
$databases['multi_commandafterdump']=Array();
for($i=0;$i<count($databases['Name']);$i++) {
$databases['praefix'][$i]=$_POST['dbpraefix_'.$i];
$databases['command_before_dump'][$i]=(!isset($_POST['command_before_'.$i])) ? "" : $_POST['command_before_'.$i];
$databases['command_after_dump'][$i]=(!isset($_POST['command_after_'.$i])) ? "" : $_POST['command_after_'.$i];
if(isset($_POST['db_multidump_'.$i]) && $_POST['db_multidump_'.$i]=="db_multidump_$i") {
$databases['multi'][]=$databases['Name'][$i];
$databases['multi_praefix'][]=$databases['praefix'][$i];
$databases['multi_commandbeforedump'][]=$databases['command_before_dump'][$i];
$databases['multi_commandafterdump'][]=$databases['command_after_dump'][$i];
}
}
$databases['multisetting']=(count($databases['multi'])>0)?implode(";",$databases['multi']) : "";
$databases['multisetting_praefix']=(count($databases['multi'])>0)?implode(";",$databases['multi_praefix']) : "";
$databases['multisetting_commandbeforedump']=(count($databases['multi'])>0)?implode(";",$databases['multi_commandbeforedump']) : "";
$databases['multisetting_commandafterdump']=(count($databases['multi'])>0)?implode(";",$databases['multi_commandafterdump']) : "";
$databases['db_actual_cronindex']=$_POST['cron_dbindex'];
if($config['cron_samedb']==0){
$databases['db_actual_cronindex']=$databases['db_selected_index'];
} elseif($databases['db_actual_cronindex']=="-2") {
$cron_save_all_dbs=1;
$datenbanken=count($databases['Name']);
$cron_db_array=str_replace(";","|",$databases['multisetting']);
$cron_dbpraefix_array=str_replace(";","|",$databases['multisetting_praefix']);
$cron_db_cbd_array=str_replace(";","|",$databases['multisetting_commandbeforedump']);
$cron_db_cad_array=str_replace(";","|",$databases['multisetting_commandafterdump']);
} elseif ($databases['db_actual_cronindex']=="-3") {
$cron_save_all_dbs=1;
$cron_db_array=implode("|",$databases['Name']);
$cron_dbpraefix_array=implode("|",$databases['praefix']);
$cron_db_cbd_array=implode("|",$databases['command_before_dump']);
$cron_db_cad_array=implode("|",$databases['command_after_dump']);
}
$config['ftp_transfer']=$_POST['ftp_transfer'];
$config['ftp_connectionindex']=$_POST['ftp_transferconn'];
$config['ftp_timeout']=$_POST['ftp_timeout'];
$config['ftp_useSSL']=isset($_POST['ftp_useSSL']) ? $_POST['ftp_useSSL'] : 0;
$config['ftp_mode']=isset($_POST['ftp_mode']) ? 1 : 0;
for($i=0;$i<3;$i++) {
$checkFTP[$i]="";
$config['ftp_server'][$i]=$_POST['ftp_server'.$i];
$config['ftp_port'][$i]=$_POST['ftp_port'.$i];
$config['ftp_user'][$i]=$_POST['ftp_user'.$i];
$config['ftp_pass'][$i]=$_POST['ftp_pass'.$i];
$config['ftp_dir'][$i]=stripslashes($_POST['ftp_dir'.$i]);
if($config['ftp_port'][$i]+0==0) $config['ftp_port'][$i]=21;
if($config['ftp_dir'][$i]=="" || (strlen($config['ftp_dir'][$i])>1 && substr($config['ftp_dir'][$i],-1)!="/")) $config['ftp_dir'][$i].="/";
}
$config['bb_width']=$_POST['bb_width'];
$config['bb_textcolor']=$_POST['bb_textcolor'];
$config['sql_limit']=$_POST['sql_limit'];
if($config['dbhost']!=$_POST['dbhost'] ||
$config['dbuser']!=$_POST['dbuser'] ||
$config['dbpass']!=$_POST['dbpass'] ||
$config['dbport']!=$_POST['dbport'] ||
$config['dbsocket']!=$_POST['dbsocket']) {
//neue Verbindungsparameter
//alte Parameter sichern
$old['dbhost']=$config['dbhost'];
$old['dbuser']=$config['dbuser'];
$old['dbpass']=$config['dbpass'];
$old['dbport']=$config['dbport'];
$old['dbsocket']=$config['dbsocket'];
//neu setzen
$config['dbhost']=$_POST['dbhost'];
$config['dbuser']=$_POST['dbuser'];
$config['dbpass']=$_POST['dbpass'];
$config['dbport']=$_POST['dbport'];
$config['dbsocket']=$_POST['dbsocket'];
if(MSD_mysql_connect()) {
SetDefault();
$msg.= '<script language="JavaScript">parent.MySQL_Dumper_menu.location.href="menu.php";</script>';
} else {
//alte Werte holen
$config['dbhost']=$old['dbhost'];
$config['dbuser']=$old['dbuser'];
$config['dbpass']=$old['dbpass'];
$config['dbport']=$old['dbport'];
$config['dbsocket']=$old['dbsocket'];
$msg.='<p class="error">'.$lang['wrong_connectionpars'].'</p>';
}
} else {
// und wegschreiben
if (WriteParams(0,$config,$databases)==true)
{
//neue Sprache? Dann Men&uuml; links auch aktualisieren
if( $_POST['lang_old']!=$config['language']
|| $_POST['scaption_old']!=$config['interface_server_caption']
|| $oldtheme!=$config['theme']
|| $oldscposition!=$config['interface_server_caption_position'])
{
$msg.= '<script language="JavaScript">parent.MySQL_Dumper_menu.location.href="menu.php";</script>';
}
//Parameter laden
include($config['files']['parameter']);
if ($config['logcompression']!=$oldlogcompression) SwitchLogfileFormat();
$msg.= '<p class="success">'.$lang['save_success'].'</p>';
} else $msg.= '<p class="error">'.$lang['save_error'].'</p>';
}
}
echo MSDHeader();
ReadSQL();
?>
<script language="JavaScript" type="text/javascript">
function hide_pardivs() {
document.getElementById("db").style.display = 'none';
document.getElementById("global1").style.display = 'none';
document.getElementById("global2").style.display = 'none';
document.getElementById("global3").style.display = 'none';
document.getElementById("transfer1").style.display = 'none';
document.getElementById("transfer2").style.display = 'none';
document.getElementById("cron").style.display = 'none';
for(i=1;i<9;i++) {
document.getElementById("command"+i).className ='ConfigButton';
}
}
function SwitchVP() {
if(document.getElementById('VP').style.display=='none')
document.getElementById('VP').style.display='block';
else
document.getElementById('VP').style.display='none'
}
function show_pardivs(lab) {
hide_pardivs();
switch(lab) {
case "db":
document.getElementById("db").style.display = 'block';
document.getElementById("command1").className ='ConfigButtonSelected';
break;
case "global1":
document.getElementById("global1").style.display = 'block';
document.getElementById("command2").className ='ConfigButtonSelected';
break;
case "global2":
document.getElementById("global3").style.display = 'block';
document.getElementById("command3").className ='ConfigButtonSelected';
break;
case "global3":
document.getElementById("global2").style.display = 'block';
document.getElementById("command4").className ='ConfigButtonSelected';
break;
case "transfer1":
document.getElementById("transfer1").style.display = 'block';
document.getElementById("command5").className ='ConfigButtonSelected';
break;
case "transfer2":
document.getElementById("transfer2").style.display = 'block';
document.getElementById("command6").className ='ConfigButtonSelected';
break;
case "cron":
document.getElementById("cron").style.display = 'block';
document.getElementById("command7").className ='ConfigButtonSelected';
break;
case "all":
document.getElementById("db").style.display = 'block';
document.getElementById("global1").style.display = 'block';
document.getElementById("global2").style.display = 'block';
document.getElementById("global3").style.display = 'block';
document.getElementById("transfer1").style.display = 'block';
document.getElementById("transfer2").style.display = 'block';
document.getElementById("cron").style.display = 'block';
document.getElementById("command8").className ='ConfigButtonSelected';
break;
default:
document.getElementById("db").style.display = 'block';
document.getElementById("command1").className ='ConfigButtonSelected';
break;
}
document.getElementById("sel").value=lab;
}
function WriteMem()
{
document.getElementById("mlimit").value=<?php echo round($config['ram']*1024*1024*0.9,0);?>;
}
</script>
<?php
if(!isset($config['email_maxsize1']))$config['email_maxsize1']=0;
if(!isset($config['email_maxsize2']))$config['email_maxsize2']=1;
if(!isset($databases['multisetting'])) $databases['multisetting']="";
$databases['multi']=explode(";",$databases['multisetting']);
//Ausgabe-Teile
$aus['formstart']=headline($lang['config_headline']);
$aus['formstart'].='<form name="frm_config" method="POST" action="config_overview.php"><input type="hidden" name="sel" id="sel" value="db">'.$nl;
$aus['formstart'].='<div id="configleft">';
$aus['formstart'].='<input type="Button" id="command1" onclick="show_pardivs(\'db\');" value="'.$lang['dbs'].'" class="ConfigButton"><br>'.$nl;
$aus['formstart'].='<input type="Button" id="command2" onclick="show_pardivs(\'global1\');" value="'.$lang['general'].'" class="ConfigButton"><br>'.$nl;
$aus['formstart'].='<input type="Button" id="command3" onclick="show_pardivs(\'global2\');" value="'.$lang['config_interface'].'" class="ConfigButton"><br>'.$nl;
$aus['formstart'].='<input type="Button" id="command4" onclick="show_pardivs(\'global3\');" value="'.$lang['config_autodelete'].'" class="ConfigButton"><br>'.$nl;
$aus['formstart'].='<input type="Button" id="command5" onclick="show_pardivs(\'transfer1\');" value="Email" class="ConfigButton"><br>'.$nl;
$aus['formstart'].='<input type="Button" id="command6" onclick="show_pardivs(\'transfer2\');" value="FTP" class="ConfigButton"><br>'.$nl;
$aus['formstart'].='<input type="Button" id="command7" onclick="show_pardivs(\'cron\');" value="Cronscript" class="ConfigButton"><br>'.$nl;
$aus['formstart'].='<input type="Button" id="command8" onclick="show_pardivs(\'all\');" value="'.$lang['allpars'].'" class="ConfigButton"><br>'.$nl;
$aus['formstart'].='<input class="Formbutton" type="reset" name="reset" value="'.$lang['reset'].'"><br><input class="Formbutton" type="submit" name="save" value="'.$lang['save'].'"><br><br>'.$nl;
$aus['formstart'].='<input class="Formbutton" type="Submit" name="load" value="'.$lang['load'].'" onclick="if (!confirm(\''.$lang['config_askload'].'\')) return false;">'.$nl;
$aus['formstart'].='<input class="Formbutton" type="button" value="'.$lang['install'].'" onclick="parent.location.href=\'install.php\'">'.$nl;
$aus['formstart'].='</div><div id="configright">'.$msg.$nl;
// Zugangsdaten
$aus['db']='<div id="db"><fieldset><legend><b>'.$lang['connectionpars'].'</b></legend>'.$nl.$nl;
$aus['db'].='<div id="VP" style="display:none;"><table><tr><td>Host / User / Passwort:</td>';
$aus['db'].='<td><input class="text" type="text" name="dbhost" value="'.$config['dbhost'].'">&nbsp;&nbsp;/&nbsp;&nbsp;';
$aus['db'].='<input class="text" type="text" name="dbuser" value="'.$config['dbuser'].'" size="20">&nbsp;&nbsp;/&nbsp;&nbsp;';
$aus['db'].='<input class="text" type="password" name="dbpass" value="'.$config['dbpass'].'" size="20"></td></tr>';
$aus['db'].='<tr><td colspan="2"><strong>'.$lang['extendedpars'].'</strong></td></tr>';
$aus['db'].='<tr><td>Port / Socket:</td><td><input class="text" type="text" name="dbport" value="'.$config['dbport'].'">&nbsp;&nbsp;/&nbsp;&nbsp;';
$aus['db'].='<input class="text" type="text" name="dbsocket" value="'.$config['dbsocket'].'"></td></tr>';
$aus['db'].='</table></div><div><a class="small" href="#" onclick="SwitchVP();">'.$lang['fade_in_out'].'</a></div></fieldset><fieldset><legend><b>'.$lang['db_backuppars'].'</b></legend>';
$aus['db'].='<table class="bordersmall" style="border:0;width:98%;">';
if(count($databases['Name'])==1) {
$aus['db'].='<tr><td>'.Help($lang['help_db'],"conf1").$lang['list_db'].'</td>';
$aus['db'].='<td><strong>'.$databases['db_actual'].'</strong></td></tr>';
$aus['db'].='<tr><td>'.Help($lang['help_praefix'],"conf2").$lang['praefix'].'</td><td><input type="text" class="text" name="dbpraefix_'.$databases['db_selected_index'].'" size="10" value="'.$databases['praefix'][$databases['db_selected_index']].'"></td></tr>';
$aus['db'].= '<tr><td>'.Help($lang['help_commands'],"").'Command before Dump</td><td>'.ComboCommandDump(0,$databases['db_selected_index']).'</td></tr>';
$aus['db'].= '<tr><td>'.Help($lang['help_commands'],"").'Command after Dump</td><td>'.ComboCommandDump(1,$databases['db_selected_index']).'</td>';
$aus['db'].= '<td><a href="sql.php?context=1">'.$lang['sql_befehle'].'</a></td>';
$aus['db'].= '</tr>';
} else {
$aus['db'].='<tr><td>'.Help($lang['help_db'],"conf1").$lang['list_db'].'</td><td><input type="checkbox" class="checkbox" name="MultiDBDump" value="1" '.(($config['multi_dump']==1) ? "CHECKED" : "").'>'.$lang['activate_multidump'].'</td>';
$aus['db'].='<tr><td colspan="2"><table>';
$aus['db'].='<tr class="thead"><th>'.$lang['db'].'</th><th>Multidump<br><span class="ssmall">(<a href="javascript:SelectMD(true,'.count($databases['Name']).')" class="small">'.$lang['all'].'</a>&nbsp;<a href="javascript:SelectMD(false,'.count($databases['Name']).')" class="small">'.$lang['none'].'</a>)</span></th>';
$aus['db'].='<th>'.Help($lang['help_praefix'],"conf2").$lang['praefix'].'</th><th>'.Help($lang['help_commands'],"",11).'Command before Dump</th><th>'.Help($lang['help_commands'],"",11).'Command after Dump</th><th>'.$lang['sql_befehle'].'</th></tr>';
//erst die aktuelle DB
$aus['db'].= '<tr class="dbrowsel"><td><strong>'.$databases['db_actual'].'</strong></td>';
$aus['db'].= '<td align="center"><input type="checkbox" class="checkbox" name="db_multidump_'.$databases['db_selected_index'].'" value="db_multidump_'.$databases['db_selected_index'].'" '.((in_array($databases['db_actual'],$databases['multi'])) ? "CHECKED" : "").'></td>';
$aus['db'].= '<td><img src="images/blank.gif" width="40" height="1" alt=""><input type="text" class="text" name="dbpraefix_'.$databases['db_selected_index'].'" size="10" value="'.$databases['praefix'][$databases['db_selected_index']].'"></td>';
$aus['db'].= '<td>'.ComboCommandDump(0,$databases['db_selected_index']).'</td><td>'.ComboCommandDump(1,$databases['db_selected_index']).'</td>';
$aus['db'].= '<td><a href="sql.php?context=1">'.$lang['sql_befehle'].'</a></td>';
$aus['db'].= '</tr>';
$dbacombo=$dbbcombo="";$j=0;
for($i=0;$i<count($databases['Name']);$i++)
{
if($i!=$databases['db_selected_index']) {
$j++;
$aus['db'].= '<tr class="'.(($i % 2) ? 'dbrow' : 'dbrow1').'"><td>'.$databases['Name'][$i].'</td>';
$aus['db'].= '<td align="center"><input type="checkbox" class="checkbox" name="db_multidump_'.$i.'" value="db_multidump_'.$i.'" '.((in_array($databases['Name'][$i],$databases['multi'])) ? "CHECKED" : "").'></td>';
$aus['db'].= '<td><img src="images/blank.gif" width="40" height="1" alt=""><input type="text" class="text" name="dbpraefix_'.$i.'" size="10" value="'.$databases['praefix'][$i].'"></td><td>'.ComboCommandDump(0,$i).'</td><td>'.ComboCommandDump(1,$i).'</td>';
$aus['db'].= '<td><a href="sql.php?context=1">'.$lang['sql_befehle'].'</a></td>';
$aus['db'].= '</tr>';
}
}
$aus['db'].='</table></td></tr>';
}
$aus['db'].='</table></fieldset></div>';
// sonstige Einstellungen
$aus['global1']='<div id="global1"><fieldset><legend><b>'.$lang['general'].'</b></legend><table>';
$aus['global1'].='<tr><td>'.Help("","").'Logfiles:&nbsp;</td>';
$aus['global1'].='<td><input type="checkbox" class="checkbox" value="1" name="logcompression" '.(($config['zlib']) ? '' : 'disabled').(($config['logcompression']==1)?" checked":"").'>'.$lang['compressed'].'<br>';
$aus['global1'].=''.$lang['maxsize'].':&nbsp;&nbsp;<input type="text" class="text" name="log_maxsize1" size="3" maxlength="3" value="'.$config['log_maxsize1'].'">&nbsp;&nbsp;';
$aus['global1'].='<select name="log_maxsize2"><option value="1" '.(($config['log_maxsize2']==1) ? ' SELECTED' : '').'>Kilobytes</option>';
$aus['global1'].='<option value="2" '.(($config['log_maxsize2']==2) ? ' SELECTED' : '').'>Megabytes</option></select></td></tr>';
$aus['global1'].='<tr><td>'.Help($lang['help_memorylimit'],"").$lang['memory_limit'].':&nbsp;&nbsp;</td>';
$aus['global1'].='<td>';
$aus['global1'].='<input type="text" class="text" size="10" id="mlimit" name="memory_limit" maxlength="10" style="text-align:right;font-size:11px;" value="'.$config['memory_limit'].'"> Bytes&nbsp;&nbsp;&nbsp;<a href="#" onclick="WriteMem();" class="small">automatisch ermitteln</a>';
$aus['global1'].='</td></tr>';
$aus['global1'].='<tr><td>'.Help($lang['help_speed'],"").$lang['speed'].':&nbsp;</td>';
$aus['global1'].='<td><input type="text" class="text" size="6" name="minspeed" maxlength="6" style="text-align:right;" value="'.$config['minspeed'].'">&nbsp;'.$lang['to'].'&nbsp;<input type="text" class="text" size="6" name="maxspeed" maxlength="9" style="text-align:right;" value="'.$config['maxspeed'].'"></td></tr>';
$aus['global1'].='</table></fieldset><fieldset><legend><b>'.$lang['dump'].'</b></legend><table>';
$aus['global1'].='<tr><td>'.Help($lang['help_zip'],"conf3").$lang['gzip'].':&nbsp;</td>';
$aus['global1'].='<td><input type="radio" class="radio" value="1" name="compression" '.(($config['zlib']) ? '' : 'disabled').(($config['compression']==1)?" checked":"").'>'.$lang['activated'];
$aus['global1'].='<input type="radio" class="radio" value="0" name="compression" '.(($config['compression']==0)?" checked":"").'>'.$lang['not_activated'].'</td></tr>';
//Multipart-Backup -->
$aus['global1'].='<tr><td>'.Help($lang['help_multipart'],"").$lang['multi_part'].':&nbsp;</td><td>';
$aus['global1'].='<input type="radio" class="radio" value="1" name="multi_part" onclick="document.getElementById(\'mpg\').style.visibility=\'visible\';" '.(($config['multi_part']==1)?" checked":"").'>'.$lang['yes'];
$aus['global1'].='<input type="radio" class="radio" value="0" name="multi_part" onclick="document.getElementById(\'mpg\').style.visibility=\'hidden\';" '.(($config['multi_part']==0)?" checked":"").'>'.$lang['no'];
$aus['global1'].='</td></tr><tr><td>'.Help($lang['help_multipartgroesse'],"").$lang['multi_part_groesse'].':&nbsp;</td>';
$aus['global1'].='<td>&nbsp;<div id="mpg" style="visibility:'.(($config['multi_part']==0)?"hidden":"visible").';">';
$aus['global1'].='<input type="text" class="text" name="multipartgroesse1" size="3" maxlength="3" value="'.$config['multipartgroesse1'].'">&nbsp;&nbsp;';
$aus['global1'].='<select name="multipartgroesse2"><option value="1" '.(($config['multipartgroesse2']==1) ? 'SELECTED' : '').'>Kilobytes</option><option value="2" '.(($config['multipartgroesse2']==2) ? 'SELECTED' : '').'>Megabytes</option></select></div></td></tr>';
$aus['global1'].='<tr><td>'.Help($lang['help_optimize'],"").$lang['optimize'].':&nbsp;</td>';
$aus['global1'].='<td><input type="radio" class="radio" value="1" name="optimize_tables" '.(($config['optimize_tables_beforedump']==1)?" checked":"").'>'.$lang['activated'];
$aus['global1'].='<input type="radio" class="radio" value="0" name="optimize_tables" '.(($config['optimize_tables_beforedump']==0)?" checked":"").'>'.$lang['not_activated'].'</td></tr>';
$aus['global1'].='<tr><td>'.Help("","").$lang['backup_format'].':&nbsp;</td>';
$aus['global1'].='<td><input type="checkbox" class="checkbox" name="backup_complete_inserts" value="1" '.(($config['backup_complete_inserts']==1) ? "checked" : "").'>'.$lang['inserts_complete'].'<br>';
$aus['global1'].='<input type="checkbox" class="checkbox" name="backup_extended_inserts" value="1" '.(($config['backup_extended_inserts']==1) ? "checked" : "").'>'.$lang['inserts_extended'].'<br>';
$aus['global1'].='<input type="checkbox" class="checkbox" name="backup_delayed_inserts" value="1" '.(($config['backup_delayed_inserts']==1) ? "checked" : "").'>'.$lang['inserts_delayed'].'<br>';
$aus['global1'].='<input type="checkbox" class="checkbox" name="backup_ignore_inserts" value="1" '.(($config['backup_ignore_inserts']==1) ? "checked" : "").'>'.$lang['inserts_ignore'].'<br>';
$aus['global1'].='<input type="checkbox" class="checkbox" name="backup_lock_tables" value="1" '.(($config['backup_lock_tables']==1) ? "checked" : "").'>'.$lang['lock_tables'].'<br>';
$aus['global1'].='<input type="checkbox" class="checkbox" name="backup_downgrade" value="1" '.(($config['backup_downgrade']==1) ? "checked" : "").' '.((defined('MSD_MYSQL_VERSION') && !MSD_NEW_VERSION) ? "disabled" : "").'>'.$lang['downgrade'].'</td></tr>';
$aus['global1'].='</table></fieldset><fieldset><legend><b>'.$lang['restore'].'</b></legend><table>';
$aus['global1'].='<tr><td>'.Help($lang['help_empty_db_before_restore'],"conf4").$lang['empty_db_before_restore'].':&nbsp;</td><td>';
$aus['global1'].='<input type="radio" class="radio" value="1" name="empty_db_before_restore" '.(($config['empty_db_before_restore']==1)?" checked":"").'>'.$lang['yes'];
$aus['global1'].='<input type="radio" class="radio" value="0" name="empty_db_before_restore" '.(($config['empty_db_before_restore']==0)?" checked":"").'>'.$lang['no'];
$aus['global1'].='</td></tr>';
$aus['global1'].='<tr><td>'.Help("","").$lang['errorhandling_restore'].'</td><td>';
$aus['global1'].='<input type="radio" class="radio" name="stop_with_error" value="0" '.(($config['stop_with_error']==0)?" checked":"").'>'.$lang['ehrestore_continue'].'<br>';
$aus['global1'].='<input type="radio" class="radio" name="stop_with_error" value="1" '.(($config['stop_with_error']==1)?" checked":"").'>'.$lang['ehrestore_stop'];
$aus['global1'].='</td></tr></table></fieldset></div>';
//Interface -->
$aus['global3']='<div id="global3"><fieldset><legend><b>'.$lang['config_interface'].'</b></legend><table>';
$aus['global3'].='<tr><td>'.Help($lang['help_lang'],"conf11").$lang['language'].':&nbsp;</td>';
$aus['global3'].='<td><select name="language">'.GetLanguageCombo("op");
$aus['global3'].='</select>&nbsp;&nbsp;<a href="'.$languagepacks_ref.'" target="_blank">'.$lang['download_languages'].'</a><input type="hidden" name="lang_old" value="'.$config['language'].'"><input type="hidden" name="scaption_old" value="'.$config['interface_server_caption'].'"></td></tr>';
$aus['global3'].='<tr><td>'.Help($lang['help_servercaption'],"").$lang['servercaption'].':</td>';
$aus['global3'].='<td><input type="checkbox" class="checkbox" value="1" name="server_caption" '.(($config['interface_server_caption']==1)?" checked":"").'>'.$lang['activated'].'&nbsp;&nbsp;&nbsp;';
$aus['global3'].='<input type="radio" class="radio" name="server_caption_position" value="1" '.(($config['interface_server_caption_position']==1) ? "checked" : "").'>'.$lang['in_mainframe'].'&nbsp;&nbsp;<input type="radio" class="radio" name="server_caption_position" value="0" '.(($config['interface_server_caption_position']==0) ? "checked" : "").'>'.$lang['in_leftframe'].'';
$aus['global3'].='</td></tr>';
$aus['global3'].='<tr><td>'.Help("","").'Theme</td><td><select name="theme">'.GetThemes().'</select>&nbsp;&nbsp;<a href="'.$stylepacks_ref.'" target="_blank">'.$lang['download_styles'].'</a></td></tr>';
$aus['global3'].='</table></fieldset><fieldset><legend><b>'.$lang['sql_browser'].'</b></legend><table>';
$aus['global3'].='<tr><td>'.Help("","").$lang['sqlboxheight'].':&nbsp;</td>';
$aus['global3'].='<td><input type="text" class="text" name="sqlboxsize" value="'.$config['interface_sqlboxsize'].'" size="3" maxlength="3">&nbsp;pixel</td></tr>';
$aus['global3'].='<tr><td>'.Help("","").$lang['sqllimit'].':&nbsp;</td>';
$aus['global3'].='<td><input type="text" class="text" name="sql_limit" value="'.$config['sql_limit'].'" size="3" maxlength="3">&nbsp;</td></tr>';
$aus['global3'].='<tr><td>'.Help("","").$lang['bbparams'].':&nbsp;</td>';
$aus['global3'].='<td>';
$aus['global3'].='<table><tr><td>'.$lang['width'].':</td><td><input type="text" class="text" name="bb_width" value="'.$config['bb_width'].'" size="3" maxlength="3">&nbsp;pixel</td></tr>';
$aus['global3'].='<tr><td>'.$lang['bbtextcolor'].':&nbsp;</td>';
$aus['global3'].='<td><select name="bb_textcolor">
<option value="#000000" style="color :#000000;" '.(($config['bb_textcolor']=="#000000" ? "selected" : "")).'>&nbsp;Textcolor&nbsp;</option>
<option value="#000066" style="color :#000066;" '.(($config['bb_textcolor']=="#000066" ? "selected" : "")).'>&nbsp;Textcolor&nbsp;</option>
<option value="#800000" style="color :#800000;" '.(($config['bb_textcolor']=="#800000" ? "selected" : "")).'>&nbsp;Textcolor&nbsp;</option>
<option value="#990000" style="color :#990000;" '.(($config['bb_textcolor']=="#990000" ? "selected" : "")).'>&nbsp;Textcolor&nbsp;</option>
<option value="#006600" style="color :#006600;" '.(($config['bb_textcolor']=="#006600" ? "selected" : "")).'>&nbsp;Textcolor&nbsp;</option>
<option value="#996600" style="color :#996600;" '.(($config['bb_textcolor']=="#996600" ? "selected" : "")).'>&nbsp;Textcolor&nbsp;</option>
<option value="#999999" style="color :#999999;" '.(($config['bb_textcolor']=="#999999" ? "selected" : "")).'>&nbsp;Textcolor&nbsp;</option>
</select></td></tr></table>';
$aus['global3'].='</td></tr><tr><td>'.Help("","").'SQL-Grid:&nbsp;</td>';
$aus['global3'].='<td><input type="radio" class="radio" name="interface_table_compact" value="0" '.(($config['interface_table_compact']==0) ? 'checked' : '').'>normal&nbsp;&nbsp;&nbsp;';
$aus['global3'].='<input type="radio" class="radio" name="interface_table_compact" value="1" '.(($config['interface_table_compact']==1) ? 'checked' : '').'>compact</td></tr>';
$aus['global3'].='</table></fieldset></div>';
//automatisches L&ouml;schen-->
$aus['global2']='<div id="global2"><fieldset><legend><b>'.$lang['config_autodelete'].'</b></legend><table>';
$aus['global2'].='<tr><td>'.Help($lang['help_ad1'],"conf8").$lang['autodelete'].':&nbsp;</td>';
$aus['global2'].='<td><input type="radio" class="radio" value="1" name="auto_delete" '.(($config['auto_delete']==1)?" checked":"").'>'.$lang['activated'];
$aus['global2'].='<input type="radio" class="radio" value="0" name="auto_delete" '.(($config['auto_delete']==0)?" checked":"").'>'.$lang['not_activated'];
$aus['global2'].='</td></tr><tr><td>'.Help($lang['help_ad2'],"conf9").$lang['age_of_files'].':&nbsp;</td>';
$aus['global2'].='<td><input type="text" class="text" size="3" name="del_files_after_days" value="'.$config['del_files_after_days'].'"></td>';
$aus['global2'].='</tr><tr><td>'.Help($lang['help_ad3'],"conf10").$lang['number_of_files_form'].':&nbsp;</td>';
$aus['global2'].='<td><input type="text" class="text" size="3" name="max_backup_files" value="'.$config['max_backup_files'].'"> ';
$aus['global2'].='<input type="radio" class="radio" value="0" name="max_backup_files_each" '.(($config['max_backup_files_each']==0)?" checked":"").'>'.$lang['max_backup_files_each1'].' ';
$aus['global2'].='<input type="radio" class="radio" value="1" name="max_backup_files_each" '.(($config['max_backup_files_each']==1)?" checked":"").'>'.$lang['max_backup_files_each2'];
$aus['global2'].='</td></tr></table></fieldset></div>';
//Email-->
$aus['transfer1']='<div id="transfer1"><fieldset><legend><b>'.$lang['config_email'].'</b></legend><table>';
$aus['transfer1'].='<tr><td>'.Help($lang['help_mail1'],"conf5").$lang['send_mail_form'].':&nbsp;</td>';
$aus['transfer1'].='<td><input type="radio" class="radio" value="1" name="send_mail" '.(($config['send_mail']==1)?" checked":"").'>'.$lang['yes'];
$aus['transfer1'].='<input type="radio" class="radio" value="0" name="send_mail" '.(($config['send_mail']==0)?" checked":"").'>'.$lang['no'];
$aus['transfer1'].='</td></tr><tr><td>'.Help($lang['help_mail2'],"conf6").$lang['email_adress'].':&nbsp;</td><td><input type="text" class="text" name="email0" value="'.$config['email_recipient'].'" size="30"></td></tr>';
$aus['transfer1'].='<tr><td>'.Help($lang['help_mail3'],"conf7").$lang['email_subject'].':&nbsp;</td><td><input type="text" class="text" name="email1" value="'.$config['email_sender'].'" size="30"></td></tr>';
$aus['transfer1'].='<tr><td>'.Help($lang['help_mail5'],"").$lang['send_mail_dump'].':&nbsp;</td><td>';
$aus['transfer1'].='<input type="radio" class="radio" value="1" name="send_mail_dump" '.(($config['send_mail_dump']==1)?" checked":"").'>'.$lang['yes'];
$aus['transfer1'].='<input type="radio" class="radio" value="0" name="send_mail_dump"'.(($config['send_mail_dump']==0)?" checked":"").'>'.$lang['no'];
$aus['transfer1'].='</td></tr><tr><td>'.Help($lang['help_mail4'],"").$lang['email_maxsize'].':&nbsp;</td><td>';
$aus['transfer1'].='<input type="text" class="text" name="email_maxsize1" size="3" maxlength="3" value="'.$config['email_maxsize1'].'">&nbsp;&nbsp;';
$aus['transfer1'].='<select name="email_maxsize2"><option value="1" '.(($config['email_maxsize2']==1) ? ' SELECTED' : '').'>Kilobytes</option>';
$aus['transfer1'].='<option value="2" '.(($config['email_maxsize2']==2) ? ' SELECTED' : '').'>Megabytes</option></select></td></tr>';
$aus['transfer1'].='<tr><td>'.Help($lang['help_cronmailprg'],"").$lang['cron_mailprg'].':&nbsp;</td>';
$aus['transfer1'].='<td><table><tr><td><input type="radio" class="radio" name="cron_use_sendmail" value="1" '.(($config['cron_use_sendmail']==1)?" checked":"").'>sendmail</td><td><input type="text" class="text" size="30" name="cron_sendmail" value="'.$config['cron_sendmail'].'"></td></tr>';
$aus['transfer1'].='<tr><td><input type="radio" class="radio" name="cron_use_sendmail" value="0" '.(($config['cron_use_sendmail']==0)?" checked":"").'>SMPT</td><td><input type="text" class="text" size="30" name="cron_smpt" value="'.$config['cron_smtp'].'"></td></tr><tr><td>&nbsp;</td><td>SMTP-Port: <strong>'.$config['cron_smtp_port'].'</strong></td></tr>';
$aus['transfer1'].='</table></td></tr></table></fieldset></div>';
//FTP-->
$aus['transfer2']='<div id="transfer2"><fieldset><legend><b>'.$lang['config_ftp'].'</b></legend><table>';
$aus['transfer2'].='<tr><td>'.Help($lang['help_ftptransfer'],"").$lang['ftp_transfer'].':&nbsp;</td>';
$aus['transfer2'].='<td><input type="radio" class="radio" value="1" name="ftp_transfer" '.((!extension_loaded("ftp")) ? "disabled " : "").(($config['ftp_transfer']==1)?" checked":"").'>'.$lang['activated'];
$aus['transfer2'].=' <input type="radio" class="radio" value="0" name="ftp_transfer" '.(($config['ftp_transfer']==0)?" checked":"").'>'.$lang['not_activated'].'</td></tr>';
$aus['transfer2'].='<tr><td>'.Help($lang['useconnection'].":","").$lang['useconnection'].':&nbsp;</td><td>';
$aus['transfer2'].=' <input type="radio" class="radio" value="0" name="ftp_transferconn" '.(($config['ftp_connectionindex']==0)?" checked":"").'>FTP 1&nbsp;&nbsp;';
$aus['transfer2'].=' <input type="radio" class="radio" value="1" name="ftp_transferconn" '.(($config['ftp_connectionindex']==1)?" checked":"").'>FTP 2&nbsp;&nbsp;';
$aus['transfer2'].=' <input type="radio" class="radio" value="2" name="ftp_transferconn" '.(($config['ftp_connectionindex']==2)?" checked":"").'>FTP 3</td></tr>';
$aus['transfer2'].='<tr><td>'.Help($lang['help_ftptimeout'],"").$lang['ftp_timeout'].':&nbsp;</td>';
$aus['transfer2'].='<td><input type="text" class="text" size="10" name="ftp_timeout" maxlength="3" style="text-align:right;" value="'.$config['ftp_timeout'].'"> sec</td></tr>';
$aus['transfer2'].='<tr><td>'.Help($lang['help_ftp_mode'],"").$lang['ftp_choose_mode'].':&nbsp;</td>';
$aus['transfer2'].='<td><input type="checkbox" class="checkbox" name="ftp_mode" value="1" '.(($config['ftp_mode']==1) ? 'checked' : '').'>';
$aus['transfer2'].=$lang['ftp_passive'].'</td></tr><tr><td colspan="2">';
$aus['transfer2'].='<tr><td>'.Help($lang['help_ftpssl'],"").$lang['ftp_ssl'].':&nbsp;</td>';
$aus['transfer2'].='<td><input type="checkbox" class="checkbox" name="ftp_useSSL" value="1" '.(($config['ftp_useSSL']==1) ? 'checked' : '').' '.((!extension_loaded("openssl")) ? "disabled " : "").'>';
$aus['transfer2'].='<span '.((!extension_loaded("openssl")) ? 'style="color:#999999;"' : '').'>'.$lang['ftp_useSSL'].'</span></td></tr><tr><td colspan="2">';
//1
$aus['transfer2'].='<fieldset><legend><b>FTP-Connection 1</b></legend><table><tr><td><input type="submit" name="testFTP0" value="'.$lang['testconnection'].'" class="Formbutton"><br>'.$checkFTP[0].'</td><td><table>';
$aus['transfer2'].='<tr><td class="small">'.Help($lang['help_ftpserver'],"conf14",12).$lang['ftp_server'].':&nbsp;</td><td><input class="text" type="text" size="30" name="ftp_server0" value="'.$config['ftp_server'][0].'"></td></tr>';
$aus['transfer2'].='<tr><td class="small">'.Help($lang['help_ftpport'],"conf15",12).$lang['ftp_port'].':&nbsp;</td><td class="small"><input class="text" type="text" size="30" name="ftp_port0" value="'.$config['ftp_port'][0].'"></td></tr>';
$aus['transfer2'].='<tr><td class="small">'.Help($lang['help_ftpuser'],"conf16",12).$lang['ftp_user'].':&nbsp;</td><td class="small"><input class="text" type="text" size="30" name="ftp_user0" value="'.$config['ftp_user'][0].'"></td></tr>';
$aus['transfer2'].='<tr><td class="small">'.Help($lang['help_ftppass'],"conf17",12).$lang['ftp_pass'].':&nbsp;</td><td class="small"><input class="text" type="password" size="30" name="ftp_pass0" value="'.$config['ftp_pass'][0].'"></td></tr>';
$aus['transfer2'].='<tr><td class="small">'.Help($lang['help_ftpdir'],"conf18",12).$lang['ftp_dir'].':&nbsp;</td><td class="small"><input class="text" type="text" size="30" name="ftp_dir0" value="'.$config['ftp_dir'][0].'"></td></tr>';
$aus['transfer2'].='</table></td></tr></table></fieldset>';
//2
$aus['transfer2'].='<fieldset><legend><b>FTP-Connection 2</b></legend><table><tr><td><input type="submit" name="testFTP1" value="'.$lang['testconnection'].'" class="Formbutton"><br>'.$checkFTP[1].'</td><td><table>';
$aus['transfer2'].='<tr><td class="small">'.Help($lang['help_ftpserver'],"conf14",12).$lang['ftp_server'].':&nbsp;</td><td><input class="text" type="text" size="30" name="ftp_server1" value="'.$config['ftp_server'][1].'"></td></tr>';
$aus['transfer2'].='<tr><td class="small">'.Help($lang['help_ftpport'],"conf15",12).$lang['ftp_port'].':&nbsp;</td><td class="small"><input class="text" type="text" size="30" name="ftp_port1" value="'.$config['ftp_port'][1].'"></td></tr>';
$aus['transfer2'].='<tr><td class="small">'.Help($lang['help_ftpuser'],"conf16",12).$lang['ftp_user'].':&nbsp;</td><td class="small"><input class="text" type="text" size="30" name="ftp_user1" value="'.$config['ftp_user'][1].'"></td></tr>';
$aus['transfer2'].='<tr><td class="small">'.Help($lang['help_ftppass'],"conf17",12).$lang['ftp_pass'].':&nbsp;</td><td class="small"><input class="text" type="password" size="30" name="ftp_pass1" value="'.$config['ftp_pass'][1].'"></td></tr>';
$aus['transfer2'].='<tr><td class="small">'.Help($lang['help_ftpdir'],"conf18",12).$lang['ftp_dir'].':&nbsp;</td><td class="small"><input class="text" type="text" size="30" name="ftp_dir1" value="'.$config['ftp_dir'][1].'"></td></tr>';
$aus['transfer2'].='</table></td></tr></table></fieldset>';
//3
$aus['transfer2'].='<fieldset><legend><b>FTP-Connection 3</b></legend><table><tr><td><input type="submit" name="testFTP2" value="'.$lang['testconnection'].'" class="Formbutton"><br>'.$checkFTP[2].'</td><td><table>';
$aus['transfer2'].='<tr><td class="small">'.Help($lang['help_ftpserver'],"conf14",12).$lang['ftp_server'].':&nbsp;</td><td><input class="text" type="text" size="30" name="ftp_server2" value="'.$config['ftp_server'][2].'"></td></tr>';
$aus['transfer2'].='<tr><td class="small">'.Help($lang['help_ftpport'],"conf15",12).$lang['ftp_port'].':&nbsp;</td><td class="small"><input class="text" type="text" size="30" name="ftp_port2" value="'.$config['ftp_port'][2].'"></td></tr>';
$aus['transfer2'].='<tr><td class="small">'.Help($lang['help_ftpuser'],"conf16",12).$lang['ftp_user'].':&nbsp;</td><td class="small"><input class="text" type="text" size="30" name="ftp_user2" value="'.$config['ftp_user'][2].'"></td></tr>';
$aus['transfer2'].='<tr><td class="small">'.Help($lang['help_ftppass'],"conf17",12).$lang['ftp_pass'].':&nbsp;</td><td class="small"><input class="text" type="password" size="30" name="ftp_pass2" value="'.$config['ftp_pass'][2].'"></td></tr>';
$aus['transfer2'].='<tr><td class="small">'.Help($lang['help_ftpdir'],"conf18",12).$lang['ftp_dir'].':&nbsp;</td><td class="small"><input class="text" type="text" size="30" name="ftp_dir2" value="'.$config['ftp_dir'][2].'"></td></tr>';
$aus['transfer2'].='</table></td></tr></table></fieldset></td></tr></table></fieldset></div>';
//Crondump
$aus['cron']='<div id="cron"><fieldset><legend><b>'.$lang['config_cronperl'].'</b></legend><table>';
$aus['cron'].='<tr><td>'.Help($lang['help_cronextender'],"").$lang['cron_extender'].':&nbsp;</td>';
$aus['cron'].='<td><input type="radio" class="radio" value="0" name="cron_extender" '.(($config['cron_extender']==0)?" checked":"").'>.pl';
$aus['cron'].='<input type="radio" class="radio" value="1" name="cron_extender" '.(($config['cron_extender']==1)?" checked":"").'>.cgi';
$aus['cron'].='</td></tr><tr><td>'.Help($lang['help_cronsavepath'],"").$lang['cron_savepath'].':&nbsp;</td>';
$aus['cron'].='<td><table><tr><td>'.$lang['existing'].':</td><td><select name="cron_select_savepath">'.GetPerlConfigs().'</select></td></tr>';
$aus['cron'].='<tr><td>'.$lang['new'].':</td><td><input class="text" type="text" size="18" name="cron_savepath_new" value="">&nbsp;.conf</td></tr></table></td>';
$aus['cron'].='</tr><tr><td>'.Help($lang['help_cronexecpath'],"").$lang['cron_execpath'].':&nbsp;</td>';
$aus['cron'].='<td><input type="text" class="text" size="30" name="cron_execution_path" value="'.$config['cron_execution_path'].'"></td>';
$aus['cron'].='</tr><tr><td>'.Help($lang['help_cronprintout'],"").$lang['cron_printout'].':&nbsp;</td>';
$aus['cron'].='<td><input type="radio" class="radio" value="1" name="cron_printout" '.(($config['cron_printout']==1)?" checked":"").'>'.$lang['yes'];
$aus['cron'].='<input type="radio" class="radio" value="0" name="cron_printout" '.(($config['cron_printout']==0)?" checked":"").'>'.$lang['no'].'</td></tr>';
$aus['cron'].='<tr><td>'.Help($lang['help_croncompletelog'],"").$lang['cron_completelog'].':&nbsp;</td>';
$aus['cron'].='<td><input type="radio" class="radio" value="1" name="cron_completelog" '.(($config['cron_completelog']==1)?" checked":"").'>'.$lang['yes'];
$aus['cron'].='<input type="radio" class="radio" value="0" name="cron_completelog" '.(($config['cron_completelog']==0)?" checked":"").'>'.$lang['no'].'</td></tr>';
$aus['cron'].='<tr><td>'.Help($lang['help_cronsamedb'],"conf13").$lang['cron_samedb'].':&nbsp;</td>';
$aus['cron'].='<td><input type="radio" class="radio" value="0" name="cron_samedb" onclick="document.getElementById(\'cdb\').style.visibility=\'hidden\';" '.(($config['cron_samedb']==0)?" checked":"").'>'.$lang['yes'];
$aus['cron'].='<input type="radio" class="radio" value="1" name="cron_samedb" onclick="document.getElementById(\'cdb\').style.visibility=\'visible\';" '.(($config['cron_samedb']==1)?" checked":"").'>'.$lang['no'];
$aus['cron'].='</td></tr><tr><td>'.Help($lang['help_crondbindex'],"conf14").$lang['cron_crondbindex'].':&nbsp;</td>';
$aus['cron'].='<td><div id="cdb" style="visibility:'.(($config['cron_samedb']==0)?"hidden;":"visible;").'"><select name="cron_dbindex">';
$datenbanken=count($databases['Name']);
for($i=0;$i<$datenbanken;$i++)
{
$aus['cron'].='<option value="'.$i.'" ';
if($i==$databases['db_actual_cronindex']) $aus['cron'].='SELECTED';
$aus['cron'].='>'.$databases['Name'][$i]."</option>\n";
}
$aus['cron'].='<option value="-2" ';
if($databases['db_actual_cronindex']==-2) $aus['cron'].='SELECTED';
$aus['cron'].='>'.$lang['multidumpconf']."</option>\n";
$aus['cron'].='<option value="-3" ';
if($databases['db_actual_cronindex']==-3) $aus['cron'].='SELECTED';
$aus['cron'].='>'.$lang['multidumpall']."</option>\n";
$aus['cron'].='</select>&nbsp;&nbsp;<input type="text" class="text" name="dbcronpraefix" value="'.$databases['db_actual_cronpraefix'].'"></div></td></tr>';
$aus['cron'].='<tr><td>'.Help($lang['help_cronzip'],"").$lang['gzip'].':&nbsp;</td>';
$aus['cron'].='<td><input type="radio" class="radio" value="1" name="cron_compression" '.(($config['cron_compression']==1)?" checked":"").'>'.$lang['activated'];
$aus['cron'].='<input type="radio" class="radio" value="0" name="cron_compression" '.(($config['cron_compression']==0)?" checked":"").'>'.$lang['not_activated'];
$aus['cron'].='</td></tr><tr><td>'.Help($lang['help_cronmail'],"").$lang['send_mail_form'].':&nbsp;</td>';
$aus['cron'].='<td><input type="radio" class="radio" value="1" name="cron_mail" '.(($config['cron_mail']==1)?" checked":"").'>'.$lang['yes'];
$aus['cron'].='<input type="radio" class="radio" value="0" name="cron_mail" '.(($config['cron_mail']==0)?" checked":"").'>'.$lang['no'];
$aus['cron'].='</td></tr><tr><td>'.Help($lang['help_cronmail_dump'],"").$lang['send_mail_dump'].':&nbsp;</td>';
$aus['cron'].='<td><input type="radio" class="radio" value="1" name="cron_mail_dump" '.(($config['cron_mail_dump']==1)?" checked":"").'>'.$lang['yes'];
$aus['cron'].='<input type="radio" class="radio" value="0" name="cron_mail_dump" '.(($config['cron_mail_dump']==0)?" checked":"").'>'.$lang['no'];
$aus['cron'].='</td></tr>';
$aus['cron'].='<tr><td>'.Help($lang['help_cronftp'],"").$lang['cron_ftp'].':&nbsp;</td>';
$aus['cron'].='<td><input type="radio" class="radio" value="1" name="cron_ftp" '.(($config['cron_ftp']==1)?" checked":"").'>'.$lang['yes'];
$aus['cron'].='<input type="radio" class="radio" value="0" name="cron_ftp" '.(($config['cron_ftp']==0)?" checked":"").'>'.$lang['no'];
$aus['cron'].='</td></tr></table></fieldset></div>';
//Formular-Buttons -->
$aus['formende']='</div></form><br style="clear:both;">';
// AUSGABE
echo $aus['formstart'];
echo $aus['db'];
echo $aus['global1'];
echo $aus['global2'];
echo $aus['global3'];
echo $aus['transfer1'];
echo $aus['transfer2'];
echo $aus['cron'];
echo $aus['formende'];
echo '<script language="JavaScript" type="text/javascript">show_pardivs("'.$sel.'");</script>';
echo MSDFooter();
?>

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 859 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 65 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 878 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 64 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 857 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 43 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 880 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 868 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 861 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 901 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 861 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 864 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 868 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 1.3 KiB

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 1.4 KiB

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 147 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 252 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 489 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 1.3 KiB

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 900 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 905 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 941 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 1.3 KiB

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 502 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 471 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 484 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 296 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 1.3 KiB

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 53 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 1.1 KiB

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 4.4 KiB

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 1.7 KiB

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 359 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 20 KiB

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 51 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 200 B

152
mysqldumper/css/msd/style.css Normale Datei
Datei anzeigen

@ -0,0 +1,152 @@
/* MySQLDumper STYLESHEET
Name: msd
*/
* {margin: 0;padding: 0;}
img {border:0;}
body {font:12px/1.5 Verdana,Helvetica,sans-serif;color:#4E5665;background: #C7D1D0;}
body.menu {font:12px Verdana,Helvetica,sans-serif;color:#4E5665;background:#738C88;}
/* LINKS */
a {color:#4E5665 ; text-decoration:underline; font:12px verdana, sans-serif}
a:hover {color:#E87B00; text-decoration:none}
a.ul {text-decoration:underline;}
/* general */
#pagetitle {font-size: 18px;font-weight: bold;background:url(pics/pagetitle.gif) #A9AFBB;letter-spacing: 2px;color:White;padding:2px 6px;}
#server0 {position:absolute;bottom:4px;text-align:center; left:10px; color:white;}
#server1 {position:absolute;right:16px;text-align:center;padding:10px;}
a.server {color:#333333;font-size:10px;}
a.server:hover {text-decoration: underline;color: white;}
.version {font-size: 11px;font-weight:bold; }
.small {font-size:11px;}
.ssmall {font-size:10px;}
.success {font-weight:bold;}
.error {color:red;font-weight:bold;}
table td {text-align:left;vertical-align:top;padding:0 6px;}
table th {padding:0 6px;}
/* MENU */
#wrapmenu { background:url(pics/pagetitle.gif) #A9AFBB; background-repeat:repeat-x;}
#db-select { font:12px Verdana,Helvetica,sans-serif;color:#4E5665;background:#A9AFBB; }
#menu {margin-top:1px;background: url(pics/navi_bg.jpg) no-repeat; text-align:center;}
#menu ul {margin-top:174px;padding:0;list-style:none;border-top:1px solid #9AA2B1}
#menu ul li { height:20px;}
#menu ul li a {display:block;position:relative; /*fuer den ie*/ font:11px/20px verdana, sans-serif;text-decoration:none;color:#4E5665; background:url(pics/mainnavi.gif) repeat-x 0 -20px;padding:0 15px;height:20px;text-align:left;}
#menu ul li a:hover {color:#fff; background:url(pics/mainnavi.gif) repeat-x 0 0px;}
/*der aktive link in der navi*/
#menu ul li.active a {font-weight:bold;color:#fff; background:url(pics/mainnavi.gif) repeat-x 0 -40px; display:block;}
#menu p,#menu p a{color:#fff;line-height:1.5;font-size:11px;}
#db-selectbox
{
position:relative;
top:0px;
width:190px;
background:transparent;
text-align:center;
font:11px/1.5 Verdana,Helvetica,sans-serif;
color:white;
}
#db-selectbox a { font:11px/1.5 Verdana,Helvetica,sans-serif; color:white;text-decoration:underline; }
#db-selectbox a:hover { text-decoration:none}
/* MAIN */
#topnavi {text-align:center;margin:6px;}
#content {margin-left:12px;}
#content p {margin-bottom:8px;}
/*Tabellen */
table tr.dbrow {background:#E4E9E8;}
table tr.dbrow1 {background:#D5DDDC;}
table tr.dbrowsel {background:#fff;}
table.bordersmall,table.border {border:2px solid #738C88;width:84%;}
table.border th,table.bordersmall th {font-size:11px;color:#738C88;}
table.border tr.thead,table.bordersmall tr.thead {background:#A5B6B4;height:24px;}
table td.sum { background-color:red;font-weight:bold;text-align:right;}
table.bordersmall input,table.bordersmall select,table.bordersmall td,
#sqlheaderbox select,#configright select, #configright a {font-size:11px;}
.tdcompact {width:100px;height:16px;overflow:hidden;font-size:11px;}
.tdnormal {white-space:nowrap;padding:4px;}
.sqlheadmenu a {}
/* FORM-Elements */
#content .Formbutton {white-space:nowrap;margin:6px;font:10px verdana, sans-serif; border: 1px solid #4E5665; background:#A9B2B1; color:#4E5665;padding:2px;cursor: pointer;}
#content .SQLbutton {font-size:11px;background:#E4E9E8;cursor: pointer;}
#content textarea #thta {font-size:11px;color:blue;width:400px;height:300px;overflow:scroll;}
#content textarea {width:100%;background:#B3C2C0;}
input.radio,input.checkbox {background-color: transparent;}
/* Colors for Formelements */
input.text,input.small {background:#B3C2C0;color:#4E5665;}
select {background:#B3C2C0;color:#4E5665;}
textarea {background:#B3C2C0;color:#4E5665;}
/* for Geckos */
input[disabled] {color:#888;}
/*horizontales Menü */
#hormenu {}
#hormenu ul {border-bottom:thin solid #D5DDDC;margin-bottom:8px;width:80%;}
#hormenu ul li {display:inline;}
#hormenu ul li a {font:11px/20px verdana, sans-serif;text-decoration:none;color:#4E5665;padding:0 14px;border:0;}
#hormenu ul li a:hover {color:#E87B00;}
#hormenu ul li#active a{font:bold 11px/20px verdana, sans-serif;text-decoration:none; color:#E87B00; float:left; padding:0 14px;}
#hormenu ul li#active a:hover{color:#E87B00; }
/* spezielle Elemente */
.MySQLbox{font-size: 10pt;padding: 6px;background:#000; color: #fff;border: thin solid #999999;height: 200px;width: 80%;text-align: left;overflow: auto; }
#content #mysqlbox {border:1px solid #738C88;background:#D5DDDC;}
#content #sqlheaderbox {white-space:nowrap;height:20px;vertical-align:middle;padding-top:2px;}
#content #sqleditbox {border:1px solid #738C88;background:#E4E9E8;margin-bottom:10px;}
#content #sqleditbox p {background:#A5B6B4;font-weight:bold;text-align:center;}
#content #sqlnewbox {border:1px solid #738C88;background:#E4E9E8;}
#content #sqlnewbox p {background:#A5B6B4;font-weight:bold;text-align:center;}
#content #sqloutbox {font-size: 11px;width:700px;padding:6px;background:#D5DDDC;border:1px solid #738C88;overflow:auto;height:240px;}
#content p.autodel {font-size:11px;border-bottom:1px dashed #fff;margin-bottom:12px;}
#content .Logbox {font:12px/1.2 "Courier New", Courier, monospace;padding: 6px;border: thin solid #738C88;height: 320px;width: 90%;text-align: left;overflow: auto;}
#content .Logbox span {color:#738C88;}
#content .backupmsg {padding-left:20px;font-size:11px;}
#content .backupmsg .success,#content .backupmsg a{color:#999;font-size:11px;}
#content .backupmsg .error {color:red;}
/* TEXT */
h1 {font-size:16px;}
h5 {font-size:14px;margin:12px 0;}
h6 {font-size:11px; background:#D1D4DC;border:1px solid #9AA2B1;text-indent: 12px;margin:8px 0;}
/* Config */
#configleft {float:left;width:160px;margin-top:24px;}
#configleft .Formbutton {width:130px;margin:8px 0;}
#configleft .ConfigButton {width:130px;font-size:11px;background:#E4E9E8;}
#configleft .ConfigButtonSelected {width: 130px;font-size: 11px;background: #D5DDDC;}
#configright {font-size:11px;margin-left:160px;}
#configright fieldset {border:1px solid #D5DDDC;padding:12px;width:90%;}
#configright legend {color:#646968;margin:8px 0;}
#footer {font-size:11px;text-align:center;border-top:1px dashed #eee;margin-top:36px;}
#footer a {font-size:11px;}

419
mysqldumper/dump.php Normale Datei
Datei anzeigen

@ -0,0 +1,419 @@
<?php
include_once('./inc/functions_dump.php');
include_once('./'.$config['files']['parameter']);
include_once('./inc/mysql.php');
include_once('./language/'.$config['language'].'/lang.php');
include_once('./language/'.$config['language'].'/lang_dump.php');
$pageheader=MSDHeader();
$DumpFertig=0;
$relativ_path='./';
$DumpFertig=0;
//$_POST-Parameter lesen
$dump['kommentar']=(isset($_GET['comment'])) ? urldecode($_GET['comment']): '';
if(get_magic_quotes_gpc()) $dump['kommentar']=stripslashes($dump['kommentar']);
$dump['backupdatei']=(isset($_POST['backupdatei'])) ? $_POST['backupdatei'] :'';
$dump['backupdatei_structure']= (isset($_POST['backupdatei_structure'])) ? $_POST['backupdatei_structure'] : '';
$cancel=(isset($_POST['cancel'])) ? 1 : 0;
$dump['part']=(isset($_POST['part'])) ? $_POST['part'] : 1;
$dump['part_offset']=(isset($_POST['part_offset'])) ? $_POST['part_offset'] : 0;
$dump['verbraucht']=(isset($_POST['verbraucht'])) ? $_POST['verbraucht'] : 0;
//$out=(file_exists($config['paths']['log'].'out.tmp')) ? implode("\n",file($config['paths']['log'].'out.tmp')) : '';
$out='';
$dump['errors']= (isset($_POST['err'])) ? $_POST['err'] : 0;
$dump['table_offset']=(isset($_POST['table_offset'])) ? $_POST['table_offset'] : -1;
$dump['zeilen_offset']= (isset($_POST['zeilen_offset'])) ? $_POST['zeilen_offset']:0;
$dump['filename_stamp']= (isset($_POST['filename_stamp'])) ? $_POST['filename_stamp'] : '';
$dump['anzahl_zeilen']= (isset($_POST['anzahl_zeilen'])) ? $_POST['anzahl_zeilen'] : (($config['minspeed']>0) ? $config['minspeed'] : 50);
$mp2=array('Bytes','Kilobytes','Megabytes','Gigabytes');
$cancelurl='dump.php?cancel=1&part='.$dump['part'].'&backupdatei='.urlencode($dump['backupdatei']).'&backupdateistructure='.urlencode($dump['backupdatei_structure']);
$aus2=$page_parameter=$debugausgabe=$a='';
$dump['tabellen_gesamt']=0;
if($cancel==1) {
//Abbruch durch Benutzer
//Wildcard erzeugen
$wildcard=substr($dump['backupdatei'],0,strlen($databases['db_actual'])+17);
$wildcard2=$dump['backupdatei_structure'];
echo $pageheader.'<h1>Abruch durch Benutzer</h1>Der Backupvorgang wurde unterbrochen.<br><br>';
echo 'Folgende angefangene Backupdateien wurden gelöscht:<br><br>';
echo $wildcard.'*<br>'.$wildcard2;
echo '</div></body></html>';
exit;
}
FillMultiDBArrays();
if($databases['db_actual_tableselected']!='' && $config['multi_dump']==0)
{
$dump['tblArray']=explode('|',$databases['db_actual_tableselected']);
$tbl_sel=true;
$msgTbl=sprintf($lang['nr_tables_selected'],count($dump['tblArray']));
}
//Zeitzähler aktivieren
$dump['max_zeit']=intval($config['max_execution_time']*$config['time_buffer']);
$dump['startzeit']=time();
$xtime=(isset($_POST['xtime'])) ? $_POST['xtime']:time();
$dump['countdata']= (!empty($_POST['countdata'])) ? $_POST['countdata'] : 0;
$dump['aufruf']= (!empty($_POST['aufruf'])) ? $_POST['aufruf'] : 0;
MSD_mysql_connect();
$flipped = array_flip($databases['Name']);
$dump['tables']=Array();
$dump['records']=Array();
$dump['totalrecords']=0;
for($ii=0;$ii<count($databases['multi']);$ii++) {
$dump['dbindex']=$flipped[$databases['multi'][$ii]];
$tabellen = mysql_query('SHOW TABLE STATUS FROM `'.$databases['Name'][$dump['dbindex']].'`',$config['dbconnection']);
$num_tables = @mysql_num_rows($tabellen);
// Array mit den gewünschten Tabellen zusammenstellen... wenn Präfix angegeben, werden die anderen einfach nicht übernommen
if ($num_tables>0)
{
for ($i=0;$i<$num_tables;$i++)
{
$row=mysql_fetch_array($tabellen);
if($config['optimize_tables_beforedump']==1 && $dump['table_offset']==-1) {
//Tabelle optimieren
mysql_query('OPTIMIZE `'.$row['Name'].'`');
}
if (isset($tbl_sel))
{
if (in_array($row['Name'],$dump['tblArray'])) {
$dump['tables'][]=$databases['Name'][$dump['dbindex']].'|'.$row['Name'];
$dump['records'][]=$databases['Name'][$dump['dbindex']].'|'.$row['Rows'];
$dump['totalrecords']+=$row['Rows'];
}
}
elseif ($databases['praefix'][$dump['dbindex']]!='' && !isset($tbl_sel))
{
if (substr($row['Name'],0,strlen($databases['praefix'][$dump['dbindex']]))==$databases['praefix'][$dump['dbindex']]) {
$dump['tables'][]=$databases['Name'][$dump['dbindex']].'|'.$row['Name'];
$dump['records'][]=$databases['Name'][$dump['dbindex']].'|'.$row['Rows'];
$dump['totalrecords']+=$row['Rows'];
}
}
else
{
$dump['tables'][]=$databases['Name'][$dump['dbindex']].'|'.$row['Name'];
$dump['records'][]=$databases['Name'][$dump['dbindex']].'|'.$row['Rows'];
$dump['totalrecords']+=$row['Rows'];
}
}
}
//else $aus_error[]= '<p class="error">'.$lang['error'].': '.sprintf($lang['dump_notables'],$databases['Name'][$dump['dbindex']]).'</p>';
}
$num_tables=count($dump['tables']);
if($config['optimize_tables_beforedump']==1 && $dump['table_offset']==-1) $out.=sprintf($lang['nr_tables_optimized'],$num_tables).'<br>';
$dump['data']='';
$dump['structure']='';
$dump['dbindex']=(isset($_POST['dbindex'])) ? $_POST['dbindex'] :$flipped[$databases['multi'][0]];
//Ausgaben-Header bauen
$aus_header[]= PicCache($relativ_path);
$aus_header[]= headline('Backup: '.(($config['multi_dump']==1) ? 'Multidump ('.count($databases['multi']).' '.$lang['dbs'].')' : $lang['db'].': '.$databases['Name'][$dump['dbindex']].(($databases['praefix'][$dump['dbindex']]!='') ?' ('.$lang['withpraefix'].' <span>'.$databases['praefix'][$dump['dbindex']].'</span>)' : '')));
if(isset($aus_error) && count($aus_error)>0) $aus_header=array_merge($aus_header,$aus_error);
if(count($dump['tables'])==0) {
//keine Tabellen gefunden
$aus[]='<br><br><p class="error">'.$lang['error'].': '.sprintf($lang['dump_notables'],$databases['Name'][$dump['dbindex']]).'</p>';
if($config['multi_dump']==1)
{
}
}
else
{
if ($dump['table_offset']==-1)
{
// File anlegen, da Erstaufruf
new_file();
$dump['table_offset']=0; // jetzt kanns losgehen
flush();
}
else
{
// SQL-Befehle ermitteln
$dump['restzeilen']=$dump['anzahl_zeilen'];
WHILE ( ($dump['table_offset'] < $num_tables) && ($dump['restzeilen']>0) )
{
$table = substr($dump['tables'][$dump['table_offset']],strpos($dump['tables'][$dump['table_offset']],'|')+1);
$adbname=substr($dump['tables'][$dump['table_offset']],0,strpos($dump['tables'][$dump['table_offset']],'|'));
if($databases['Name'][$dump['dbindex']]!=$adbname) {
//neue Datenbank
WriteLog('Dump \''.$dump['backupdatei'].'\' finished.');
ExecuteCommand('a');
if($config['multi_part']==1)
{
$out.=$lang['finished'].'<br><div class="backupmsg">';
$dateistamm=substr($dump['backupdatei'],0,strrpos($dump['backupdatei'],'part_')).'part_';
$dateiendung=($config['compression']==1) ? '.sql.gz':'.sql';
for ($i=1;$i<($dump['part']-$dump['part_offset']);$i++)
{
$mpdatei=$dateistamm.$i.$dateiendung;
clearstatcache();
$sz=byte_output(@filesize($config['paths']['backup'].$mpdatei));
$out.= $lang['file'].' <a href="'.$config['paths']['backup'].$mpdatei.'" class="smallblack">'.$mpdatei.' ('.$sz.')</a> '.$lang['dump_successful'].'<br>';
}
}
else
{
clearstatcache();
$out.=$lang['finished'].'<br><div class="backupmsg"><a href="'.$config['paths']['backup'].$dump['backupdatei'].'" class="smallblack">'.$dump['backupdatei'].' ('.byte_output(filesize($config['paths']['backup'].$dump['backupdatei'])).')</a><br>';
}
if ($config['send_mail']==1) DoEmail();
if($config['ftp_transfer']==1) DoFTP();
if(isset($flipped[$adbname])) $dump['dbindex']=$flipped[$adbname];
$dump['part_offset']=$dump['part']-1;
$out.='</div><br>';
new_file();
}
$aktuelle_tabelle=$dump['table_offset'];
if ($dump['zeilen_offset']==0)
{
if($config['minspeed']>0)
{
$dump['anzahl_zeilen']=$config['minspeed'];
$dump['restzeilen']=$config['minspeed'];
}
$dump['data'] .= get_def($adbname,$table);
$dump['structure'].=get_def($adbname,$table,0);
}
WriteToDumpFile();
get_content($adbname,$table);
$dump['restzeilen']--;
if($config['memory_limit']>0 && strlen($dump['data'])>$config['memory_limit']) WriteToDumpFile();
}
}
/////////////////////////////////
// Anzeige - Fortschritt
/////////////////////////////////
if($config['multi_dump']==1)
{
$mudbs='';
for($i=0;$i<count($databases['multi']);$i++)
{
$a.=$databases['multi'][$i];
if($databases['Name'][$dump['dbindex']]==$databases['multi'][$i])
$mudbs.= '<span class="error">'.$databases['multi'][$i].'&nbsp;&nbsp;</span> ';
else
$mudbs.= '<span class="success">'.$databases['multi'][$i].'&nbsp;&nbsp;</span> ';
}
}
if($config['multi_part']==1) $aus[]= '<h5>Multipart-Backup: '.$config['multipartgroesse1'].' '.$mp2[$config['multipartgroesse2']].'</h5>';
$aus[]= '<h4>'.$lang['dump_headline'].'</h4>';
if($dump['kommentar']) $aus[]= $lang['comment'].': <span><em>'.$dump['kommentar'].'</em></span><br>';
$aus[]=($config['multi_dump']==1) ? $lang['db'].': '.$mudbs : $lang['db'].': <strong>'.$databases['Name'][$dump['dbindex']].'</strong>';
$aus[]=(($databases['praefix'][$dump['dbindex']]!='') ?' ('.$lang['withpraefix'].' <span>'.$databases['praefix'][$dump['dbindex']].'</span>)' : '').'<br>';
if(isset($tbl_sel)) $aus[]= $msgTbl.'<br><br>';
if($config['multi_part']==1)
{
$aus[]= '<span>Multipart-Backup File <strong>'.($dump['part']-$dump['part_offset']-1).'</strong></span><br>';
$aus2=', '.($dump['part']-1).' files';
}
$aus[]= $lang['dump_filename'].'<b>'.$dump['backupdatei'].'</b>';
$aus[]= '<br>'.$lang['filesize'].': <b>'.byte_output($dump['filesize']).'</b><br><br>'.$lang['gzip_compression'].' <b>';
$aus[]= ($config['compression']==1) ? $lang['activated'] : $lang['not_activated'];
$aus[]= '</b>.<br>';
$table = @substr($dump['tables'][$dump['table_offset']],strpos($dump['tables'][$dump['table_offset']],'|')+1);
$adbname=@substr($dump['tables'][$dump['table_offset']],0,strpos($dump['tables'][$dump['table_offset']],'|'));
$sql='SELECT COUNT(*) AS anzahl FROM `'.$table.'`';
$res=mysql_query($sql);
if ($res)
{
$row=mysql_fetch_object($res);
$dump['zeilen_total']=intval($row->anzahl);
if ($dump['zeilen_total']>0)
{
$fortschritt=intval((100*$dump['zeilen_offset'])/$dump['zeilen_total']);
// Nachfolgender Fall kann eigentlich nicht eintreten
// if ($dump['anzahl_zeilen']>=$dump['zeilen_total']) $fortschritt=100;
}
else $fortschritt=100;
$aus[]= $lang['saving_table'].'<b>'.($dump['table_offset']+1).'</b> '.$lang['of'].'<b> '.sizeof($dump['tables']).'</b><br>'
.$lang['actual_table'].': <b>'.$table.'</b><br><br>'
.$lang['progress_table'].':<br>';
/*
$aus[]='<hr>';
$aus[]=draw_progressbar('400','30',$config['files']['iconpath'].'progressbar_dump.gif',$dump['zeilen_offset'],$dump['zeilen_total']);
$aus[]='<br>Fortschritt: $fortschritt<br><br><hr>';
*/
$aus[]= '<table border="0" width="380"><tr>'
.'<td width="'.($fortschritt*3).'"><img src="'.$config['files']['iconpath'].'progressbar_dump.gif" alt="" width="'.($fortschritt*3).'" height="16" border="0"></td>'
.'<td width="'.((100-$fortschritt)*3).'">&nbsp;</td>'
.'<td width="80" align="right">'.($fortschritt).'%</td>';
if ($dump['anzahl_zeilen']+$dump['zeilen_offset']>=$dump['zeilen_total'])
{
$eintrag=$dump['zeilen_offset']+1;
$zeilen_gesamt=$dump['zeilen_total'];
if ($zeilen_gesamt==0) $eintrag=0;
}
else
{
$zeilen_gesamt=$dump['zeilen_offset']+$dump['anzahl_zeilen'];
$eintrag=$dump['zeilen_offset']+1;
}
$aus[]= '</tr><tr>'
.'<td colspan="3">'.$lang['entry'].' <b>'.number_format($eintrag,0,',','.').'</b> '.$lang['upto'].' <b>'
.number_format(($zeilen_gesamt),0,',','.').'</b> '.$lang['of'].' <b>'
.number_format($dump['zeilen_total'],0,',','.').'</b></td></tr></table>';
$dump['tabellen_gesamt']=(isset($dump['tables'])) ? count($dump['tables']) : 0;
$noch_zu_speichern=$dump['totalrecords']-$dump['countdata'];
$prozent= ($dump['totalrecords']>0) ? round(((100*$noch_zu_speichern)/$dump['totalrecords']),0) : 100;
if ($noch_zu_speichern==0 || $prozent>100) $prozent=100;
$aus[]= '<br>'.$lang['progress_over_all'].':'
.'<table border="0" width="550" cellpadding="0" cellspacing="0"><tr>'
.'<td width="'.(5*(100-$prozent)).'"><img src="'.$config['files']['iconpath'].'progressbar_dump.gif" alt="" width="'.(5*(100-$prozent)).'" height="16" border="0"></td>'
.'<td width="'.($prozent*5).'" align="center"></td>'
.'<td width="50">'.(100-$prozent).'%</td></tr></table>';
//Speed-Anzeige
$fw=($config['maxspeed']==$config['minspeed']) ? 300 : round(($dump['anzahl_zeilen']-$config['minspeed'])/($config['maxspeed']-$config['minspeed'])*300,0);
if($fw>300)$fw=300;
$aus[]= '<br><table border="0" cellpadding="0" cellspacing="0"><tr nowrap>';
$aus[]= '<td class="nomargin" width="60" valign="top" align="center" style="font-size:10px;" >';
$aus[]= '<strong>Speed</strong><br>'.$dump['anzahl_zeilen'].'</td><td class="nomargin" width="300">';
$aus[]= '<table border="0" width="100%" cellpadding="0" cellspacing="0"><tr nowrap>';
$aus[]= '<td class="nomargin" align="left" class="small" width="300" nowrap><img src="'.$config['files']['iconpath'].'progressbar_speed.gif" alt="" width="'.$fw.'" height="14" border="0" vspace="0" hspace="0">';
$aus[]= '</td></tr></table><table border="0" width="100%" cellpadding="0" cellspacing="0"><tr nowrap>';
$aus[]= '<td class="nomargin" align="left" nowrap style="font-size:10px;" >'.$config['minspeed'].'</td>';
$aus[]= '<td class="nomargin" nowrap style="font-size:10px;text-align:right;" >'.$config['maxspeed'].'</td>';
$aus[]= '</tr></table></td></tr></table>';
//Status-Text
$aus[]= '<p class="small">'.zeit_format(time()-$xtime).', '.$dump['aufruf'].' pages'.$aus2;
$aus[]= ($dump['errors']>0) ? ', <span style="color:red;">'.$dump['errors'].' errors</span>' : '';
$aus[]= '</p>';
$aus[]= '<div style="position:absolute;width:600px;height:90px;overflow:auto;"><span class="smallgrey">'.$out.'</span></div></div>';
}
//////////////////////////////////////
// Ende Anzeige
//////////////////////////////////////
WriteToDumpFile();
flush();
if(!isset($summe_eintraege)) $summe_eintraege=0;
if ($dump['table_offset']<=$dump['tabellen_gesamt'])
{
$dauer=time()-($xtime+$dump['verbraucht']);
$dump['verbraucht']+=$dauer;
$summe_eintraege+=$dump['anzahl_zeilen'];
//Zeitanpassung
if($config['direct_connection']==1) {
if ($dauer<$dump['max_zeit']) $dump['anzahl_zeilen']=$dump['anzahl_zeilen']*$config['tuning_add'];
else $dump['anzahl_zeilen']=$dump['anzahl_zeilen']*$config['tuning_sub'];
$dump['anzahl_zeilen']=round($dump['anzahl_zeilen'],0);
if($config['minspeed']>0) {if ($dump['anzahl_zeilen']<$config['minspeed']) $dump['anzahl_zeilen']=$config['minspeed'];}
if($config['maxspeed']>0) {if($dump['anzahl_zeilen']>$config['maxspeed']) $dump['anzahl_zeilen']=$config['maxspeed'];}
}
$dump['aufruf']++;
}
else
{
//Backup fertig
$dump['data']="\n".$mysql_commentstring.' EOB - End of backup\n\n\n';
WriteToDumpFile();
ExecuteCommand('a');
chmod($config['paths']['backup'].$dump['backupdatei'],0755);
if($config['multi_part']==1) {
$out.='<br><div class="backupmsg">';
$dateistamm=substr($dump['backupdatei'],0,strrpos($dump['backupdatei'],'part_')).'part_';
$dateiendung=($config['compression']==1) ? '.sql.gz':'.sql';
clearstatcache();
for ($i=1;$i<($dump['part']-$dump['part_offset']);$i++)
{
$mpdatei=$dateistamm.$i.$dateiendung;
$sz=byte_output(@filesize($config['paths']['backup'].$mpdatei));
$out.= $lang['file'].' <a href="'.$config['paths']['backup'].$mpdatei.'" class="smallblack">'.$mpdatei.' ('.$sz.')</a> '.$lang['dump_successful'].'<br>';
}
}
else $out.='<div class="backupmsg">'.$lang['file'].
' <a href="'.$config['paths']['backup'].$dump['backupdatei'].'" class="smallblack">'.$dump['backupdatei'].' ('.byte_output(filesize($config['paths']['backup'].$dump['backupdatei'])).')'
.'</a>'.$lang['dump_successful'].'<br>';
$backup_ready=1;
$xtime=time()-$xtime;
$aus=Array();
$aus[]= '<br>';
if($config['multi_dump']==1) {
WriteLog('Dump \''.$dump['backupdatei'].'\' finished.');
WriteLog('Multidump: '.count($databases['multi']).' Databases in '.zeit_format($xtime).'.');
} else WriteLog('Dump \''.$dump['backupdatei'].'\' finished in '.zeit_format($xtime).'.');
if ($config['send_mail']==1) DoEmail();
if($config['ftp_transfer']==1) DoFTP();
@unlink($config['paths']['log'].'out.tmp');
$out.='</div>';
$aus[]= '<strong>'.$lang['done'].'</strong><br>';
if($dump['errors']>0) $aus[]=sprintf($lang['dump_errors'],$dump['errors']);
if($config['multi_dump']==1) $aus[]= sprintf($lang['multidump'],count($databases['multi'])).'<br>';
$aus[]= '<br>'.sprintf($lang['dump_endergebnis'],$num_tables,number_format($dump['countdata'],0,',','.')).'<span class="small">'.$out.'</span><br>'
.'<p class="small">'.zeit_format($xtime).', '.$dump['aufruf'].' pages'.$aus2.'</p>'
.str_repeat('&nbsp;',60);
$aus[]= '<br><input class="Formbutton" type="button" value="'.$lang['back_to_control'].'" onclick="self.location.href=\''.$relativ_path.'filemanagement.php\'"></a>';
$aus[]= '&nbsp;&nbsp;&nbsp;<input class="Formbutton" type="button" value="'.$lang['back_to_minisql'].'" onclick="self.location.href=\''.$relativ_path.'sql.php\'"></a>';
$aus[]= '&nbsp;&nbsp;&nbsp;<input class="Formbutton" type="button" value="'.$lang['back_to_overview'].'" onclick="self.location.href=\''.$relativ_path.'main.php?action=db&dbid='.$dump['dbindex'].'#dbid\'"></a><br><br>';
$DumpFertig=1;
}
}
//=====================================================================
//================= Anzeige ===========================================
//=====================================================================
//Seite basteln
$config_array=(isset($config)) ? '<strong>CONFIG</strong><pre>'.@print_r($config,true).'</pre>': '';
$database_array=(isset($database)) ? '<strong>DATABASE</strong><pre>'.@print_r($database,true).'</pre>': '';
$dump_array=(isset($dump)) ? '<strong>DUMP</strong><pre>'.@print_r($dump,true).'</pre>': '';
$aus=array_merge($aus_header,$aus);
$dump['xtime']=$xtime;
if ($DumpFertig!=1) $page_parameter=get_page_parameter($dump);
//DEBUGGER
$manuell=0;
$pagefooter=($DumpFertig==1) ? '<p align="center" class="small"><a class="small" href="http://www.daniel-schlichtholz.de" target="_blank">Daniel Schlichtholz & Steffen Kamper</a> - Infoboard: <a class="small" href="'.$config['homepage'].'" target="_blank">'.$config['homepage'].'</a></p>' : '';
$pagefooter.='</div></BODY></HTML>';
$js_aufruf_automatisch=$page_parameter.'<script language="javascript">document.dump.submit();</script>';
$js_aufruf_manuell='<input type="Button" value="weitermachen" onclick="document.dump.submit();">';
$selbstaufruf=($page_parameter=='') ? '' : (($manuell==1) ? $js_aufruf_manuell : $js_aufruf_automatisch);
$complete_page=$pageheader.implode("\n",$aus).$debugausgabe.$selbstaufruf.$pagefooter;
echo $complete_page;
?>

470
mysqldumper/filemanagement.php Normale Datei
Datei anzeigen

@ -0,0 +1,470 @@
<?php
include('./inc/header.php');
include_once('./language/'.$config['language'].'/lang.php');
include_once('./language/'.$config['language'].'/lang_filemanagement.php');
include_once('./language/'.$config['language'].'/lang_config_overview.php');
include('./inc/functions_files.php');
echo MSDHeader();
$dirs=Array("","./","./inc/","./msd_cron/","./language/","./work/config/");
if($config['auto_delete']==1)$msg=AutoDelete();
if (file_exists("work/log/dump.html")) @unlink("work/log/dump.html");
if (file_exists($config['paths']['log']."out.tmp")) @unlink($config['paths']['log']."out.tmp");
if (file_exists($config['paths']['log']."out.html")) @unlink($config['paths']['log']."out.html");
//0=Datenbank 1=Struktur
$action=(isset($_GET['action'])) ? $_GET['action'] : "files";
$kind=(isset($_GET['kind'])) ? $_GET['kind'] : 0;
$expand=(isset($_GET['expand'])) ? $_GET['expand'] : -1;
$selectfile=(isset($_POST['selectfile'])) ? $_POST['selectfile'] : "";
$destfile=(isset($_POST['destfile'])) ? $_POST['destfile'] : "";
$compressed=(isset($_POST['compressed'])) ? $_POST['compressed'] : "";
$toolboxstring="";
if($kind==0) $fpath=$config['paths']['backup']; else $fpath=$config['paths']['structure'];
$dbactiv=(isset($_GET['dbactiv'])) ? $_GET['dbactiv'] : $databases['db_actual'];
$msg="";
if($config['multi_dump']==1) {
$databases['multi']=Array();
if($databases['multisetting']==""){
$databases['multi'][0]=$databases['db_actual'];
} else {
$databases['multi']=explode(";",$databases['multisetting']);
$toolboxstring="Datenbanken\n------------------\n\n".str_replace(";","\n",$databases['multisetting']);
}
} else $databases['multi'][0]=$databases['db_actual'];
//--------------------------------------------------------
//*** Abfrage ob Dump nach Tabellenaufruf ***
//--------------------------------------------------------
if (isset($_POST['dump_tbl']))
{
@TestWorkDir();
$databases['db_actual_tableselected']=substr($_POST['tbl_array'],0,strlen($_POST['tbl_array'])-1);
WriteParams(1,$config,$databases);
@unlink($config['paths']['log']."out.tmp");
$dk=(isset($_POST['dumpKommentar'])) ? ((get_magic_quotes_gpc()) ? stripslashes($_POST['dumpKommentar']) : $_POST['dumpKommentar']) : "";
$dump['fileoperations']=0;
echo '<script language="JavaScript">parent.MySQL_Dumper_content.location.href="dump.php?comment='.urlencode($dk).'";</script>';
exit;
}
//--------------------------------------------------------
//*** Abfrage ob Dump ***
//--------------------------------------------------------
if (isset($_POST['dump']))
{
$dk=(isset($_POST['dumpKommentar'])) ? ((get_magic_quotes_gpc()) ? stripslashes($_POST['dumpKommentar']) : $_POST['dumpKommentar']) : "";
if(isset($_POST['tblfrage']) && $_POST['tblfrage']==1) {
//Tabellenabfrage
$tblfrage_refer="dump";
include ("inc/tabellenabfrage.php");
exit;
} else {
@TestWorkDir();
$databases['db_actual_tableselected']="";
WriteParams(1,$config,$databases);
$dump['fileoperations']=0;
echo '<script language="JavaScript">parent.MySQL_Dumper_content.location.href="dump.php?comment='.($_POST['dumpKommentar']).'";</script>';
}
}
//--------------------------------------------------------
//*** Abfrage ob Restore nach Tabellenaufruf ***
//--------------------------------------------------------
if (isset($_POST['restore_tbl']))
{
$databases['db_actual_tableselected']=substr($_POST['tbl_array'],0,strlen($_POST['tbl_array'])-1);
WriteParams(1,$config,$databases);
echo '<script language="JavaScript">parent.MySQL_Dumper_content.location.href="frameset.php?action=restore&amp;filename='.$_POST['filename'].'&amp;kind='.$kind.'";</script>';
exit;
}
//--------------------------------------------------------
//*** Abfrage ob Restore ***
//--------------------------------------------------------
if (isset($_POST['restore']))
{
if (isset($_POST['file']))
{
if(file_exists($config['paths']['log']."restore.tmp")) @unlink($config['paths']['log']."restore.tmp");
if(isset($_POST['tblfrage']) && $_POST['tblfrage']==1) {
//Tabellenabfrage
$tblfrage_refer="restore";
$filename=urldecode($_POST['file'][0]);
include ("inc/tabellenabfrage.php");
exit;
} else {
$databases['db_actual_tableselected']="";
WriteParams(1,$config,$databases);
echo '<script language="JavaScript">parent.MySQL_Dumper_content.location.href="restore.php?filename='.$_POST['file'][0].'&amp;kind='.$kind.'";</script>';
}
}
else
$msg.= '<p class="error">'.$lang['fm_nofile'].'</p>'.br();
}
//--------------------------------------------------------
//*** Abfrage ob Delete ***
//--------------------------------------------------------
if (isset($_POST['delete']) )
{
$msg="";
if (isset($_POST['file']))
{
$file=$_POST['file'];
//hier muss die Abfrage checkbox/radiobox rein
if($_POST['multi']==1) {
$delfiles=Array();
$msg.= '<p>';
for($i=0;$i<count($_POST['file']);$i++)
{
if($_POST['multipart'][$i]==0) {
$delfiles[]=$_POST['file'][$i];
} else {
$delfiles[]=substr($_POST['file'][$i],0,strpos($_POST['file'][$i],"_part_"))."*.*";
}
}
for($i=0;$i<count($delfiles);$i++) {
$del=DeleteFilesM($fpath,$delfiles[$i]);
if($del==0){
$msg.= '<p class="error">'.$lang['fm_delete1'].$fpath.$delfiles[$i].$lang['fm_delete3'].'</p>';
} else {
for ($j=0; $j<count($del); $j++) {
$msg.=$lang['fm_delete1'].$del[$j].$lang['fm_delete2'].'<br>';
WriteLog("deleted '$del[$j]'.");
}
}
}
$msg.='</p>';
} else {
if($_POST['multipart'][0]==0) {
$delfiles[]=$_POST['file'][0];
} else {
$delfiles[]=substr($_POST['file'][0],0,strpos($_POST['file'][0],"_part_"))."*.*";
}
$del=DeleteFilesM($fpath,$delfiles[0]);
if($del==0){
$msg.= '<p class="error">'.$lang['fm_delete1'].$fpath.$_POST['file'][0].$lang['fm_delete3'].'</p>';
} else {
for ($j=0; $j<count($del); $j++) {
$msg.=$lang['fm_delete1'].$del[$j].$lang['fm_delete2'].'<br>';
WriteLog("deleted '$del[$j]'.");
}
}
}
}
else
$msg.= '<p class="error">'.$lang['fm_nofile'].'</p>'.br();
}
if (isset($_POST['deleteauto']) ) $msg.='<p class="small">'.AutoDelete().'</p>';
if (isset($_POST['deleteall']) )
{
//hier kommt alldelete rein
$del=DeleteFilesM($fpath,"*.sql");
if($del==0){
//$msg.="Fehler beim l&ouml;schen!";
}else{
for ($i=0; $i<sizeof($del); $i++) {
$msg.='<p class="small">File \''.$del[$i].'\' gel&ouml;scht<br>';
WriteLog("deleted '$del[$i]'.");
}
$msg.='</p>';
}
$del=DeleteFilesM($fpath,"*.gz");
}
if (isset($_POST['deleteallfilter']) )
{
//hier kommt alldelete rein
$del=DeleteFilesM($fpath,$databases['db_actual']."*");
if($del==0){
//$msg.="Fehler beim l&ouml;schen!";
}else{
for ($i=0; $i<sizeof($del); $i++) {
$msg.='<p class="small">File \''.$del[$i].'\' gel&ouml;scht<br>';
WriteLog("deleted '$del[$i]'.");
}
$msg.='</p>';
}
}
//////////////////////////////////
// Upload
///////////////////////////////////
if (isset($_POST['upload']))
{
$error=false;
if (!isset($_FILES['upfile']['name'])) echo '<span class="error">'.$lang['fm_uploadfilerequest'].'</span><br><br>';
else
{
if (!file_exists($fpath.$_FILES['upfile']['name']))
{
// Extension ermitteln -strrpos f&auml;ngt hinten an und ermittelt somit den letzten Punkt
$endung=strrchr($_FILES['upfile']['name'],".");
$erlaubt=ARRAY(".gz",".sql");
if (!in_array($endung,$erlaubt))
{
$msg.= "<font color=\"red\">".$lang['fm_uploadnotallowed1']."<br>";
$msg.= $lang['fm_uploadnotallowed2']."</font>";
}
else
{
if (!$error)
{
if (move_uploaded_file($_FILES['upfile']['tmp_name'],$fpath.$_FILES['upfile']['name'])) @chmod($fpath.$upfile_name,0755);
else $error.="<font color=\"red\">".$lang['fm_uploadmoveerror']."<br>";
}
if ($error) $msg.= $error."<font color=\"red\">".$lang['fm_uploadfailed']."</font><br>";
}
}
else $msg.= "<font color=\"red\">".$lang['fm_uploadfileexists']."</font><br>";
}
}
//Seitenteile vordefinieren
$href='filemanagement.php?action='.$action.'&amp;kind='.$kind;
$tbl_abfrage='&nbsp;';
if($config['multi_dump']==0) $tbl_abfrage.='<input type="checkbox" class="checkbox" name="tblfrage" value="1">'.$lang['fm_selecttables'];
$dk= (isset($_POST['dumpKommentar'])) ? htmlentities($_POST['dumpKommentar']):'';
$tbl_abfrage.='&nbsp;&nbsp;&nbsp;'.$lang['fm_comment'].':&nbsp;&nbsp;<input type="text" class="text" name="dumpKommentar" value="'.$dk.'">'.br();
$autodel='<p class="autodel">'.$lang['autodelete'].": ";
$abue=($config['max_backup_files_each']==1)? $lang['max_backup_files_each2'] :$lang['max_backup_files_each1'];
$abue2=($config['del_files_after_days']>0) ? $lang['age_of_files']."=".$config['del_files_after_days'].", " : "";
$autodel.=($config['auto_delete']==0) ? $lang['not_activated'] : $lang['activated']." (".$abue2.$lang['number_of_files_form']."=".$config['max_backup_files']." -> ".$abue.")";
$autodel.='</p>'.br().br();
//Fallunterscheidung
switch ($action) {
case "dump":
//Variablen
if($config['multi_dump']==0) DBDetailInfo($databases['db_selected_index']);
$cext=($config['cron_extender']==0) ? "pl" : "cgi";
$actualUrl=substr($_SERVER['SCRIPT_NAME'],0,strrpos($_SERVER['SCRIPT_NAME'],"/")+1);
if(substr($actualUrl,-1)!="/") $actualUrl.="/";
if(substr($actualUrl,0,1)!="/") $actualUrl="/$actualUrl";
$refdir=(substr($config['cron_execution_path'],0,1)=="/") ? "" : $actualUrl;
$scriptdir=$config['cron_execution_path'].'crondump.'.$cext;
$sfile=$config['cron_execution_path']."perltest.$cext";
$simplefile=$config['cron_execution_path']."simpletest.$cext";
$scriptentry=Realpfad("./").$config['paths']['config'];
$cronabsolute=(substr($config['cron_execution_path'],0,1)=="/") ? $_SERVER['DOCUMENT_ROOT'].$scriptdir : Realpfad("./").$scriptdir;
$confabsolute=$config['cron_configurationfile'];
$scriptref="http://".$_SERVER['SERVER_NAME'].$refdir.$config['cron_execution_path'].'crondump.'.$cext."?config=".$confabsolute;
$cronref="perl ".$cronabsolute." config=".$confabsolute;
//Ausgabe
echo headline($lang['fm_dump_header']);
if(!is_writable($config['paths']['backup'])) die('<span class="error"><strong>ERROR !</strong><br>Backupdir is not writable</span>');
echo (isset($msg) && $msg!="")?"$msg<br>":"";
echo $autodel;
//Auswahl
echo '<div align="center">
<input type="button" value=" '.$lang['dump'].' PHP " class="Formbutton" onclick="document.getElementById(\'buperl\').style.display=\'none\';document.getElementById(\'buphp\').style.display=\'block\';">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="button" value=" '.$lang['dump'].' PERL " class="Formbutton" onclick="document.getElementById(\'buphp\').style.display=\'none\';document.getElementById(\'buperl\').style.display=\'block\';">
</div>';
echo '<div id="buphp">';
//Dumpsettings
echo '<h6>'.$lang['dump'].' (PHP)</h6>';
echo br(3).'<div><form name="fm" id="fm" method="post" action="'.$href.'">'.br();
echo '<input class="Formbutton" name="dump" type="submit" value="';
echo $lang['fm_startdump'].'">';
echo $tbl_abfrage;
echo '</form></div>';
echo '<h6>'.$lang['fm_dumpsettings'].' (PHP)</h6>';
echo ''.$lang['db'].': <strong>'.
(($config['multi_dump']==1) ?
'<span title="'.$toolboxstring.'">Multidump ('.count($databases['multi']).' '.$lang['dbs'].')</span></strong>'
:
$databases['db_actual'].'&nbsp;&nbsp;<span>('.$databases['Detailinfo']['tables']." Tables, ".$databases['Detailinfo']['records']." Records, ".byte_output($databases['Detailinfo']['size']).")</span>").'</strong>';
echo '&nbsp;&nbsp;&nbsp;'.$lang['praefix'].': <strong>'.(($config['multi_dump']==1) ? '-' : $databases['praefix'][$databases['db_selected_index']]).'</strong>';
echo '<br>'.$lang['gzip'].': <strong>'.(($config['compression']==1) ? $lang['activated'] : $lang['not_activated']).'</strong>';
echo '&nbsp;&nbsp;&nbsp;'.$lang['multi_part'].': <strong>'.(($config['multi_part']==1) ? $lang['yes'] : $lang['no']).'';
if($config['multi_part']==1) {
echo '&nbsp;&nbsp;&nbsp;</strong>'.$lang['multi_part_groesse'].': <strong>'.byte_output($config['multipart_groesse']);
}
echo '</strong><br>'.$lang['backup_format'].': <strong>';
$t='';
if($config['backup_complete_inserts']==1) $t.=$lang['inserts_complete']." / ";
if($config['backup_extended_inserts']==1) $t.=$lang['inserts_extended']." / ";
if($config['backup_ignore_inserts']==1) $t.=$lang['inserts_ignore']." / ";
if($config['backup_delayed_inserts']==1) $t.=$lang['inserts_delayed']." / ";
if($config['backup_lock_tables']==1 && $config['backup_delayed_inserts']==0) $t.=$lang['lock_tables']." / ";
$t=($t=="") ? $lang['normal'] : substr($t,0,strlen($t)-3);
if($config['backup_downgrade']==1) $t.='&nbsp;&nbsp;&nbsp;'.htmlspecialchars($lang['downgrade']);
echo $t.'</strong><br>';
if($config['send_mail']==1) {
$t=$config['email_recipient'].(($config['send_mail_dump']==1) ? $lang['withattach'] : $lang['withoutattach']);
}
echo ''.$lang['send_mail_form'].': <strong>'.(($config['send_mail']==1) ? $t : $lang['not_activated']);
echo '</strong>';
echo '<br>'.$lang['ftp_transfer'].': <strong>'.(($config['ftp_transfer']==1) ? $lang['activated'] : $lang['not_activated']);
if($config['ftp_transfer']==1) {
echo 'Host: '.$config['ftp_server'][$config['ftp_connectionindex']].' Port '.$config['ftp_port'][$config['ftp_connectionindex']].' User: '.$config['ftp_user'][$config['ftp_connectionindex']].' Dir: '.$config['ftp_dir'][$config['ftp_connectionindex']];
}
echo '</strong><div style="display:none"><img src="'.$config['files']['iconpath'].'progressbar_dump.gif" width="120" height="12" alt=""><br><img src="'.$config['files']['iconpath'].'progressbar_speed.gif" width="120" height="12" alt=""></div>';
echo '</div><div id="buperl" style="display:none;">';
//crondumpsettings
echo '<h6>'.$lang['dump'].' (PERL)</h6>';
echo '<p><input class="Formbutton" type="Button" name="DoCronscript" value="'.$lang['DoCronButton'].'" onclick="self.location.href=\''.$scriptref.'\'">&nbsp;&nbsp;';
echo '<input class="Formbutton" type="Button" name="DoPerlTest" value="'.$lang['DoPerlTest'].'" onclick="self.location.href=\''.$sfile.'\'">&nbsp;&nbsp;';
echo '<input class="Formbutton" type="Button" name="DoSimpleTest" value="'.$lang['DoSimpleTest'].'" onclick="self.location.href=\''.$simplefile.'\'"></p>';
//echo '<h6>'.$lang['fm_dumpsettings_cron'].' '.Help("","perl").'</h6>';
echo '<h6>'.$lang['fm_dumpsettings'].' (PERL)</h6>';
if($databases['db_actual_cronindex']==-3) {
$cron_dbname=$lang['multidumpall'];
$cron_dbpraefix = "";
} elseif($databases['db_actual_cronindex']==-2) {
$cron_dbname='Multidump ('.count($databases['multi']).' '.$lang['dbs'].')';
$cron_dbpraefix = "";
} else {
if($config['cron_samedb']==0) {
$cron_dbname=$databases['db_actual'];
$cron_dbpraefix = $databases['praefix'][$databases['db_selected_index']];
}else {
$cron_dbname=$databases['Name'][$databases['db_actual_cronindex']];
$cron_dbpraefix = $databases['db_actual_cronpraefix'];
}
}
echo '<p>'.$lang['db'].': <strong>'.$cron_dbname.'</strong>';
echo '&nbsp;&nbsp;&nbsp;'.$lang['praefix'].": $cron_dbpraefix";
echo '<br>'.$lang['gzip'].": <strong>".(($config['cron_compression']==1)?$lang['activated']:$lang['not_activated']);
echo '</strong>&nbsp;&nbsp;&nbsp;'.$lang['multi_part'].": <strong>".(($config['multi_part']==1)?$lang['yes']:$lang['no']);
if($config['multi_part']==1) {
echo '&nbsp;&nbsp;</strong>'.$lang['multi_part_groesse'].": <strong>".byte_output($config['multipart_groesse']);
}
echo '</strong><br>'.$lang['cron_printout'].': <strong>'.(($config['cron_printout']==1)?$lang['activated']:$lang['not_activated']).'</strong>';
if($config['cron_mail']==1) {
$t=$config['email_recipient'].(($config['cron_mail_dump']==1) ? $lang['withattach'] : $lang['withoutattach']);
}
echo '<br>'.$lang['send_mail_form'].": <strong>".(($config['cron_mail']==1)?$t:$lang['not_activated']).'</strong>';
echo '<br>'.$lang['ftp_transfer'].": <strong>".(($config['cron_ftp']==1)?$lang['activated']:$lang['not_activated']);
if($config['cron_ftp']==1) {
echo ' (Host: '.$config['ftp_server'][$config['ftp_connectionindex']].' Port '.$config['ftp_port'][$config['ftp_connectionindex']].' User: '.$config['ftp_user'][$config['ftp_connectionindex']].' Dir: '.$config['ftp_dir'][$config['ftp_connectionindex']].')<br>';
}
echo '</strong></p>';
// Einträge für Perl
echo '<p class="small">'.$lang['perloutput1'].':<br>&nbsp;&nbsp;&nbsp;&nbsp;<strong>'.$scriptentry.'</strong><br>';
echo $lang['perloutput2'].':<br>&nbsp;&nbsp;&nbsp;&nbsp;<strong>'.$scriptref.'</strong><br>';
echo $lang['perloutput3'].':<br>&nbsp;&nbsp;&nbsp;&nbsp;<strong>'.$cronref.'</strong></p>';
echo '</div>';
break;
case "restore":
echo headline($lang['fm_restore_header'].$databases['db_actual'].$lang['fm_restore_header2']);
echo (isset($msg) && $msg!="")?"$msg":"";
echo $autodel;
echo br(3).'<form name="fm" id="fm" method="post" action="'.$href.'">'.br();
echo '<div align="center">'.br();
echo '<input class="Formbutton" name="restore" type="submit" value="'.$lang['fm_restore'].'" onclick="if (!confirm(\''.$lang['fm_alertrestore1'].' `'.$databases['db_actual'].'` '.$lang['fm_alertrestore2'].' `\' + GetSelectedFilename() + \'` '.$lang['fm_alertrestore3'].'\')) return false;">';
echo FileList();
echo '</div></form>'.br();
break;
case "files":
$sysfedit=(isset($_POST['sysfedit'])) ? 1 : 0;
$sysfedit=(isset($_GET['sysfedit'])) ? $_GET['sysfedit'] : $sysfedit;
echo headline($lang['file_manage']);
echo (isset($msg) && $msg!="") ? $msg.'<br>' : '';
echo $autodel;
echo ''.br();
echo br(3).'<form name="fm" id="fm" method="post" action="'.$href.'">'.br();
echo br().'<input class="Formbutton" name="delete" type="submit" value="'.$lang['fm_delete'].'" onclick="if (!confirm(\''.$lang['fm_askdelete1'].'`\' + GetSelectedFilename() + \'`'.$lang['fm_askdelete2'].'\')) return false;">'.br();
echo br().'<input class="Formbutton" name="deleteauto" type="submit" value="'.$lang['fm_deleteauto'].'" onclick="if (!confirm(\''.$lang['fm_askdelete3'].'\')) return false;">'.br();
echo br().'<input class="Formbutton" name="deleteall" type="submit" value="'.$lang['fm_deleteall'].'" onclick="if (!confirm(\''.$lang['fm_askdelete4'].'\')) return false;">'.br();
echo br().'<input class="Formbutton" name="deleteallfilter" type="submit" value="'.$lang['fm_deleteallfilter'].$databases['db_actual'].$lang['fm_deleteallfilter2'].'" onclick="if (!confirm(\''.$lang['fm_askdelete5'].$databases['db_actual'].$lang['fm_askdelete5_2'].'\')) return false;">'.br();
echo FileList().'</form>'.br();
echo '<h6>'.$lang['fm_fileupload'].'</h6>'.br();
echo '<div align="left"><form action="'.$href.'" method="POST" enctype="multipart/form-data">'.br();
echo '<input type="file" name="upfile" class="Formbutton" size="60">'.br();
echo '<input type="submit" name="upload" value="'.$lang['fm_fileupload'].'" class="Formbutton">'.br();
echo '<br>'.$lang['max_upload_size'].': <strong>'.$config['upload_max_filesize'].'</strong>';
echo '<br>'.$lang['max_upload_size_info'];
echo '</form></div>'.br();
echo '<h6>Tools</h6><div align="left">';
echo '<input type="Button" onclick="document.location=\'filemanagement.php?action=convert\'" class="Formbutton" value="'.$lang['converter'].'">';
echo '</div>';
break;
case "convert":
// Konverter
echo headline($lang['converter']);
echo '<br><br><form action="filemanagement.php?action=convert" method="post">';
echo '<div align="center"><table class="border"><tr><th colspan="2">'.$lang['convert_title'].'</th></tr>';
echo '<tr><td>'.$lang['convert_file'].'</td><td>'.FilelisteCombo($config['paths']['backup'],$selectfile).'</td></tr>';
echo '<tr><td>'.$lang['convert_filename'].':</td><td><input type="text" name="destfile" size="50" value="'.$destfile.'"></td></tr>';
echo '<tr><td><input type="checkbox" name="compressed" value="1" '.(($compressed==1) ? "checked" : "").'>'.$lang['compressed'].'</td>';
echo '<td><input type="submit" name="startconvert" value=" '.$lang['convert_start'].' " class="Formbutton"></td></tr>';
echo '</table></div></form><br>';
if(isset($_POST['startconvert'])) {
$destfile.=($compressed==1) ? ".sql.gz" : ".sql";
echo $lang['converting']." $selectfile ==&gt; $destfile<br>";
if($selectfile!="" && file_exists($config['paths']['backup'].$selectfile) && strlen($destfile)>2) {
Converter($selectfile,$destfile,$compressed);
}
else echo $lang['convert_wrong_parameters'];
}
}
echo ''.br(3);
echo MSDFooter();
?>

BIN
mysqldumper/images/blank.gif Normale Datei

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 43 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 285 B

BIN
mysqldumper/images/logo.gif Normale Datei

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 5.1 KiB

BIN
mysqldumper/images/mozilla.png Normale Datei

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 299 B

BIN
mysqldumper/images/msie.png Normale Datei

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 314 B

BIN
mysqldumper/images/omniweb.png Normale Datei

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 355 B

BIN
mysqldumper/images/opera.png Normale Datei

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 284 B

BIN
mysqldumper/images/safari.png Normale Datei

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 324 B

Binäre Datei nicht angezeigt.

Nachher

Breite:  |  Höhe:  |  Größe: 8.0 KiB

15
mysqldumper/inc/footer.php Normale Datei
Datei anzeigen

@ -0,0 +1,15 @@
<?php
$config_array=(isset($config)) ? "<strong>CONFIG</strong><pre>".@print_r($config,true)."</pre>": "";
$database_array=(isset($database)) ? "<strong>DATABASE</strong><pre>".@print_r($database,true)."</pre>": "";
$dump_array=(isset($dump)) ? "<strong>DUMP</strong><pre>".@print_r($dump,true)."</pre>": "";
$restore_array=(isset($restore)) ? "<strong>RESTORE</strong><pre>".@print_r($restore,true)."</pre>" : "";
echo '<p align="center" class="small">'.$lang['authors'].':&nbsp;
<a class="small" href="http://www.daniel-schlichtholz.de" target="_blank">
Daniel Schlichtholz & Steffen Kamper</a> - Infoboard:
<a class="small" href="'.$config['homepage'].'" target="_blank">'.
$config['homepage'].'</a></p>';
echo '</div></body></html>';
?>

449
mysqldumper/inc/functions.php Normale Datei
Datei anzeigen

@ -0,0 +1,449 @@
<?php
include_once('./inc/functions_global.php');
include_once('./inc/mysql.php');
function Help($ToolTip,$Anker,$imgsize=12)
{
global $config;
if($Anker!=""){
return '<a href="language/'.$config['language'].'/help.php#'.$Anker.'" title="'.$ToolTip.'"><img src="'.$config['files']['iconpath'].'help16.gif" width="'.$imgsize.'" height="'.$imgsize.'" hspace="'.($imgsize/4).'" vspace="0" border="0" alt="Help"></a>';
} else {
return '<img src="'.$config['files']['iconpath'].'help16.gif" width="'.$imgsize.'" height="'.$imgsize.'" alt="Help" title="'.$ToolTip.'" border="0" hspace="'.($imgsize/4).'" vspace="0" >';
}
}
function DeleteFilesM($dir, $pattern = "*.*")
{
$deleted = false;
$pattern = str_replace(array("\*","\?"), array(".*","."), preg_quote($pattern));
if (substr($dir,-1) != "/") $dir.= "/";
if (is_dir($dir))
{ $d = opendir($dir);
while ($file = readdir($d))
{ if (is_file($dir.$file) && ereg("^".$pattern."$", $file))
{
if (unlink($dir.$file)) $deleted[] = $file;
}
}
closedir($d);
return $deleted;
}
else return 0;
}
function SetDefault($load_default=false)
{
global $config,$databases,$nl,$out,$lang;
//Arrays löschen
$i=0;
$old_db=$databases['db_actual'];
//unset($databases);
$databases['Name']=Array();
$old_lang=$config['language'];
if($load_default==true){
@unlink($config['files']['parameter']);
include("./config.php");
$config['language']=$old_lang;
include("./language/".$config['language']."/lang.php");
}
//DB-Liste holen
MSD_mysql_connect();
$databases['db_selected_index']=-1;
$create_statement='CREATE TABLE `mysqldumper_test_abcxyvfgh` (`test` varchar(200) default NULL, `id` bigint(20) unsigned NOT NULL auto_increment,'
.'PRIMARY KEY (`id`)) TYPE=MyISAM;';
$res = mysql_query("SHOW DATABASES ;",$config['dbconnection']);
$numrows=mysql_numrows($res);
$a=0;
for($i=0;$i<$numrows;$i++)
{
$row = mysql_fetch_row($res);
$found_db=$row[0];
// Testverbindung - Tabelle erstellen, nachschauen, ob es geklappt hat udn dann wieder löschen
$use=@mysql_select_db($found_db);
if ($use)
{
$res2=mysql_query("DROP TABLE IF EXISTS `mysqldumper_test_abcxyvfgh`",$config['dbconnection']);
$res2=mysql_query($create_statement,$config['dbconnection']);
if (!$res2===false)
{
$res2=mysql_query("DROP TABLE IF EXISTS `mysqldumper_test_abcxyvfgh`",$config['dbconnection']);
if($found_db==$old_db) $databases['db_selected_index']=$a;
$databases['Name'][$a]=$found_db;
$databases['praefix'][$a]="";
$databases['command_before_dump'][$a] = "";
$databases['command_after_dump'][$a] = "";
$out.=$lang['saving_db_form']." ".$found_db." ".$lang['added']."$nl";
$a++;
}
}
}
if($databases['db_selected_index']==-1) {
$databases['db_selected_index']=0;
$databases['db_actual']=$databases['Name'][$databases['db_selected_index']];
} else $databases['db_actual']=$databases['Name'][$databases['db_selected_index']];
$databases['db_actual_cronpraefix']="";
$databases['db_actual_cronindex']=$databases['db_selected_index'];
WriteParams(1,$config,$databases);
if($load_default==false) WriteLog("default settings loaded.");
return $out;
}
function WriteParams($as=0,$config,$databases)
{
global $config_dontsave;
$nl="\n";
FillMultiDBArrays();
//Parameter zusammensetzen
$config['multipart_groesse']=$config['multipartgroesse1']*(($config['multipartgroesse2']==1) ? 1024 : 1024*1024);
$param=$pars_all='<?php '.$nl;
if(!isset($config['email_maxsize'])) $config['email_maxsize']=$config['email_maxsize1']*(($config['email_maxsize2']==1) ? 1024 : 1024*1024);
if(!isset($config['cron_execution_path'])) $config['cron_execution_path']="msd_cron/";
if($as==0) $config['paths']['root']=addslashes(Realpfad("./"));
foreach($config as $var => $val){
if(is_array($val)) {
foreach($val as $var2 => $val2){
if ($config['magic_quotes_gpc']==0 || $as==1) {
$pars_all.='$config[\''.$var.'\']['.((is_int($var2)) ? $var2 : "'".$var2."'").'] = \''.addslashes($val2)."';$nl";
} else {
$pars_all.='$config[\''.$var.'\']['.((is_int($var2)) ? $var2 : "'".$var2."'").'] = \''.$val2."';$nl";
}
}
} else {
if ($config['magic_quotes_gpc']==0 || $as==1) {
if(!in_array($var,$config_dontsave)) $pars_all.='$config[\''.$var.'\'] = \''.addslashes($val)."';$nl";
} else {
if(!in_array($var,$config_dontsave)) $pars_all.='$config[\''.$var.'\'] = \''.$val."';$nl";
}
}
}
foreach($databases as $var => $val){
if(is_array($val)) {
foreach($val as $var2 => $val2){
if ($config['magic_quotes_gpc']==0 || $as==1) {
$pars_all.='$databases[\''.$var.'\']['.((is_int($var2)) ? $var2 : "'".$var2."'").'] = \''.addslashes($val2)."';$nl";
} else {
$pars_all.='$databases[\''.$var.'\']['.((is_int($var2)) ? $var2 : "'".$var2."'").'] = \''.$val2."';$nl";
}
}
} else {
if ($config['magic_quotes_gpc']==0 || $as==1) {
$pars_all.='$databases[\''.$var.'\'] = \''.addslashes($val)."';$nl";
} else {
$pars_all.='$databases[\''.$var.'\'] = \''.$val."';$nl";
}
}
}
$param.='?>'; $pars_all.='?>';
//Datei öffnen und schreiben
$ret=true;
@chmod($config['files']['parameter'], 0777);
if ($fp=fopen($config['files']['parameter'], "wb"))
{
if (!fwrite($fp,$pars_all)) $ret=false;
if (!fclose($fp)) $ret=false;
}
else $ret=false;
$ret=WriteCronScript($config,$databases);
return $ret;
}
function WriteCronScript($config,$databases)
{
global $nl, $cron_save_all_dbs,
$cron_db_array,$cron_dbpraefix_array,$cron_db_cbd_array,$cron_db_cad_array;
$tomask=Array('@'=>'\@','$'=>'\$','\\'=>'\\\\');
if(!isset($databases['praefix'][$databases['db_selected_index']])) $databases['praefix'][$databases['db_selected_index']]="";
if(!isset($databases['db_actual_cronindex'])) $databases['db_actual_cronindex']=$databases['db_selected_index'];
if(!isset($config['email_maxsize'])) $config['email_maxsize']=$config['email_maxsize1']*(($config['email_maxsize2']==1) ? 1024 : 1024*1024);
if($config['cron_samedb']==0) {
$cron_dbname=$databases['db_actual'];
$cron_dbpraefix = $databases['praefix'][$databases['db_selected_index']];
}else {
if($databases['db_actual_cronindex']>=0) {
$cron_dbname=$databases['Name'][$databases['db_actual_cronindex']];
$cron_dbpraefix = $databases['db_actual_cronpraefix'];
} else {
$cron_dbname=$databases['db_actual'];
$cron_dbpraefix = $databases['praefix'][$databases['db_selected_index']];
}
}
if($databases['db_actual_cronindex']<0) {
$csadb='$cron_save_all_dbs=1;'.$nl;
$csadb.='$cron_db_array=qw('.$cron_db_array.');'.$nl;
$csadb.='$cron_dbpraefix_array=qw('.$cron_dbpraefix_array.');'.$nl;
$csadb.='$dbpraefix="";'.$nl;
$csadb.='$command_beforedump_array="'.$cron_db_cbd_array.'";'.$nl;
$csadb.='$command_afterdump_array="'.$cron_db_cad_array.'";'.$nl;
} else {
$csadb='$cron_save_all_dbs=0;'.$nl;
$csadb.='$cron_db_array="";'.$nl;
$csadb.='$cron_dbpraefix_array="";'.$nl;
$csadb.='$dbpraefix="'.$cron_dbpraefix.'";'.$nl;
$csadb.='$command_beforedump_array="'.$databases['command_before_dump'][$databases['db_selected_index']].'";'.$nl;
$csadb.='$command_afterdump_array="'.$databases['command_after_dump'][$databases['db_selected_index']].'";'.$nl;
}
$r=str_replace("\\\\","/",$config['paths']['root']);
$r=str_replace("@","\@",$r);
$p1=$r.$config['paths']['backup'];
$p2=$r.$config['files']['perllog'].(($config['logcompression']==1) ? '.gz':'');
$p3=$r.$config['files']['perllogcomplete'].(($config['logcompression']==1) ? '.gz':'');
$cronscript="#Vars - written at ".date("Y-m-d").$nl;
$cronscript.='$dbhost="'.$config['dbhost'].'";'.$nl;
$cronscript.='$dbname="'.$cron_dbname.'";'.$nl;
$cronscript.='$dbuser="'.$config['dbuser'].'";'.$nl;
$cronscript.='$dbpass="'.$config['dbpass'].'";'.$nl;
$cronscript.=$csadb;
$cronscript.='$compression='.$config['cron_compression'].';'.$nl;
$cronscript.='$backup_path="'.$p1.'";'.$nl;
$cronscript.='$logdatei="'.$p2.'";'.$nl;
$cronscript.='$completelogdatei="'.$p3.'";'.$nl;
$cronscript.='$nl="\n";'.$nl;
$cronscript.='$cron_printout='.$config['cron_printout'].';'.$nl;
$cronscript.='$cronmail='.$config['cron_mail'].';'.$nl;
$cronscript.='$cronmail_dump='.$config['cron_mail_dump'].';'.$nl;
$cronscript.='$cronmailto="'.strtr($config['email_recipient'],$tomask).'";'.$nl;
$cronscript.='$cronmailfrom="'.strtr($config['email_sender'],$tomask).'";'.$nl;
$cronscript.='$cronftp='.$config['cron_ftp'].';'.$nl;
$cronscript.='$ftp_server="'.$config['ftp_server'][$config['ftp_connectionindex']].'";'.$nl;
$cronscript.='$ftp_port='.$config['ftp_port'][$config['ftp_connectionindex']].';'.$nl;
$cronscript.='$ftp_mode='.intval($config['ftp_mode']).';'.$nl;
$cronscript.='$ftp_user="'.$config['ftp_user'][$config['ftp_connectionindex']].'";'.$nl;
$cronscript.='$ftp_pass="'.strtr($config['ftp_pass'][$config['ftp_connectionindex']],$tomask).'";'.$nl;
$cronscript.='$ftp_dir="'.$config['ftp_dir'][$config['ftp_connectionindex']].'";'.$nl;
$cronscript.='$mp='.$config['multi_part'].';'.$nl;
$cronscript.='$multipart_groesse='.$config['multipart_groesse'].';'.$nl;
$cronscript.='$email_maxsize='.$config['email_maxsize'].';'.$nl;
$cronscript.='$auto_delete='.$config['auto_delete'].';'.$nl;
$cronscript.='$cron_del_files_after_days='.$config['del_files_after_days'].';'.$nl;
$cronscript.='$max_backup_files='.$config['max_backup_files'].';'.$nl;
$cronscript.='$max_backup_files_each='.$config['max_backup_files_each'].';'.$nl;
$cronscript.='$perlspeed='.$config['perlspeed'].';'.$nl;
$cronscript.='$optimize_tables_beforedump='.$config['optimize_tables_beforedump'].';'.$nl;
$cronscript.='$logcompression='.$config['logcompression'].';'.$nl;
$cronscript.='$log_maxsize='.$config['log_maxsize'].';'.$nl;
$cronscript.='$backup_complete_inserts='.$config['backup_complete_inserts'].';'.$nl;
$cronscript.='$backup_extended_inserts='.$config['backup_extended_inserts'].';'.$nl;
$cronscript.='$backup_delayed_inserts='.$config['backup_delayed_inserts'].';'.$nl;
$cronscript.='$backup_ignore_inserts='.$config['backup_ignore_inserts'].';'.$nl;
$cronscript.='$backup_lock_tables='.$config['backup_lock_tables'].';'.$nl;
$cronscript.='$complete_log='.$config['cron_completelog'].';'.$nl;
$cronscript.='$my_comment="";'.$nl;
$cronscript.='1;';
//Datei öffnen und schreiben
$ret=true;
$ext=($config['cron_extender']==0) ? "pl" : "cgi";
$sfile=$config['paths']['config'].$config['cron_configurationfile'];
@chmod("$sfile",0777);
if ($fp=fopen($sfile, "wb"))
{
if (!fwrite($fp,$cronscript)) $ret=false;
if (!fclose($fp)) $ret=false;
}
else $ret=false;
if(!file_exists($config['paths']['config']."mysqldumper.conf")) {
$sfile=$config['paths']['config']."mysqldumper.conf";
if ($fp=fopen($sfile, "wb"))
{
if (!fwrite($fp,$cronscript)) $ret=false;
if (!fclose($fp)) $ret=false;
//chmod("$sfile",0755);
}
else $ret=false;
}
return $ret;
}
function LogFileInfo($logcompression) {
global $config;
$l=Array();$sum=$s=$l['log_size']=$l['perllog_size']=$l['perllogcomplete_size']=$l['errorlog_size']=$l['log_totalsize']=0;
if($logcompression==1) {
$l['log']=$config['files']['log'].".gz";
$l['perllog']=$config['files']['perllog'].".gz";
$l['perllogcomplete']=$config['files']['perllogcomplete'].".gz";
$l['errorlog']=$config['paths']['log']."error.log.gz";
} else {
$l['log']=$config['files']['log'];
$l['perllog']=$config['files']['perllog'];
$l['perllogcomplete']=$config['files']['perllogcomplete'];
$l['errorlog']=$config['paths']['log']."error.log";
}
$l['log_size']+=@filesize($l['log']);$sum+=$l['log_size'];
$l['perllog_size']+=@filesize($l['perllog']);$sum+=$l['perllog_size'];
$l['perllogcomplete_size']+=@filesize($l['perllogcomplete']);$sum+=$l['perllogcomplete_size'];
$l['errorlog_size']+=@filesize($l['errorlog']);$sum+=$l['errorlog_size'];
$l['log_totalsize']+=$sum;
return $l;
}
function DeleteLog()
{
global $config;
//Datei öffnen und schreiben
$log=date('d.m.Y H:i:s')." Log created.\n";
if($config['logcompression']==1) {
$fp = @gzopen($config['files']['log'].'.gz', "wb");
@gzwrite ($fp,$log);
@gzclose ($fp);
@chmod($config['files']['log'].'.gz',0755);
} else {
$fp = @fopen($config['files']['log'], "wb");
@fwrite ($fp,$log);
@fclose ($fp);
@chmod($config['files']['log'],0755);
}
}
function SwitchLogfileFormat()
{
global $config;
$del=DeleteFilesM($config['paths']['log'],"*");
DeleteLog();
}
function CreateDirsFTP() {
global $config,$lang,$install_ftp_server,$install_ftp_port,$install_ftp_user_name,$install_ftp_user_pass,$install_ftp_path;
// Herstellen der Basis-Verbindung
echo '<hr>'.$lang['connect_to'].' `'.$install_ftp_server.'` Port '.$install_ftp_port.' ...<br>';
$conn_id = ftp_connect($install_ftp_server);
// Einloggen mit Benutzername und Kennwort
$login_result = ftp_login($conn_id, $install_ftp_user_name, $install_ftp_user_pass);
// Verbindung überprüfen
if ((!$conn_id) || (!$login_result)) {
echo $lang['ftp_notconnected'];
echo $lang['connwith']." $tinstall_ftp_server ".$lang['asuser']." $install_ftp_user_name ".$lang['notpossible'];
return 0;
} else {
if ($config['ftp_mode']==1) ftp_pasv($conn_id,true);
//Wechsel in betroffenes Verzeichnis
echo $lang['changedir'].' `'.$install_ftp_path.'` ...<br>';
ftp_chdir($conn_id,$install_ftp_path);
// Erstellen der Verzeichnisse
echo $lang['dircr1'].' ...<br>';
ftp_mkdir($conn_id,"work");
ftp_site($conn_id, "CHMOD 0777 work");
echo $lang['changedir'].' `work` ...<br>';
ftp_chdir($conn_id,"work");
echo $lang['indir'].' `'.ftp_pwd($conn_id).'`<br>';
echo $lang['dircr5'].' ...<br>';
ftp_mkdir($conn_id,"config");
ftp_site($conn_id, "CHMOD 0777 config");
echo $lang['dircr2'].' ...<br>';
ftp_mkdir($conn_id,"backup");
ftp_site($conn_id, "CHMOD 0777 backup");
echo $lang['dircr3'].' ...<br>';
ftp_mkdir($conn_id,"structure");
ftp_site($conn_id, "CHMOD 0777 structure");
echo $lang['dircr4'].' ...<br>';
ftp_mkdir($conn_id,"log");
ftp_site($conn_id, "CHMOD 0777 log");
// Schließen des FTP-Streams
ftp_quit($conn_id);
return 1;
}
}
function ftp_mkdirs($config,$dirname)
{
$dir=split("/", $dirname);
for ($i=0;$i<count($dir)-1;$i++)
{
$path.=$dir[$i]."/";
@ftp_mkdir($config['dbconnection'],$path);
}
if (@ftp_mkdir($config['dbconnection'],$dirname))
return 1;
}
function IsWritable($dir)
{
$testfile=$dir . "/.writetest";
if ($writable = @fopen ($testfile, 'w')) {
@fclose ($writable);
@unlink ($testfile);
}
return $writable;
}
function SearchDatabases($printout)
{
global $databases,$config,$lang;
if(!isset($config['dbconnection'])) MSD_mysql_connect();
if(isset($config['dbonly']) && $config['dbonly']!='') {
$success=@mysql_select_db($config['dbonly'],$config['dbconnection']);
if($success) {
$databases['db_actual']=$config['dbonly'];
$databases['Name'][0]=$config['dbonly'];
$databases['praefix'][0] = "";
$databases['command_before_dump'][0] = "";
$databases['command_after_dump'][0] = "";
$databases['db_selected_index']=0;
if($printout==1) echo "... ".$lang['found_db']." `".$config['dbonly']."`<br />";
} else echo '<div style="color:red;">'.$lang['found_no_db'].' `'.$config['dbonly']."` !</div>";
} else {
$db_list = @mysql_list_dbs($config['dbconnection']);
$i=0;
if($db_list && @mysql_num_rows($db_list)>0) {
$databases['db_selected_index'] = 0;
while ($row = @mysql_fetch_row($db_list))
{
// Test-Select um zu sehen, ob Berechtigungen existieren
if(mysql_query("SHOW TABLES FROM `".$row[0]."`",$config['dbconnection']))
{
$databases['Name'][$i]=$row[0];
$databases['praefix'][$i] = "";
$databases['command_before_dump'][$i] = "";
$databases['command_after_dump'][$i] = "";
if($printout==1) echo $lang['found_db'].' `'.$row[0].'`<br />';
}
}
$databases['db_actual']=$databases['Name'][0];
$databases['db_selected_index']=0;
} else {
if($printout==1) echo $lang['dbonlyneed'].'<br />';
}
}
}
?>

Datei anzeigen

@ -0,0 +1,476 @@
<?php
include_once('./inc/functions_global.php');
//Buffer für Multipart-Filesizeprüfung
$buffer=10*1024;
function new_file($last_groesse=0)
{
global $dump,$databases,$config,$out,$lang,$nl,$mysql_commentstring;
// Dateiname aus Datum und Uhrzeit bilden
if ($dump['part']-$dump['part_offset']==1) $dump['filename_stamp']=date("Y_m_d_H_i",time());
if ($config['multi_part']==1)
{
$dateiname=$databases['Name'][$dump['dbindex']].'_'.$dump['filename_stamp'].'_part_'.($dump['part']-$dump['part_offset']);
}
else $dateiname=$databases['Name'][$dump['dbindex']].'_'.date("Y_m_d_H_i",time());
$structurefilename=$databases['Name'][$dump['dbindex']].'_structure_file';
$endung= ($config['compression']) ? '.sql.gz' : '.sql';
$dump['backupdatei']=$dateiname.$endung;
$dump['backupdatei_structure']=$structurefilename.$endung;
if (file_exists($config['paths']['backup'].$dump['backupdatei'])) unlink($config['paths']['backup'].$dump['backupdatei']);
if($config['multi_part']==0 || ($config['multi_part']==1 && ($dump['part']-$dump['part_offset'])==1))
{
if (file_exists($config['paths']['structure'].$dump['backupdatei_structure'])) unlink($config['paths']['structure'].$dump['backupdatei_structure']);
}
$cur_time=date("Y-m-d H:i");
$statuszeile=GetStatusLine().$nl.$mysql_commentstring.' Dump by MySQLDumper '.MSD_VERSION.' ('.$config['homepage'].')'.$nl;
if ($dump['part']-$dump['part_offset']==1)
{
if($config['multi_part']==0)
{
if($config['multi_dump']==1) WriteLog('starting Multidump with '.count($databases['multi']).' Datenbases.');
WriteLog('Start Dump \''.$dump['backupdatei'].'\'');
}
else WriteLog('Start Multipart-Dump \''.$dateiname.'\'');
$out.='<strong>'.$lang['startdump'].'`'.$databases['Name'][$dump['dbindex']].'`</strong>'.(($databases['praefix'][$dump['dbindex']]!="") ?' ('.$lang['withpraefix'].' <span style="color:blue">'.$databases['praefix'][$dump['dbindex']].'</span>)' : '').'... ';
ExecuteCommand('b');
if($dump['part']==1)
{
$dump['table_offset']=0;
$dump['countdata']=0;
}
// Seitenerstaufruf -> Backupdatei anlegen
$dump['data']=$statuszeile.$mysql_commentstring.' Dump created at '.$cur_time.$nl.$nl;
$dump['structure']=$mysql_commentstring.' Status:0:0::'.$databases['Name'][$dump['dbindex']];
$dump['structure'].=":php:".MSD_VERSION.$nl;
$dump['structure'].=$mysql_commentstring.' Dump by MySQLDumper '.MSD_VERSION.' ('.$config['homepage'].')'.$nl;
$dump['structure'].=$mysql_commentstring.' Dump created on '.$cur_time.$nl.$mysql_commentstring.' This file only contains the structure of the database without data \n\n';
}
else
{
if($config['multi_part']!=0) {
WriteLog('Continue Multipart-Dump with File '.($dump['part']-$dump['part_offset']).' (last file was '.$last_groesse.' Bytes)');
$dump['data']=$statuszeile.$mysql_commentstring.' This is part '.($dump['part']-$dump['part_offset']).' of the backup.'.$nl.$nl.$dump['data'];
}
}
WriteToDumpFile();
$dump['part']++;
}
function GetStatusLine($kind="php")
{
/*AUFBAU der Statuszeile:
-- Status:tabellenzahl:datensätze:Multipart:Datenbankname:script:scriptversion:Kommentar:MySQLVersion:Backupflags:SQLBefore:SQLAfter:EXTINFO
Aufbau Backupflags (1 Zeichen pro Flag, 0 oder 1, 2=unbekannt)
(complete inserts)(extended inserts)(ignore inserts)(delayed inserts)(downgrade)(lock tables)(optimize tables)
*/
global $databases,$config, $dump,$mysql_commentstring;
$t_array=explode("|",$databases['db_actual_tableselected']);
$t=0;
$r=0;
$t_zeile="$mysql_commentstring\n$mysql_commentstring TABLE-INFO\n";
MSD_mysql_connect();
$res=mysql_query("SHOW TABLE STATUS FROM `".$databases['Name'][$dump['dbindex']]."`");
$numrows=mysql_num_rows($res);
for($i=0;$i<$numrows;$i++) {
$erg=mysql_fetch_array($res);
if(($databases['db_actual_tableselected']=="" || ($databases['db_actual_tableselected']!="" && (in_array($erg[0],$t_array)))) && (substr($erg[0],0,strlen($databases['praefix'][$dump['dbindex']]))==$databases['praefix'][$dump['dbindex']])) {
$t++;$r+=$erg['Rows'];
$t_zeile.="$mysql_commentstring TABLE|".$erg['Name']."|".$erg['Rows']."|".($erg['Data_length']+$erg['Index_length'])."|".$erg['Update_time']."\n";
}
}
//$dump['totalrecords']=$r;
$flags=$config['backup_complete_inserts'].$config['backup_extended_inserts'].$config['backup_ignore_inserts'].$config['backup_delayed_inserts'].$config['backup_downgrade'].$config['backup_lock_tables'].$config['optimize_tables_beforedump'];
$mp=($config['multi_part']==1) ? $mp="MP_".($dump['part']-$dump['part_offset']) : "MP_0";
$statusline="$mysql_commentstring Status:$t:$r:$mp:".$databases['Name'][$dump['dbindex']].":$kind:".MSD_VERSION.":".$dump['kommentar'].":";
$statusline.=MSD_MYSQL_VERSION.":$flags:::EXTINFO\n".$t_zeile."$mysql_commentstring"." EOF TABLE-INFO\n$mysql_commentstring\n\n";
return $statusline;
}
// Liest die Eigenschaften der Tabelle aus der DB und baut die CREATE-Anweisung zusammen
function get_def($db, $table,$withdata=1)
{
global $config,$nl,$mysql_commentstring;
$def = "\n\n$mysql_commentstring\n$mysql_commentstring Create Table `$table`\n$mysql_commentstring\n\nDROP TABLE IF EXISTS `$table`;\n";
mysql_select_db($db);
$result = mysql_query('SHOW CREATE TABLE `'.$table.'`',$config['dbconnection']);
$row=mysql_fetch_row($result);
$def .= (($config['backup_downgrade']==1) ? DownGrade($row[1],false) : $row[1].';')."\n\n";
if($withdata==1) {
$def.="$mysql_commentstring\n$mysql_commentstring Data for Table `$table`\n$mysql_commentstring\n\n";
if($config['backup_delayed_inserts']==0) $def.="/*!40000 ALTER TABLE `$table` DISABLE KEYS */;".$nl;
if($config['backup_lock_tables']==1 && $config['backup_delayed_inserts']==0) $def.="LOCK TABLES `$table` WRITE;\n\n";
}
return $def;
}
// Liest die Daten aus der DB aus und baut die INSERT-Anweisung zusammen
function get_content($db, $table)
{
global $config,$nl,$dump,$buffer;
$content='';
$delayed=(isset($config['backup_delayed_inserts']) && $config['backup_delayed_inserts']==1) ? 'DELAYED ' : '';
$complete=(isset($config['backup_complete_inserts']) && $config['backup_complete_inserts']==1) ? Fieldlist($db,$table).' ':'';
$ignore=(isset($config['backup_ignore_inserts']) && $config['backup_ignore_inserts']==1) ? 'IGNORE ':'';
$table_ready=0;
$query='SELECT * FROM `'.$table.'` LIMIT '.$dump['zeilen_offset'].','.($dump['restzeilen']+1);
mysql_select_db($db);
$result = mysql_query($query,$config['dbconnection']);
$ergebnisse=mysql_num_rows($result);
$num_felder=mysql_num_fields($result);
$first=1;
if ($ergebnisse>$dump['restzeilen'])
{
$dump['zeilen_offset']+=$dump['restzeilen'];
$ergebnisse--;
$dump['restzeilen']=0;
}
else
{
$dump['table_offset']++;
$dump['zeilen_offset']=0;
$dump['restzeilen']=$dump['restzeilen']-$ergebnisse;
$table_ready=1;
}
$ax=0;
for ($x=0;$x<$ergebnisse;$x++)
{
$row=mysql_fetch_row($result);
$ax++;
if($config['backup_extended_inserts']==0 || ($config['backup_extended_inserts']==1 && $first==1 && $ax==1) ) {
$insert = 'INSERT '.$delayed.$ignore.'INTO `'.$table.'` '.$complete.'VALUES (';
$first=0;
} else $insert='(';
for($j=0; $j<$num_felder;$j++)
{
if(!isset($row[$j])) $insert .= 'NULL,';
else if($row[$j] != '') $insert.= '\''.mysql_escape_string($row[$j]).'\',';
else $insert .= '\'\',';
}
$insert=substr($insert,0,-1);
if(strlen($dump['data'])>400000 || $x==($ergebnisse-1)) {
$ax=0;$first=1;
}
$insert .= ($config['backup_extended_inserts']==0 || $x==($ergebnisse-1) || $ax==0) ? ");\n" : '),';
$dump['data'] .= $insert;
$dump['countdata']++;
if(strlen($dump['data'])>$config['memory_limit'] || ($config['multi_part']==1 && strlen($dump['data'])+$buffer>$config['multipart_groesse']) ) {
WriteToDumpFile();
}
}
if($table_ready==1 && $config['backup_lock_tables']==1 && $config['backup_delayed_inserts']==0) $dump['data'].="\nUNLOCK TABLES;";
if($table_ready==1 && $config['backup_delayed_inserts']==0) $dump['data'].="\n/*!40000 ALTER TABLE `$table` ENABLE KEYS */;\n\n";
mysql_free_result($result);
}
function WriteToDumpFile()
{
global $config,$dump,$buffer;
$dump['filesize']=0;
$df=$config['paths']['backup'].$dump['backupdatei'];
$sf=$config['paths']['structure'].$dump['backupdatei_structure'];
if ($config['compression']==1)
{
if($dump['data']!='') {
$fp = gzopen ($df,'ab');
gzwrite ($fp,$dump['data']); gzclose ($fp);
}
if($dump['structure']!='') {
$fp = gzopen ($sf,'ab');
gzwrite ($fp,$dump['structure']); gzclose ($fp);
}
}
else
{
if($dump['data']!='') {
$fp = fopen ($df,'ab');
fwrite ($fp,$dump['data']);fclose ($fp);
}
if($dump['structure']!='') {
$fp = fopen ($sf,'ab');
fwrite ($fp,$dump['structure']); fclose ($fp);
}
}
$dump['data']=$dump['structure']='';
if(!isset($dump['fileoperations'])) $dump['fileoperations']=0;
$dump['fileoperations']++;
if ($config['multi_part']==1) clearstatcache();
$dump['filesize']=filesize($df);
if ($config['multi_part']==1 && $dump['filesize']+$buffer>$config['multipart_groesse'])
new_file($dump['filesize']); // Wenn maximale Dateigroesse erreicht -> neues File starten
}
function ExecuteCommand($when)
{
global $config,$databases,$dump,$out,$lang;
if($when=='b') { // before dump
$cd=$databases['command_before_dump'][$dump['dbindex']];
$cap='before Dump'; $lf='<br>';
} else {
$cd=$databases['command_after_dump'][$dump['dbindex']];
$cap='after Dump'; $lf='';
}
if($cd!='') {
//jetzt ausführen
if(substr(strtolower($cd),0,7)!='system:') {
@mysql_select_db($databases['Name'][$dump['dbindex']]);
if(strpos($cd,';')) {
$cad=explode(';',$cd);
for($i=0;$i<count($cad);$i++) {
if($cad[$i]) $result .= @mysql_query($cad[$i],$config['dbconnection']);
}
} else {
$result = @mysql_query($cd,$config['dbconnection']);
}
if(!$result) {
WriteLog("Error while executing Query $cap ($cd) : ".mysql_error());
ErrorLog("Command ".$cap,$databases['Name'][$dump['dbindex']],$cd,mysql_error());
$dump['errors']++;
$out.=$lf.'<span class="error">ERROR executing Query '.$cap.'</span><br>';
} else {
WriteLog("executing Query $cap ($cd) was successful");
$out.=$lf.'<span class="success">executing Query '.$cap.' was successful</span><br>';
}
} elseif(substr(strtolower($cd),0,7)=="system:") {
//$result=@system(substr($cd,7),$returnval);
$cap=substr($cd,7);
$result=1;
if(!$result) {
WriteLog("Error while executing System Command $cap");
$dump['errors']++;
$out.=$lf.'<span class="error">ERROR executing System Command '.$cap.'</span><br>';
} else {
WriteLog("executing System Command $cap was successful. [$returnval]");
$out.=$lf.'<span class="success">executing System Command '.$cap.' was successful</span><br>';
}
}
}
}
function DoEmail()
{
global $config,$dump,$databases,$email,$lang,$out,$REMOTE_ADDR;
$header="";
if($config['cron_use_sendmail']==1) {
//sendmail
if(ini_get("sendmail_path")!=$config['cron_sendmail']) @ini_set("SMTP",$config['cron_sendmail']);
if(ini_get("sendmail_from")!=$config['email_sender']) @ini_set("SMTP",$config['email_sender']);
} else {
//SMTP
}
if(ini_get("SMTP")!=$config['cron_smtp']) @ini_set("SMTP",$config['cron_smtp']);
if(ini_get("smtp_port")!=25) @ini_set("smtp_port",25);
if($config['multi_part']==0) {
$file = $dump['backupdatei'];
$file_name=(strpos("/",$file)) ? substr($file,strrpos("/",$file)) : $file;
$file_type = filetype($config['paths']['backup'].$file);
$file_size = filesize($config['paths']['backup'].$file);
if(($config['email_maxsize']>0 && $file_size>$config['email_maxsize']) || $config['send_mail_dump']==0) {
//anhang zu gross
$subject = "Backup '".$databases['Name'][$dump['dbindex']]."' - ".date("d\.m\.Y H:i",time());
$header.= "FROM:".$config['email_sender']."\n";
$header.= "MIME-version: 1.0\n";
$header .= "X-Mailer: PHP/" . phpversion(). "\n";
$header .= "X-Sender-IP: $REMOTE_ADDR\n";
$header .= "Content-Type: text/html";
if($config['send_mail_dump']!=0) {
$msg_body = sprintf(addslashes($lang['emailbody_toobig']),byte_output($config['email_maxsize']),$databases['Name'][$dump['dbindex']],"$file (".byte_output(filesize($config['paths']['backup'].$file)).")<br>");
} else {
$msg_body = sprintf(addslashes($lang['emailbody_noattach']),$databases['Name'][$dump['dbindex']],"$file (".byte_output(filesize($config['paths']['backup'].$file)).")");
}
$msg_body.='<a href="http://'.$_SERVER['HTTP_HOST'].substr($_SERVER["PHP_SELF"],0,strrpos($_SERVER["PHP_SELF"],"/")).'/'.$config['paths']['backup'].$file.'">'.$file.'</a>';
$email_log="Email sent to '".$config['email_recipient']."'";
$email_out=$lang['email_was_send']."`".$config['email_recipient']."`<br>";
} else {
//alles ok, anhang generieren
$msg_body = sprintf(addslashes($lang['emailbody_attach']),$databases['Name'][$dump['dbindex']],"$file (".byte_output(filesize($config['paths']['backup'].$file)).")");
$subject = "Backup '".$databases['Name'][$dump['dbindex']]."' - ".date("d\.m\.Y",time());
$fp = fopen($config['paths']['backup'].$file, "r");
$contents = fread($fp, $file_size);
$encoded_file = chunk_split(base64_encode($contents));
fclose($fp);
$header.= "FROM:".$config['email_sender']."\n";
$header.= "MIME-version: 1.0\n";
$header.= "Content-type: multipart/mixed; ";
$header.= "boundary=\"Message-Boundary\"\n";
$header.= "Content-transfer-encoding: 7BIT\n";
$header.= "X-attachments: $file_name";
$body_top = "--Message-Boundary\n";
$body_top.= "Content-type: text/html\n";
$body_top.= "Content-transfer-encoding: 7BIT\n";
$body_top.= "Content-description: Mail message body\n\n";
$msg_body = $body_top . $msg_body;
$msg_body.= "\n\n--Message-Boundary\n";
$msg_body.= "Content-type: $file_type; name=\"$file\"\n";
$msg_body.= "Content-Transfer-Encoding: BASE64\n";
$msg_body.= "Content-disposition: attachment; filename=\"$file\"\n\n";
$msg_body.= "$encoded_file\n";
$msg_body.= "--Message-Boundary--\n";
$email_log="Email was sent to '".$config['email_recipient']."' with '".$dump['backupdatei']."'.";
$email_out=$lang['email_was_send']."`".$config['email_recipient']."`".$lang['with']."`".$dump['backupdatei']."`.<br>";
}
} else {
//Multipart
$mp_sub="Backup '".$databases['Name'][$dump['dbindex']]."' - ".date("d\.m\.Y",time());
$subject = $mp_sub;
$header.= "FROM:".$config['email_sender']."\n";
$header.= "MIME-version: 1.0\n";
$header .= "X-Mailer: PHP/" . phpversion(). "\n";
$header .= "X-Sender-IP: $REMOTE_ADDR\n";
$header .= "Content-Type: text/html";
$dateistamm=substr($dump['backupdatei'],0,strrpos($dump['backupdatei'],"part_"))."part_";
$dateiendung=($config['compression']==1)?".sql.gz":".sql";
$mpdatei=Array();
$mpfiles="";
for ($i=1;$i<($dump['part']-$dump['part_offset']);$i++) {
$mpdatei[$i-1]=$dateistamm.$i.$dateiendung;
$sz=byte_output(@filesize($config['paths']['backup'].$mpdatei[$i-1]));
$mpfiles.=$mpdatei[$i-1]." (".$sz.")<br>";
}
$msg_body = ($config['send_mail_dump']==1) ? sprintf(addslashes($lang['emailbody_mp_attach']),$databases['Name'][$dump['dbindex']],$mpfiles) : sprintf(addslashes($lang['emailbody_mp_noattach']),$databases['Name'][$dump['dbindex']],$mpfiles);
$email_log="Email was sent to '".$config['email_recipient']."'";
$email_out=$lang['email_was_send']."`".$config['email_recipient']."`<br>";
}
if (@mail($config['email_recipient'], stripslashes($subject), $msg_body, $header)) {
$out.= '<span class="success">'.$email_out.'</span>';
WriteLog("$email_log");
} else {
$out.='<span class="error">'.$lang['mailerror'].'</span><br>';
WriteLog("Email to '".$config['email_recipient']."' failed !");
ErrorLog("Email ",$databases['Name'][$dump['dbindex']],'Subject: '.stripslashes($subject),$lang['mailerror']);
$dump['errors']++;
}
if(isset($mpdatei) && $config['send_mail_dump']==1) { // && ($config['email_maxsize']==0 || ($config['email_maxsize']>0 && $config['multipartgroesse2']<=$config['email_maxsize']))) {
for($i=0;$i<count($mpdatei);$i++) {
$file_name=$mpdatei[$i];
$file_type = filetype($config['paths']['backup'].$mpdatei[$i]);
$file_size = filesize($config['paths']['backup'].$mpdatei[$i]);
$fp = fopen($config['paths']['backup'].$mpdatei[$i], "r");
$contents = fread($fp, $file_size);
$encoded_file = chunk_split(base64_encode($contents));
fclose($fp);
$subject =$mp_sub. " [Part ".($i+1)." / ".count($mpdatei)."]";
$header= "FROM:".$config['email_sender']."\n";
$header.= "MIME-version: 1.0\n";
$header.= "Content-type: multipart/mixed; ";
$header.= "boundary=\"Message-Boundary\"\n";
$header.= "Content-transfer-encoding: 7BIT\n";
$header.= "X-attachments: $file_name";
$body_top = "--Message-Boundary\n";
$body_top.= "Content-type: text/html\n";
$body_top.= "Content-transfer-encoding: 7BIT\n";
$body_top.= "Content-description: Mail message body\n\n";
$msg_body = $body_top.addslashes($lang['email_only_attachment'].$lang['emailbody_footer']);
$msg_body.= "\n\n--Message-Boundary\n";
$msg_body.= "Content-type: $file_type; name=\"".$mpdatei[$i]."\"\n";
$msg_body.= "Content-Transfer-Encoding: BASE64\n";
$msg_body.= "Content-disposition: attachment; filename=\"".$mpdatei[$i]."\"\n\n";
$msg_body.= "$encoded_file\n";
$msg_body.= "--Message-Boundary--\n";
$email_log="Email with $mpdatei[$i] was sent to '".$config['email_recipient']."'";
$email_out=$lang['email_was_send']."`".$config['email_recipient']."`".$lang['with']."`".$mpdatei[$i]."`.<br>";
if (@mail($config['email_recipient'], stripslashes($subject), $msg_body, $header)) {
$out.= '<span class="success">'.$email_out.'</span>';
WriteLog("$email_log");
} else {
$out.='<span class="error">'.$lang['mailerror'].'</span><br>';
WriteLog("Email to '".$config['email_recipient']."' failed !");
ErrorLog("Email ",$databases['Name'][$dump['dbindex']],'Subject: '.stripslashes($subject),$lang['mailerror']);
$dump['errors']++;
}
}
}
}
function DoFTP()
{
global $config,$dump,$out;
if($config['multi_part']==0) {
SendViaFTP($dump['backupdatei'],1);
} else {
$dateistamm=substr($dump['backupdatei'],0,strrpos($dump['backupdatei'],"part_"))."part_";
$dateiendung=($config['compression']==1)?".sql.gz":".sql";
for ($i=1;$i<($dump['part']-$dump['part_offset']);$i++) {
$mpdatei=$dateistamm.$i.$dateiendung;
SendViaFTP($mpdatei,$i);
}
}
$out.='<span class="success">'."file sent via FTP (".$dump['backupdatei']." => ".$config['ftp_server'][$config['ftp_connectionindex']].")</span><br><br>";
}
function SendViaFTP($source_file,$conn_msg=1)
{
global $config,$out,$lang;
flush();
if($conn_msg==1) $out.='<span class="success">'.$lang['filesendftp']."(".$config['ftp_server'][$config['ftp_connectionindex']]." - ".$config['ftp_user'][$config['ftp_connectionindex']].")</span><br>";
// Herstellen der Basis-Verbindung
if($config['ftp_useSSL']==0)
$conn_id = ftp_connect($config['ftp_server'][$config['ftp_connectionindex']], $config['ftp_port'][$config['ftp_connectionindex']],$config['ftp_timeout']);
else
$conn_id = ftp_ssl_connect($config['ftp_server'][$config['ftp_connectionindex']], $config['ftp_port'][$config['ftp_connectionindex']],$config['ftp_timeout']);
// Einloggen mit Benutzername und Kennwort
$login_result = ftp_login($conn_id, $config['ftp_user'][$config['ftp_connectionindex']], $config['ftp_pass'][$config['ftp_connectionindex']]);
if ($config['ftp_mode']==1) ftp_pasv($conn_id,true);
// Verbindung überprüfen
if ((!$conn_id) || (!$login_result)) {
$out.= '<span class="error">'.$lang['ftpconnerror'].$config['ftp_server'][$config['ftp_connectionindex']].$lang['ftpconnerror1'].$config['ftp_user'][$config['ftp_connectionindex']].$lang['ftpconnerror2'].'</span><br>';
exit;
} else {
if($conn_msg==1) $out.= '<span class="success">'.$lang['ftpconnected1'].$config['ftp_server'][$config['ftp_connectionindex']].$lang['ftpconnerror1'].$config['ftp_user'][$config['ftp_connectionindex']].'</span><br>';
}
// Upload der Datei
$dest=$config['ftp_dir'][$config['ftp_connectionindex']].$source_file;
$source=$config['paths']['backup'].$source_file;
$upload = @ftp_put($conn_id, $dest,$source , FTP_BINARY);
// Upload-Status überprüfen
if (!$upload) {
$out.= '<span class="error">'.$lang['ftpconnerror3']."<br>($source -> $dest)</span><br>";
} else {
$out.= '<span class="success">'.$lang['file'].' <a href="'.$config['paths']['backup'].$source_file.'" class="smallblack">'.$source_file.'</a>'.$lang['ftpconnected2'].$config['ftp_server'][$config['ftp_connectionindex']].$lang['ftpconnected3'].'</span><br>';
WriteLog("'$source_file' sent via FTP.");
}
// Schließen des FTP-Streams
@ftp_quit($conn_id);
}
?>

Datei anzeigen

@ -0,0 +1,350 @@
<?php
function FilelisteCombo($fpath,$selected) {
$r='<select name="selectfile">';
$r.='<option value="" '.(($selected=="") ? "SELECTED" : "").'></option>';
$dh = opendir($fpath);
while (false !== ($filename = readdir($dh)))
{
if ($filename != "." && $filename != ".." && !is_dir($fpath.$filename)) {
$r.='<option value="'.$filename.'" ';
if($filename==$selected) $r.=' SELECTED';
$r.='>'.$filename.'</option>'."\n";
}
}
$r.='</select>';
return $r;
}
function sortierdatum($datum)
{
$p=explode(' ',$datum);
$uhrzeit=$p[1];
$p2=explode('.',$p[0]);
$day=$p2[0];
$month=$p2[1];
$year=$p2[2];
return $year.'.'.$month.'.'.$day.' '.$uhrzeit;
}
function FileList($multi=0)
{
global $config,$kind,$fpath,$lang,$databases,$href,$dbactiv,$action,$expand;
$files=Array();
if($kind==0){
//Backup-Dateien
$Theader=$lang['fm_files1'].' '.$lang['of'].' "'.$dbactiv.'"';
$Wheader=$lang['fm_files2'];
$akind=1;
} else {
//Struktur-Dateien
$Theader=$lang['fm_files2'];
$Wheader=$lang['fm_files1'];
$akind=0;
}
$Sum_Files=0;
$dh = opendir($fpath);
$fl="";
$i=0;
while (false !== ($filename = readdir($dh)))
{
if ($filename != "." && $filename != ".." && !is_dir($fpath.$filename))
{
$files[$i]['name'] = $filename;
$Sum_Files++;
$i++;
}
}
$fl.='<div align="center">'.br().$lang['fm_choose_file'].br();
$fl.='<span id="gd">&nbsp;</span>'.br().'<br><br>';
$fl.='<table class="border">'.br();
$fl.='<tr>'.br().'<td colspan="8" align="left"><strong>'.$Theader.'</strong></td>'.br().'<td colspan="3" align="right"><a href="filemanagement.php?action='.$action.'&amp;kind='.$akind.'" class="small">'.$Wheader.'</a></td>'.br().'</tr>'.br();
//Tableheader
$fl.='<tr class="thead">'.br().'<th colspan="2">'.$lang['db'].'</th>'.br().'
<th>gz</th>'.br().'
<th>Script</th>'.br().'
<th colspan="2">'.$lang['comment'].'</th>'.br().'
<th>'.$lang['fm_filedate'].'</th>'.br().'
<th>Multipart</th>'.br().'
<th>'.$lang['fm_tables'].' / '.$lang['fm_records'].'</th>'.br().'
<th align="right" colspan="2">'.$lang['fm_filesize'].'</th>'.br().'</tr>'.br();
$checkindex=$arrayindex=$gesamt=0;
$db_summary_anzahl=Array();
if(count($files)>0)
{
for ($i=0; $i<sizeof($files); $i++)
{
// Dateigr&ouml;&szlig;e
$size = filesize($fpath.$files[$i]['name']);
$file_datum=date("d\.m\.Y H:i", filemtime($fpath.$files[$i]['name']));
//statuszeile auslesen
$sline='';
if(substr($files[$i]['name'],-2)=="gz"){
if($config['zlib']) {
$fp = gzopen ($fpath.$files[$i]['name'], "r");
$sline=gzgets($fp,40960);
gzclose ($fp);
}
}else{
$fp = fopen ($fpath.$files[$i]['name'], "r");
$sline=fgets($fp,5000);
fclose ($fp);
}
$statusline=ReadStatusline($sline);
$but=ExtractBUT($files[$i]['name']);
if ($but=="") $but=$file_datum;
$dbn=$statusline['dbname'];
//jetzt alle in ein Array packen
if($statusline['part']=="MP_0" || $statusline['part']=="")
{
$db_backups[$arrayindex]['name']=$files[$i]['name'];
$db_backups[$arrayindex]['db']=$dbn;
$db_backups[$arrayindex]['size']=$size;
$db_backups[$arrayindex]['date']=$but;
$db_backups[$arrayindex]['sort']=sortierdatum($but);
$db_backups[$arrayindex]['tabellen']=$statusline['tables'];
$db_backups[$arrayindex]['eintraege']=$statusline['records'];
$db_backups[$arrayindex]['multipart']=0;
$db_backups[$arrayindex]['kommentar']=$statusline['comment'];
$db_backups[$arrayindex]['script']=($statusline['script']!="") ? $statusline['script']."(".$statusline['scriptversion'].")" : "";
if(!isset($db_summary_last[$dbn])) $db_summary_last[$dbn]=$but;
$db_summary_anzahl[$dbn]=(isset($db_summary_anzahl[$dbn])) ? $db_summary_anzahl[$dbn]+1 : 1;
$db_summary_size[$dbn]=(isset($db_summary_size[$dbn])) ? $db_summary_size[$dbn]+$size : $size;
if($but>$db_summary_last[$dbn])$db_summary_last[$dbn]=$but;
}
else
{
//multipart nur einmal
$done=0;
if(!isset($db_summary_size[$dbn])) $db_summary_size[$dbn]=0;
for($j=0;$j<$arrayindex;$j++)
{
if(isset($db_backups[$j]))
{
if ( ($db_backups[$j]['date']==$but) && ($db_backups[$j]['db']==$dbn) )
{
$db_backups[$j]['multipart']++;
$db_backups[$j]['size']+=$size;
$db_summary_size[$dbn]+=$size;
$done=1;
break;
}
}
}
if ($done==1) $arrayindex--;
if($done==0)
{
//Eintrag war noch nicht vorhanden
$db_backups[$arrayindex]['name']=$files[$i]['name'];
$db_backups[$arrayindex]['db']=$dbn;
$db_backups[$arrayindex]['size']=$size;
$db_backups[$arrayindex]['date']=$but;
$db_backups[$arrayindex]['sort']=sortierdatum($but);
$db_backups[$arrayindex]['tabellen']=$statusline['tables'];
$db_backups[$arrayindex]['eintraege']=$statusline['records'];
$db_backups[$arrayindex]['multipart']=1;
$db_backups[$arrayindex]['kommentar']=$statusline['comment'];
$db_backups[$arrayindex]['script']=($statusline['script']!="") ? $statusline['script']."(".$statusline['scriptversion'].")" : "";
if(!isset($db_summary_last[$dbn])) $db_summary_last[$dbn]=$but;
$db_summary_anzahl[$dbn]=(isset($db_summary_anzahl[$dbn])) ? $db_summary_anzahl[$dbn]+1 : 1;
$db_summary_size[$dbn]=(isset($db_summary_size[$dbn])) ? $db_summary_size[$dbn]+$size : $size;
if( $but>$db_summary_last[$dbn])$db_summary_last[$dbn]=$but;
}
}
// Gesamtgr&ouml;&szlig;e aller Backupfiles
$arrayindex++;
$gesamt = $gesamt + $size;
}
}
//Schleife fertig - jetzt Ausgabe
if ( (isset($db_backups)) && (is_array($db_backups)) ) $db_backups=mu_sort($db_backups,'sort,name');
// Hier werden die Dateinamen ausgegeben
if($arrayindex>0) {
for($i=$arrayindex;$i>=0;$i--) {
$cl= ($i % 2) ? "dbrow" : "dbrow1";
if(isset($db_backups[$i]['db']) && $db_backups[$i]['db']==$dbactiv)
{
$multi=($db_summary_anzahl[$dbactiv]>1 && $action=="files") ? 1 : 0;
$fl.='<input type="hidden" name="multi" value="'.$multi.'">';
if($db_backups[$i]['multipart']>0) {$dbn=NextPart($db_backups[$i]['name'],1);}else{$dbn=$db_backups[$i]['name'];}
$fl.='<tr '.(($dbactiv==$databases['db_actual']) ? 'class="dbrowsel"' : 'class="'.$cl.'"').'>'.br();
$fl.='<td align="left" colspan="2" nowrap>'.br();
if($multi==0)
{
$fl.='<input type="hidden" name="multipart[]" value="'.$db_backups[$i]['multipart'].'"><input name="file[]" type="radio" class="radio" value="'.$dbn.'" onClick="Check('.$checkindex++.',0);">';
}
else
{
$fl.='<input type="hidden" name="multipart[]" value="'.$db_backups[$i]['multipart'].'"><input name="file[]" type="checkbox" class="checkbox" value="'.$dbn.'" onClick="Check('.$checkindex++.',1);">';
}
$fl.=($db_backups[$i]['multipart']==0) ? '&nbsp;<a href="'.$fpath.$dbn.'" title="Backupfile: '.$dbn.'" style="font-size:8pt;" target="_blank">'.(($db_backups[$i]['db']=='unknown') ? $dbn : $db_backups[$i]['db']).'</a></td>'.br() : '&nbsp;<span style="font-size:8pt;">'.$db_backups[$i]['db'].'</span></td>'.br();
$fl.='<td class="sm" nowrap align="center">'.((substr($dbn,-3)==".gz") ? '<img src="'.$config['files']['iconpath'].'gz.gif" alt="'.$lang['compressed'].'" width="16" height="16" border="0">' : "&nbsp;").'</td>';
$fl.='<td class="sm" nowrap align="center">'.$db_backups[$i]['script'].'</td>';
$fl.='<td class="sm" nowrap align="right">'.(($db_backups[$i]['kommentar']!="") ? '<img src="'.$config['files']['iconpath'].'rename.gif" alt="'.$db_backups[$i]['kommentar'].'" title="'.$db_backups[$i]['kommentar'].'" width="16" height="16" border="0">' : "&nbsp;").'</td>';
$fl.='<td class="sm" nowrap align="left">'.(($db_backups[$i]['kommentar']!="") ? nl2br(wordwrap($db_backups[$i]['kommentar'],50)) : "&nbsp;").'</td>';
$fl.='<td class="sm" nowrap>'.$db_backups[$i]['date'].'</td>'.br();
$fl.='<td style="text-align:center">';
$fl.=($db_backups[$i]['multipart']==0) ? $lang['no'] : '<a style="font-size:11px;" href="filemanagement.php?action=files&kind=0&dbactiv='.$dbactiv.'&expand='.$i.'">'.$db_backups[$i]['multipart'].' Files</a>'; //
$fl.='</td>'.br().'<td style="text-align:right;padding-right:12px;" nowrap>';
$fl.=($db_backups[$i]['eintraege']!=-1) ? $db_backups[$i]['tabellen'].' / '.number_format($db_backups[$i]['eintraege'],0,",",".") :$lang['fm_oldbackup'];
$fl.='</td>'.br();
$fl.='<td align="right" colspan="2" style="font-size:8pt;">'.byte_output($db_backups[$i]['size']).'</td>'.br();
$fl.='</tr>'.br();
if($expand==$i) {
$fl.='<tr '.(($dbactiv==$databases['db_actual']) ? 'class="dbrowsel"' : 'class="'.$cl.'"').'>'.br();
$fl.='<td class="sm" valign="top">All Parts:</td><td class="sm" colspan="11" align="left">'.PartListe($db_backups[$i]['name'],$db_backups[$i]['multipart']).'</td>';
}
}
}
}
$fl.='<tr>'.br().'<td colspan="11" align="left"><br><strong>'.$lang['fm_all_bu'].'</strong></td>'.br().'</tr>'.br();
//Tableheader
$fl.='<tr class="thead">'.br().'<th colspan="5" align="left">'.$lang['fm_dbname'].'</th>'.br().'
<th align="left">'.$lang['fm_anz_bu'].'</th>'.br().'
<th>'.$lang['fm_last_bu'].'</th>'.br().'
<th colspan="4" style="text-align:right;">'.$lang['fm_totalsize'].'</th></tr>'.br();
//die anderen Backups
if(count($db_summary_anzahl)>0)
{
$i=0;
while(list($key, $val) = each($db_summary_anzahl))
{
$cl= ($i++ % 2) ? "dbrow" : "dbrow1";
$keyaus=($key=="unknown") ? '<em>'.$lang['no_msd_backupfile'].'</em>' : $key;
$fl.='<tr class="'.$cl.'">'.br().'<td colspan="5" align="left"><a href="'.$href.'&dbactiv='.$key.'">'.$keyaus.'</a></td>'.br();
$fl.='<td style="text-align:right">'.$val.'&nbsp;&nbsp;</td>'.br();
$fl.='<td class="sm" nowrap>'.((isset($db_summary_last[$key])) ? $db_summary_last[$key] : "").'</td>'.br();
$fl.='<td style="text-align:right;font-size:8pt;" colspan="4">'.byte_output($db_summary_size[$key]).'&nbsp;</td>'.br();
$fl.='</tr>'.br(3);
}
}
if (!is_array($files)) $fl.='<tr><td colspan="11">'.$lang['fm_nofilesfound'].'</td></tr>'.br();
//--------------------------------------------------------
//*** Ausgabe der Gesamtgr&ouml;&szlig;e aller Backupfiles ***
//--------------------------------------------------------
$space = MD_FreeDiskSpace();
$fl.= '<tr>'.br();
$fl.= '<td align="left" colspan="8"><b>'.$lang['fm_totalsize'].' ('.$Sum_Files.' files): </b> </td>'.br();
$fl.= '<td style="text-align:right" colspan="3"><b>'.byte_output($gesamt).'</b></td>'.br();
$fl.= '</tr>'.br();
//--------------------------------------------------------
//*** Ausgabe des freien Speicher auf dem Rechner ***
//--------------------------------------------------------
$fl.= '<tr>'.br();
$fl.= '<td colspan="8" align="left">'.$lang['fm_freespace'].': </td>'.br();
$fl.= '<td colspan="3" style="text-align:right"><b>'.$space.'</b></td>'.br();
$fl.= '</tr>'.br();
$fl.= '</table></div>'.br();
return $fl;
}
function PartListe($f,$nr)
{
global $config;
$dateistamm=substr($f,0,strrpos($f,"part_"))."part_";
$dateiendung=(substr(strtolower($f),-2)=="gz")?".sql.gz":".sql";
$s="";
for($i=1;$i<=$nr;$i++) {
if($i>1) $s.="<br>";
$s.='<a href="'.$config['paths']['backup'].$dateistamm.$i.$dateiendung.'">'.$dateistamm.$i.$dateiendung.'</a>&nbsp;&nbsp;&nbsp;'.byte_output(@filesize($config['paths']['backup'].$dateistamm.$i.$dateiendung));
}
return $s;
}
function Converter($filesource,$filedestination,$cp) {
global $config,$lang;
$cps=(substr(strtolower($filesource),-2)=="gz") ? 1 : 0;
echo "<h5>".sprintf($lang['convert_fileread'],$filesource).".....</h5><span style=\"font-size:10px;\">";
if(file_exists($config['paths']['backup'].$filedestination)) unlink($config['paths']['backup'].$filedestination);
$f = ($cps==1) ? gzopen($config['paths']['backup'].$filesource,"r") : fopen($config['paths']['backup'].$filesource,"r");
$z= ($cps==1) ? gzopen($config['paths']['backup'].$filedestination,"w") : fopen($config['paths']['backup'].$filedestination,"w");
$insert=$mode="";
$n=0;
$eof= ($cps==1) ? gzeof($f) : feof($f);
WHILE (!$eof)
{
$eof= ($cps==1) ? gzeof($f) : feof($f);
$zeile= ($cps==1) ? gzgets($f,8192) : fgets($f,8192);
if (substr($zeile,0,2)=="--") $zeile="";
//$zeile=rtrim($zeile);
$t=strtolower(substr($zeile,0,10));
if ($t>"")
{
switch ($t)
{
case "insert int":
{
// eine neue Insert Anweisung beginnt
$insert= substr($zeile,0,strpos($zeile,"("));
if(substr(strtoupper($insert),-7)!="VALUES ") $insert.="VALUES ";
$mode="insert";
};
break;
case "create tab":
{
$mode="create";
WHILE (substr(rtrim($zeile),-1)!=";")
{
$zeile.=fgets($f,8192);
}
$zeile="\n\r".MySQL_Ticks($zeile)."\n\r";
break;
}
case "drop table":
{
$mode="drop";
$zeile.="\n\r";
break;
}
}
if ($mode=="insert")
{
// Komma loeschen
$zeile=str_replace("),(",");\n$insert (",$zeile);
if(substr(rtrim($zeile),0,2)==",(" && $insert !="") {
$zeile=";\n".$insert.substr($zeile,1);
}
if(substr(rtrim($zeile),-2)==")," && $insert !="") {
$zeile=substr(rtrim($zeile),0,strlen(rtrim($zeile))-1).";\n$insert";
}
}
$n++;
if ($n>1000) { $n=0;echo "<br>"; }
echo ".";
if($cps==1) gzwrite($z,$zeile); else fwrite($z,$zeile);
}
flush();
$n++;
}
if($cps==1) gzclose($z); else fclose($z);
if($cps==1) gzclose($f); else fclose($f);
echo "</span><h5>".sprintf($lang['convert_finished'],$filedestination)."</h5>";
}
?>

Datei anzeigen

@ -0,0 +1,956 @@
<?php
include_once('./inc/runtime.php');
function get_page_parameter($parameter,$ziel='dump')
{
$page_parameter='<form action="'.$ziel.'.php" method="POST" name="'.$ziel.'">'."\n";
foreach ($parameter As $key=>$val)
{
$page_parameter.='<input type="hidden" name="'.$key.'" value="'.$val.'">'."\n";
}
$page_parameter.='</form>';
return $page_parameter;
}
function mu_sort ($array, $key_sort)
{
$key_sorta = explode(",", $key_sort);
$keys = array_keys($array[0]);
$n=0;
for($m=0; $m < count($key_sorta); $m++) { $nkeys[$m] = trim($key_sorta[$m]); }
$n += count($key_sorta); // counter used inside loop
for($i=0; $i < count($keys); $i++)
{
if(!in_array($keys[$i], $key_sorta))
{
$nkeys[$n] = $keys[$i];
$n += "1";
}
}
for($u=0;$u<count($array); $u++)
{
$arr = $array[$u];
for ($s=0; $s<count($nkeys); $s++)
{
$k = $nkeys[$s];
$output[$u][$k] = $array[$u][$k];
}
}
// wenn die Sortierung nicht ab- sondern aufsteigend sein soll, muss sort() benutzt werden
sort($output); // Sort=Aufsteigend -> oder rsort=absteigend
return $output;
}
function FillMultiDBArrays()
{
global $config,$databases;
$databases['multi']=Array();
$databases['multi_praefix']=Array();
if(!isset($databases['db_selected_index'])) $databases['db_selected_index']=0;
if(!isset($databases['db_actual']) && isset($databases['Name'])) $databases['db_actual']=$databases['Name'][$databases['db_selected_index']];
if(!isset($databases['multisetting'])) $databases['multisetting']='';
if($config['multi_dump']==1)
{
if($databases['multisetting']=='')
{
$databases['multi'][0]=$databases['db_actual'];
$databases['multi_praefix'][0]=(isset($databases['praefix'][0])) ? $databases['praefix'][0] : '';
}
else
{
$databases['multi']=explode(';',$databases['multisetting']);
$flipped = array_flip($databases['Name']);
for($i=0;$i<count($databases['multi']);$i++)
{
$ind=$flipped[$databases['multi'][$i]];
$databases['multi_praefix'][$i]=(isset($databases['praefix'][$ind])) ? $databases['praefix'][$ind] : '';
}
}
}
else
{
$databases['multi'][0]=(isset($databases['db_actual'])) ? $databases['db_actual'] : '';
$databases['multi_praefix'][0]=(isset($databases['praefix'])) ? $databases['praefix'][$databases['db_selected_index']] : '';
}
}
function DBDetailInfo($index)
{
global $databases,$config;
$databases['Detailinfo']['tables']=$databases['Detailinfo']['records']=$databases['Detailinfo']['size']=0;
MSD_mysql_connect();
mysql_select_db($databases['Name'][$index]);
$databases['Detailinfo']['Name']=$databases['Name'][$index];
$res=@mysql_query('SHOW TABLE STATUS FROM `'.$databases['Name'][$index].'`');
if($res) $databases['Detailinfo']['tables']=mysql_num_rows($res);
if($databases['Detailinfo']['tables']>0) {
$s1=$s2=0;
for ($i = 0; $i < $databases['Detailinfo']['tables']; $i++)
{
$row = mysql_fetch_array($res);
$s1+=$row['Rows'];
$s2+=$row['Data_length']+$row['Index_length'];
}
$databases['Detailinfo']['records']=$s1;
$databases['Detailinfo']['size']=$s2;
}
}
//Globale Funktionen
function br($m=1)
{
//gibt m Zeilenumbrüche zurück
return str_repeat("\n",$m);
}
function Stringformat($s,$count)
{
if($count>=strlen($s))
return str_repeat("0",$count-strlen($s)).$s;
else
return $s;
}
function getmicrotime()
{
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
function MD_FreeDiskSpace()
{
global $lang;
$dfs=@diskfreespace("../");
return ($dfs) ? byte_output($dfs) : $lang['notavail'];
}
function WriteDynamicText($txt,$object)
{
return '<script language="JavaScript">WP("'.addslashes($txt).','.$object.'");</script>';
}
function byte_output($bytes, $precision = 2, $names = Array())
{
if (!is_numeric($bytes) || $bytes < 0) {
return false;
}
for ($level = 0; $bytes >= 1024; $level++) {
$bytes /= 1024;
}
switch ($level)
{
case 0:
$suffix = (isset($names[0])) ? $names[0] : 'Bytes';
break;
case 1:
$suffix = (isset($names[1])) ? $names[1] : 'KB';
break;
case 2:
$suffix = (isset($names[2])) ? $names[2] : 'MB';
break;
case 3:
$suffix = (isset($names[3])) ? $names[3] : 'GB';
break;
case 4:
$suffix = (isset($names[4])) ? $names[4] : 'TB';
break;
default:
$suffix = (isset($names[$level])) ? $names[$level] : '';
break;
}
return round($bytes, $precision) . ' ' . $suffix;
}
function ExtractDBname($s)
{
if(strpos(strtolower($s),"_structure_file")>0){
return substr($s,0,strpos(strtolower($s),"_structure_file"));
break;
}
$sp=explode('_',$s);
$anz=count($sp)-1;
$r=0;
if($anz>4) {
$df=5; //Datumsfelder
if($sp[$anz-1]=='part') $df+=2;
if($sp[$anz-3]=='crondump' || $sp[$anz-1]=='crondump') $df+=2;
$anz=$anz-$df; //Datum weg
for($i=0;$i<=$anz;$i++){ $r+=strlen($sp[$i])+1;}
return substr($s,0,$r-1);
} else {
//Fremdformat
return substr($s,0,strpos($s,'.'));
}
}
function ExtractBUT($s)
{
$i=strpos(strtolower($s),"part");
if($i>0) $s=substr($s,0,$i-1);
$i=strpos(strtolower($s),"crondump");
if($i>0) $s=substr($s,0,$i-1);
$i=strpos(strtolower($s),".sql");
if($i>0) $s=substr($s,0,$i);
$sp=explode("_",$s);
$anz=count($sp)-1;
if($anz>4) {
return $sp[$anz-2].".".$sp[$anz-3].".".$sp[$anz-4]." ".$sp[$anz-1].":".$sp[$anz];
} else {
//Fremdformat
return "";
}
}
function WriteLog($aktion)
{
global $config,$lang;
$log=date('d.m.Y H:i:s').' '.$aktion."\n";
$logfile=($config['logcompression']==1) ? $config['files']['log'].'.gz' : $config['files']['log'];
if(@filesize($logfile)+strlen($log)>$config['log_maxsize']) @unlink($logfile);
//Datei öffnen und schreiben
if($config['logcompression']==1) {
$fp = @gzopen($logfile, 'a');
if($fp) {
@gzwrite ($fp,$log) .'<br>';
@gzclose ($fp);
} else echo '<p class="warnung">'.$lang['logfilenotwritable'].' ('.$logfile.')</p>';
} else {
$fp = @fopen($logfile, "ab");
if($fp) {
@fwrite ($fp,$log);
@fclose ($fp);
} else echo '<p class="warnung">'.$lang['logfilenotwritable'].' ('.$logfile.')</p>';
}
}
function WritePageParams($aktion)
{
global $config,$restore,$dump,$nl;
$pars="<?$nl";
if($aktion=="dump") {
$datei="dump.tmp";
foreach($dump as $var => $val){
if(is_array($val)) {
foreach($val as $var2 => $val2){
if ($config['magic_quotes_gpc']==0) {
$pars.='$dump[\''.$var.'\']['.((is_int($var2)) ? $var2 : "'".$var2."'").'\'] = "'.addslashes($val2)."\";$nl";
} else {
$pars.='$dump[\''.$var.'\']['.((is_int($var2)) ? $var2 : "'".$var2."'").'\'] = "'.$val2."\";$nl";
}
}
} else {
if ($config['magic_quotes_gpc']==0) {
$pars.='$dump[\''.$var.'\'] = "'.addslashes($val)."\";$nl";
} else {
$pars.='$dump[\''.$var.'\'] = "'.$val."\";$nl";
}
}
}
} elseif($aktion=="restore") {
$datei="restore.tmp";
foreach($restore as $var => $val){
if(is_array($val)) {
foreach($val as $var2 => $val2){
if ($config['magic_quotes_gpc']==0) {
$pars.='$restore[\''.$var.'\']['.((is_int($var2)) ? $var2 : "'".$var2."'").'\'] = "'.addslashes($val2)."\";$nl";
} else {
$pars.='$restore[\''.$var.'\']['.((is_int($var2)) ? $var2 : "'".$var2."'").'] = "'.$val2."\";$nl";
}
}
} else {
if ($config['magic_quotes_gpc']==0) {
$pars.='$restore[\''.$var.'\'] = "'.addslashes($val)."\";$nl";
} else {
$pars.='$restore[\''.$var.'\'] = "'.$val."\";$nl";
}
}
}
}
$pars.="$nl?>";
$fp = @fopen($config['paths']['log'].$datei, "w");
if($fp) {
@fwrite ($fp,$pars."\n");
@fclose ($fp);
}
}
function ErrorLog($dest,$db,$sql,$error,$art=1)
{
//$art=0 -> Fehlermeldung
//$art=1 -> Hinweis
global $config;
if(strlen($sql)>100) $sql=substr($sql,0,100)." ... (snip)";
//Error-Zeile generieren
$errormsg=date('d.m.Y H:i:s').': ';
$errormsg.=($dest=='RESTORE') ? ' Restore of db `'.$db.'`|:|' : ' Dump of db `'.$db.'`|:|';
if ($art==0)
{
$errormsg.='<font color="red">Error-Message: '.$error.'</font>|:|';
}
else
{
$errormsg.='<font color="green">Notice: '.$error.'</font>|:|';
}
$errormsg.='SQL: '.$sql."\n";
//Datei öffnen und schreiben
if($config['logcompression']==1) {
$fp = @gzopen($config['paths']['log'].'error.log.gz', 'ab');
if($fp) {
@gzwrite ($fp,($errormsg));
@gzclose ($fp);
}
} else {
$fp = @fopen($config['paths']['log'].'error.log', 'ab');
if($fp) {
@fwrite ($fp,($errormsg));
@fclose ($fp);
}
}
}
function DirectoryWarnings($path="")
{
global $config;
$warn="";
if($path=="" || $path=="config") if(!is_writable($config['paths']['config'])) $warn.='Configpath is not writable!&nbsp;&nbsp;&nbsp;<a href="main.php?help=1&thema=path&dir=config"><img src="'.$config['files']['iconpath'].'help16.gif" alt="" width="16" height="16" border="0"></a><br>';
if($path=="" || $path=="backup") if(!is_writable($config['paths']['backup'])) $warn.='Backuppath is not writable!&nbsp;&nbsp;&nbsp;<a href="main.php?help=1&thema=path&dir=backup"><img src="'.$config['files']['iconpath'].'help16.gif" alt="" width="16" height="16" border="0"></a><br>';
if($path=="" || $path=="structure") if(!is_writable($config['paths']['structure'])) $warn.='Structurepath is not writable!&nbsp;&nbsp;&nbsp;<a href="main.php?help=1&thema=path&dir=structure"><img src="'.$config['files']['iconpath'].'help16.gif" alt="" width="16" height="16" border="0"></a><br>';
if($path=="" || $path=="log") if(!is_writable($config['paths']['log'])) $warn.='Logpath is not writable!&nbsp;&nbsp;&nbsp;<a href="main.php?help=1&thema=path&dir=log"><img src="'.$config['files']['iconpath'].'help16.gif" alt="" width="16" height="16" border="0"></a><br>';
if($warn!="") $warn='<span class="warnung"><strong>ERROR !</strong><br>'.$warn.'</span>';
return $warn;
}
function TestWorkDir()
{
global $config;
//echo "work_chmod: $config['paths']['work']_chmod<br>";
SetFileRechte($config['paths']['work']);
SetFileRechte($config['paths']['backup']);
SetFileRechte($config['paths']['structure']);
SetFileRechte($config['paths']['log']);
SetFileRechte($config['paths']['config']);
if(!file_exists($config['files']['parameter'])) SetDefault(true);
if(!file_exists($config['files']['log'])) DeleteLog();
}
function SetFileRechte($file,$perm="0777")
{
global $lang;
if(substr($file,-1)!="/") $file.="/";
if(strlen($perm)!=4 || intval($perm)==0 || intval($perm)>777) $perm="0777";
if( (ini_get('safe_mode')==1) && (!(is_dir($file))) )
{
echo $lang['critical_safemode'];
return 0;
} else {
clearstatcache();
if (!@is_dir($file)) @mkdir($file, $perm);
clearstatcache();
$a=@substr(decoct(fileperms($file)),-4);
$ret=1;
if($a!=$perm && (ini_get('safe_mode')!=1)) {
$ret=@chmod($file,$perm);
}
return $ret;
}
}
function SelectDB($index)
{
global $databases;
$databases['db_actual'] = $databases['Name'][$index];
$databases['praefix'][$databases['db_selected_index']] = $databases['praefix'][$index];
$databases['db_selected_index']=$index;
}
function EmptyDB($dbn)
{
global $config;
//$res=mysql_query("DROP DATABASE `$dbn`") or die(mysql_error()."");
//$res=mysql_query("CREATE DATABASE `$dbn`") or die(mysql_error()."");
$t_sql=Array();
$tabellen = mysql_list_tables($dbn,$config['dbconnection']);
$num_tables = mysql_num_rows($tabellen);
for($i=0;$i<$num_tables;$i++) {
$t=mysql_tablename($tabellen,$i);
$t_sql[]="DROP TABLE `$t`;";
}
for($i=0;$i<count($t_sql);$i++) {
$res=mysql_query($t_sql[$i]) or die(mysql_error()."");
}
}
function AutoDelete()
{
global $del_files, $config, $lang,$out;
//Files einlesen
$dh = opendir($config['paths']['backup']);
$dbbackups=Array();
while (false !== ($filename = readdir($dh)))
{
if ($filename != "." && $filename != ".." && !is_dir($config['paths']['backup'].$filename)) {
//statuszeile auslesen
if(substr($filename,-2)=="gz"){
$fp = gzopen ($config['paths']['backup'].$filename, "r");
$sline=gzgets($fp,40960);
gzclose ($fp);
}else{
$fp = fopen ($config['paths']['backup'].$filename, "r");
$sline=fgets($fp,500);
fclose ($fp);
}
$statusline=ReadStatusline($sline);
$tabellenanzahl=($statusline["tables"]==-1) ? "" : $statusline["tables"];
$eintraege=($statusline["records"]==-1) ? "" : $statusline["records"];
$part=($statusline["part"]=="MP_0") ? 0 : substr($statusline["part"],3);
$databases['db_actual']=$statusline["dbname"];
$datum=substr($filename,strlen($databases['db_actual'])+1);
$datum=substr($datum,0,16);
if(isset($dbbackups[$databases['db_actual']])) $dbbackups[$databases['db_actual']]++; else $dbbackups[$databases['db_actual']]=1;
$files[] = "$datum|".$databases['db_actual']."|$part|$filename";
}
}
@rsort($files);
// Mehr Dateien vorhanden, als es laut config.php sein dürften? Dann weg damit :-)
if($config['del_files_after_days']>0) {
$nowtime=strtotime("-".($config['del_files_after_days']+1)." day");
for($i=0; $i<sizeof($files); $i++)
{
$delfile=explode("|",$files[$i]);
$ts=substr($delfile[0],0,4)."-".substr($delfile[0],5,2)."-".substr($delfile[0],8,2);
if(strtotime($ts)<$nowtime){
$out.=DeleteFile($files[$i],"days");
unset($files[$i]);
}
}
}
@rsort($files);
if($config['max_backup_files'] > 0)
{
if (sizeof($files) > $config['max_backup_files'])
{
if($config['max_backup_files_each']==1) {
//gilt es nur für jede Datenbank
for($i=sizeof($files)-1; $i>=0; $i--)
{
$delfile=explode("|",$files[$i]);
if($dbbackups[$delfile[1]] > $config['max_backup_files'])
{
$out.=DeleteFile($files[$i],"max");
unset($files[$i]);
$dbbackups[$delfile[1]]--;
}
}
} else {
//oder gilt es für alle Backups
for($i=sizeof($files)-1; $i>=$config['max_backup_files']; $i--)
{
$delfile=implode("|",$files);
$out.=DeleteFile($files[$i],"max");
unset($files[$i]);
}
}
}
}
return $out;
}
function DeleteFile($files,$function)
{
global $config,$lang;
$delfile=explode("|",$files);
$ll=($function=="max") ? $lang['fm_autodel1']:$lang['fm_autodel2'];
$r="<p class=\"error\">".$ll."<br>";
$r.= $delfile[3]."<br>";
WriteLog("autodeleted ($function) '$delfile[3]'.");
unlink($config['paths']['backup'].$delfile[3]);
$r.= "</p>";
return $r;
}
function ReadStatusline($line)
{
/*AUFBAU der Statuszeile:
-- Status:tabellenzahl:datensätze:Multipart:Datenbankname:script:scriptversion:Kommentar:MySQLVersion:Backupflags:SQLBefore:SQLAfter:EXTINFO
Aufbau Backupflags (1 Zeichen pro Flag, 0 oder 1, 2=unbekannt)
(complete inserts)(extended inserts)(ignore inserts)(delayed inserts)(downgrade)(lock tables)(optimize tables)
*/
$statusline=Array();
if(substr($line,0,8)!="# Status" && substr($line,0,9)!="-- Status")
{
//Fremdfile
$statusline["tables"]=-1;
$statusline["records"]=-1;
$statusline["part"]="MP_0";
$statusline["dbname"]="unknown";
$statusline["script"]="";
$statusline["scriptversion"]="";
$statusline["comment"]="";
$statusline["mysqlversion"]="unknown";
$statusline["flags"]="2222222";
$statusline["sqlbefore"]="";
$statusline["sqlafter"]="";
}
else
{
// MySQLDumper-File - Informationen extrahieren
$s=explode(":",$line);
if(count($s)<12)
{
//fehlenden Elemente auffüllen
$c=count($s);
array_pop($s);
for($i=$c-1;$i<12;$i++) {$s[]="";}
}
$statusline["tables"]=$s[1];
$statusline["records"]=$s[2];
$statusline["part"]=$s[3];
$statusline["dbname"]=$s[4];
$statusline["script"]=$s[5];
$statusline["scriptversion"]=$s[6];
$statusline["comment"]=$s[7];
$statusline["mysqlversion"]=$s[8];
$statusline["flags"]=$s[9];
$statusline["sqlbefore"]=$s[10];
$statusline["sqlafter"]=$s[11];
}
//flags zerlegen
if(strlen($statusline["flags"])<6) $statusline["flags"]="2222222";
$statusline["complete_inserts"]=substr($statusline["flags"],0,1);
$statusline["extended_inserts"]=substr($statusline["flags"],1,1);
$statusline["ignore_inserts"]=substr($statusline["flags"],2,1);
$statusline["delayed_inserts"]=substr($statusline["flags"],3,1);
$statusline["downgrade"]=substr($statusline["flags"],4,1);
$statusline["lock_tables"]=substr($statusline["flags"],5,1);
$statusline["optimize_tables"]=substr($statusline["flags"],6,1);
return $statusline;
}
function NextPart($s,$first=0)
{
global $restore;
$nf=explode('_',$s);
$i=array_search('part',$nf)+1;
$p=substr($nf[$i],0,strpos($nf[$i],'.'));
$ext=substr($nf[$i],strlen($p));
if($first==1) {
$nf[$i]='1'.$ext;
} else {
$nf[$i]=++$p.$ext;
}
$restore['part']=$p;
return implode('_',$nf);
}
function zeit_format($t)
{
$tt_m=floor($t/60);
$tt_s=$t-($tt_m*60);
return $tt_m.' min. '.floor($tt_s).' sec';
}
function ErrorReport()
{
global $config,$PHP_SELF,$PATH,$PATH_TRANSLATED,$SCRIPT_FILENAME,$SCRIPT_NAME,$email,$_SERVER;
$error_kind=$error_aus="";
if(isset($_POST['p']) && $_POST['p']==1) {
//von Programmfehler geposted
$error_kind=$_POST['error_kind'];
$error_aus=$_POST['error_aus'];
}
if(isset($_POST['create_sql'])) {
//vom Parser
$error_kind="Parser-Fehler";
$error_aus=stripslashes(trim($_POST['create_sql']))."\n\n\n".stripslashes(trim($_POST['insert_sql']));
}
$subject = "Fehlerbericht vom ".date("d.m.Y H:s");
$i=0;
$r= '<form action="main.php?action=senderror" method="post">';
$r.='<div id="content"><table class="bordersmall"><tr class="thead"><th align="center" colspan="2"><h4>'.$subject.'</h4></th></tr>'."\n";
$r.='<tr class="'.(($i++ % 2) ? 'dbrow' : 'dbrow1').'"><td>Absender</td><td><input type="text" name="error_absender" size="40" value="'.$config['email_recipient'].'"></td></tr>'."\n";
$r.='<tr class="'.(($i++ % 2) ? 'dbrow' : 'dbrow1').'"><td>Name</td><td><input type="text" name="error_name" size="40"></td></tr>'."\n";
$r.='<tr class="'.(($i++ % 2) ? 'dbrow' : 'dbrow1').'"><td>Art des Fehlers</td><td><input type="text" name="error_kind" value="'.$error_kind.'" size="40"></td></tr>'."\n";
$r.='<tr class="'.(($i++ % 2) ? 'dbrow' : 'dbrow1').'"><td valign="top">Anzeige des Fehlers</td><td><textarea name="error_aus" cols="30" rows="6">'.$error_aus.'</textarea></td></tr>'."\n";
$r.='<tr class="'.(($i++ % 2) ? 'dbrow' : 'dbrow1').'"><td valign="top">zusätzliche Bemerkungen</td><td><textarea name="error_zusatz" cols="30" rows="6"></textarea></td></tr>'."\n";
$vi= '<tr class="'.(($i++ % 2) ? 'dbrow' : 'dbrow1').'"><td>MySQLDump-Version</td><td><b>'.MSD_VERSION.'</b></td></tr>'."\n";
$vi.= '<tr class="'.(($i++ % 2) ? 'dbrow' : 'dbrow1').'"><td>MySQL-Version</td><td><b>'.MSD_MYSQL_VERSION.'</b></td></tr>'."\n";
$vi.= '<tr class="'.(($i++ % 2) ? 'dbrow' : 'dbrow1').'"><td>PHP-Version</td><td><b>'.phpversion().'</b></td></tr>'."\n";
$vi.= '<tr class="'.(($i++ % 2) ? 'dbrow' : 'dbrow1').'"><td>PHP-Extensions</td><td width="600"><b>'.implode(" ",get_loaded_extensions()).'</b></td></tr>'."\n";
$vi.= '<tr class="'.(($i++ % 2) ? 'dbrow' : 'dbrow1').'"><td>safe_mode</td><td width="600"><b>'.(($config['safe_mode']==1) ? "on" : "off").'</b></td></tr>'."\n";
$vi.= '<tr class="'.(($i++ % 2) ? 'dbrow' : 'dbrow1').'"><td>magic_quotes</td><td width="600"><b>'.(($config['magic_quotes_gpc']==1) ? "on" : "off").'</b></td></tr>'."\n";
$vi.= '<tr class="'.(($i++ % 2) ? 'dbrow' : 'dbrow1').'"><td>Variable rootdir</td><td width="600"><b>'.addslashes($config['paths']['root']).'</b></td></tr>'."\n";
$vi.= '<tr class="'.(($i++ % 2) ? 'dbrow' : 'dbrow1').'"><td>Server PHP_SELF</td><td width="600"><b>'.$_SERVER['PHP_SELF'].'</b></td></tr>'."\n";
$vi.= '<tr class="'.(($i++ % 2) ? 'dbrow' : 'dbrow1').'"><td>Server Path</td><td width="600"><b>'. addslashes(str_replace(';',";<br>",str_replace('\\','/',$_SERVER['PATH']))).'</b></td></tr>'."\n";
$vi.= '<tr class="'.(($i++ % 2) ? 'dbrow' : 'dbrow1').'"><td>Server Script-Filename</td><td width="600"><b>'.$_SERVER['SCRIPT_FILENAME'].'</b></td></tr>'."\n";
$vi.= '<tr class="'.(($i++ % 2) ? 'dbrow' : 'dbrow1').'"><td>Server Script-Name</td><td width="600"><b>'.$_SERVER['SCRIPT_NAME'].'</b></td></tr>'."\n";
$vi.= '<tr class="'.(($i++ % 2) ? 'dbrow' : 'dbrow1').'"><td>Global PHP_SELF</td><td width="600"><b>'.$PHP_SELF.'</b></td></tr>'."\n";
$vi.= '<tr class="'.(($i++ % 2) ? 'dbrow' : 'dbrow1').'"><td>Global Path</td><td width="600"><b>'. addslashes($PATH).'</b></td></tr>'."\n";
$vi.= '<tr class="'.(($i++ % 2) ? 'dbrow' : 'dbrow1').'"><td>Global Path-Translated</td><td width="600"><b>'. addslashes($PATH_TRANSLATED).'</b></td></tr>'."\n";
$vi.= '<tr class="'.(($i++ % 2) ? 'dbrow' : 'dbrow1').'"><td>Global Script-Filename</td><td width="600"><b>'.addslashes($SCRIPT_FILENAME).'</b></td></tr>'."\n";
$vi.= '<tr class="'.(($i++ % 2) ? 'dbrow' : 'dbrow1').'"><td>Global Script-Name</td><td width="600"><b>'.addslashes($SCRIPT_NAME).'</b></td></tr>'."\n";
$formvi=str_replace("<","&lt;",$vi);
$formvi=str_replace(">","&gt;",$formvi);
//Form-vars
$r.=$vi.'<input type="hidden" name="error_vars" value="'.$formvi.'">';
$r.='<input type="hidden" name="error_subject" value="'.$subject.'">';
$r.='<input type="hidden" name="error_mailfrom" value="'.$config['email_sender'].'">';
$r.= '<tr class="'.(($i++ % 2) ? 'dbrow' : 'dbrow1').'"><td colspan="2" align="center"><input class="Formbutton" type="submit" name="error_submit" value="Fehlerbericht absenden"></td></tr>';
$r.= "</table><br><br><a href='main.php'>Home</a>".MSDFooter();
return $r;
}
function TesteFTP($ftp_server,$ftp_port,$ftp_user_name,$ftp_user_pass,$ftp_dir)
{
global $lang,$config;
if(!isset($config['ftp_timeout'])) $config['ftp_timeout']=60;
if($ftp_port=="" || $ftp_port==0) $ftp_port=21;
$pass=-1;
if(!extension_loaded("ftp")) {
$s='<span class="error">'.$lang['noftppossible'].'+++</span>';
} else $pass=0;
if($pass==0) {
if($ftp_server=="" || $ftp_user_name=="" || $ftp_user_pass=="") {
$s='<span class="error">'.$lang['wrongconnectionpars'].'</span>';
} else $pass=1;
}
if($pass==1) {
$s=$lang['connect_to'].' `'.$ftp_server.'` Port '.$ftp_port.'<br>';
if($config['ftp_useSSL']==0) {
$conn_id = @ftp_connect($ftp_server,$ftp_port,$config['ftp_timeout']);
} else {
$conn_id = @ftp_ssl_connect($ftp_server,$ftp_port,$config['ftp_timeout']);
}
if ($conn_id) $login_result = @ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
if(!$conn_id || (!$login_result)) {
$s.='<span class="error">'.$lang['conn_not_possible'].'</span>';
} else $pass=2;
}
if($pass==2) {
$s.='<br><strong>Login ok</strong><br>'.$lang['changedir'].' `'.$ftp_dir.'` ... ';
$dirc=@ftp_chdir($conn_id,$ftp_dir);
if(!$dirc) {
$s.='<br><span class="error">'.$lang['changedirerror'].'</span>';
} else $pass=3;
@ftp_close($conn_id);
}
if($pass==3) $s.='<br><br><strong>'.$lang['ftp_ok'].'</strong>';
return $s;
}
function Realpfad($p) {
global $config;
if(!isset($config['disabled'])) $config['disabled']=ini_get("disable_functions");
if(strpos($config['disabled'],"realpath"))
$s=getcwd();
else
$s=realpath($p);
$s=str_replace("\\","/",$s);
if(substr($s,-1)!="/") $s.="/";
return $s;
}
function GetPerlConfigs() {
global $config;
$default=$config['cron_configurationfile'];
$dh = opendir($config['paths']['config']);
$r="";
while (false !== ($filename = readdir($dh)))
{
if ($filename != "." && $filename != ".." && !is_dir($config['paths']['config'].$filename) && substr($filename,-5)==".conf") {
$f=substr($filename,0,strlen($filename)-5);
$r.='<option value="'.$f.'" ';
if($filename==$default) $r.=' SELECTED';
$r.='>&nbsp;&nbsp;'.$f.'&nbsp;&nbsp;</option>'."\n";
}
}
return $r;
}
function GetThemes() {
global $config;
$default=$config['theme'];
$dh = opendir($config['paths']['root']."css/");
$r="";
while (false !== ($filename = readdir($dh)))
{
if ($filename != "." && $filename != ".." && is_dir($config['paths']['root']."css/".$filename)) {
$r.='<option value="'.$filename.'" ';
if($filename==$default) $r.=' SELECTED';
$r.='>&nbsp;&nbsp;'.$filename.'&nbsp;&nbsp;</option>'."\n";
}
}
return $r;
}
function GetLanguageCombo($k="op",$class="",$name="",$start="",$end="") {
global $config,$lang;
$default=$config['language'];
$dh = opendir($config['paths']['root']."language/");
$r="";
while (false !== ($filename = readdir($dh)))
{
if ($filename != "." && $filename != '.svn' && $filename != ".." && $filename != "flags" && is_dir($config['paths']['root']."language/".$filename)) {
//echo $config['paths']['root']."language/".$filename."<br>";
if($k=="op") {
$r.=$start.'<option value="'.$filename.'" ';
if($filename==$default) $r.=' SELECTED';
$r.=' class="'.$class.'">&nbsp;&nbsp;'.$lang[$filename].'&nbsp;&nbsp;</option>'.$end."\n";
} elseif($k=="radio") {
$r.=$start.'<input type="radio" class="'.$class.'" name="'.$name.'" value="'.$filename.'" '.(($filename==$default) ? "checked" : "").' onclick="show_tooldivs(\''.$filename.'\');"><img src="language/flags/'.$filename.'.gif" alt="" width="25" height="15" border="0">&nbsp;&nbsp;&nbsp;'.$lang[$filename].$end."\n";
}
}
}
return $r;
}
function headline($title,$mainframe=1) {
global $config,$lang;
$s="";
if($config['interface_server_caption']==1) {
if($config['interface_server_caption_position']==$mainframe) {
$s.='<div id="server'.$mainframe.'">'.$lang['server'].': <a class="server" href="http://'.$_SERVER['SERVER_NAME'].'" target="_blank" title="'.$_SERVER['SERVER_NAME'].'">'.$_SERVER['SERVER_NAME'].'</a></div>';
}
}
if ($mainframe==1) {
$s.='<div id="pagetitle">'.$title.'</div>';
$s.='<div id="content">';
}
return $s;
}
function PicCache($rpath="./") {
global $BrowserIcon,$config;
$t='<div style="display:none">';
$dh=opendir($config['files']['iconpath']);
while (false !== ($filename = readdir($dh)))
{
if ($filename != "." && $filename != ".." && !is_dir($config['files']['iconpath'].$filename)) {
$t.='<img src="'.$config['files']['iconpath'].$filename.'" width="16" height="16" alt="">';
}
}
$t.='</div>';
return $t;
}
function MSDHeader($kind=0,$onloadFunction="")
{
global $config, $databases,$lang,$frameset_restore;
//kind 0=main 1=menu 2=help
$d=($kind==2) ? "../../" : "./";
$r='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">'."\n<html>\n<head>\n";
if ($kind==0) {
//Main without caching
$r.='<META HTTP-EQUIV="Pragma" CONTENT="no-cache">'."\n";
} else {
$r.='<META HTTP-EQUIV="cache-control" CONTENT="public">'."\n";
}
$r.='<meta http-equiv="Content-Type" content="text/html; charset=utf-8">'."\n";
$r.='<META NAME="robots" CONTENT="none">'."\n";
$r.='<META NAME="robots" CONTENT="noindex">'."\n";
$r.='<title>MySqlDumper</title>'."\n";
$r.='<link rel="stylesheet" type="text/css" href="'.$d.'css/'.$config['theme'].'/style.css">'."\n";
$r.='<script language="JavaScript" src="'.$d.'js/script.js" type="text/javascript"></script>'."\n";
if($frameset_restore==1) $r.='<script language="JavaScript">
//restore the frameset
var params="";
if(document.URL.indexOf("/") != -1)
{
var stringArray = document.URL.split("/");
params = stringArray.pop();
}
if (parent.frames.length == 0) { parent.location.href="index.php?page="+params; }
</script>';
$r.="</head>\n<body ".(($kind==1) ? 'class="menu"' : '').(($onloadFunction!="") ? ' onload="'.$onloadFunction.'();"' : '').'>';
return $r;
}
function MSDFooter($rfoot="",$enddiv=1)
{
global $config, $databases,$dump,$restore,$lang;
$f= '<div id="footer">'.$lang['authors'].':&nbsp;
<a class="small" href="http://dislabs.de" target="_new">
Daniel Schlichtholz & Steffen Kamper</a> - Infoboard:
<a class="small" href="'.$config['homepage'].'" target="_blanc">'.
$config['homepage'].'</a></div>';
if($enddiv==1) $f.= '</div>';
$f.=$rfoot.'</body></html>';
return $f;
}
function save_bracket($str)
{
// Wenn Klammer zu am Ende steht, diese behalten
$str=trim($str);
if (substr($str,-1)==')') $str=')';
else $str='';
return $str;
}
function DownGrade($s,$show=true)
{
// if (MSD_NEW_VERSION && strpos(strtolower($s),"collate ") && ($show) ) {
// return $s;
// } else {
$tmp=explode(",",$s);
//echo "<pre>";print_r($tmp);echo "</pre>";
for($i=0;$i<count($tmp);$i++) {
$t=strtolower($tmp[$i]);
if(strpos($t,"collate ")) {
$tmp2=explode(" ",$tmp[$i]);
for($j=0;$j<count($tmp2);$j++) {
if(strtolower($tmp2[$j])=="collate") {$tmp2[$j]="";$tmp2[$j+1]=save_bracket($tmp2[$j+1]);$j++;}
}
$tmp[$i]=implode(" ",$tmp2);
}
if(strpos($t,"engine=")) {
$tmp2=explode(" ",$tmp[$i]);
for($j=0;$j<count($tmp2);$j++) {
//echo $j.": ".$tmp2[$j]."<br>";
if(substr(strtoupper($tmp2[$j]),0,7)=="ENGINE=") $tmp2[$j]="TYPE=".substr($tmp2[$j],7);
if(substr(strtoupper($tmp2[$j]),0,8)=="CHARSET=") { $tmp2[$j]="";
$tmp2[$j-1]=save_bracket($tmp2[$j-1]);}
if(substr(strtoupper($tmp2[$j]),0,8)=="COLLATE=")
{
$tmp2[$j]=save_bracket($tmp2[$j]);
if (isset($tmp2[$j+1])) $tmp2[$j+1]=save_bracket($tmp2[$j+1]);
$tmp2[$j-1]="";
}
}
$tmp[$i]=implode(" ",$tmp2);
}
// collate entfernen
if(strpos($t,"collate"))
{
$tmp2=explode(" ",$tmp[$i]);
$end=false;
for($j=0;$j<count($tmp2);$j++) {
if(strtolower($tmp2[$j])=="collate"){
$tmp2[$j]=save_bracket($tmp2[$j]);
$tmp2[$j+1]=save_bracket($tmp2[$j+1]);
}
}
$tmp[$i]=implode(" ",$tmp2);
}
// character Set sprache entfernen
if(strpos($t,"character set"))
{
$tmp2=explode(" ",$tmp[$i]);
$end=false;
for($j=0;$j<count($tmp2);$j++) {
if(strtolower($tmp2[$j])=="character"){
$tmp2[$j]='';
$tmp2[$j+1]=save_bracket($tmp2[$j+1]);
$tmp2[$j+2]=save_bracket($tmp2[$j+2]);
}
}
$tmp[$i]=implode(" ",$tmp2);
}
if(strpos($t,"timestamp")) {
$tmp2=explode(" ",$tmp[$i]);
$end=false;
for($j=0;$j<count($tmp2);$j++) {
if($end) $tmp2[$j]="";
if(strtolower($tmp2[$j])=="timestamp"){
$tmp2[$j]="TIMESTAMP(14)";
$end=true;
}
}
$tmp[$i]=implode(" ",$tmp2);
}
}
$t=implode(",",$tmp);
if(substr(rtrim($t),-1)!=";") $t=rtrim($t).";";
// if (strpos($t,'en_rules')) die ("<hr>".$t."</hr>");
return $t;
// }
}
function MySQL_Ticks($s) {
$klammerstart=$end=0;
$inner_s_start=strpos($s,"(");
$inner_s_end=strrpos($s,")");
$inner_s=substr($s,$inner_s_start+1,$inner_s_end-(1+$inner_s_start));
$pieces=explode(",",$inner_s);
for($i=0;$i<count($pieces);$i++) {
$r=trim(rtrim($pieces[$i]));
$klammerstart+=substr_count($r, "(")-substr_count($r, ")");
if($i==count($pieces)-1) $klammerstart+=1;
if(substr(strtoupper($r),0,4)=="KEY " ||
substr(strtoupper($r),0,7)=="UNIQUE " ||
substr(strtoupper($r),0,12)=="PRIMARY KEY " ||
substr(strtoupper($r),0,13)=="FULLTEXT KEY "
) {
//nur ein Key
$end=1;
} else {
if(substr($r,0,1)!="`" && substr($r,0,1)!="'" && $klammerstart==0 && $end==0) {
$pos=strpos($r," ");
$r="`".substr($r,0,$pos)."`".substr($r,$pos);
}
}
$pieces[$i]=$r;
}
$back=substr($s,0,$inner_s_start+1).implode(",",$pieces).");";
return $back;
}
?>

Datei anzeigen

@ -0,0 +1,499 @@
<?php
include_once('./inc/functions_global.php');
include_once('./inc/runtime.php');
define('DEBUG',0);
function AnzahlTabellenfelder($s,$debug=0)
{
/******* Diese Funktion wird nur in der develop.php gebraucht *******/
// ermittelt die Anzahl der Spalten einer Tabelle aus einer CREATE-Anweisung
$anz=$anz_delimter=$rit=$klammerstart=$klammerauf=$klammerzu=0;
$s=strtoupper($s);
$i=strpos($s,"(")+1;
$s=substr($s,$i);
$tb=explode(',',$s);
$defaultstart=false;
for ($i=0;$i<count($tb);$i++){
$tb[$i]=trim($tb[$i]);
$klammerstart+=substr_count($tb[$i], "(")-substr_count($tb[$i], ")");
if($i==count($tb)-1) $klammerstart+=1;
$anz_delimter+=substr_count($tb[$i], "'");
if($anz_delimter % 2 ==0) $anz_delimter=0;
//kommt ein Index???
if(substr($tb[$i],0,4)=='KEY ' ||
substr($tb[$i],0,7)=='UNIQUE ' ||
substr($tb[$i],0,12)=='PRIMARY KEY ' ||
substr($tb[$i],0,13)=='FULLTEXT KEY '
) {
$rit=1;
} else {
if($klammerstart==0 && $anz_delimter==0) {
if($rit==0) $anz++;
$rit=0;
}
}
if($debug==1) echo "$i: $tb[$i]".' <font color="#0000FF">'.$anz."</font> [offene Klammern: $klammerstart] --$rit<br>";
}
return $anz;
}
function get_sqlbefehl()
{
global $restore,$config,$databases,$lang;
//Init
$restore['fileEOF']=false;
$restore['EOB']=false;
$complete_sql='';
$sqlparser_status=0;
if(!isset($restore['eintraege_ready'])) $restore['eintraege_ready']=0;
//Parsen
WHILE ($sqlparser_status!=100 && !$restore['fileEOF'] && !$restore['EOB'] )
{
//nächste Zeile lesen
$zeile= ($restore['compressed']) ? gzgets($restore['filehandle']) : fgets($restore['filehandle']);
/******************* Setzen des Parserstatus *******************/
// herausfinden um was für einen Befehl es sich handelt
IF ($sqlparser_status==0)
{
//Vergleichszeile, um nicht bei jedem Vergleich strtoupper ausführen zu müssen
$zeile2=strtoupper(trim($zeile));
// Am Ende eines MySQLDumper-Backups angelangt?
if(substr($zeile2,0,6)=='-- EOB' || substr($zeile2,0,5)=='# EOB')
{
$restore['EOB']=true;
$zeile='--';$zeile2='--';
$sqlparser_status=100;
}
// Kommenatr?
if ( (substr($zeile2,0,2)=='--') || (substr($zeile2,0,1)=='#') )
{
$zeile='';$zeile2=''; $sqlparser_status=0;
}
//Einfache Anweisung finden die mit Semikolon beendet werden
if(substr($zeile2,0,11)=='LOCK TABLES') $sqlparser_status=5;
if(substr($zeile2,0,6)=='COMMIT') $sqlparser_status=5;
if(substr($zeile2,0,5)=='BEGIN') $sqlparser_status=5;
if(substr($zeile2,0,13)=='UNLOCK TABLES') $sqlparser_status=5;
if(substr($zeile2,0,4)=='SET ') $sqlparser_status=5;
if(substr($zeile2,0,6)=='START ') $sqlparser_status=5;
if(substr($zeile2,0,3)=='/*!') $sqlparser_status=5; //MySQL-Condition oder Kommentar
if(substr($zeile2,0,12)=='CREATE TABLE') $sqlparser_status=2; //Createaktion
if(substr($zeile2,0,12)=='CREATE INDEX') $sqlparser_status=4; //Indexaktion
//Kommentar
if ( ($sqlparser_status!=5) && (substr($zeile2,0,2)=='/*')) $sqlparser_status=6;
// Befehle, die nicht ausgeführt werden sollen
if (substr($zeile2,0,4)=='USE ') $sqlparser_status=7;
if (substr($zeile2,0,14)=='DROP DATABASE ') $sqlparser_status=7;
if(substr($zeile2,0,10)=='DROP TABLE') $sqlparser_status=1; //Löschaktion
if (substr($zeile2,0,7)=='INSERT ')
{
$sqlparser_status=3; //Datensatzaktion
//$restore['actual_table']=strtolower(get_tablename_aus_insert($zeile));
$restore['actual_table']=get_tablename_aus_insert($zeile);
// Pruefen ob die Spaltenanzahl bekannt ist und wenn nicht setzen
if(!isset($restore['num_table_fields'][$restore['actual_table']]))
{
$restore['num_table_fields'][$restore['actual_table']]=get_num_rows($restore['actual_table']);
}
}
// Fortsetzung von erweiterten Inserts
if ($restore['flag']==1) $sqlparser_status=3;
if ( ($sqlparser_status==0) && (trim($complete_sql)>'') && ($restore['flag']==-1) )
{
// Unbekannten Befehl entdeckt
v($restore);
echo "<br>Sql: ".$complete_sql;
echo "<br>Erweiterte Inserts: ".$restore['erweiterte_inserts'];
die('<br>'.$lang['unknown_sqlcommand'].': '.$zeile);
}
/******************* Ende von Setzen des Parserstatus *******************/
}
$last_char=substr(rtrim($zeile),-1);
// Zeilenumbrüche erhalten - sonst werden Schlüsselwörter zusammengefügt
// z.B. 'null' und in der nächsten Zeile 'check' wird zu 'nullcheck'
$complete_sql.=$zeile."\n";
if($sqlparser_status==1)
{ //Löschaktion
if($last_char==';') $sqlparser_status=100; //Befehl komplett
}
if($sqlparser_status==2)
{
// Createanweisung ist beim Finden eines ; beendet
if($last_char==';' )
{
if($config['minspeed']>0) $restore['anzahl_zeilen']=$config['minspeed'];
//Spaltenanzahl fuer diese Tabelle merken
$restore['actual_table']=get_tablename($complete_sql);
$complete_sql=del_inline_comments($complete_sql); //Inline-Kommentare entfernen
//Create ausfuehren und Anzahl der Spalten speichern
$restore['actual_fieldcount']=submit_create_action($complete_sql);
$restore['num_table_fields'][$restore['actual_table']]=$restore['actual_fieldcount'];
// Zeile verwerfen und naechsten Befehl suchen
$complete_sql='';
$sqlparser_status=0;
}
}
if($sqlparser_status==3)
{
//INSERT
// Anzahl der Felder ermitteln wenn unbekannt
if(!isset($restore['num_table_fields'][$restore['actual_table']]))
{
$restore['num_table_fields'][$restore['actual_table']]=get_num_rows($restore['actual_table']);
}
$AnzahlFelder=SQL_Is_Complete($complete_sql,$restore['num_table_fields'][$restore['actual_table']],DEBUG);
// einen vollständigen Insert ermittelt
if($AnzahlFelder==$restore['num_table_fields'][$restore['actual_table']])
{
$sqlparser_status=100;
$complete_sql=trim($complete_sql);
// letzter Ausdruck des erweiterten Inserts erreicht?
if(substr($complete_sql,-2)==');')
{
$restore['flag']=-1;
}
// Wenn am Ende der Zeile ein Klammer Komma -> erweiterter Insert-Modus -> Steuerflag setzen
if(substr($complete_sql,-2)=='),')
{
// letztes Komme gegen Semikolon tauschen
$complete_sql=substr($complete_sql,0,-1).';';
$restore['erweiterte_inserts']=1;
$restore['flag']=1;
}
if (substr($complete_sql,0,7)!='INSERT ')
{
$complete_sql=$restore['insert_syntax'].' VALUES '.$complete_sql.';';
}
else
{
// INSERT Syntax ermitteln und merken
$ipos=strpos(strtoupper($complete_sql),'VALUES');
if (!$ipos===false) $restore['insert_syntax']=substr($complete_sql,0,$ipos);
else $restore['insert_syntax']='INSERT INTO `'.$restore['actual_table'].'`';
}
if($AnzahlFelder>$restore['num_table_fields'][$restore['actual_table']] && $restore['erweiterte_inserts']==0)
{
if(!isset($restore['table_create'][$restore['actual_table']]))
{
global $lang;
include('./inc/functions_sql.php');
$restore['table_create'][$restore['actual_table']]=GetCreateTable($databases['db_actual'],$restore['actual_table']);
}
echo '<form action="main.php?action=extinfo" method="post">';
echo '<p class="warnung">Parser-Fehler : zuviele gezählt in Tabelle '.$restore["actual_table"].' ('.$AnzahlFelder.' statt '.$restore["num_table_fields"][$restore["actual_table"]].')';
echo '<br>Aktuelle Tabelle: '.$restore['actual_table'];
echo '<h4>CREATE-Anweisung</h4><textarea name="create_sql" style="width:90%;height:200px;">'.$restore["table_create"][$restore["actual_table"]].'</textarea>';
echo '<h4>INSERT-Anweisung</h4><textarea name="insert_sql" style="width:90%;height:200px;">'.$complete_sql.'</textarea></p><br>';
echo '<br><br><input type="submit" name="tell_error" value="Fehlerbericht"></form>'.$zeile;
die;
}
}
}
// Index
if($sqlparser_status==4)
{ //Createindex
if($last_char==';' )
{
if($config['minspeed']>0) {$restore['anzahl_zeilen']=$config['minspeed'];}
$complete_sql=del_inline_comments($complete_sql);
$sqlparser_status=100; //Befehl komplett
}
}
// Kommentar oder Condition
if($sqlparser_status==5)
{ //Anweisung
if($last_char==';' )
{
if($config['minspeed']>0) {$restore['anzahl_zeilen']=$config['minspeed'];}
$complete_sql=del_inline_comments($complete_sql);
$sqlparser_status=100; //Befehl komplett
}
}
// Mehrzeiliger oder Inline-Kommentar
if($sqlparser_status==6)
{
if(!strrpos($zeile,'*/')===false)
{
$complete_sql=trim(del_inline_comments($complete_sql));
$sqlparser_status=0;
}
}
// Befehle, die verworfen werden sollen
if($sqlparser_status==7)
{ //Anweisung
if($last_char==';' )
{
if($config["minspeed"]>0) {$restore["anzahl_zeilen"]=$config["minspeed"];}
$complete_sql='';
$sqlparser_status=0;
}
}
if ( ($restore['compressed']) && (gzeof($restore['filehandle'])) ) $restore['fileEOF']=true;
if ( (!$restore['compressed']) && (feof($restore['filehandle'])) ) $restore['fileEOF']=true;
}
return trim($complete_sql);
}
function submit_create_action($sql)
{
//Führt eine Create-Anweisung durch und ermittelt danach die Anzahl der aktuellen Spalten
// und legt diese im Array ab
global $restore;
$tablename=get_tablename($sql);
if (DEBUG)
{
echo "<br>Tabellenname: ".$tablename;
echo "<br>Create: ".$sql;
}
$res=mysql_query($sql);
if (!$res===false)
{
if (DEBUG) echo "<br>Create-Anweisung erfolgreich ausgeführt.";
$restore['actual_table']=$tablename;
$restore['table_ready']++;
}
else
{
//erster Versuch die Tabelle anzulegen hat nicht geklappt
// versuchen wir es mal mit der alten Syntax
$res=mysql_query(downgrade($sql));
if (!$res===false)
{
if (DEBUG) echo "<br>Create-Anweisung nach Downgrade erfolgreich ausgeführt.";
$restore['actual_table']=$tablename;
$restore['table_ready']++;
}
else
{
SQLError($sql,'Couldn\'t create table: '.$tablename);
die();
}
}
return get_num_rows($tablename);
}
function get_num_rows($tablename)
{
//Anzahl der Tabellenspalten ermitteln
$sql='SHOW COLUMNS FROM `'.$tablename.'`';
$res=mysql_query($sql);
if ($res)
{
$num_rows=mysql_num_rows($res);
}
else
{
global $restore;
v($restore);
die('Couldn\'t read rowcount for table '.$tablename.'!<br>Restore:'.$restore['actual_table']);
}
return $num_rows;
}
function del_inline_comments($sql)
{
$sql=str_replace("\n",'<br>',$sql);
//Inline-Kommentare entfernen
preg_match_all("/(\/\*(.+)\*\/)/U",$sql,$array);
if (is_array($array[0]))
{
if (DEBUG)
{
v($array);
echo"<br><hr>vorher:<br>".$sql."<br><hr>";
}
$sql=str_replace($array[0],'',$sql);
if (DEBUG) echo"Nachher: :<br>".$sql."<br><hr>";
}
$sql=trim(str_replace('<br>',"\n",$sql));
//Wenn nach dem Entfernen nur noch ein ; übrigbleibt -> entfernen
if ($sql==';') $sql='';
return $sql;
}
function lock_table()
{
global $config,$restore;
if ($config["lock_tables"]==1 && (isset($restore["actual_table"])) && ($restore["actual_table"]<>"unbekannt") )
{
$sql="LOCK TABLES `".$restore["actual_table"]."` WRITE";
$res=MSD_query($sql) || die(SQLError("Kein Lock ausgeführt!",mysql_error()));
}
}
function stri_replace($original,$patterns)
{
$finalremove=$original;
$piece_front='';
$piece_back='';
$piece_replace='';
for ($x=0; $x < count($patterns); $x++)
{
$safety=0;
while(strstr(strtolower($finalremove),strtolower($patterns[$x])))
{
$safety=$safety+1;
if ($safety >= 100000) { break; }
$occ=strpos(strtolower($finalremove),strtolower($patterns[$x]));
$piece_front=substr($finalremove,0,$occ);
$piece_back=substr($finalremove,($occ+strlen($patterns[$x])));
$finalremove=$piece_front . $piece_replace . $piece_back;
}
}
return $finalremove;
}
// extrahiert auf einfache Art den Tabellennamen aus dem "Create"-Befehl
function get_tablename($t)
{
global $restore;
$ersetzen=array('CREATE TABLE','IF NOT EXISTS');
$t=trim(stri_replace($t,$ersetzen));
$t=trim(str_replace('(',' ',$t));
$w=explode(' ',$t);
$tn=$w[0];
if(substr($tn,0,1)=='`') $tn=substr($tn,1,strlen($tn)-2);
return $tn;
}
// extrahiert auf einfache Art den Tabellennamen aus dem "Insert"-Befehl
function get_tablename_aus_insert($t)
{
$t=substr($t,strpos(strtolower($t), 'into ')+5);
$w=explode(' ',$t);
$tn=$w[0];
if(substr($tn,0,1)=='`') $tn=substr($tn,1,strlen($tn)-2);
return $tn;
}
function SQL_Is_Complete($s,$expected=0,$debug=0)
{
global $restore;
if ($debug) echo "<br>Zu analysieren:".$s."<br>";
$anz=$f_begin=$f_end=$restore["erw_anz"]=0;
$Backslash=chr(92);
$s=trim(strtoupper(($s)));
if(substr($s,-2)==");" || substr($s,-2)=="),") $s=substr($s,0,strlen($s)-2);
if(substr($s,-1)==")") $s=substr($s,0,strlen($s)-1);
if(strpos($s," VALUES")) {
$i=strpos($s," VALUES")+7;
$s=substr($s,$i);
}
$i=strpos($s,"(")+1;
$s=substr($s,$i);
$tb=explode(",",$s);
for ($i=0;$i<count($tb);$i++){
$first=$B_Esc=$B_Ticks=$B_Dashes=0;
$v=trim(rtrim($tb[$i]));
//erweitert ?
if($anz==0 && $restore["erweiterte_inserts"]==1 && substr($v,0,1)=="(") $v=substr($v,1);
if($expected>0 && $anz==$expected-1 && substr($v,-1)==")") {
$v=substr($v,0,strlen($v)-1); // ) entfernen
//if($i+1<count($tb)) $tb[$i+1]=substr(trim(rtrim($tb[$i+1])),1);
if($restore["erweiterte_inserts"]==0) {
$restore["erweiterte_inserts"]=1;
$restore["flag"]=1;
}
}
//Ticks + Dashes zählen
for($cpos=2;$cpos<=strlen($v);$cpos++)
{if(substr($v,(-1*$cpos),1)=="'") {$B_Ticks++;} else {break;}}
for($cpos=2;$cpos<=strlen($v);$cpos++)
{if(substr($v,(-1*$cpos),1)=='"') {$B_Dashes++;} else {break;}}
//Backslashes zählen
for($cpos=2+$B_Ticks;$cpos<=strlen($v);$cpos++)
{if(substr($v,(-1*$cpos),1)=="\\") {$B_Esc++;} else {break;}}
if($v=="NULL" && $f_begin==0){$f_begin=1;$f_end=1;}
if($f_begin==0 && is_numeric($v)){$f_begin=1;$f_end=1;}
//blob fix von PHPMyAdmin Dump
if($f_begin==0 && substr($v,0,2)=="0X" && strpos($v," ")==false){$f_begin=1;$f_end=1;}
if($f_begin==0 && is_object($v)){$f_begin=1;$f_end=1;}
if(substr($v,0,1)=="'" && $f_begin==0) {$f_begin=1;if(strlen($v)==1)$first=1;$DELIMITER="'";}
if(substr($v,0,1)=='"' && $f_begin==0) {$f_begin=1;if(strlen($v)==1)$first=1;$DELIMITER='"';}
if($f_begin==1 && $f_end!=1 && $first==0){
if (substr($v,-1)==$DELIMITER){
$B_Delimiter=($DELIMITER=="'") ? $B_Ticks : $B_Dashes;
//ist Delimiter maskiert?
if (($B_Esc % 2)==1 && ($B_Delimiter % 2)==1 && strlen($v)>2) {
$f_end=1;
} elseif (($B_Delimiter % 2)==1 && strlen($v)>2) {
//ist mit `'` maskiert
$f_end=0;
} elseif(($B_Esc % 2)==1) {
//ist mit Backslash maskiert
$f_end=0;
} else {
$f_end=1;
}
}
}
if($debug==1) echo "<font color='#0000FF'>$f_begin/$f_end</font> Feld $i: ".htmlspecialchars($tb[$i])."<font color=#008000>- $anz ($B_Ticks / $B_Esc)</font><br>";
if($f_begin==1 && $f_end==1) {
$anz++;
$f_begin=$f_end=0;
if($anz==$expected) {
$restore["erw_anz"]++;
if($debug==1) echo "<h5>".$restore["erw_anz"].".Insert - (".$anz." Felder)</h5>";
$anz=0;
}
}
}
if($anz==0 && $expected>0 && $restore["erw_anz"]>0) $anz=$expected;
return $anz;
}
?>

Datei-Diff unterdrückt, da er zu groß ist Diff laden

11
mysqldumper/inc/header.php Normale Datei
Datei anzeigen

@ -0,0 +1,11 @@
<?php
include_once('./inc/functions.php');
include_once('./inc/mysql.php');
if(!file_exists($config['files']['parameter'])) TestWorkDir();
include('./'.$config['files']['parameter']);
include('./language/lang_list.php');
SelectDB($databases['db_selected_index']);
$config['files']['iconpath']='css/'.$config['theme'].'/icons/';
?>

120
mysqldumper/inc/mysql.php Normale Datei
Datei anzeigen

@ -0,0 +1,120 @@
<?php
//Feldspezifikationen
$feldtypen=Array("VARCHAR","TINYINT","TEXT","DATE","SMALLINT","MEDIUMINT","INT","BIGINT","FLOAT","DOUBLE","DECIMAL","DATETIME","TIMESTAMP","TIME","YEAR","CHAR","TINYBLOB","TINYTEXT","BLOB","MEDIUMBLOB","MEDIUMTEXT","LONGBLOB","LONGTEXT","ENUM","SET");
$feldattribute=ARRAY("","BINARY","UNSIGNED","UNSIGNED ZEROFILL");
$feldnulls=Array("NOT NULL","NULL");
$feldextras=Array("","AUTO_INCREMENT");
$feldkeys=Array("","PRIMARY KEY","UNIQUE KEY", "FULLTEXT");
$feldrowformat=Array("","FIXED","DYNAMIC","COMPRESSED");
$rechte_daten=Array("SELECT","INSERT","UPDATE","DELETE","FILE");
$rechte_struktur=Array("CREATE","ALTER","INDEX","DROP","CREATE TEMPORARY TABLES");
$rechte_admin=Array("GRANT","SUPER","PROCESS","RELOAD","SHUTDOWN","SHOW DATABASES","LOCK TABLES","REFERENCES","EXECUTE","REPLICATION CLIENT","REPLICATION SLAVE");
$rechte_resourcen=Array("MAX QUERIES PER HOUR","MAX UPDATES PER HOUR","MAX CONNECTIONS PER HOUR");
$sql_keywords=array( 'ALTER', 'AND', 'ADD', 'AUTO_INCREMENT','BETWEEN', 'BINARY', 'BOTH', 'BY', 'BOOLEAN','CHANGE', 'CHARSET','CHECK','COLLATE', 'COLUMNS', 'COLUMN', 'CROSS','CREATE', 'DATABASES', 'DATABASE', 'DATA', 'DELAYED', 'DESCRIBE', 'DESC', 'DISTINCT', 'DELETE', 'DROP', 'DEFAULT','ENCLOSED', 'ENGINE','ESCAPED', 'EXISTS', 'EXPLAIN','FIELDS', 'FIELD', 'FLUSH', 'FOR', 'FOREIGN', 'FUNCTION', 'FROM','GROUP', 'GRANT','HAVING','IGNORE', 'INDEX', 'INFILE', 'INSERT', 'INNER', 'INTO', 'IDENTIFIED','JOIN','KEYS', 'KILL','KEY','LEADING', 'LIKE', 'LIMIT', 'LINES', 'LOAD', 'LOCAL', 'LOCK', 'LOW_PRIORITY', 'LEFT', 'LANGUAGE', 'MEDIUMINT', 'MODIFY','MyISAM','NATURAL', 'NOT', 'NULL', 'NEXTVAL','OPTIMIZE', 'OPTION', 'OPTIONALLY', 'ORDER', 'OUTFILE', 'OR', 'OUTER', 'ON','PROCEEDURE','PROCEDURAL', 'PRIMARY','READ', 'REFERENCES', 'REGEXP', 'RENAME', 'REPLACE', 'RETURN', 'REVOKE', 'RLIKE', 'RIGHT','SHOW', 'SONAME', 'STATUS', 'STRAIGHT_JOIN', 'SELECT', 'SETVAL', 'TABLES', 'TEMINATED', 'TO', 'TRAILING','TRUNCATE', 'TABLE', 'TEMPORARY', 'TRIGGER', 'TRUSTED','UNIQUE', 'UNLOCK', 'USE', 'USING', 'UPDATE', 'UNSIGNED','VALUES', 'VARIABLES', 'VIEW','WITH', 'WRITE', 'WHERE','ZEROFILL','XOR','ALL', 'ASC', 'AS','SET','IN', 'IS', 'IF');
$mysql_doc=Array("Feldtypen" => "http://dev.mysql.com/doc/mysql/de/Column_types.html");
function MSD_mysql_connect()
{
global $config,$databases;
$port=(isset($config['dbport']) && !empty($config['dbport'])) ? ":".$config['dbport'] : "";
$socket=(isset($config['dbsocket']) && !empty($config['dbsocket'])) ? ":".$config['dbsocket'] : "";
$config['dbconnection'] = @mysql_connect($config['dbhost'].$port.$socket,$config['dbuser'],$config['dbpass']) or die(SQLError("Datenbankverbindung",mysql_error()));
if(!defined('MSD_MYSQL_VERSION')) GetMySQLVersion();
return true;
}
function GetMySQLVersion()
{
$res=MSD_query("select version()");
$row = mysql_fetch_array($res);
$version=$row[0];
$new=(substr($version,0,3)>=4.1);
if(!defined('MSD_MYSQL_VERSION')) define('MSD_MYSQL_VERSION', $version);
if(!defined('MSD_NEW_VERSION')) define('MSD_NEW_VERSION',$new);
return $version;
}
function MSD_query($query)
{
global $config;
if(!isset($config['dbconnection'])) MSD_mysql_connect();
return @mysql_query($query, $config['dbconnection']);
}
function MSD_mysql_error()
{
global $config,$databases;
}
function SQLError($sql,$error)
{
global $lang,$mysql_errorhelp_ref,$config;
echo '<div align="center"><table border="1" bordercolor="#ff0000" cellspacing="0">
<tr bgcolor="#ff0000"><td style="color:white;font-size:16px;"><strong>MySQL-ERROR</strong>&nbsp;&nbsp;<a href="'.$mysql_errorhelp_ref.'" target="_blank">
<img src="'.$config['files']['iconpath'].'help16.gif" alt="'.$lang['MySQLErrorDoc'].'" title="'.$lang['MySQLErrorDoc'].'" width="16" height="16" border="0"></a></td></tr>
<tr><td style="width:80%;overflow: auto;">'.$lang['sql_error1'].'<br><br>'.Highlight_SQL($sql).'</td></tr>
<tr><td width="600">'.$lang['sql_error2'].'<br><br><span style="color:red;">'.$error.'</span></td></tr>
</table>
</div>';
}
function Highlight_SQL($sql)
{
global $sql_keywords;
$end="";
$tickstart=false;
$a=@token_get_all("<?$sql?>");
foreach($a as $token) {
if(!is_array($token)) {
if($token=="`") $tickstart=!$tickstart;
$end.=$token;
} else {
if($tickstart) $end.=$token[1]; else {
switch(token_name($token[0])) {
case "T_STRING":
case "T_AS":
case "T_FOR":
$end.=(in_array(strtoupper($token[1]),$sql_keywords)) ? "<span style=\"color:#990099;font-weight:bold;\">".$token[1]."</span>": $token[1];
break;
case "T_IF":
case "T_LOGICAL_AND":
case "T_LOGICAL_OR":
case "T_LOGICAL_XOR":
$end.=(in_array(strtoupper($token[1]),$sql_keywords)) ? "<span style=\"color:#0000ff;font-weight:bold;\">".$token[1]."</span>": $token[1];
break;
case "T_CLOSE_TAG":
case "T_OPEN_TAG":
break;
default:
$end.=$token[1];
}
}
}
}
$end=preg_replace("/`(.*?)`/si", "<span style=\"color:red;\">`$1`</span>", $end);
return $end;
}
function Fieldlist($db,$tbl)
{
$fl='';
$res=MSD_query("SHOW FIELDS FROM `$db`.`$tbl`;");
if($res) {
$fl='(';
for($i=0;$i<mysql_num_rows($res);$i++) {
$row=mysql_fetch_row($res);
$fl.='`'.$row[0].'`,';
}
$fl=substr($fl,0,strlen($fl)-1).')';
}
return $fl;
}
?>

149
mysqldumper/inc/runtime.php Normale Datei
Datei anzeigen

@ -0,0 +1,149 @@
<?php
error_reporting(E_ALL);
//Konstanten
if (!defined('MSD_VERSION')) define('MSD_VERSION', '1.21 b6');
if (!defined('MSD_VERSION_ADD')) define('MSD_VERSION_ADD', '');
if (!defined('MSD_OS')) define('MSD_OS', PHP_OS);
if (!defined('MSD_OS_EXT')) define('MSD_OS_EXT',@php_uname());
if (!defined('MSD_IS_WINDOWS')) {
if (stristr(PHP_OS, 'win')) {
define('MSD_IS_WINDOWS', 1);
} else {
define('MSD_IS_WINDOWS', 0);
}
}
if (!defined('MSD_USER_OS')) {
if (!empty($_SERVER['HTTP_USER_AGENT'])) {
$HTTP_USER_AGENT = $_SERVER['HTTP_USER_AGENT'];
} else if (!isset($HTTP_USER_AGENT)) {
$HTTP_USER_AGENT = '';
}
// 1. Platform
if (strstr($HTTP_USER_AGENT, 'Win')) {
define('MSD_USER_OS', 'Win');
} else if (strstr($HTTP_USER_AGENT, 'Mac')) {
define('MSD_USER_OS', 'Mac');
} else if (strstr($HTTP_USER_AGENT, 'Linux')) {
define('MSD_USER_OS', 'Linux');
} else if (strstr($HTTP_USER_AGENT, 'Unix')) {
define('MSD_USER_OS', 'Unix');
} else if (strstr($HTTP_USER_AGENT, 'OS/2')) {
define('MSD_USER_OS', 'OS/2');
} else {
define('MSD_USER_OS', 'Other');
}
// 2. browser and version
// (must check everything else before Mozilla)
if (preg_match('@Opera(/| )([0-9].[0-9]{1,2})@', $HTTP_USER_AGENT, $log_version)) {
define('MSD_BROWSER_VERSION', $log_version[2]);
define('MSD_BROWSER_AGENT', 'OPERA');
$BrowserIcon='opera.png';
} else if (preg_match('@MSIE ([0-9].[0-9]{1,2})@', $HTTP_USER_AGENT, $log_version)) {
define('MSD_BROWSER_VERSION', $log_version[1]);
define('MSD_BROWSER_AGENT', 'IE');
$BrowserIcon='msie.png';
} else if (preg_match('@OmniWeb/([0-9].[0-9]{1,2})@', $HTTP_USER_AGENT, $log_version)) {
define('MSD_BROWSER_VERSION', $log_version[1]);
define('MSD_BROWSER_AGENT', 'OMNIWEB');
$BrowserIcon='omniweb.png';
} else if (preg_match('@(Konqueror/)(.*)(;)@', $HTTP_USER_AGENT, $log_version)) {
define('MSD_BROWSER_VERSION', $log_version[2]);
define('MSD_BROWSER_AGENT', 'KONQUEROR');
$BrowserIcon='konqueror.png';
} else if (preg_match('@Mozilla/([0-9].[0-9]{1,2})@', $HTTP_USER_AGENT, $log_version)
&& preg_match('@Safari/([0-9]*)@', $HTTP_USER_AGENT, $log_version2)) {
define('MSD_BROWSER_VERSION', $log_version[1] . '.' . $log_version2[1]);
define('MSD_BROWSER_AGENT', 'SAFARI');
$BrowserIcon='safari.png';
} else if (preg_match('@Mozilla/([0-9].[0-9]{1,2})@', $HTTP_USER_AGENT, $log_version)) {
define('MSD_BROWSER_VERSION', $log_version[1]);
define('MSD_BROWSER_AGENT', 'MOZILLA');
$BrowserIcon='mozilla.png';
} else {
define('MSD_BROWSER_VERSION', 0);
define('MSD_BROWSER_AGENT', 'OTHER');
$BrowserIcon='blank.gif';
}
}
//feste Variabeln
$config['lock_tables']=0;
//Pfade und Files
$config['paths']['root']=Realpfad('./');
$config['paths']['work']='work/';
$config['paths']['backup']=$config['paths']['work'].'backup/';
$config['paths']['structure']=$config['paths']['work'].'structure/';
$config['paths']['log']=$config['paths']['work'].'log/';
$config['paths']['config']=$config['paths']['work'].'config/';
$config['paths']['perlexec']='msd_cron/';
$config['cron_configurationfile']='mysqldumper.conf';
$config['files']['log']=$config['paths']['log'].'mysqldump.log';
$config['files']['perllog']=$config['paths']['log'].'mysqldump_perl.log';
$config['files']['perllogcomplete']=$config['paths']['log'].'mysqldump_perl.complete.log';
$config['files']['parameter']=$config['paths']['config'].'parameter.php';
//Ini-Parameter
$config['max_execution_time']=ini_get('max_execution_time');
$config['max_execution_time']=($config['max_execution_time']<=0) ? 30:$config['max_execution_time'];
if ($config['max_execution_time']>30) $config['max_execution_time']=30;;
$config['upload_max_filesize']=ini_get('upload_max_filesize');
$config['safe_mode']=ini_get('safe_mode');
$config['magic_quotes_gpc']=ini_get('magic_quotes_gpc');
$config['disabled']=ini_get('disable_functions');
$config['phpextensions']=implode(', ',get_loaded_extensions());
$m=str_replace('M','',get_cfg_var('memory_limit'));
$config['ram']=(empty($m)) ? 0 : $m;
//Ist zlib möglich?
$p1=explode(', ',$config['phpextensions']);
$p2=explode(',',str_replace(' ','',$config['disabled']));
//Buggy PHP-Version ?
$p3=explode('.',PHP_VERSION);
$buggy=($p3[0]==4 && $p3[1]==3 && $p3[2]<3);
$config['zlib']=(!$buggy) && (in_array('zlib',$p1) && (!in_array('gzopen',$p2) || !in_array('gzwrite',$p2) || !in_array('gzgets',$p2) || !in_array('gzseek',$p2) || !in_array('gztell',$p2)));
//Tuning-Ecke
$config['tuning_add']=1.1;
$config['tuning_sub']=0.9;
$config['time_buffer']=0.75; //max_zeit=$config['max_execution_time']*$config['time_buffer']
$config['perlspeed']=10000; //Anzahl der Datensätze, die in einem Rutsch gelesen werden
//Bausteine
$meta=br().br().'<meta http-equiv="expires" content="3600"> '.br().'<META HTTP-EQUIV="Pragma" CONTENT="no-cache">'.br(2);
//$preload_restore='<script language="JavaScript">Preload(2)</script>';
//$preload_dump='<script language="JavaScript">Preload(1)</script>';
$config['homepage']='http://www.mysqldumper.de/board/';
$languagepacks_ref='http://www.mysqldumper.de/board/downloads.php?cat=9';
$stylepacks_ref='http://www.mysqldumper.de/board/downloads.php?cat=3';
$nl="\n";
$mysql_commentstring='--';
//config-Variablen, die nicht gesichert werden sollen
$config_dontsave=Array('max_execution_time','safe_mode','magic_quotes_gpc','disabled',
'phpextensions','ram','zlib','tuning_add','tuning_sub','time_buffer','perlspeed',
'dbconnection','version');
//Initialisierungen
//0 schaltet frameset-restore aus
$frameset_restore=0;
function v($t)
{
echo '<br>';
if (is_array($t))
{
echo '<pre>';
print_r($t);
echo '</pre>';
}
else echo $t;
}
?>

55
mysqldumper/inc/sqllib.php Normale Datei
Datei anzeigen

@ -0,0 +1,55 @@
<?php
//SQL-Library
include_once('./language/'.$config['language'].'/lang_sql.php');
/*
Template
if $sqllib[$i]['sql']=trenn, Then it is a Heading
$sqllib[$i]['name']="";
$sqllib[$i]['sql']="";
$i++;
*/
$i=0;
$sqllib=ARRAY();
$sqllib[$i]['name']=$lang['sqllib_generalfunctions'];
$sqllib[$i]['sql']="trenn";
$i++;
$sqllib[$i]['name']=$lang['sqllib_resetauto'];
$sqllib[$i]['sql']="ALTER TABLE `table` AUTO_INCREMENT=1;";
$i++;
/********* phpBB-Boards *********************************/
$sqllib[$i]['name']="phpBB-".$lang['sqllib_boards'];
$sqllib[$i]['sql']="trenn";
$i++;
// Bord de-/aktivieren
$sqllib[$i]['name']=$lang['sqllib_deactivateboard'].' [phpBB]';
$sqllib[$i]['sql']="UPDATE `phpbb_config` set config_value=1 where config_name='board_disable'";
$i++;
$sqllib[$i]['name']=$lang['sqllib_activateboard'].' [phpBB]';
$sqllib[$i]['sql']="UPDATE `phpbb_config` set config_value=0 where config_name='board_disable'";
$i++;
// Bord de-/aktivieren
$sqllib[$i]['name']="vBulletin-".$lang['sqllib_boards'];
$sqllib[$i]['sql']="trenn";
$i++;
// Bord de-/aktivieren
$sqllib[$i]['name']=$lang['sqllib_deactivateboard'].' [vBulletin]';
$sqllib[$i]['sql']="UPDATE forum SET options = options - 1 WHERE options & 1";
$i++;
$sqllib[$i]['name']=$lang['sqllib_activateboard'].' [vBulletin]';
$sqllib[$i]['sql']="UPDATE forum SET options = options + 1 WHERE NOT (options & 1)";
$i++;
?>

Datei anzeigen

@ -0,0 +1,86 @@
<?php
include_once('./language/'.$config['language'].'/lang.php');
include_once('./language/'.$config['language'].'/lang_dump.php');
$tblr=($tblfrage_refer=='dump') ? 'Backup' : $tblr='Restore';
$filename=(isset($_GET['filename'])) ? $_GET['filename'] : '';
//Informationen zusammenstellen
if($tblr=='Backup')
{
//Info aus der Datenbank lesen
MSD_mysql_connect();
$res=mysql_query('SHOW TABLE STATUS FROM `'.$databases['db_actual'].'`');
$numrows=mysql_num_rows($res);
$button_name='dump_tbl';
$button_caption=$lang['startdump'];
$tbl_zeile='';
for($i=0;$i<$numrows;$i++) {
$row=mysql_fetch_array($res);
$klasse=($i % 2) ? 1:'';
$tbl_zeile.='<tr class="dbrow'.$klasse.'"><td class="sm" align="left"><input type="checkbox" class="checkbox" name="chk_tbl" value="'.$row['Name'].'">'.$row['Name'].'</td>';
$tbl_zeile.='<td class="sm" align="left"><strong>'.$row['Rows'].'</strong> '.$lang['datawith'].' <strong>'.byte_output($row['Data_length']+$row['Index_length']).'</strong>, '.$lang['lastbufrom'].' '.$row['Update_time'].'</td></tr>';
}
} else {
//Restore - Header aus Backupfile lesen
$button_name='restore_tbl';
$button_caption="";
$gz = (substr($filename,-3))=='.gz' ? 1 : 0;
if ($gz)
{
$fp = gzopen ($fpath.$filename, "r");
$statusline=gzgets($fp,40960);
$offset= gztell($fp);
} else {
$fp = fopen ($fpath.$filename, "r");
$statusline=fgets($fp,5000);
$offset= ftell($fp);
}
//Header auslesen
$sline=ReadStatusline($statusline);
$anzahl_tabellen=$sline[0];
$anzahl_eintraege=$sline[1];
$part=($sline[2]=="") ? 0 : substr($sline[2],3);
$EXTINFO= $sline[6];
if($EXTINFO=="") {
$tbl_zeile.='<tr calss="dbrow"><td class="sm" colspan="2">'.$lang['not_supported'].'</td>';
} else {
for($i=0;$i<$anzahl_tabellen;$i++) {
if ($gz)
{
gzseek($fp,$offset);
$statusline=gzgets($fp,40960);
$offset= gztell($fp);
} else {
fseek($fp,$offset);
$statusline=fgets($fp,5000);
$offset= ftell($fp);
}
$s=explode("|",$statusline);
$tbl_zeile.='<tr class="dbrow"><td align="left"><input type="checkbox" class="checkbox" name="chk_tbl" value="'.$s[1].'">'.$s[1].'</td>';
$tbl_zeile.='<td align="left"><strong>'.$s[2].'</strong> '.$lang['datawith'].' <strong>'.byte_output($s[3]).'</strong>, '.$lang['lastbufrom'].' '.$s[4].'</td></tr>';
}
if($gz) gzclose ($fp); else fclose ($fp);
}
}
$buttons='<tr><td colspan="2"><table width="100%" border="0"><tr>'
.'<td><input type="button" class="Formbutton" onclick="Sel(true);" value="'.$lang['selectall'].'"></td>'
.'<td><input type="button" onclick="Sel(false);" value="'.$lang['deselectall'].'" class="Formbutton"></td>'
.'<td><input type="submit" class="Formbutton" style="width:180px;" name="'.$button_name.'" value="'.$button_caption.'"></td>'
.'</tr></table></td></tr>';
echo '<div id="pagetitle">'.$tblr.' - '.$lang['tableselection'].'</div><h6>'.$lang['db'].': '.$databases['db_actual'].'</h6>';
echo '<div id="content">';
echo '<form name="frm_tbl" action="filemanagement.php" method="post" onSubmit="return chkFormular()">';
echo '<table class="bordersmall">';
echo $buttons;
echo $tbl_zeile;
echo $buttons;
echo '</table><input type="hidden" name="dumpKommentar" value="'.$dk.'"><input type="hidden" name="tbl_array" value=""><input type="hidden" name="filename" value="'.$filename.'"></form>';
//echo '</div><br><br><br><br>';
echo '</div><br><br><br>';
?>

27
mysqldumper/index.php Normale Datei
Datei anzeigen

@ -0,0 +1,27 @@
<?php
$force=(isset($_GET['force'])) ? $_GET['force'] : 0;
$page=(isset($_GET['page'])) ? $_GET['page'] : 'main.php';
$msv='';
include_once('./inc/functions.php');
if(!file_exists("work/config/parameter.php") && $force!=1) {
header("location: install.php");
die;
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Daniel Schlichtholz und Steffen Kamper">
<title>MySQLDumper</title>
</head>
<frameset cols="190,*" border="0">
<frame name="MySQL_Dumper_menu" src="menu.php<?php echo $msv;?>" scrolling="no" noresize frameborder="0" marginwidth="0" marginheight="0">
<frame name="MySQL_Dumper_content" src="<?php echo $page;?>" scrolling="auto" frameborder="0" marginwidth="0" marginheight="0">
</frameset>
</html>

757
mysqldumper/install.php Normale Datei
Datei anzeigen

@ -0,0 +1,757 @@
<?php
$config['files']['iconpath']='./css/msd/icons/';
$install_ftp_server=$install_ftp_user_name=$install_ftp_user_pass=$install_ftp_path="";
$dbhost=$dbuser=$dbpass=$dbport=$dbsocket='';
foreach($_GET as $getvar => $getval){ ${$getvar} = $getval; }
foreach($_POST as $postvar => $postval){ ${$postvar} = $postval; }
if(!isset($language)) $language="en";
//Übergabe der Parameter über FORM
if (isset($_POST['dbhost']))
{
$config['dbhost']=$dbhost;
$config['dbuser']=$dbuser;
$config['dbpass']=$dbpass;
$config['dbport']=$dbport;
$config['dbsocket']=$dbsocket;
}
else
{
// Wenn Connection-String existiert -> Verbindungsdaten aus connstr auslesen
if (isset($connstr) && !empty($connstr))
{
$p=explode("|",$connstr);
$dbhost=$config['dbhost']=$p[0];
$dbuser=$config['dbuser']=$p[1];
$dbpass=$config['dbpass']=$p[2];
$dbport=$config['dbport']=$p[3];
$dbsocket=$config['dbsocket']=$p[4];
}
else $connstr="";
}
//Variabeln
$phase=(isset($phase)) ? $phase : 0;
$connstr="$dbhost|$dbuser|$dbpass|$dbport|$dbsocket";
$delfiles=Array();
include_once('./inc/functions.php');
include_once('./inc/mysql.php');
include_once('./inc/runtime.php');
$config['language']=$language;
include('./language/lang_list.php');
include('language/'.$language.'/lang_install.php');
$img_ok='<img src="'.$config['files']['iconpath'].'ok.gif" width="16" height="16" alt="ok">';
$img_failed='<img src="'.$config['files']['iconpath'].'notok.gif" width="16" height="16" alt="failed">';
$href="install.php?language=$language&phase=$phase&connstr=$connstr";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="cache-control" content="must-revalidate">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-15">
<title>MySQLDumper - Installation</title>
<link rel="stylesheet" type="text/css" href="css/msd/style.css">
<script src="js/script.js" type="text/javascript"></script>
</head>
<body>
<script language="JavaScript" type="text/javascript">
function hide_tooldivs() {
<?php foreach($lang['languages'] as $key) {
echo 'document.getElementById("'.$key.'").style.display = \'none\';'."\n";
}?>
}
function show_tooldivs(lab) {
hide_tooldivs();
switch(lab) {
<?php foreach($lang['languages'] as $key) {
echo 'case "'.$key.'":'."\n".'document.getElementById("'.$key.'").style.display = \'block\';'."\n".'break;'."\n";
}?>
}
}
</script>
<?php
if($phase<10) {
if($phase==0)
$Anzeige=$lang['install'].' - '.$lang['installmenu'];
else $Anzeige=$lang['install'].' - '.$lang['step'].' '.($phase);
} elseif ($phase>9 && $phase<12) {
$Anzeige=$lang['install'].' - '.$lang['step'].' '.($phase-7);
} elseif ($phase>19 && $phase<100) {
$Anzeige=$lang['tools'];
} else {
$Anzeige=$lang['uninstall'].' - '.$lang['step'].' '.($phase-99);
}
echo '<div style="position:absolute;top:0;left:0;">
<p><a href="install.php"><img src="css/msd/pics/h1_logo.gif" alt="'.$lang['install_tomenu'].'"></a></p>
</div>';
echo '<div id="pagetitle" align="center"><p>
'.$Anzeige.'
</p></div>';
echo '<div id="content" align="center"><p class="small"><strong>Version '.MSD_VERSION.' '.MSD_VERSION_ADD.'</strong><br><a href="index.php?force=1" class="small">'.$lang['install_forcescript'].'</a></p>
';
switch ($phase) {
case 0: // Anfang - Sprachauswahl
if(file_exists("config.php") && file_exists($config['paths']['config']."parameter.php"))zipConfig();
echo '<form action="install.php" method="get"><input type="hidden" name="phase" value="1">';
echo '<table class="border"><tr class="thead"><th>Language</th><th>Tools</th></tr>';
echo '<tr><td valign="top" width="300"><table>';
echo GetLanguageCombo("radio","radio","language","<tr><td>","</td></tr>");
echo '</table></td><td valign="top">';
foreach($lang['languages'] as $key) {
echo("\n<div id=\"".$key.'"><a href="install.php?language='.$key.'&phase=100">'.$lang['tools1'][$key].'</a><br><br>');
// if(file_exists($config['paths']['config']."config.gz")) echo '<a href="install.php?language='.$key.'&phase=20">'.$lang['tools2'][$key].'</a><br><br>';
// if(file_exists($config['paths']['config']."parameter.php")) echo '<a href="install.php?language='.$key.'&phase=21">'.$lang['tools3'][$key].'</a><br><br>';
// if(file_exists("config.php") && file_exists($config['paths']['config']."parameter.php")) echo '<a href="'.$config['paths']['config'].'config.gz">'.$lang['tools4'][$key].'</a>';
echo("</div>");
}
echo("\n</td></tr><tr><td colspan=\"2\"><input type=\"submit\" name=\"submit\" value=\"Installation\" class=\"Formbutton\"></td></tr></table></form>");
echo '<script language="JavaScript" type="text/javascript">show_tooldivs("'.$language.'");</script>';
break;
case 1: // checken
if(isset($trychmod) && $trychmod==1) @chmod("config.php","0777");
echo '<h6>'.$lang['dbparameter'].'</h6>';
if(!is_writable("config.php")) {
echo '<p class="warning">'.$lang['confignotwritable'].'</p>';
echo '<a href="'.$href.'">'.$lang['tryagain'].'</a>';
echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="install.php">'.$lang['install_tomenu'].'</a>';
} else {
$tmp=file("config.php");
$stored=0;
if (!isset($_POST['dbconnect']))
{
// Erstaufruf - Daten aus config.php auslesen
for($i=0;$i<count($tmp);$i++) {
if(substr($tmp[$i],0,17)=='$config[\'dbhost\']') {
$config['dbhost'] = extractValue($tmp[$i]);
$dbhost=$config['dbhost'];
$stored++;
}
if(substr($tmp[$i],0,17)=='$config[\'dbport\']') {
$config['dbport'] = extractValue($tmp[$i]);
$dbport=$config['dbport'];
$stored++;
}
if(substr($tmp[$i],0,19)=='$config[\'dbsocket\']') {
$config['dbsocket'] = extractValue($tmp[$i]);
$dbsocket=$config['dbsocket'];
$stored++;
}
if(substr($tmp[$i],0,17)=='$config[\'dbuser\']') {
$config['dbuser'] = extractValue($tmp[$i]);
$dbuser=$config['dbuser'];
$stored++;
}
if(substr($tmp[$i],0,17)=='$config[\'dbpass\']') {
$config['dbpass'] = extractValue($tmp[$i]);
$dbpass=$config['dbpass'];
$stored++;
}
if(substr($tmp[$i],0,19)=='$config[\'language\']') {
$config['language'] = extractValue($tmp[$i]);
$stored++;
}
if($stored==6) break;
}
}
if(!isset($config['dbport'])) $config['dbport']="";
if(!isset($config['dbsocket'])) $config['dbsocket']="";
echo '<form action="install.php?language='.$language.'&phase='.$phase.'" method="post">';
echo '<table class="border">';
echo '<tr><td>'.$lang['db_host'].':</td><td><input type="text" name="dbhost" value="'.$dbhost.'" size="60" maxlength="100"></td></tr>';
echo '<tr><td>'.$lang['db_user'].':</td><td><input type="text" name="dbuser" value="'.$dbuser.'" size="60" maxlength="100"></td></tr>';
echo '<tr><td>'.$lang['db_pass'].':</td><td><input type="password" name="dbpass" value="'.$dbpass.'" size="60" maxlength="100"></td></tr>';
echo '<tr><td>';
echo $lang['port'].':</td><td><input type="text" name="dbport" value="'.$dbport.'" size="5" maxlength="5">&nbsp;&nbsp;'.$lang['install_help_port'].'</td></tr>';
echo '<tr><td>'.$lang['socket'].':</td><td><input type="text" name="dbsocket" value="'.$dbsocket.'" size="5" maxlength="5">&nbsp;&nbsp;'.$lang['install_help_socket'].'</td></tr>';
echo '<tr><td>'.$lang['testconnection'].':</td><td><input type="submit" name="dbconnect" value="'.$lang['connecttomysql'].'" class="Formbutton"></td></tr>';
if(isset($dbconnect))
{
echo '<tr class="thead"><th colspan="2">'.$lang['dbconnection'].'</th></tr>';
echo '<tr><td colspan="2">';
MSD_mysql_connect();
if(!$config['dbconnection']) {
echo '<p class="error">'.$lang['connectionerror'].'</p><span>&nbsp;';
} else {
echo '<p class="success">'.$lang['connection_ok'].'</p><span class="ssmall">';
$connection="ok";
$connstr="$dbhost|$dbuser|$dbpass|$dbport|$dbsocket";
echo '<input type="hidden" name="connstr" value="'.$connstr.'">';
SearchDatabases(1);
}
echo '</span></td></tr>';
}
echo '</table></form><br>';
if(isset($connection) && $connection=="ok" && !empty($databases['Name'])) {
echo '<form action="install.php?language='.$language.'&phase='.($phase+1).'" method="post">';
echo '<input type="hidden" name="dbhost" value="'.$config['dbhost'].'">
<input type="hidden" name="dbuser" value="'.$config['dbuser'].'">
<input type="hidden" name="dbpass" value="'.$config['dbpass'].'">
<input type="hidden" name="dbport" value="'.$config['dbport'].'">
<input type="hidden" name="dbsocket" value="'.$config['dbsocket'].'">
<input type="hidden" name="connstr" value="'.$connstr.'">';
echo '<input type="submit" name="submit" value=" '.$lang['saveandcontinue'].' " class="Formbutton"></form>';
}
}
break;
case 2: //
echo '<h6>MySQLDumper - '.$lang['confbasic'].'</h6>';
$tmp=@file("config.php");
$stored=0;
for($i=0;$i<count($tmp);$i++) {
if(substr($tmp[$i],0,17)=='$config[\'dbhost\']') {
$tmp[$i]='$config[\'dbhost\'] = \''.$dbhost.'\';'."\n";
$stored++;
}
if(substr($tmp[$i],0,17)=='$config[\'dbport\']') {
$tmp[$i]='$config[\'dbport\'] = \''.$dbport.'\';'."\n";
$stored++;
}
if(substr($tmp[$i],0,19)=='$config[\'dbsocket\']') {
$tmp[$i]='$config[\'dbsocket\'] = \''.$dbsocket.'\';'."\n";
$stored++;
}
if(substr($tmp[$i],0,17)=='$config[\'dbuser\']') {
$tmp[$i]='$config[\'dbuser\'] = \''.$dbuser.'\';'."\n";
$stored++;
}
if(substr($tmp[$i],0,17)=='$config[\'dbpass\']') {
$tmp[$i]='$config[\'dbpass\'] = \''.$dbpass.'\';'."\n";
$stored++;
}
if($stored==6) break;
}
$ret=true;
if ($fp=fopen("config.php", "wb"))
{
if (!fwrite($fp,implode($tmp,""))) $ret=false;
if (!fclose($fp)) $ret=false;
}
if(!$ret) {
echo '<p class="warnung">'.$lang['import12'].'</p>';
} else {
if(ini_get('safe_mode')==1) {
$nextphase=(extension_loaded("ftp")) ? 10 : 9;
} else $nextphase=$phase+2;
echo $lang['install_step2finished'];
echo '<p>&nbsp;</p>';
echo '<form action="install.php?language='.$language.'&phase='.$nextphase.'" method="post" name="continue"><input type="hidden" name="connstr" value="'.$connstr.'"><input class="Formbutton" style="width:360px;" type="submit" name="continue2" value=" '.$lang['install_step2_1'].' "></form>';
echo '<script language="javascript">';
echo 'document.forms["continue"].submit();';
echo '</script>';
echo '<p>&nbsp;</p>';
echo '<form action="install.php?language='.$language.'&phase='.($phase+1).'" method="post"><input type="hidden" name="connstr" value="'.$connstr.'"><input class="Formbutton" style="width:360px;" type="submit" name="continue1" value=" '.$lang['editconf'].' "></form>';
}
break;
case 3: //
if(ini_get('safe_mode')==1) $nextphase=10; else $nextphase=$phase+1;
echo '<h6>'.$lang['editconf'].'</h6>';
echo '<form action="install.php?language='.$language.'&phase='.$nextphase.'" method="post">
<textarea name="configfile" rows="20" cols="10" style="width:80%;height:300px;">';
$f=file("config.php");
for($i=0;$i<count($f);$i++) { echo stripslashes($f[$i]);}
echo '</textarea><br><input class="Formbutton" type="reset" name="reset" value="'.$lang['reset'].'">&nbsp;&nbsp;
<input class="Formbutton" type="submit" name="submit" value="'.$lang['save'].'">&nbsp;&nbsp;
<input class="Formbutton" type="submit" name="nosave" value="'.$lang['osweiter'].'">';
echo '<input type="hidden" name="connstr" value="'.$connstr.'">';
echo '</form>';
break;
case 4: //Verzeichnisse
if(isset($_POST['submit'])) {
$ret=true;
if ($fp=fopen("config.php", "wb"))
{
if (!fwrite($fp,stripslashes(stripslashes($_POST['configfile'])))) $ret=false;
if (!fclose($fp)) $ret=false;
}
else $ret=false;
if($ret==false) {
echo '<br><strong>'.$lang['errorman'].' config.php '.$lang['manuell'].'.';
die;
}
}
echo '<h6>'.$lang['createdirs'].'</h6>';
SetFileRechte("work/");@chmod("work",0777);
SetFileRechte("work/config/");@chmod("work/config",0777);
SetFileRechte("work/log/");@chmod("work/log",0777);
SetFileRechte("work/backup/");@chmod("work/backup",0777);
SetFileRechte("work/structure/");@chmod("work/structure",0777);
$iw[0]=IsWritable("work");
$iw[1]=IsWritable("work/config");
$iw[2]=IsWritable("work/log");
$iw[3]=IsWritable("work/backup");
$iw[4]=IsWritable("work/structure");
if ($iw[0] && $iw[1] && $iw[2] && $iw[3] && $iw[4])
{
echo '<script language="javascript">';
echo 'self.location.href=\'install.php?language='.$language.'&phase=5&connstr='.$connstr.'\'';
echo '</script>';
}
echo '<form action="install.php?language='.$language.'&phase=4" method="post"><table class="border"><tr class="thead">';
echo '<th>'.$lang['dir'].'</th><th>'.$lang['rechte'].'</th><th>'.$lang['status'].'</th></tr>';
echo '<tr><td><strong>work</strong></td><td>'.Rechte("work").'</td><td>'.(($iw[0]) ? $img_ok : $img_failed).'</td></tr>';
echo '<tr><td><strong>work/config</strong></td><td>'.Rechte("work/config").'</td><td>'.(($iw[1]) ? $img_ok : $img_failed).'</td></tr>';
echo '<tr><td><strong>work/log</strong></td><td>'.Rechte("work/log").'</td><td>'.(($iw[2]) ? $img_ok : $img_failed).'</td></tr>';
echo '<tr><td><strong>work/backup</strong></td><td>'.Rechte("work/backup").'</td><td>'.(($iw[3]) ? $img_ok : $img_failed).'</td></tr>';
echo '<tr><td><strong>work/structure</strong></td><td>'.Rechte("work/structure").'</td><td>'.(($iw[4]) ? $img_ok : $img_failed).'</td></tr>';
echo '<tr><td colspan="3" align="right"><input type="hidden" name="connstr" value="'.$connstr.'"><input class="Formbutton" type="submit" name="dir_check" value=" '.$lang['check'].' "></td></tr>';
if($iw[0] && $iw[1] && $iw[2] && $iw[3] && $iw[4])
echo '<tr><td colspan="2">'.$lang['dirs_created'].'<br><br><input class="Formbutton" type="Button" value=" '.$lang['install_continue'].' " onclick="location.href=\'install.php?language='.$language.'&phase=5&connstr='.$connstr.'\'"></td></tr>';
echo '</table></form>';
// Wenn Verzeichnisse erstellt wurden - direkt weitermachen
break;
case 5:
echo '<h6>'.$lang['laststep'].'</h6>';
echo '<br><h4>'.$lang['installfinished'].'</h4>';
SetDefault(true);
include("language/".$language."/lang_install.php");
// direkt zum Start des Dumeprs
echo '<script language="javascript">';
echo 'self.location.href=\'index.php\'';
echo '</script>';
if(file_exists($config['paths']['config']."config.gz")) {
echo '<br><br><a href="install.php?language='.$language.'&phase=20">'.$lang['import1'].'</a>';
}
echo '<br><br><a href="install.php?language='.$language.'&phase=21">'.$lang['import2'].'</a>';
break;
case 9:
clearstatcache();
$iw[0]=IsWritable("work");
$iw[1]=IsWritable("work/config");
$iw[2]=IsWritable("work/log");
$iw[3]=IsWritable("work/backup");
$iw[4]=IsWritable("work/structure");
echo '<h6>'.$lang['ftpmode'].'</h6>';
echo '<p align="left" style="padding-left:100px; padding-right:100px;">'.$lang['safemodedesc'].'</p>';
echo '<form action="install.php?language='.$language.'&phase=9" method="post"><input type="hidden" name="connstr" value="'.$connstr.'"><table>';
echo '<tr><td class="hd2" colspan="2">'.$lang['idomanual'].'</td></tr>';
echo '<tr><td colspan="2">'.$lang['dofrom'].'<br><div class="small">'.Realpfad('./').'</div></td></tr>';
echo '<tr><td><strong>work</strong></td><td>'.(($iw[0]) ? $img_ok : $img_failed).'</td></tr>';
echo '<tr><td><strong>work/config</strong></td><td>'.(($iw[1]) ? $img_ok : $img_failed).'</td></tr>';
echo '<tr><td><strong>work/log</strong></td><td>'.(($iw[2]) ? $img_ok : $img_failed).'</td></tr>';
echo '<tr><td><strong>work/backup</strong></td><td>'.(($iw[3]) ? $img_ok : $img_failed).'</td></tr>';
echo '<tr><td><strong>work/structure</strong></td><td>'.(($iw[4]) ? $img_ok : $img_failed).'</td></tr>';
echo '<tr><td colspan="3" align="right"><input type="submit" class="Formbutton" name="dir_check" value=" '.$lang['check'].' "></td></tr>';
/*
if($iw[0] && $iw[1] && $iw[2] && $iw[3] && $iw[4])
echo '<tr><td colspan="2">'.$lang['dirs_created'].'<br><input class="Formbutton" type="Button" value=" '.$lang['install_continue'].' " onclick="location.href=\'install.php?language='.$language.'&phase=4&connstr='.$connstr.'\'" class="Formbutton"></td></tr>';
*/
// Wenn Verzeichnisse erstellt wurden - direkt weitermachen
if ($iw[0] && $iw[1] && $iw[2] && $iw[3] && $iw[4])
{
echo '<script language="javascript">';
echo 'self.location.href=\'install.php?language='.$language.'&phase=4&connstr='.$connstr.'\'';
echo '</script>';
}
echo '</table>';
break;
case 10: //safe_mode FTP
$config['ftp_useSSL']=0;
clearstatcache();
$iw[0]=IsWritable("work");
$iw[1]=IsWritable("work/config");
$iw[2]=IsWritable("work/log");
$iw[3]=IsWritable("work/backup");
$iw[4]=IsWritable("work/structure");
if(!isset($install_ftp_port) || $install_ftp_port<1) $install_ftp_port=21;
echo '<h6>'.$lang['ftpmode'].'</h6>';
echo '<p align="left" style="padding-left:100px; padding-right:100px;">'.$lang['safemodedesc'].'</p>';
echo '<form action="install.php?language='.$language.'&phase=10" method="post"><input type="hidden" name="connstr" value="'.$connstr.'">
<table width="80%"><tr><td width="50%" valign="top"><table>';
echo '<tr><td class="hd2" colspan="2">'.$lang['idomanual'].'</td></tr>';
echo '<tr><td colspan="2">'.$lang['dofrom'].'<br><div class="small">'.Realpfad('./').'</div></td></tr>';
echo '<tr><td><strong>work</strong></td><td>'.(($iw[0]) ? $img_ok : $img_failed).'</td></tr>';
echo '<tr><td><strong>work/config</strong></td><td>'.(($iw[1]) ? $img_ok : $img_failed).'</td></tr>';
echo '<tr><td><strong>work/log</strong></td><td>'.(($iw[2]) ? $img_ok : $img_failed).'</td></tr>';
echo '<tr><td><strong>work/backup</strong></td><td>'.(($iw[3]) ? $img_ok : $img_failed).'</td></tr>';
echo '<tr><td><strong>work/structure</strong></td><td>'.(($iw[4]) ? $img_ok : $img_failed).'</td></tr>';
echo '<tr><td colspan="3" align="right"><input type="submit" name="dir_check" value=" '.$lang['check'].' " class="Formbutton"></td></tr>';
if($iw[0] && $iw[1] && $iw[2] && $iw[3] && $iw[4])
echo '<tr><td colspan="2">'.$lang['dirs_created'].'<br><input class="Formbutton" type="Button" value=" '.$lang['install_continue'].' " onclick="location.href=\'install.php?language='.$language.'&phase=4&connstr='.$connstr.'\'"></td></tr>';
echo '</table></td><td width="50%" valign="top">';
echo '<table><tr><td class="hd2" colspan="2">'.$lang['ftpmode2'].'</td></tr>';
echo '<tr><td>FTP-Server</td><td><input type="text" name="install_ftp_server" value="'.$install_ftp_server.'"></td></tr>';
echo '<tr><td>FTP-Port</td><td><input type="text" name="install_ftp_port" value="'.$install_ftp_port.'" size="4"></td></tr>';
echo '<tr><td>FTP-User</td><td><input type="text" name="install_ftp_user_name" value="'.$install_ftp_user_name.'"></td></tr>';
echo '<tr><td>FTP-'.$lang['pass'].'</td><td><input type="text" name="install_ftp_user_pass" value="'.$install_ftp_user_pass.'"></td></tr>';
echo '<tr><td>'.$lang['info_scriptdir'].'</td><td><input type="text" name="install_ftp_path" value="'.$install_ftp_path.'"></td></tr>';
echo '<tr><td colspan="2" align="right">
<input type="submit" name="ftp_connect" value="'.$lang['connect'].'" class="Formbutton"></td></tr></table></table></form>';
if(isset($ftp_connect)) {
echo '<table><tr><td class="small">';
$tftp=TesteFTP($install_ftp_server,$install_ftp_port,$install_ftp_user_name,$install_ftp_user_pass,$install_ftp_path);
echo $tftp;
echo '</td><td colspan="2" align="right">&nbsp;';
if(substr($tftp,-9)=="</strong>") {
echo '<form action="install.php?language='.$language.'&phase=11" method="post">
<input type="hidden" name="connstr" value="'.$connstr.'">';
echo '<input type="hidden" name="install_ftp_server" value="'.$install_ftp_server.'">
<input type="hidden" name="install_ftp_port" value="'.$install_ftp_port.'">
<input type="hidden" name="install_ftp_user_name" value="'.$install_ftp_user_name.'">
<input type="hidden" name="install_ftp_user_pass" value="'.$install_ftp_user_pass.'">
<input type="hidden" name="install_ftp_path" value="'.$install_ftp_path.'">';
echo '<input type="submit" name="submit" value=" '.$lang['createdirs2'].' " class="Formbutton"></form>';
}
echo '</td></tr></table>';
}
//echo '</td></tr>';
//echo '</table>';
break;
case 11: //FTP-Create Dirs
echo '<h6>'.$lang['ftpmode'].'</h6>';
if(CreateDirsFTP()==1) {
SetDefault(true);
echo DirectoryWarnings();
echo '<br>'.$lang['installfinished'];
if(is_writable($config['paths']['config'])) {
if(file_exists($config['paths']['config']."config.gz")) {
echo '<br><br><a href="install.php?language='.$language.'&phase=20&connstr='.$connstr.'">'.$lang['import1'].'</a>';
}
echo '<br><a href="install.php?language='.$language.'&phase=21&connstr='.$connstr.'">'.$lang['import2'].'</a>';
}
}
break;
case 20: //import
echo '<h6>'.$lang['import'].'</h6>';
$import=importConfig($config['paths']['config']."config.gz");
if($import==0) {
echo '<h5>'.$lang['import3'].'</h5>';
SetDefault(true);
echo '<h5>'.$lang['import4'].'</h5>';
echo '<a href="index.php">'.$lang['import5'].'</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="install.php">'.$lang['import6'].'</a>';
} elseif($import==1) {
echo '<p class="warnung">'.$lang['import11'].'</p>';
} elseif($import==2) {
echo '<p class="warnung">'.$lang['import12'].'</p>';
}
break;
break;
case 21: //upload + import
echo '<h6>'.$lang['import2'].'</h6>';
echo '<form action="install.php?language='.$language.'&phase=22" method="POST" enctype="multipart/form-data">';
echo '<table><tr><td align="center" colspan="2">';
echo '<input type="file" name="upfile"></td><td align="center"><input type="submit" name="upload" value="'.$lang['fm_fileupload'].'">';
echo '</td></tr></table></form>';
break;
case 22: //posting from upload
echo '<h6>'.$lang['import7'].'</h6>';
$backlink='<a href=install.php?language='.$language.'&phase=21">'.$lang['import8'].'</a>';
if (isset($_POST['upload']))
{
$error=false;
if (!($_FILES['upfile']['name'])) {
echo "<font color=\"red\">".$lang['fm_uploadfilerequest'].'</font><br><br>'.$backlink;
exit;
}
if (file_exists($config['paths']['config'].$_FILES['upfile']['name'])) unlink($config['paths']['config'].$_FILES['upfile']['name']);
if ($_FILES['upfile']['name']!='config.gz')
{
echo "<font color=\"red\">".$lang['import9']."</font><br><br>".$backlink;
exit;
}
if (move_uploaded_file($_FILES['upfile']['tmp_name'],$config['paths']['config'].$_FILES['upfile']['name']))
{
chmod($config['paths']['config'].$upfile_name,0755);
} else {
echo "<font color=\"red\">".$lang['fm_uploadmoveerror']."<br>".$backlink;
exit;
}
}
echo '<h5>'.$lang['import10'].'</h5>';
$import=importConfig($config['paths']['config']."config.gz");
if($import==0) {
echo '<h5>'.$lang['import3'].'</h5>';
SetDefault(true);
echo '<h5>'.$lang['import4'].'</h5>';
echo '<a href="index.php">'.$lang['import5'].'</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="install.php">'.$lang['import6'].'</a>';
} elseif($import==1) {
echo '<p class="warnung">'.$lang['import11'].'</p>';
} elseif($import==2) {
echo '<p class="warnung">'.$lang['import12'].'</p>';
}
break;
case 100: //uninstall
echo '<h6>'.$lang['ui1'].'</h6>';
echo zipConfig().'<br><br>';
echo '<h6>'.$lang['ui2'].'</h6>';
echo '<a href="install.php">'.$lang['ui3'].'</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
echo '<a href="install.php?language='.$language.'&phase=101">'.$lang['ui4'].'</a>';
break;
case 101:
echo '<h6>'.$lang['ui5'].'</h6>';
$paths=Array();
$w=substr($config['paths']['work'],0,strlen($config['paths']['work'])-1);
if(is_dir($w)) $res = rec_rmdir ($w); else $res=0;
// wurde das Verzeichnis korrekt gelöscht
if($res==0) {
// das Verzeichnis wurde korrekt gelöscht
echo '<p>'.$lang['ui6'].'</p>';
echo $lang['ui7']."<br>\"".Realpfad("./")."\"<br> ".$lang['manuell'].".<br><br>";
echo '<a href="../">'.$lang['ui8'].'</a>';
}else {
echo '<p class="Warnung">'.$lang['ui9'].'"'.$paths[count($paths)-1].'"';
}
break;
}
?>
</div>
</body>
</html>
<?
//eigene Funktionen
// rec_rmdir - loesche ein Verzeichnis rekursiv
// Rueckgabewerte:
// 0 - alles ok
// -1 - kein Verzeichnis
// -2 - Fehler beim Loeschen
// -3 - Ein Eintrag eines Verzeichnisses war keine Datei und kein Verzeichnis und
// kein Link
function rec_rmdir ($path) {
global $paths;
$paths[]=$path;
// schau' nach, ob das ueberhaupt ein Verzeichnis ist
if (!is_dir ($path)) {
return -1;
}
// oeffne das Verzeichnis
$dir = @opendir ($path);
// Fehler?
if (!$dir) {
return -2;
}
// gehe durch das Verzeichnis
while ($entry = @readdir($dir)) {
// wenn der Eintrag das aktuelle Verzeichnis oder das Elternverzeichnis
// ist, ignoriere es
if ($entry == '.' || $entry == '..') continue;
// wenn der Eintrag ein Verzeichnis ist, dann
if (is_dir ($path.'/'.$entry)) {
// rufe mich selbst auf
$res = rec_rmdir ($path.'/'.$entry);
// wenn ein Fehler aufgetreten ist
if ($res == -1) { // dies duerfte gar nicht passieren
@closedir ($dir); // Verzeichnis schliessen
return -2; // normalen Fehler melden
} else if ($res == -2) { // Fehler?
@closedir ($dir); // Verzeichnis schliessen
return -2; // Fehler weitergeben
} else if ($res == -3) { // nicht unterstuetzer Dateityp?
@closedir ($dir); // Verzeichnis schliessen
return -3; // Fehler weitergeben
} else if ($res != 0) { // das duerfe auch nicht passieren...
@closedir ($dir); // Verzeichnis schliessen
return -2; // Fehler zurueck
}
} else if (is_file ($path.'/'.$entry) || is_link ($path.'/'.$entry)) {
// ansonsten loesche diese Datei / diesen Link
$res = @unlink ($path.'/'.$entry);
// Fehler?
if (!$res) {
@closedir ($dir); // Verzeichnis schliessen
return -2; // melde ihn
}
} else {
// ein nicht unterstuetzer Dateityp
@closedir ($dir); // Verzeichnis schliessen
return -3; // tut mir schrecklich leid...
}
}
// schliesse nun das Verzeichnis
@closedir ($dir);
// versuche nun, das Verzeichnis zu loeschen
$res = @rmdir ($path);
// gab's einen Fehler?
if (!$res) {
return -2; // melde ihn
}
// alles ok
return 0;
}
function Rechte($file)
{
clearstatcache();
return @substr(decoct(fileperms($file)),-3);
}
function zipConfig()
{
global $config;
$cfname=$config['paths']['config']."config.gz";
if(file_exists($cfname)) unlink($cfname);
$h1="### Configuration Summary - MySQLDumper ".MSD_VERSION."\n\n";
$h2="###FILE_config.php\n";
$h3="###FILE_".$config['paths']['config']."sql_statements\n";
$cf=$h1.$h2;
$tmp=file("config.php");
while(substr($tmp[0],0,18)!='$config[\'direct_connection\']') {
array_shift($tmp);
if(count($tmp)==0) break;
}
array_shift($tmp);
$cf.=implode($tmp,"")."\n".$h3;
if(file_exists($config['paths']['config']."sql_statements")) {
$tmp=file($config['paths']['config']."sql_statements");
$cf.=implode($tmp,"")."\n";
}
if($config['zlib']) {
$fp = gzopen ($cfname,"ab");
gzwrite ($fp,$cf);
gzclose ($fp);
} else {
$fp = fopen ($cfname,"ab");
fwrite ($fp,$cf);
fclose ($fp);
}
//return '<a href="'.$cfname.'">Download Config from '.$config['paths']['config'].'</a>';
}
function importConfig($importfile)
{
global $config;
$cf1=Array();
$imp1=Array();
$sql1=Array();
$tmp=Array();
if(!file_exists($importfile)) exit;
$tmp=file("config.php");
$imp=gzfile($importfile);
for($i=0;$i<count($tmp);$i++) {
$cf1[]=$tmp[$i];
if(substr($tmp[$i],0,18)=='$config[\'direct_connection\']') break;
}
for($i=3;$i<count($imp);$i++) {
if(substr($imp[$i],0,8)!="###FILE_") {
$imp1[]=$imp[$i];
} else {
$last=$i+1;
break;
}
}
for($i=$last;$i<count($imp);$i++) {
$sql1[]=$imp[$i];
}
$cf=array_merge($cf1,$imp1);
//jetzt schreiben
$ret=true;
if(file_exists($config['paths']['config'])) {
if ($fp=fopen($config['paths']['config']."sql_statements", "wb"))
{
if (!fwrite($fp,implode($sql1,""))) $ret=false;
if (!fclose($fp)) $ret=false;
}
}
if($ret==false){
return 1;
} else {
if ($fp=fopen("config.php", "wb"))
{
if (!fwrite($fp,implode($cf,""))) $ret=false;
if (!fclose($fp)) $ret=false;
}
}
if($ret==false){
return 2;
} else {
return 0;
}
}
function extractValue($s)
{
$r=trim(substr($s, strpos($s,"=")+1));
$r=substr($r,0,strlen($r)-1);
if(substr($r,-1)=="'" || substr($r,-1)=='"')$r=substr($r,0,strlen($r)-1);
if(substr($r,0,1)=="'" || substr($r,0,1)=='"')$r=substr($r,1);
return $r;
}
?>

248
mysqldumper/js/script.js Normale Datei
Datei anzeigen

@ -0,0 +1,248 @@
var NS = (document.layers);
var IE = (document.all);
function setMenuActive(id) {
for(var i=1;i<9;i++) {
var objid='m' + i;
if(id==objid) {
parent.frames[0].document.getElementById(objid).className='active';
} else {
parent.frames[0].document.getElementById(objid).className='';
}
}
}
//Filemanagement
function GetSelectedFilename()
{
var a="";
var obj=document.getElementsByName("file[]");
var anz=0;
if(!obj.length)
{
if(obj.checked){a=obj.value;}
}
else
{
for (i=0; i<obj.length; i++)
{
if(obj[i].checked){a=obj[i].value;anz++;}
}
}
return a;
}
function Check(i,k)
{
var anz=0;
var s="";
var smp;
var ids=document.getElementsByName("file[]");
var mp=document.getElementsByName("multipart[]");
for(var j=0; j<ids.length; j++) {
if(ids[j].checked)
{ s=ids[j].value;
smp= (mp[j].value==0) ? "" : " (Multipart: "+mp[j].value+" files)";
anz++;
if(k==0) break;
}
}
if(anz==0) {
WP("","gd");
} else if (anz==1) {
WP(s+smp,"gd");
} else {WP("more than 1 file selected","gd");}
}
//config
function SelectMD(v,anz)
{
for (i = 0; i < anz; i++) {
n="db_multidump_" + i;
obj=document.getElementsByName(n)[0];
if(obj) {
obj.checked=v;
}
}
}
//tabellenabfrage
function Sel(v)
{
var a=document.frm_tbl;
if(!a.chk_tbl.length)
{
a.chk_tbl.checked = v;
} else {
for (i = 0; i < a.chk_tbl.length; i++) {
a.chk_tbl[i].checked = v;
}
}
}
function ConfDBSel(v,adb)
{
for (i = 0; i < adb; i++) {
var a=document.getElementsByName("db_multidump["+i+"]");
if(a) a.checked = v;
}
}
function chkFormular()
{
var a=document.frm_tbl;
a.tbl_array.value="";
if(!a.chk_tbl.length)
{
if(a.chk_tbl.checked==true)
a.tbl_array.value += a.chk_tbl.value + "|";
} else {
for (i = 0; i < a.chk_tbl.length; i++) {
if(a.chk_tbl[i].checked==true)
a.tbl_array.value += a.chk_tbl[i].value + "|";
}
}
if(a.tbl_array.value==""){
alert("Ohne Tabellen geht es nicht :)");
return false;
} else {
//alert(a.tbl_array.value);
return true;
}
}
function insertHTA(s,tb)
{
if(s==1) ins="AddHandler php-fastcgi .php .php4\nAddhandler cgi-script .cgi .pl\nOptions +ExecCGI";
if(s==101) ins="DirectoryIndex /cgi-bin/script.pl"
if(s==102) ins="AddHandler cgi-script .extension";
if(s==103) ins="Options +ExecCGI";
if(s==104) ins="Options +Indexes";
if(s==105) ins="ErrorDocument 400 /errordocument.html";
if(s==106) ins="# (macht aus http://domain.de/xyz.html ein\n# http://domain.de/main.php?xyz)\nRewriteEngine on\nRewriteBase /\nRewriteRule ^([a-z]+)\.html$ /main.php?$1 [R,L]";
if(s==107) ins="Deny from IPADRESS\nAllow from IPADRESS";
if(s==108) ins="Redirect /service http://foo2.bar.com/service";
if(s==109) ins="ErrorLog /path/logfile"
tb.value+="\n"+ins;
}
//restore
function WP(s,obj) {
//if(IE)
//alert(obj);
document.getElementById(obj).innerHTML=s;
/*else
document.layers[obj].document.open();
document.layers[obj].document.write s;
document.layers[obj].document.close();
*/
}
function resizeSQL(i){
var obj=document.getElementById("sqltextarea");
var h=0;
if(i==0) {
obj.style.height = '4px';
} else {
if(i==1) h=-20;
if(i==2) h=20;
var oh =obj.style.height;
var s= Number(oh.substring(0,oh.length-2)) + h;
if(s<24) s=24;
obj.style.height = s + 'px';
}
}
function getObj(element,docname){
if(document.layers){
docname=(docname) ? docname : self;
if(f.document.layers[element]) {
return f.document.layers[element];
}
for(W=0;i<f.document.layers.length;W++) {
return(getElement(element,fdocument.layers[W]));
}
}
if(document.all) {
return document.all[element];
}
return document.getElementById(element);
}
function InsertLib(i) {
if (IE)
{
var obj=document.getElementsByName('sqllib')[0];
}
else
{
var obj=document.getElementByName('sqllib');
}
if(obj.selectedIndex>0) {
document.getElementById('sqlstring'+i).value = obj.options[obj.selectedIndex].value;
document.getElementById('sqlname'+i).value = obj.options[obj.selectedIndex].text;
}
}
function DisplayExport(s) {
document.getElementById("export_working").InnerHTML=s;
}
function SelectedTableCount() {
var obj=document.getElementsByName('f_export_tables[]')[0];
var anz=0;
for (var i=0; i<obj.options.length; i++)
{
if(obj.options[i].selected){anz++;}
}
return anz;
}
function SelectTableList(s) {
var obj=document.getElementsByName('f_export_tables[]')[0];
for (var i=0; i<obj.options.length; i++) {
obj.options[i].selected=s;
}
}
function hide_csvdivs(i) {
document.getElementById("csv0").style.display = 'none';
if(i==0) {
document.getElementById("csv1").style.display = 'none';
document.getElementById("csv4").style.display = 'none';
document.getElementById("csv5").style.display = 'none';
}
}
function check_csvdivs(i) {
hide_csvdivs(i);
if (document.getElementById("radio_csv0").checked) {
document.getElementById("csv0").style.display = 'block';
}
if(i==0) {
if (document.getElementById("radio_csv1").checked) {
document.getElementById("csv1").style.display = 'block';
} else if (document.getElementById("radio_csv2").checked) {
document.getElementById("csv1").style.display = 'block';
} else if (document.getElementById("radio_csv4").checked) {
document.getElementById("csv4").style.display = 'block';
} else if (document.getElementById("radio_csv5").checked) {
document.getElementById("csv5").style.display = 'block';
}
}
}

Datei anzeigen

@ -0,0 +1,141 @@
<?php
if(file_exists("./../../work/config/parameter.php")){
@include("./../../work/config/parameter.php");
}
@include("./../../inc/functions_global.php");
@include("./../../language/".$config["language"]."/lang.php");
@include("./../../language/".$config["language"]."/lang_help.php");
echo MSDHeader(2);
echo headline($lang['credits']);
?>
<div id="content">
<h3>&Uuml;ber dieses Projekt</h3>
Die Idee f&uuml;r dieses Projekt kam von Daniel Schlichtholz.<p>Er er&ouml;ffnete 2004 das Forum <a href="http://www.mysqldumper.de/board" target="_blank">MySQLDumper</a>, und schon bald fanden sich Hobby-Programmierer, die neue Skripte schrieben und die von Daniel erweiterten.<br>Innerhalb k&uuml;rzester Zeit entstand aus dem kleinen Backupskript ein stattliches Projekt.<p>Wenn Du Vorschl&auml;ge zur Verbesserung hast, dann wende Dich an das MySQLDumper-Forum <a href="http://www.mysqldumper.de/board" target="_blank">http://www.mysqldumper.de/board</a>.<p>Wir w&uuml;nschen Dir viel Vergn&uuml;gen mit diesem Projekt.<br><p><h4>Das MySQLDumper-Team</h4>
<table><tr><td><img src="../../images/logo.gif" alt="MySQLDumper" width="160" height="42" border="1"></td><td valign="top">
Daniel Schlichtholz - Steffen Kamper<br>
Perlscript mit Unterst&uuml;tzung von Detlev Richter<br>
</td></tr></table>
<br>
<h3>MySQLDumper Hilfe</h3>
<h4>Download</h4>
Dieses Script erhaltet Ihr auf der Homepage von MySQLDumper.<br>
Es empfiehlt sich, die Homepage regelm&auml;&szlig;ig zu besuchen, um Updates und
Hilfestellungen zu erlangen.<br>
Die Adresse lautet: <a href="http://www.mysqldumper.de" target="_blank">
http://www.mysqldumper.de</a>
<h4>Systemvoraussetzung</h4>
Das Script arbeitet auf jedem Server (Windows, Linux, ...) <br>
mit PHP >= Version 4.3.4 mit GZip-Unterst&uuml;tzung, MySQL (ab Version 3.23), JavaScript (muss aktiviert sein).
<a href="../../install.php?language=de" target="_top"><h4>Installation</h4></a>
Die Installation geht einfach von statten.
Entpackt das Archiv in einen beliebigen Ordner.<br>
Ladet alle Dateien auf Euren Webserver hoch. (z. B. in die unterste Ebene in [Server Webverzeichnis/]MySQLDumper)<br>
... fertig!<br>
Ihr k&ouml;nnt MySQLDumper nun im Webbrowser durch "http://mein-webserver/MySQLDumper" aufrufen,<br>
um die Installation abzuschlie&szlig;en. Folgt einfach den Instruktionen.<br>
<br><b>Hinweis:</b><br><i>Falls auf Eurem Server der PHP-Safemode eingeschaltet ist, darf das Script keine
Verzeichnisse erstellen.<br>
Dies m&uuml;sst Ihr dann von Hand nachholen, da MySqlDump die Daten geordnet in
Verzeichnissen ablegt.<br>
Das Script bricht mit einer entsprechenden Anweisung ab!<br>
Nachdem Ihr die Verzeichnisse (dem Hinweis entsprechend) erstellt habt, l&auml;uft es normal und ohne Einschr&auml;nkungen.</i>
<a name="perl"></a><h4>Perlskript Anleitung</h4>
Die Meisten haben ein cgi-bin Verzeichnis, in dem Perl ausgef&uuml;hrt werden kann. <br>
Dies ist meist per Browser &uuml;ber http://www.domain.de/cgi-bin/ erreichbar. <br>
<br>
F&uuml;r diesen Fall bitte folgende Schritte durchf&uuml;hren:<br><br>
1. Rufe im MySQLDumper die Seite Backup auf und klicke auf "Backup Perl". <br>
2. Kopiere den Pfad, der hinter Eintrag in crondump.pl f&uuml;r $absolute_path_of_configdir: steht. <br>
3. &Ouml;ffne die Datei "crondump.pl" im Editor.<br>
4. Trage den kopierten Pfad dort bei absolute_path_of_configdir ein (keine Leerzeichen).<br>
5. Speichere crondump.pl .<br>
6. Kopiere crondump.pl, sowie perltest.pl und simpletest.pl ins cgi-bin-Verzeichnis (Ascii-Modus im FTP).<br>
7. Gebe den Dateien die Rechte 755. <br>
7b. Wenn die Endung cgi gew&uuml;nscht ist, &auml;ndere bei allen 3 Dateien die Endung von pl -> cgi (umbenennen). <br>
8. Rufe die Konfiguration im MySQLDumper auf.<br>
9. W&auml;hle die Seite Cronscript. <br>
10. &Auml;ndere Perl Ausf&uuml;hrungspfad in /cgi-bin/ .<br>
10b. Wenn die Scripte .pl haben, &auml;ndere die Dateiendung auf .cgi .<br>
11. Speichere die Konfiguration. <br><br>
Fertig, die Skripte lassen sich nun von der Backupseite aufrufen.<br><br>
Wer Perl in allen Verzeichnissen ausf&uuml;hren kann, dem reichen folgende Schritte:<br><br>
1. Rufe im MySQLDumper die Seite Backup auf. <br>
2. Kopiere den Pfad, der hinter Eintrag in crondump.pl f&uuml;r $absolute_path_of_configdir: steht. <br>
3. &Ouml;ffne die Datei "crondump.pl" im Editor. <br>
4. Trage den kopierten Pfad dort bei absolute_path_of_configdir ein (keine Leerzeichen). <br>
5. Speichere crondump.pl .<br>
6. gebe den Datein die Rechte 755. <br>
6b. Wenn die Endung cgi gew&uuml;nscht ist, &auml;ndere bei allen 3 Dateien die Endung von pl -> cgi (umbenennen). <br>
(ev. 10b+11 von oben)<br>
<br>
Windowsuser m&uuml;ssen bei allen Scripten die erste Zeile &auml;ndern, dort steht der Pfad von Perl. Beispiel: <br>
statt: #!/usr/bin/perl -w <br>
jetzt: #!C:\perl\bin\perl.exe -w <br>
<h4>Bedienung</h4><ul>
<h6>Men&uuml;</h6>
In der obigen Auswahlliste stellt Ihr die Datenbank ein.<br>
Alle Aktionen beziehen sich auf die hier eingestellte Datenbank.
<h6>Startseite</h6>
Hier erfahrt Ihr Einiges &uuml;ber Euer System, die verschiedenen, installierten
Versionen und Details &uuml;ber die konfigurierten Datenbanken.<br>
Wenn Ihr auf den Datenbanknamen klickt, so seht Ihr eine Auflistung der Tabellen
mit der Anzahl der Eintr&auml;ge, der Gr&ouml;&szlig;e und das letzte Aktualisierungsdatum.
<h6>Konfiguration</h6>
Hier k&ouml;nnt Ihr eure Konfiguration bearbeiten, abspeichern oder die Ausgangskonfiguration
wieder herstellen.
<ul><br>
<li><a name="conf1"></a><strong>Konfigurierte Datenbanken:</strong> die Auflistung der konfigurierten Datenbanken. Die aktive Datenbank wird in <b>bold</b> gelistet. </li>
<li><a name="conf2"></a><strong>Tabellen-Pr&auml;fix:</strong> hier k&ouml;nnt Ihr (f&uuml;r jede Datenbank) einen Pr&auml;fix angeben. Dies ist ein Filter, der bei Dumps nur die Tabellen ber&uuml;cksichtigt, die mit diesem Pr&auml;fix beginnen (z.B. alle Tabellen, die mit "phpBB_" beginnen). Wenn alle Tabellen dieser Datenbank gespeichert werden sollen,
so lasst das Feld einfach leer.</li>
<li><a name="conf3"></a><strong>GZip-Kompression:</strong> Hier kann die Kompression aktiviert werden. Empfehlenswert ist die Aktivierung, da die Dateien doch wesentlich kleiner werden und Speicherplatz immer rar ist.</li>
<li><a name="conf5"></a><strong>Email mit Dumpfile:</strong> Ist diese Option aktiviert, so wird nach abgeschlossenem Backup eine Email mit dem Dump als Anhang verschickt (Vorsicht, Kompression sollte unbedingt an sein, sonst wird der Anhang zu gross und kann evtl. nicht versandt werden!).</li>
<li><a name="conf6"></a><strong>Email-Adresse:</strong> Empf&auml;ngeradresse f&uuml;r die Email.</li>
<li><a name="conf7"></a><strong>Absender der Email:</strong> diese Adresse taucht als Absender in der Email auf.</li>
<li><a name="conf13"></a><strong>FTP-Transfer: </strong>Ist diese Option aktiviert, so wird nach abgeschlossenem Backup die Backupdatei per FTP versandt.</li>
<li><a name="conf14"></a><strong>FTP Server: </strong>Die Adresse des FTP-Servers (z. B. ftp.mybackups.de).</li>
<li><a name="conf15"></a><strong>FTP Server Port: </strong>Der Port des FTP-Servers (in der Regel 21).</li>
<li><a name="conf16"></a><strong>FTP User: </strong>Der Benutzername des FTP-Accounts. </li>
<li><a name="conf17"></a><strong>FTP Passwort: </strong>Das Passwort des FTP-Accounts. </li>
<li><a name="conf18"></a><strong>FTP Upload-Ordner: </strong>Das Verzeichnis, in das die Backupdatei soll (es m&uuml;ssen Upload-Berechtigungen bestehen!).</li>
<li><a name="conf8"></a><strong>Automatisches L&ouml;schen der Backups:</strong> Wenn diese Option aktiviert ist, werden &auml;ltere Backups nach den folgenden Regeln automatisch gel&ouml;scht. Kombinationen sind m&ouml;glich.</li>
<li><a name="conf9"></a><strong>Alter der Dateien (in Tagen):</strong> Ein Wert > 0 l&ouml;scht alle Backupdateien, die &auml;lter als diese Angabe sind.</li>
<li><a name="conf10"></a><strong>Anzahl von Backupdateien:</strong> Ein Wert > 0 l&ouml;scht alle Backupdateien, bis auf die hier angegebe Zahl.</li>
<li><a name="conf11"></a><strong>Sprache:</strong> hier legst du die Sprache f&uuml;r das Interface fest.</li>
</ul>
<h6>Verwaltung</h6>
Hier werden die eigenlichen Aktionen durchgef&uuml;hrt.<br>
Es werden Dir alle Dateien im Backup-Verzeichnis angezeigt.
F&uuml;r die Aktionen "Restore" und "Delete" muss eine Datei selektiert sein.
<UL>
<li><strong>Restore:</strong> Hiermit wird die Datenbank mit der ausgew&auml;hlten Backupdatei aktualisiert.</li>
<li><strong>Delete:</strong> Hiermit kannst Du die selektierte Backupdatei l&ouml;schen.</li>
<li><strong>Neues Backup starten:</strong> Hier startest Du ein neues Backup (Dump) nach den in der Konfiguration eingestellten Parametern.</li>
</UL>
<h6>Log</h6>
Hier kannst Du die Logeintr&auml;ge sehen und l&ouml;schen.
<h6>Credits / Hilfe</h6>
diese Seite.
</ul>
<h3>Unsere Sponsoren</h3>
Die Sponsoren finden Sie auch auf der <a class="ul" href="http://www.mysqldumper.de/de/index.php?m=7" target="_blank">Sponsorenseite</a><br>
<?php echo MSDFooter();?>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>

Datei anzeigen

@ -0,0 +1,112 @@
<?php
//generated at 13.04.2006
$lang['yes']="ja";
$lang['to']="bis";
$lang['activated']="aktiviert";
$lang['not_activated']="nicht aktiviert";
$lang['error']="Fehler";
$lang['of']=" von ";
$lang['added']="hinzugef&uuml;gt";
$lang['db']="Datenbank";
$lang['dbs']="Datenbanken";
$lang['tables']="Tabellen";
$lang['table']="Tabelle";
$lang['records']="Datens&auml;tze";
$lang['compressed']="komprimiert (gz)";
$lang['notcompressed']="normal (unkomprimiert)";
$lang['general']="allgemein";
$lang['comment']="Kommentar";
$lang['filesize']="Dateigr&ouml;&szlig;e";
$lang['all']="alle";
$lang['none']="keine";
$lang['with']=" mit ";
$lang['dir']="Verzeichnis";
$lang['rechte']="Rechte";
$lang['status']="Status";
$lang['finished']="fertig";
$lang['file']="Datei";
$lang['fields']="Felder";
$lang['new']="neu";
$lang['charset']="Zeichensatz";
$lang['collation']="Sortierung";
$lang['change']="&auml;ndern";
$lang['in']="in";
$lang['do']="ausf&uuml;hren";
$lang['view']="ansehen";
$lang['existing']="vorhanden";
$lang['authors']="Autoren";
$lang['back']="zur&uuml;ck";
$lang['normal']="normal";
$lang['db_host']="Datenbank-Hostname";
$lang['db_user']="Datenbank-Benutzer";
$lang['db_pass']="Datenbank-Passwort";
$lang['info_scriptdir']="Verzeichnis von MySQLDumper";
$lang['info_actdb']="Aktuelle Datenbank";
$lang['useconnection']="Benutze Verbindung";
$lang['wrongconnectionpars']="Falsche oder keine Verbindungsparameter!";
$lang['conn_not_possible']="Verbindung nicht m&ouml;glich!";
$lang['servercaption']="Anzeige des Servers";
$lang['help_servercaption']="Bei Benutzung auf verschieden Systemen kann es hilfreich sein, die Server-Adresse farblich gekennzeichnet einzublenden";
$lang['activate_multidump']="Multidump aktivieren";
$lang['save']="speichern";
$lang['reset']="zur&uuml;cksetzen";
$lang['praefix']="Tabellen-Pr&auml;fix";
$lang['autodelete']="automatisches L&ouml;schen der Backups";
$lang['max_backup_files_each1']="f&uuml;r alle Datenbanken";
$lang['max_backup_files_each2']="f&uuml;r jede Datenbank";
$lang['saving_db_form']="Datenbank";
$lang['testconnection']="Verbindung testen";
$lang['back_to_minisql']="Datenbank bearbeiten";
$lang['critical_safemode']="<h3>Achtung: Fortsetzung im Safe-Modus nicht m&ouml;glich!</h3>Folgende Verzeichnisse m&uuml;ssen manuell im Scriptverzeichnis angelegt werden:<br><div style=";
$lang['create']="anlegen";
$lang['mailabsendererror']="E-Mail kann ohne Absender nicht verschickt werden!";
$lang['Ausgabe']="Ausgabe";
$lang['Zusatz']="Zusatz";
$lang['Variabeln']="Variablen";
$lang['berichtsent']="Der Fehlerbericht wurde erfolgreich abgesendet.";
$lang['autobericht']="automatisch generierter Fehlerbericht von";
$lang['berichtman1']="Bitte senden Sie die E-Mail manuell an das";
$lang['Statusinformationen']="Statusinformationen";
$lang['Versionsinformationen']="Versionsinformationen";
$lang['MySQL Dumper Informationen']="MySQLDumper Informationen";
$lang['Fehlerbericht']="Fehlerbericht";
$lang['backupfilesanzahl']="Im Backup-Verzeichnis befinden sich";
$lang['lastbackup']="Letztes Backup";
$lang['notavail']="<em>nicht verf&uuml;gbar</em>";
$lang['vom']="vom";
$lang['mysqlvars']="MySQL-Variabeln";
$lang['mysqlsys']="MySQL-Befehle";
$lang['Status']="Status";
$lang['Prozesse']="Prozesse";
$lang['info_novars']="keine Variablen verf&uuml;gbar";
$lang['Inhalt']="Inhalt";
$lang['info_nostatus']="kein Status verf&uuml;gbar";
$lang['info_noprocesses']="keine laufenden Prozesse";
$lang['fm_freespace']="Freier Speicher auf Server";
$lang['load_database']="Datenbanken neu laden";
$lang['home']="Home";
$lang['config']="Konfiguration";
$lang['dump']="Backup";
$lang['restore']="Wiederherstellung";
$lang['file_manage']="Verwaltung";
$lang['log']="Log";
$lang['choose_db']="Datenbank w&auml;hlen";
$lang['credits']="Credits / Hilfe";
$lang['multi_part']="Multipart-Backup";
$lang['logfilenotwritable']="Log-File kann nicht geschrieben werden!";
$lang['sql_error1']="Fehler bei der Anfrage:";
$lang['sql_error2']="MySQL meldet:";
$lang['unknown']="unbekannt";
$lang['unknown_number_of_records']="unbekannt";
$lang['cron_completelog']="Komplette Ausgabe loggen";
$lang['no']="nein";
$lang['MySQLErrorDoc']="MySQL-Dokumentation der Fehler";
$lang['downgrade']="Downgrade (MySQL 4.x => 3.x)";
$lang['create_database']="neue Datenbank anlegen";
$lang['exportfinished']="Export beendet.";
$lang['sql_browser']="SQL-Browser";
$lang['server']="Server";
?>

Datei anzeigen

@ -0,0 +1,95 @@
<?php
//generated at 13.04.2006
$lang['config_headline']="Konfiguration";
$lang['save_success']="Die Einstellungen wurden erfolgreich gespeichert.";
$lang['save_error']="Die Einstellungen konnten nicht gespeichert werden!";
$lang['config_email']="E-Mail-Benachrichtigung";
$lang['config_autodelete']="automatisches L&ouml;schen";
$lang['config_interface']="Interface";
$lang['multi_part_groesse']="maximale Dateigr&ouml;&szlig;e";
$lang['help_multipart']="Bei eingeschaltetem Multipart werden mehrere Backup-Dateien erzeugt, deren Maximalgr&ouml;&szlig;e sich nach der unteren Einstellung richtet";
$lang['help_multipartgroesse']="Die maximale Gr&ouml;&szlig;e der einzelnen Backup-Dateien kann hier bei eingeschaltetem Multipart bestimmt werden";
$lang['empty_db_before_restore']="Datenbank vor Wiederherstellung l&ouml;schen";
$lang['allpars']="alle Parameter";
$lang['cron_extender']="Dateiendung des Scripts";
$lang['cron_savepath']="Konfigurationsdatei";
$lang['cron_printout']="Textausgabe";
$lang['config_cronperl']="Crondump-Einstellungen f&uuml;r das Perlscript";
$lang['cron_mailprg']="Mailprogramm";
$lang['cron_ftp']="Backup per FTP senden";
$lang['optimize']="Tabellen vor dem Backup optimieren";
$lang['help_optimize']="Wenn die Option aktiviert ist, werden vor jedem Backup alle Tabellen optimiert";
$lang['help_ftptimeout']="Die Zeit, die bei keiner &Uuml;bertragung zum Timeout f&uuml;hrt, Default = 90 Sekunden.";
$lang['ftp_timeout']="Verbindungs-Timeout";
$lang['help_ftpssl']="Gibt an, ob eine sichere SSL-Verbindung f&uuml;r die &Uuml;bertragung benutzt werden soll.";
$lang['config_askload']="Sollen die Einstellungen wirklich mit den Anfangseinstellungen &uuml;berschrieben werden?";
$lang['load']="Anfangseinstellungen
laden";
$lang['load_success']="Die Anfangseinstellungen wurden geladen.";
$lang['cron_samedb']="Aktuelle Datenbank benutzen";
$lang['cron_crondbindex']="Datenbank und Tabellen-Pr&auml;fix<br> f&uuml;r den Cronjob";
$lang['withattach']=" mit Anhang";
$lang['withoutattach']=" ohne Anhang";
$lang['multidumpconf']="=Multidump Einstellungen=";
$lang['multidumpall']="=alle Datenbanken=";
$lang['gzip']="GZip-Kompression";
$lang['send_mail_form']="E-Mail senden";
$lang['send_mail_dump']="Backup anh&auml;ngen";
$lang['email_adress']="E-Mail-Adresse";
$lang['email_subject']="Absender der E-Mail";
$lang['email_maxsize']="maximale Gr&ouml;&szlig;e des Anhangs";
$lang['age_of_files']="Alter der Dateien (in Tagen)";
$lang['number_of_files_form']="Anzahl von Backup-Dateien";
$lang['language']="Sprache";
$lang['list_db']="Konfigurierte Datenbanken:";
$lang['config_ftp']="FTP-Transfer der Backup-Datei";
$lang['ftp_transfer']="FTP-Transfer";
$lang['ftp_server']="Server";
$lang['ftp_port']="Port";
$lang['ftp_user']="User";
$lang['ftp_pass']="Passwort";
$lang['ftp_dir']="Upload-Ordner";
$lang['ftp_ssl']="sichere SSL-FTP-Verbindung";
$lang['ftp_useSSL']="benutze SSL-Verbindung";
$lang['sqlboxheight']="H&ouml;he der SQL-Box";
$lang['sqllimit']="Anzahl der Datens&auml;tze pro Seite";
$lang['bbparams']="Einstellung f&uuml;r BB-Code";
$lang['bbtextcolor']="Textfarbe";
$lang['help_commands']="Man kann vor und nach dem Backup einen Befehl ausf&uuml;hren lassen.
Dies kann eine SQL-Anweisung sein oder ein Systembefehl (z. B. ein Script)";
$lang['command']="Befehl";
$lang['wrong_connectionpars']="Verbindungsparameter stimmen nicht!";
$lang['connectionpars']="Verbindungsparameter";
$lang['extendedpars']="erweiterte Parameter";
$lang['fade_in_out']="ein-/ausblenden";
$lang['db_backuppars']="Datenbanken Backup-Einstellungen";
$lang['general']="allgemein";
$lang['maxsize']="maximale Gr&ouml;&szlig;e";
$lang['backup_format']="Backup-Format";
$lang['inserts_complete']="vollst&auml;ndige Inserts";
$lang['inserts_extended']="erweiterte Inserts";
$lang['inserts_delayed']="verz&ouml;gerte Inserts";
$lang['inserts_ignore']="fehler&uuml;bergehende Inserts";
$lang['lock_tables']="Tabellen sperren";
$lang['errorhandling_restore']="Fehlerbehandlung bei Wiederherstellung";
$lang['ehrestore_continue']="fortfahren und Fehler protokollieren";
$lang['ehrestore_stop']="anhalten";
$lang['in_mainframe']="im Hauptframe";
$lang['in_leftframe']="im linken Frame";
$lang['width']="Breite";
$lang['sql_befehle']="SQL-Befehle";
$lang['download_languages']="andere Sprachen herunterladen";
$lang['download_styles']="andere Themen herunterladen";
$lang['connect_to']="Verbinde mit";
$lang['changedir']="Wechsle in das Verzeichnis ";
$lang['changedirerror']="Es konnte nicht in das Verzeichnis gewechselt werden!";
$lang['ftp_ok']="Die Verbindung wurde erfolgreich hergestellt.";
$lang['install']="Installation";
$lang['noftppossible']="Es stehen keine FTP-Funktionen zur Verf&uuml;gung!";
$lang['found_db']="gefundene DB: ";
$lang['ftp_choose_mode']="FTP-&Uuml;bertragungsmodus";
$lang['ftp_passive']="passiven &Uuml;bertragungsmodus benutzen";
?>

Datei anzeigen

@ -0,0 +1,58 @@
<?php
//generated at 13.04.2006
$lang['dump_headline']="erzeuge Backup...";
$lang['gzip_compression']="GZip-Kompression";
$lang['saving_table']="Speichere Tabelle ";
$lang['of']="von";
$lang['actual_table']="Aktuelle Tabelle";
$lang['progress_table']="Fortschritt Tabelle";
$lang['progress_over_all']="Fortschritt gesamt";
$lang['entry']="Eintrag";
$lang['done']="Fertig!";
$lang['dump_successful']=" wurde erfolgreich erstellt.";
$lang['upto']="bis";
$lang['email_was_send']="Die E-Mail wurde erfolgreich verschickt an ";
$lang['back_to_control']="weiter";
$lang['back_to_overview']="Datenbank-&Uuml;bersicht";
$lang['dump_filename']="Backup-Datei: ";
$lang['withpraefix']="mit Praefix";
$lang['dump_notables']="Es konnten keine Tabellen in der Datenbank `<b>%s</b>` gefunden werden.";
$lang['dump_endergebnis']="Es wurden <b>%s</b> Tabellen mit insgesamt <b>%s</b> Datens&auml;tzen gesichert.<br>";
$lang['mailerror']="Leider ist beim Verschicken der E-Mail ein Fehler aufgetreten!";
$lang['emailbody_attach']="In der Anlage finden Sie die Sicherung Ihrer MySQL-Datenbank.<br>Sicherung der Datenbank `%s`
<br><br>Folgende Datei wurde erzeugt:<br><br>%s <br><br>Viele Gr&uuml;&szlig;e<br><br>MySQLDumper<br>";
$lang['emailbody_mp_noattach']="Es wurde eine Multipart-Sicherung erstellt.<br>Die Sicherungen werden nicht als Anhang mitgeliefert!<br>Sicherung der Datenbank `%s`
<br><br>Folgende Dateien wurden erzeugt:<br><br>%s<br><br><br>Viele Gr&uuml;&szlig;e<br><br>MySQLDumper<br>";
$lang['emailbody_mp_attach']="Es wurde eine Multipart-Sicherung erstellt.<br>Die Sicherungen werden in separaten E-Mails als Anhang geliefert!<br>Sicherung der Datenbank `%s`
<br><br>Folgende Dateien wurden erzeugt:<br><br>%s<br><br><br>Viele Gr&uuml;&szlig;e<br><br>MySQLDumper<br>";
$lang['emailbody_footer']="<br><br><br>Viele Gr&uuml;&szlig;e<br><br>MySQLDumper<br>";
$lang['emailbody_toobig']="Die Sicherung &uuml;berschreitet die Maximalgr&ouml;&szlig;e von %s und wurde daher nicht angeh&auml;ngt.<br>Sicherung der Datenbank `%s`
<br><br>Folgende Datei wurde erzeugt:<br><br>%s
<br><br>Viele Gr&uuml;&szlig;e<br><br>MySQLDumper<br>";
$lang['emailbody_noattach']="Das Backup wurde nicht angeh&auml;ngt.<br>Sicherung der Datenbank `%s`
<br><br>Folgende Datei wurde erzeugt:<br><br>%s
<br><br>Viele Gr&uuml;&szlig;e<br><br>MySQLDumper<br>";
$lang['email_only_attachment']=" ... nur der Anhang";
$lang['tableselection']="Tabellenauswahl";
$lang['selectall']="alle ausw&auml;hlen";
$lang['deselectall']="Auswahl aufheben";
$lang['startdump']="Backup starten";
$lang['datawith']="Datens&auml;tze mit";
$lang['lastbufrom']="letztes Update vom";
$lang['not_supported']="Dieses Backup unterst&uuml;tzt diese Funktion nicht.";
$lang['multidump']="Multidump: Es wurden <b>%d</b> Datenbanken gesichert.";
$lang['filesendftp']="versende File via FTP... bitte habe etwas Geduld. ";
$lang['ftpconnerror']="FTP-Verbindung nicht hergestellt! Verbindung mit ";
$lang['ftpconnerror1']=" als Benutzer ";
$lang['ftpconnerror2']=" nicht m&ouml;glich";
$lang['ftpconnerror3']="FTP-Upload war fehlerhaft! ";
$lang['ftpconnected1']="Verbunden mit ";
$lang['ftpconnected2']=" auf ";
$lang['ftpconnected3']=" geschrieben";
$lang['nr_tables_selected']="- mit %s gew&auml;hlten Tabellen";
$lang['nr_tables_optimized']="<span class=\"small\">%s Tabellen wurden optimiert.</span>";
$lang['dump_errors']="<p class=\"error\">%s Fehler aufgetreten: <a href=\"log.php?r=3\">verdere</a></p>";
?>

Datei anzeigen

@ -0,0 +1,77 @@
<?php
//generated at 13.04.2006
$lang['convert_start']="Konvertierung starten";
$lang['convert_title']="Konvertiere Dump ins MSD-Format";
$lang['convert_wrong_parameters']="Falsche Parameter! Konvertierung ist nicht m&ouml;glich.";
$lang['fm_uploadfilerequest']="Geben Sie bitte eine Datei an.";
$lang['fm_uploadnotallowed1']="Dieser Dateityp ist nicht erlaubt.";
$lang['fm_uploadnotallowed2']="G&uuml;ltige Typen sind: *.gz und *.sql-Dateien";
$lang['fm_uploadmoveerror']="Die hochgeladene Datei konnte nicht in den richtigen Ordner verschoben werden.";
$lang['fm_uploadfailed']="Der Upload ist leider fehlgeschlagen!";
$lang['fm_uploadfileexists']="Es existiert bereits eine Datei mit diesem Namen!";
$lang['fm_nofile']="Sie haben gar keine Datei ausgew&auml;hlt!";
$lang['fm_delete1']="Die Datei ";
$lang['fm_delete2']=" wurde erfolgreich gel&ouml;scht.";
$lang['fm_delete3']=" konnte nicht gel&ouml;scht werden!";
$lang['fm_choose_file']="gew&auml;hlte Datei:";
$lang['fm_filesize']="Dateigr&ouml;&szlig;e";
$lang['fm_filedate']="Datum";
$lang['fm_nofilesfound']="Keine Datei gefunden.";
$lang['fm_tables']="Tabellen";
$lang['fm_records']="Eintr&auml;ge";
$lang['fm_all_bu']="alle Backups";
$lang['fm_anz_bu']="Backups";
$lang['fm_last_bu']="letztes Backup";
$lang['fm_totalsize']="Gesamtgr&ouml;&szlig;e";
$lang['fm_selecttables']="Auswahl der Tabellen";
$lang['fm_comment']="Kommentar eingeben";
$lang['fm_restore']="Wiederherstellen";
$lang['fm_alertrestore1']="Soll die Datenbank ";
$lang['fm_alertrestore2']="mit den Inhalten der Datei";
$lang['fm_alertrestore3']="wiederhergestellt werden?";
$lang['fm_delete']="ausgew&auml;hlte Dateien
l&ouml;schen";
$lang['fm_askdelete1']="M&ouml;chten Sie die Datei ";
$lang['fm_askdelete2']=" wirklich l&ouml;schen?";
$lang['fm_askdelete3']="M&ouml;chten Sie Autodelete nach den eingestellten Regeln jetzt ausf&uuml;hren?";
$lang['fm_askdelete4']="M&ouml;chten Sie alle Backup-Dateien jetzt l&ouml;schen?";
$lang['fm_askdelete5']="M&ouml;chten Sie alle Backup-Dateien mit ";
$lang['fm_askdelete5_2']="_* jetzt l&ouml;schen?";
$lang['fm_deleteauto']="Autodelete manuell ausf&uuml;hren";
$lang['fm_deleteall']="alle Backup-Dateien l&ouml;schen";
$lang['fm_deleteallfilter']="alle l&ouml;schen mit
";
$lang['fm_deleteallfilter2']="_*";
$lang['fm_startdump']="Neues Backup starten";
$lang['fm_fileupload']="Datei hochladen";
$lang['fm_dbname']="Datenbankname";
$lang['fm_files1']="Datenbank-Backups";
$lang['fm_files2']="Datenbank-Strukturen";
$lang['fm_autodel1']="Autodelete: Folgende Dateien wurden aufgrund der maximalen Dateianzahl gel&ouml;scht:";
$lang['fm_autodel2']="Autodelete: Folgende Dateien wurden aufgrund ihres Erstellungsdatums gel&ouml;scht:";
$lang['fm_dumpsettings']="Einstellungen f&uuml;r das Backup";
$lang['fm_dumpsettings_cron']="Einstellungen f&uuml;r das Perl-Cronscript";
$lang['fm_oldbackup']="(unbekannt)";
$lang['fm_restore_header']="Wiederherstellung der Datenbank <strong>";
$lang['fm_restore_header2']="\"</strong>";
$lang['fm_dump_header']="Backup";
$lang['DoCronButton']="Perl-Cronscript ausf&uuml;hren";
$lang['DoPerlTest']="Perl-Module testen";
$lang['DoSimpleTest']="Perl testen";
$lang['perloutput1']="Eintrag in crondump.pl f&uuml;r absolute_path_of_configdir";
$lang['perloutput2']="Aufruf im Browser oder f&uuml;r externen Cronjob";
$lang['perloutput3']="Aufruf in der Shell oder f&uuml;r die Crontab";
$lang['converter']="Backup-Konverter";
$lang['convert_file']="zu konvertierende Datei";
$lang['convert_filename']="Name der Zieldatei (ohne Endung)";
$lang['converting']="Konvertierung";
$lang['convert_fileread']="Datei '%s' wird eingelesen";
$lang['convert_finished']="Konvertierung abgeschlossen, '%s' wurde erzeugt.";
$lang['no_msd_backupfile']="Dateien anderer Programme";
$lang['max_upload_size']="Maximale Dateigr&ouml;&szlig;e";
$lang['max_upload_size_info']="Wenn Ihre Backup-Datei gr&ouml;&szlig;er als das angegebene Limit ist, dann m&uuml;ssen Sie diese per FTP in den \"work/backup\"-Ordner hochladen.
Danach wird diese Datei hier in der Verwaltung angezeigt und l&auml;sst sich f&uuml;r eine Wiederherstellung ausw&auml;hlen.";
?>

Datei anzeigen

@ -0,0 +1,51 @@
<?php
//generated at 13.04.2006
$lang['help_db']="Dies ist die Liste der vorhandenen Datenbanken.";
$lang['help_praefix']="Der Pr&auml;fix ist eine Zeichenfolge f&uuml;r den Anfang von Tabellen, der als Filter fungiert.";
$lang['help_zip']="Kompression mit GZip - emfohlen ist 'aktiviert'.";
$lang['help_memorylimit']="Das ist die maximale Gr&ouml;&szlig;e in Bytes, die das Skript an Speicher bekommt.
0 = deaktiviert";
$lang['memory_limit']="Speichergrenze";
$lang['help_mail1']="Wenn aktiviert, dann wird nach der Erstellung der Sicherung eine E-Mail mit dem Backup verschickt.";
$lang['help_mail2']="Dies ist die Empf&auml;nger-Adresse der E-Mail.";
$lang['help_mail3']="Dies ist die Absende-Adresse der E-Mail.";
$lang['help_mail4']="Die maximale Gr&ouml;&szlig;e f&uuml;r einen E-Mail-Anhang. Bei 0 bleibt die Angabe unber&uuml;cksichtigt.";
$lang['help_mail5']="Hier kann bestimmt werden, ob das Backup als E-Mail-Anhang verschickt werden soll.";
$lang['help_ad1']="Wenn aktiviert, dann werden automatisch Backup-Dateien gel&ouml;scht.";
$lang['help_ad2']="Die maximale Anzahl von Tagen, die eine Backup-Datei haben darf (f&uuml;r Autodelete).
0 = deaktiviert";
$lang['help_ad3']="Die maximale Anzahl von Dateien, die im Backup-Verzeichnis sein d&uuml;rfen (f&uuml;r Autodelete).
0 = deaktiviert";
$lang['help_lang']="Stellt auf die gew&uuml;nschte Sprache.";
$lang['help_empty_db_before_restore']="Um &uuml;berfl&uuml;ssige Daten zu eliminieren, kann man anweisen, die Datenbank vor der Wiederherstellung komplett zu leeren.";
$lang['help_cronmail']="Bestimmt, ob im Cronjob das Backup per E-Mail verschickt werden soll.";
$lang['help_cronmailprg']="Der Pfad zum E-Mail-Programm. Default ist sendmail im angegebenen Pfad.";
$lang['help_cronftp']="Bestimmt, ob im Cronjob das Backup per FTP verschickt werden soll.";
$lang['help_cronzip']="Kompression mit GZip. Emfohlen ist 'aktiviert'. (Die Kompressions-Lib muss installiert sein!)";
$lang['help_cronextender']="Die Endung des Perlscriptes, Standard ist '.pl'.";
$lang['help_cronsavepath']="Der Name der Konfigurationsdatei f&uuml;r das Perlskript.";
$lang['help_cronprintout']="Wenn die Textausgabe abgeschaltet ist, wird kein Text mehr ausgegeben.
Diese Funktion ist unabh&auml;ngig von der Log-Ausgabe.";
$lang['help_cronsamedb']="Soll die gleiche Datenbank f&uuml;r Cronjob wie in den Einstellungen benutzt werden?";
$lang['help_crondbindex']="W&auml;hle die Datenbank f&uuml;r den Cronjob.";
$lang['help_cronmail_dump']="Bestimmt, ob die vom Cronjob verschickten Email das Backup als Anhang enthalten soll. ";
$lang['help_ftptransfer']="Wenn aktiviert, wird nach dem Backup die Datei per FTP gesendet.";
$lang['help_ftpserver']="Adresse des FTP-Servers.";
$lang['help_ftpport']="Port des FTP-Servers. Standard: 21.";
$lang['help_ftpuser']="Gibt den Benutzernamen der FTP-Verbindung an.";
$lang['help_ftppass']="Gibt das Passwort der FTP-Verbindung an.";
$lang['help_ftpdir']="Wohin soll die Datei gesendet werden?";
$lang['help_speed']="Minimale und maximale Geschwindigkeit. Standard ist 50 bis 5000.
(Zu hohe Geschwindigkeiten k&ouml;nnen zu Timeouts f&uuml;hren!)";
$lang['speed']="Geschwindigkeitskontrolle";
$lang['help_cronexecpath']="Der Ort, an dem die Perlskripte liegen.
Ausgangspunkt ist die HTTP-Adresse (also im Browser).
Erlaubt sind absolute und relative Pfadangaben.";
$lang['cron_execpath']="Pfad der Perlskripte";
$lang['help_croncompletelog']="Wenn die Funktion aktiviert ist, wird die komplette Ausgabe im complete_log geschrieben.
Diese Funktion ist unabh&auml;ngig von der Textausgabe.";
$lang['help_ftp_mode']="Gibt den FTP-&Uuml;bertragungsmodus an. Wenn Probleme im aktiven Modus auftreten, sollte in den passiven Modus umgeschaltet werden";
?>

Datei anzeigen

@ -0,0 +1,89 @@
<?php
//generated at 13.04.2006
$lang['installfinished']="<br>die Installation ist abgeschlossen --> <a href=\"index.php\">starte MySQLDumper</a><br>";
$lang['install_forcescript']="MySQLDumper ohne Installation starten";
$lang['install_tomenu']="zum Hauptmen&uuml;";
$lang['installmenu']="Hauptmen&uuml;";
$lang['step']="Schritt";
$lang['install']="Installation";
$lang['uninstall']="Deinstallation";
$lang['tools']="Tools";
$lang['editconf']="Konfiguration bearbeiten";
$lang['osweiter']="ohne Speichern weiter";
$lang['errorman']="<strong>Fehler beim Schreiben der Konfiguration!</strong><br>Bitte editieren Sie die Datei ";
$lang['manuell']="manuell";
$lang['createdirs']="erstelle Verzeichnisse";
$lang['install_continue']="mit der Installation fortfahren";
$lang['connecttomysql']=" zu MySQL verbinden ";
$lang['dbparameter']="Datenbank-Parameter";
$lang['confignotwritable']="Die Datei \"config.php\" ist nicht beschreibbar.
Geben Sie ihr mit einem FTP-Programm entsprechende Rechte, z. B. den CHMod-Wert 0777.";
$lang['dbconnection']="Datenbank-Verbindung";
$lang['connectionerror']="Fehler: Es konnte keine Verbindung herstellt werden.";
$lang['connection_ok']="Datenbank-Verbindung wurde hergestellt.";
$lang['saveandcontinue']="speichern und Installation fortsetzen";
$lang['confbasic']="Grundeinstellungen";
$lang['install_step2finished']="Datenbankeinstellungen wurden gesichert.<br><br>Sie k&ouml;nnen mit der Standardkonfiguration die Installation fortsetzen oder die Konfiguration bearbeiten.";
$lang['install_step2_1']="Installation mit Standardkonfiguration fortsetzen";
$lang['laststep']="Abschluss der Installation";
$lang['ftpmode']="Verzeichnisse per FTP erzeugen (safe_mode)";
$lang['safemodedesc']="Da PHP auf diesem Server mit der Option \"safe_mode=on\" ausgef&uuml;hrt wird, m&uuml;ssen folgende Verzeichnisse von Hand angelegt werden (dies k&ouml;nnen Sie mit Ihrem FTP-Programm erledigen oder geben Sie die FTP-Zugangsdaten in nebenstehendes Formular ein damit MySQLDumper die Verzeichnisse selbst anlegen kann): ";
$lang['idomanual']="Ich erstelle die Verzeichnisse manuell";
$lang['dofrom']="ausgehend von";
$lang['ftpmode2']="Erstelle die Verzeichnisse per FTP:";
$lang['connect']="verbinden";
$lang['dirs_created']="Die Verzeichnisse wurden ordnungsgem&auml;&szlig; erstellt.";
$lang['connect_to']="verbinde zu";
$lang['changedir']="Wechsel ins Verzeichnis";
$lang['changedirerror']="Wechsel ins Verzeichnis nicht m&ouml;glich";
$lang['ftp_ok']="FTP-Parameter sind ok";
$lang['createdirs2']="Verzeichnisse erstellen";
$lang['ftp_notconnected']="FTP-Verbindung nicht hergestellt!";
$lang['connwith']="Verbindung mit";
$lang['asuser']="als Benutzer";
$lang['notpossible']="nicht m&ouml;glich";
$lang['dircr1']="erstelle Arbeitsverzeichnis";
$lang['dircr2']="erstelle Backup-Verzeichnis";
$lang['dircr3']="erstelle Strukturverzeichnis";
$lang['dircr4']="erstelle Log-Verzeichnis";
$lang['dircr5']="erstelle Konfigurationsverzeichnis";
$lang['indir']="bin im Verzeichnis";
$lang['check']="&uuml;berpr&uuml;fen";
$lang['disabledfunctions']="Abgeschaltete Funktionen";
$lang['noftppossible']="Es stehen keine FTP-Funktionen zur Verf&uuml;gung!";
$lang['nogzpossible']="Es stehen keine Kompressions-Funktionen zur Verf&uuml;gung!";
$lang['ui1']="Es werden alle Arbeitsverzeichnisse incl. den darin enthaltenen Backups gel&ouml;scht.";
$lang['ui2']="Sind Sie sicher, dass Sie das m&ouml;chten?";
$lang['ui3']="Nein, sofort abbrechen";
$lang['ui4']="ja, bitte fortfahren";
$lang['ui5']="l&ouml;sche Arbeitsverzeichnis";
$lang['ui6']="alles wurde erfolgreich gel&ouml;scht.";
$lang['ui7']="Bitte l&ouml;schen Sie das Skriptverzeichnis";
$lang['ui8']="eine Ebene nach oben";
$lang['ui9']="Ein Fehler trat auf, l&ouml;schen war nicht m&ouml;glich</p>Fehler bei Verzeichnis ";
$lang['import']="Konfiguration importieren";
$lang['import1']="Einstellungen aus ";
$lang['import2']="Einstellungen hochladen und importieren";
$lang['import3']="Die Konfiguration wurde geladen...";
$lang['import4']="Die Konfiguration wurde gesichert.";
$lang['import5']="MySQLDumper starten";
$lang['import6']="Installations-Men&uuml;";
$lang['import7']="Konfiguration hochladen";
$lang['import8']="zur&uuml;ck zum Upload";
$lang['import9']="Dies ist keine Konfigurationssicherung!";
$lang['import10']="Die Konfiguration wurde erfolgreich hochgeladen...";
$lang['import11']="<strong>Fehler: </strong>Es gab Probleme beim Schreiben der sql_statements.";
$lang['import12']="<strong>Fehler: </strong>Es gab Probleme beim Schreiben der config.php.";
$lang['install_help_port']="(leer = Standardport)";
$lang['install_help_socket']="(leer = Standardsocket)";
$lang['tryagain']="noch einmal versuchen";
$lang['socket']="Socket";
$lang['port']="Port";
$lang['found_no_db']="Fehler: nicht gefundene Datenbank:";
$lang['found_db']="gefundene DB: ";
$lang['fm_fileupload']="Datei hochladen";
$lang['pass']="Passwort";
?>

Datei anzeigen

@ -0,0 +1,11 @@
<?php
//generated at 13.04.2006
$lang['log_delete']="Log l&ouml;schen";
$lang['logfileformat']="Log-Dateiformat";
$lang['logfilenotwritable']="Log-Datei kann nicht geschrieben werden!";
$lang['noreverse']="&auml;ltester Eintrag zuerst";
$lang['reverse']="neuster Eintrag zuerst";
?>

Datei anzeigen

@ -0,0 +1,67 @@
<?php
//generated at 13.04.2006
$lang['noftppossible']="Es stehen keine FTP-Funktionen zur Verf&uuml;gung!";
$lang['info_location']="Sie befinden sich auf ";
$lang['info_databases']="Folgende Datenbank(en) befinden sich auf dem MySql-Server:";
$lang['info_nodb']="Datenbank existiert nicht";
$lang['info_table1']="Tabelle";
$lang['info_table2']="n";
$lang['info_dbdetail']="Detail-Information von Datenbank ";
$lang['info_dbempty']="Die Datenbank ist leer!";
$lang['info_records']="Datens&auml;tze";
$lang['info_size']="Gr&ouml;&szlig;e";
$lang['info_lastupdate']="letztes Update";
$lang['info_sum']="insgesamt";
$lang['info_optimized']="optimiert";
$lang['optimize_databases']="Tabellen optimieren";
$lang['check_tables']="Tabellen &uuml;berpr&uuml;fen";
$lang['clear_database']="Datenbank leeren";
$lang['delete_database']="Datenbank l&ouml;schen";
$lang['info_cleared']="wurde geleert";
$lang['info_deleted']="wurde gel&ouml;scht";
$lang['info_emptydb1']="Soll die Datenbank";
$lang['info_emptydb2']=" wirklich geleert werden? (Achtung! Alle Daten gehen unwiderruflich verloren)";
$lang['info_killdb']=" wirklich gel&ouml;scht werden? (Achtung! Alle Daten gehen unwiderruflich verloren)";
$lang['processkill1']="Es wird versucht, Prozess ";
$lang['processkill2']="zu beenden.";
$lang['processkill3']="Es wird seit ";
$lang['processkill4']=" Sekunde(n) versucht, Prozess ";
$lang['htaccess1']="Verzeichnisschutz erstellen";
$lang['htaccess2']="Passwort:";
$lang['htaccess3']="Passwort (Wiederholung):";
$lang['htaccess4']="Verschl&uuml;sselungsart:";
$lang['htaccess5']="Linux und Unix-Systeme (Crypt)";
$lang['htaccess6']="Linux and Unix-Systeme (MD5)";
$lang['htaccess7']="unverschl&uuml;sselt (Windows)";
$lang['htaccess8']="Es besteht bereits ein Verzeichnisschutz. Wenn Sie einen neuen erstellen, wird der alte &uuml;berschrieben!";
$lang['htaccess9']="Sie m&uuml;ssen einen Namen eingeben!<br>";
$lang['htaccess10']="Die Passw&ouml;rter sind nicht identisch oder leer!<br>";
$lang['htaccess11']="Soll der Verzeichnisschutz jetzt erstellt werden?";
$lang['htaccess12']="Der Verzeichnisschutz wurde erstellt.";
$lang['htaccess13']="Inhalt der Datei";
$lang['htaccess14']="Es ist ein Fehler bei der Erstellung des Verzeichnisschutzes aufgetreten!<br>Bitte erzeugen Sie die Dateien manuell mit folgendem Inhalt:";
$lang['htaccess15']="Dringend empfohlen!";
$lang['htaccess16']=".htaccess editieren";
$lang['htaccess17']=".htaccess erstellen und editieren";
$lang['htaccess18']=".htaccess erstellen in ";
$lang['htaccess19']=" neu laden ";
$lang['htaccess20']="Skript ausf&uuml;hren";
$lang['htaccess21']="Handler zuf&uuml;gen";
$lang['htaccess22']="Ausf&uuml;hrbar machen";
$lang['htaccess23']="Verzeichnis-Listing";
$lang['htaccess24']="Error-Dokument";
$lang['htaccess25']="Rewrite aktivieren";
$lang['htaccess26']="Deny / Allow";
$lang['htaccess27']="Redirect";
$lang['htaccess28']="Error-Log";
$lang['htaccess29']="weitere Beispiele und Dokumentation";
$lang['htaccess30']="Provider";
$lang['htaccess31']="allgemein";
$lang['htaccess32']="Achtung! Die .htaccess hat eine direkte Auswirkung auf den Browser.<br>Bei falscher Anwendung sind die Seiten nicht mehr erreichbar.";
$lang['phpbug']="Bug in zlib! Keine Kompression m&ouml;glich";
$lang['disabledfunctions']="Abgeschaltete Funktionen";
$lang['nogzpossible']="Da zlib nicht installiert ist, stehen keine GZip-Funktionen zur Verf&uuml;gung.";
?>

Datei anzeigen

@ -0,0 +1,23 @@
<?php
//generated at 13.04.2006
$lang['restore_tables_completed0']="Es wurden bisher <b>%d</b> Tabellen angelegt.";
$lang['file_missing']="konnte Datei nicht finden";
$lang['restore_db']="Datenbank '<b>%s</b>' auf Server '<b>%s</b>'.";
$lang['restore_complete']="<b>%s</b> Tabellen wurden angelegt.";
$lang['restore_run1']="<br>Es wurden bisher <b>%s</b> von <b>%s</b> Datens&auml;tzen erfolgreich eingetragen.";
$lang['restore_run2']="<br>Momentan wird die Tabelle '<b>%s</b>' mit Datens&auml;tzen gef&uuml;llt.<br><br>";
$lang['restore_complete2']="<b>%s</b> Datens&auml;tze wurden eingetragen.";
$lang['restore_tables_completed']="Es wurden bisher <b>%d</b> von <b>%d</b> Tabellen angelegt.";
$lang['restore_total_complete']="<br><b>Herzlichen Gl&uuml;ckwunsch.</b><br><br>Die Datenbank wurde komplett wiederhergestellt.<br>Alle Daten aus der Backup-Datei wurden erfolgreich in die Datenbank eingetragen.<br><br>Alles fertig. :-)";
$lang['db_select_error']="<br>Fehler:<br>Auswahl der Datenbank '<b>";
$lang['db_select_error2']="</b>' fehlgeschlagen!";
$lang['file_open_error']="Fehler: Die Datei konnte nicht ge&ouml;ffnet werden.";
$lang['progress_over_all']="Fortschritt gesamt";
$lang['back_to_overview']="Datenbank-&Uuml;bersicht";
$lang['restore_run0']="<br>Es wurden bisher <b>%s</b> Datens&auml;tze erfolgreich eingetragen.";
$lang['unknown_sqlcommand']="Unbekannter SQL-Befehl:";
$lang['notices']="Hinweise";
?>

Datei anzeigen

@ -0,0 +1,164 @@
<?php
//generated at 13.04.2006
$lang['command']="Befehl";
$lang['sql_view_normal']="Ansicht: normal";
$lang['sql_view_compact']="Ansicht: kompakt";
$lang['import_notable']="Es ist keine Tabelle f&uuml;r den Import ausgew&auml;hlt!";
$lang['sql_warning']="Die Ausf&uuml;hrung von SQL-Befehlen kann Daten manipulieren! Der Autor &uuml;bernimmt keine Haftung bei Datenverlusten.";
$lang['sql_exec']="SQL-Befehl ausf&uuml;hren";
$lang['sql_dataview']="Daten-Ansicht";
$lang['sql_tableview']="Tabellen-Ansicht";
$lang['sql_vonins']="von insgesamt";
$lang['sql_nodata']="keine Datens&auml;tze";
$lang['sql_recordupdated']="Datensatz wurde ge&auml;ndert";
$lang['sql_recordinserted']="Datensatz wurde gespeichert";
$lang['sql_backdboverview']="zur&uuml;ck zur Datenbank-&Uuml;bersicht";
$lang['sql_recorddeleted']="Datensatz wurde gel&ouml;scht";
$lang['asktableempty']="Soll die Tabelle `%s` geleert werden?";
$lang['sql_recordedit']="editiere Datensatz";
$lang['sql_recordnew']="Datensatz einf&uuml;gen";
$lang['askdeleterecord']="Soll der Datensatz gel&ouml;scht werden?";
$lang['askdeletetable']="Soll die Tabelle `%s` gel&ouml;scht werden?";
$lang['sql_befehle']="SQL-Befehle";
$lang['sql_befehlneu']="neuer Befehl";
$lang['sql_befehlsaved1']="SQL-Befehl";
$lang['sql_befehlsaved2']="wurde hinzugef&uuml;gt";
$lang['sql_befehlsaved3']="wurde gespeichert";
$lang['sql_befehlsaved4']="wurde nach oben gebracht";
$lang['sql_befehlsaved5']="wurde gel&ouml;scht";
$lang['sql_queryentry']="Die Abfrage enth&auml;lt";
$lang['sql_columns']="Spalten";
$lang['askdbdelete']="Soll die Datenbank `%s` samt Inhalt wirklich gel&ouml;scht werden?";
$lang['askdbempty']="Soll die Datenbank `%s` wirklich geleert werden?";
$lang['askdbcopy']="Soll der Inhalt der Datenbank `%s` in die Datenbank `%s` kopiert werden?";
$lang['sql_tablenew']="Tabellen bearbeiten";
$lang['sql_output']="SQL-Ausgabe";
$lang['do_now']="jetzt ausf&uuml;hren";
$lang['sql_namedest_missing']="Name f&uuml;r die Zieldatenbank fehlt!";
$lang['askdeletefield']="Soll das Feld gel&ouml;scht werden?";
$lang['sql_commands_in']=" Zeilen in ";
$lang['sql_commands_in2']=" Sekunde(n) abgearbeitet.";
$lang['sql_out1']="Es wurden ";
$lang['sql_out2']="Befehle ausgef&uuml;hrt";
$lang['sql_out3']="Es gab ";
$lang['sql_out4']="Kommentare";
$lang['sql_out5']="Da die Ausgabe &uuml;ber 5000 Zeilen enth&auml;lt, wird sie nicht angezeigt.";
$lang['sql_selecdb']="Datenbank ausw&auml;hlen";
$lang['sql_tablesofdb']="Tabellen der Datenbank";
$lang['sql_edit']="bearbeiten";
$lang['sql_nofielddelete']="L&ouml;schen nicht m&ouml;glich, da eine Tabelle mindestens 1 Feld haben muss.";
$lang['sql_fielddelete1']="Das Feld";
$lang['sql_deleted']="wurde gel&ouml;scht.";
$lang['sql_changed']="wurde ge&auml;ndert.";
$lang['sql_created']="wurde angelegt.";
$lang['sql_nodest_copy']="Ohne Ziel kann nicht kopiert werden!";
$lang['sql_desttable_exists']="Zieltabelle existiert schon!";
$lang['sql_scopy']="Tabellenstruktur von `%s` wurde in Tabelle `%s` kopiert.";
$lang['sql_tcopy']="Tabelle `%s` wurde mit Daten in Tabelle `%s` kopiert.";
$lang['sql_tablenoname']="Tabelle braucht einen Namen!";
$lang['sql_tblnameempty']="Tabellenname darf nicht leer sein!";
$lang['sql_collatenotmatch']="Zeichensatz und Sortierung passen nicht zueinander!";
$lang['sql_fieldnamenotvalid']="Fehler: Kein g&uuml;ltiger Feldname";
$lang['sql_createtable']="Tabelle anlegen";
$lang['sql_copytable']="Tabelle kopieren";
$lang['sql_structureonly']="nur Struktur";
$lang['sql_structuredata']="Struktur und Daten";
$lang['sql_notablesindb']="Es befinden sich keine Tabellen in der Datenbank";
$lang['sql_selecttable']="Tabelle ausw&auml;hlen";
$lang['sql_showdatatable']="Daten der Tabelle anzeigen";
$lang['sql_tblpropsof']="Tabelleneigenschaften von";
$lang['sql_editfield']="Editiere Feld";
$lang['sql_newfield']="Neues Feld";
$lang['sql_indexes']="Indizes";
$lang['sql_atposition']="an Position einf&uuml;gen";
$lang['sql_first']="zuerst";
$lang['sql_after']="nach";
$lang['sql_changefield']="Feld &auml;ndern";
$lang['sql_insertfield']="Feld einf&uuml;gen";
$lang['sql_insertnewfield']="neues Feld einf&uuml;gen";
$lang['sql_tableindexes']="Indizes der Tabelle";
$lang['sql_allowdups']="Duplikate erlaubt";
$lang['sql_cardinality']="Kardinalit&auml;t";
$lang['sql_tablenoindexes']="Die Tabelle enth&auml;lt keine Indizes";
$lang['sql_createindex']="neuen Index erzeugen";
$lang['sql_wasemptied']="wurde geleert";
$lang['sql_renamedto']="wurde umbenannt in";
$lang['sql_dbcopy']="Der Inhalt der Datenbank `%s` wurde in die Datenbank `%s` kopiert.";
$lang['sql_dbscopy']="Die Struktur der Datenbank `%s` wurde in die Datenbank `%s` kopiert.";
$lang['sql_wascreated']="wurde erzeugt";
$lang['sql_renamedb']="Datenbank umbenennen";
$lang['sql_actions']="Aktionen";
$lang['sql_chooseaction']="Aktion w&auml;hlen";
$lang['sql_deletedb']="Datenbank l&ouml;schen";
$lang['sql_emptydb']="Datenbank leeren";
$lang['sql_copydatadb']="Inhalt in Datenbank kopieren";
$lang['sql_copysdb']="Struktur in Datenbank kopieren";
$lang['sql_imexport']="Im-/Export";
$lang['info_records']="Datens&auml;tze";
$lang['asktableemptykeys']="Sollen die Tabelle `%s` geleert und die Indizes zur&uuml;ckgesetzt werden?";
$lang['edit']="editieren";
$lang['delete']="l&ouml;schen";
$lang['empty']="leeren";
$lang['emptykeys']="leeren und Indizes zur&uuml;cksetzen";
$lang['sql_tableemptied']="Tabelle `%s` wurde geleert.";
$lang['sql_tableemptiedkeys']="Tabelle `%s` wurde geleert, und die Indizes wurden zur&uuml;ckgesetzt.";
$lang['sql_library']="SQL-Bibliothek";
$lang['sql_attributes']="Attribute";
$lang['sql_enumsethelp']="Bei Feldtypen ENUM und SET bitte bei Size die Werteliste eingeben.
Die Werte m&uuml;ssen in Hochkommas und mit Kommas getrennt sein.
Bei Benutzung von Sonderzeichen m&uuml;ssen diese mit \ (Backslash) maskiert werden.
Beispiele:
'a','b','c'
'ja','nein'
'x','y'";
$lang['sql_uploadedfile']="geladene Datei: ";
$lang['sql_import']="Import in Datenbank `%s`";
$lang['export']="Export";
$lang['import']="Import";
$lang['importoptions']="Import-Optionen";
$lang['csvoptions']="CSV-Optionen";
$lang['importtable']="Import in Tabelle";
$lang['newtable']="neue Tabelle";
$lang['importsource']="Import-Quelle";
$lang['fromtextbox']="aus Textfeld";
$lang['fromfile']="aus Datei";
$lang['emptytablebefore']="Tabelle vorher leeren";
$lang['createautoindex']="Auto-Index erzeugen";
$lang['csv_namefirstline']="Feldnamen in die erste Zeile";
$lang['csv_fieldseperate']="Felder getrennt mit";
$lang['csv_fieldsenclosed']="Felder eingeschlossen von";
$lang['csv_fieldsescape']="Felder escaped von";
$lang['csv_eol']="Zeilen getrennt mit";
$lang['csv_null']="Ersetze NULL durch";
$lang['csv_fileopen']="CSV-Datei &ouml;ffnen";
$lang['importieren']="importieren";
$lang['sql_export']="Export aus Datenbank `%s`";
$lang['exportoptions']="Export-Optionen";
$lang['excel2003']="Excel ab 2003";
$lang['showresult']="Ergebnis anzeigen";
$lang['sendresultasfile']="Ergebnis als Datei senden";
$lang['exportlines']="<strong>%s</strong> Zeilen exportiert";
$lang['csv_fieldcount_nomatch']="Die Anzahl der Tabellenfelder stimmen nicht mit den zu importierenden Daten &uuml;berein (%d statt %d).";
$lang['csv_fieldslines']="%d Felder ermittelt, insgesamt %d Zeilen";
$lang['csv_errorcreatetable']="Fehler beim Erstellen der Tabelle `%s`!";
$lang['fm_uploadfilerequest']="Bitte geben Sie eine Datei an.";
$lang['csv_nodata']="Keine Daten zum Importieren gefunden!";
$lang['sqllib_generalfunctions']="allgemeine Funktionen";
$lang['sqllib_resetauto']="Auto-Wert zur&uuml;cksetzen";
$lang['sqllib_boards']="Boards";
$lang['sqllib_deactivateboard']="Board deaktivieren";
$lang['sqllib_activateboard']="Board aktivieren";
$lang['sql_notablesselected']="Es sind keine Tabellen ausgew&auml;hlt!";
$lang['tools']="Tools";
$lang['tools_toolbox']="Datenbank ausw&auml;hlen / Datenbankfunktionen / Im- und Export ";
?>

Datei anzeigen

@ -0,0 +1,141 @@
<?php
if(file_exists("./../../work/config/parameter.php")){
@include("./../../work/config/parameter.php");
}
@include("./../../inc/functions_global.php");
@include("./../../language/".$config["language"]."/lang.php");
@include("./../../language/".$config["language"]."/lang_help.php");
echo MSDHeader(2);
echo headline($lang['credits']);
?>
<div id="content">
<h3>&Uuml;ber dieses Projekt</h3>
Die Idee f&uuml;r dieses Projekt kam von Daniel Schlichtholz.<p>Er er&ouml;ffnete 2004 das Forum <a href="http://www.mysqldumper.de/board" target="_blank">MySQLDumper</a>, und schon bald fanden sich Hobby-Programmierer, die neue Skripte schrieben und die von Daniel erweiterten.<br>Innerhalb k&uuml;rzester Zeit entstand aus dem kleinen Backupskript ein stattliches Projekt.<p>Wenn Du Vorschl&auml;ge zur Verbesserung hast, dann wende Dich an das MySQLDumper-Forum <a href="http://www.mysqldumper.de/board" target="_blank">http://www.mysqldumper.de/board</a>.<p>Wir w&uuml;nschen Dir viel Vergn&uuml;gen mit diesem Projekt.<br><p><h4>Das MySQLDumper-Team</h4>
<table><tr><td><img src="../../images/logo.gif" alt="MySQLDumper" width="160" height="42" border="1"></td><td valign="top">
Daniel Schlichtholz - Steffen Kamper<br>
Perlscript mit Unterst&uuml;tzung von Detlev Richter<br>
</td></tr></table>
<br>
<h3>MySQLDumper Hilfe</h3>
<h4>Download</h4>
Dieses Script erhaltet Ihr auf der Homepage von MySQLDumper.<br>
Es empfiehlt sich, die Homepage regelm&auml;&szlig;ig zu besuchen, um Updates und
Hilfestellungen zu erlangen.<br>
Die Adresse lautet: <a href="http://www.mysqldumper.de" target="_blank">
http://www.mysqldumper.de</a>
<h4>Systemvoraussetzung</h4>
Das Script arbeitet auf jedem Server (Windows, Linux, ...) <br>
mit PHP >= Version 4.3.4 mit GZip-Unterst&uuml;tzung, MySQL (ab Version 3.23), JavaScript (muss aktiviert sein).
<a href="../../install.php?language=de" target="_top"><h4>Installation</h4></a>
Die Installation geht einfach von statten.
Entpackt das Archiv in einen beliebigen Ordner.<br>
Ladet alle Dateien auf Euren Webserver hoch. (z. B. in die unterste Ebene in [Server Webverzeichnis/]MySQLDumper)<br>
... fertig!<br>
Ihr k&ouml;nnt MySQLDumper nun im Webbrowser durch "http://mein-webserver/MySQLDumper" aufrufen,<br>
um die Installation abzuschlie&szlig;en. Folgt einfach den Instruktionen.<br>
<br><b>Hinweis:</b><br><i>Falls auf Eurem Server der PHP-Safemode eingeschaltet ist, darf das Script keine
Verzeichnisse erstellen.<br>
Dies m&uuml;sst Ihr dann von Hand nachholen, da MySqlDump die Daten geordnet in
Verzeichnissen ablegt.<br>
Das Script bricht mit einer entsprechenden Anweisung ab!<br>
Nachdem Ihr die Verzeichnisse (dem Hinweis entsprechend) erstellt habt, l&auml;uft es normal und ohne Einschr&auml;nkungen.</i>
<a name="perl"></a><h4>Perlskript Anleitung</h4>
Die Meisten haben ein cgi-bin Verzeichnis, in dem Perl ausgef&uuml;hrt werden kann. <br>
Dies ist meist per Browser &uuml;ber http://www.domain.de/cgi-bin/ erreichbar. <br>
<br>
F&uuml;r diesen Fall bitte folgende Schritte durchf&uuml;hren:<br><br>
1. Rufe im MySQLDumper die Seite Backup auf und klicke auf "Backup Perl". <br>
2. Kopiere den Pfad, der hinter Eintrag in crondump.pl f&uuml;r $absolute_path_of_configdir: steht. <br>
3. &Ouml;ffne die Datei "crondump.pl" im Editor.<br>
4. Trage den kopierten Pfad dort bei absolute_path_of_configdir ein (keine Leerzeichen).<br>
5. Speichere crondump.pl .<br>
6. Kopiere crondump.pl, sowie perltest.pl und simpletest.pl ins cgi-bin-Verzeichnis (Ascii-Modus im FTP).<br>
7. Gebe den Dateien die Rechte 755. <br>
7b. Wenn die Endung cgi gew&uuml;nscht ist, &auml;ndere bei allen 3 Dateien die Endung von pl -> cgi (umbenennen). <br>
8. Rufe die Konfiguration im MySQLDumper auf.<br>
9. W&auml;hle die Seite Cronscript. <br>
10. &Auml;ndere Perl Ausf&uuml;hrungspfad in /cgi-bin/ .<br>
10b. Wenn die Scripte .pl haben, &auml;ndere die Dateiendung auf .cgi .<br>
11. Speichere die Konfiguration. <br><br>
Fertig, die Skripte lassen sich nun von der Backupseite aufrufen.<br><br>
Wer Perl in allen Verzeichnissen ausf&uuml;hren kann, dem reichen folgende Schritte:<br><br>
1. Rufe im MySQLDumper die Seite Backup auf. <br>
2. Kopiere den Pfad, der hinter Eintrag in crondump.pl f&uuml;r $absolute_path_of_configdir: steht. <br>
3. &Ouml;ffne die Datei "crondump.pl" im Editor. <br>
4. Trage den kopierten Pfad dort bei absolute_path_of_configdir ein (keine Leerzeichen). <br>
5. Speichere crondump.pl .<br>
6. gebe den Datein die Rechte 755. <br>
6b. Wenn die Endung cgi gew&uuml;nscht ist, &auml;ndere bei allen 3 Dateien die Endung von pl -> cgi (umbenennen). <br>
(ev. 10b+11 von oben)<br>
<br>
Windowsuser m&uuml;ssen bei allen Scripten die erste Zeile &auml;ndern, dort steht der Pfad von Perl. Beispiel: <br>
statt: #!/usr/bin/perl -w <br>
jetzt: #!C:\perl\bin\perl.exe -w <br>
<h4>Bedienung</h4><ul>
<h6>Men&uuml;</h6>
In der obigen Auswahlliste stellt Ihr die Datenbank ein.<br>
Alle Aktionen beziehen sich auf die hier eingestellte Datenbank.
<h6>Startseite</h6>
Hier erfahrt Ihr Einiges &uuml;ber Euer System, die verschiedenen, installierten
Versionen und Details &uuml;ber die konfigurierten Datenbanken.<br>
Wenn Ihr auf den Datenbanknamen klickt, so seht Ihr eine Auflistung der Tabellen
mit der Anzahl der Eintr&auml;ge, der Gr&ouml;&szlig;e und das letzte Aktualisierungsdatum.
<h6>Konfiguration</h6>
Hier k&ouml;nnt Ihr eure Konfiguration bearbeiten, abspeichern oder die Ausgangskonfiguration
wieder herstellen.
<ul><br>
<li><a name="conf1"></a><strong>Konfigurierte Datenbanken:</strong> die Auflistung der konfigurierten Datenbanken. Die aktive Datenbank wird in <b>bold</b> gelistet. </li>
<li><a name="conf2"></a><strong>Tabellen-Pr&auml;fix:</strong> hier k&ouml;nnt Ihr (f&uuml;r jede Datenbank) einen Pr&auml;fix angeben. Dies ist ein Filter, der bei Dumps nur die Tabellen ber&uuml;cksichtigt, die mit diesem Pr&auml;fix beginnen (z.B. alle Tabellen, die mit "phpBB_" beginnen). Wenn alle Tabellen dieser Datenbank gespeichert werden sollen,
so lasst das Feld einfach leer.</li>
<li><a name="conf3"></a><strong>GZip-Kompression:</strong> Hier kann die Kompression aktiviert werden. Empfehlenswert ist die Aktivierung, da die Dateien doch wesentlich kleiner werden und Speicherplatz immer rar ist.</li>
<li><a name="conf5"></a><strong>Email mit Dumpfile:</strong> Ist diese Option aktiviert, so wird nach abgeschlossenem Backup eine Email mit dem Dump als Anhang verschickt (Vorsicht, Kompression sollte unbedingt an sein, sonst wird der Anhang zu gross und kann evtl. nicht versandt werden!).</li>
<li><a name="conf6"></a><strong>Email-Adresse:</strong> Empf&auml;ngeradresse f&uuml;r die Email.</li>
<li><a name="conf7"></a><strong>Absender der Email:</strong> diese Adresse taucht als Absender in der Email auf.</li>
<li><a name="conf13"></a><strong>FTP-Transfer: </strong>Ist diese Option aktiviert, so wird nach abgeschlossenem Backup die Backupdatei per FTP versandt.</li>
<li><a name="conf14"></a><strong>FTP Server: </strong>Die Adresse des FTP-Servers (z. B. ftp.mybackups.de).</li>
<li><a name="conf15"></a><strong>FTP Server Port: </strong>Der Port des FTP-Servers (in der Regel 21).</li>
<li><a name="conf16"></a><strong>FTP User: </strong>Der Benutzername des FTP-Accounts. </li>
<li><a name="conf17"></a><strong>FTP Passwort: </strong>Das Passwort des FTP-Accounts. </li>
<li><a name="conf18"></a><strong>FTP Upload-Ordner: </strong>Das Verzeichnis, in das die Backupdatei soll (es m&uuml;ssen Upload-Berechtigungen bestehen!).</li>
<li><a name="conf8"></a><strong>Automatisches L&ouml;schen der Backups:</strong> Wenn diese Option aktiviert ist, werden &auml;ltere Backups nach den folgenden Regeln automatisch gel&ouml;scht. Kombinationen sind m&ouml;glich.</li>
<li><a name="conf9"></a><strong>Alter der Dateien (in Tagen):</strong> Ein Wert > 0 l&ouml;scht alle Backupdateien, die &auml;lter als diese Angabe sind.</li>
<li><a name="conf10"></a><strong>Anzahl von Backupdateien:</strong> Ein Wert > 0 l&ouml;scht alle Backupdateien, bis auf die hier angegebe Zahl.</li>
<li><a name="conf11"></a><strong>Sprache:</strong> hier legst du die Sprache f&uuml;r das Interface fest.</li>
</ul>
<h6>Verwaltung</h6>
Hier werden die eigenlichen Aktionen durchgef&uuml;hrt.<br>
Es werden Dir alle Dateien im Backup-Verzeichnis angezeigt.
F&uuml;r die Aktionen "Restore" und "Delete" muss eine Datei selektiert sein.
<UL>
<li><strong>Restore:</strong> Hiermit wird die Datenbank mit der ausgew&auml;hlten Backupdatei aktualisiert.</li>
<li><strong>Delete:</strong> Hiermit kannst Du die selektierte Backupdatei l&ouml;schen.</li>
<li><strong>Neues Backup starten:</strong> Hier startest Du ein neues Backup (Dump) nach den in der Konfiguration eingestellten Parametern.</li>
</UL>
<h6>Log</h6>
Hier kannst Du die Logeintr&auml;ge sehen und l&ouml;schen.
<h6>Credits / Hilfe</h6>
diese Seite.
</ul>
<h3>Unsere Sponsoren</h3>
Die Sponsoren finden Sie auch auf der <a class="ul" href="http://www.mysqldumper.de/de/index.php?m=7" target="_blank">Sponsorenseite</a><br>
<?php echo MSDFooter();?>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>

Datei anzeigen

@ -0,0 +1,112 @@
<?php
//generated at 13.04.2006
$lang['yes']="ja";
$lang['to']="bis";
$lang['activated']="aktiviert";
$lang['not_activated']="nicht aktiviert";
$lang['error']="Fehler";
$lang['of']=" von ";
$lang['added']="hinzugef&uuml;gt";
$lang['db']="Datenbank";
$lang['dbs']="Datenbanken";
$lang['tables']="Tabellen";
$lang['table']="Tabelle";
$lang['records']="Datens&auml;tze";
$lang['compressed']="komprimiert (gz)";
$lang['notcompressed']="normal (unkomprimiert)";
$lang['general']="allgemein";
$lang['comment']="Kommentar";
$lang['filesize']="Dateigr&ouml;&szlig;e";
$lang['all']="alle";
$lang['none']="keine";
$lang['with']=" mit ";
$lang['dir']="Verzeichnis";
$lang['rechte']="Rechte";
$lang['status']="Status";
$lang['finished']="fertig";
$lang['file']="Datei";
$lang['fields']="Felder";
$lang['new']="neu";
$lang['charset']="Zeichensatz";
$lang['collation']="Sortierung";
$lang['change']="&auml;ndern";
$lang['in']="in";
$lang['do']="ausf&uuml;hren";
$lang['view']="ansehen";
$lang['existing']="vorhanden";
$lang['authors']="Autoren";
$lang['back']="zur&uuml;ck";
$lang['normal']="normal";
$lang['db_host']="Datenbank-Hostname";
$lang['db_user']="Datenbank-Benutzer";
$lang['db_pass']="Datenbank-Passwort";
$lang['info_scriptdir']="Verzeichnis von MySQLDumper";
$lang['info_actdb']="Aktuelle Datenbank";
$lang['useconnection']="Benutze Verbindung";
$lang['wrongconnectionpars']="Falsche oder keine Verbindungsparameter!";
$lang['conn_not_possible']="Verbindung nicht m&ouml;glich!";
$lang['servercaption']="Anzeige des Servers";
$lang['help_servercaption']="Bei Benutzung auf verschieden Systemen kann es hilfreich sein, die Server-Adresse farblich gekennzeichnet einzublenden";
$lang['activate_multidump']="Multidump aktivieren";
$lang['save']="speichern";
$lang['reset']="zur&uuml;cksetzen";
$lang['praefix']="Tabellen-Pr&auml;fix";
$lang['autodelete']="automatisches L&ouml;schen der Backups";
$lang['max_backup_files_each1']="f&uuml;r alle Datenbanken";
$lang['max_backup_files_each2']="f&uuml;r jede Datenbank";
$lang['saving_db_form']="Datenbank";
$lang['testconnection']="Verbindung testen";
$lang['back_to_minisql']="Datenbank bearbeiten";
$lang['critical_safemode']="<h3>Achtung: Fortsetzung im Safe-Modus nicht m&ouml;glich!</h3>Folgende Verzeichnisse m&uuml;ssen manuell im Scriptverzeichnis angelegt werden:<br><div style=";
$lang['create']="anlegen";
$lang['mailabsendererror']="E-Mail kann ohne Absender nicht verschickt werden!";
$lang['Ausgabe']="Ausgabe";
$lang['Zusatz']="Zusatz";
$lang['Variabeln']="Variablen";
$lang['berichtsent']="Der Fehlerbericht wurde erfolgreich abgesendet.";
$lang['autobericht']="automatisch generierter Fehlerbericht von";
$lang['berichtman1']="Bitte sende die E-Mail manuell an das";
$lang['Statusinformationen']="Statusinformationen";
$lang['Versionsinformationen']="Versionsinformationen";
$lang['MySQL Dumper Informationen']="MySQLDumper Informationen";
$lang['Fehlerbericht']="Fehlerbericht";
$lang['backupfilesanzahl']="Im Backup-Verzeichnis befinden sich";
$lang['lastbackup']="Letztes Backup";
$lang['notavail']="<em>nicht verf&uuml;gbar</em>";
$lang['vom']="vom";
$lang['mysqlvars']="MySQL-Variabeln";
$lang['mysqlsys']="MySQL-Befehle";
$lang['Status']="Status";
$lang['Prozesse']="Prozesse";
$lang['info_novars']="keine Variablen verf&uuml;gbar";
$lang['Inhalt']="Inhalt";
$lang['info_nostatus']="kein Status verf&uuml;gbar";
$lang['info_noprocesses']="keine laufenden Prozesse";
$lang['fm_freespace']="Freier Speicher auf Server";
$lang['load_database']="Datenbanken neu laden";
$lang['home']="Home";
$lang['config']="Konfiguration";
$lang['dump']="Backup";
$lang['restore']="Wiederherstellung";
$lang['file_manage']="Verwaltung";
$lang['log']="Log";
$lang['choose_db']="Datenbank w&auml;hlen";
$lang['credits']="Credits / Hilfe";
$lang['multi_part']="Multipart-Backup";
$lang['logfilenotwritable']="Log-File kann nicht geschrieben werden!";
$lang['sql_error1']="Fehler bei der Anfrage:";
$lang['sql_error2']="MySQL meldet:";
$lang['unknown']="unbekannt";
$lang['unknown_number_of_records']="unbekannt";
$lang['cron_completelog']="Komplette Ausgabe loggen";
$lang['no']="nein";
$lang['MySQLErrorDoc']="MySQL-Dokumentation der Fehler";
$lang['downgrade']="Downgrade (MySQL 4.x => 3.x)";
$lang['create_database']="neue Datenbank anlegen";
$lang['exportfinished']="Export beendet.";
$lang['sql_browser']="SQL-Browser";
$lang['server']="Server";
?>

Datei anzeigen

@ -0,0 +1,95 @@
<?php
//generated at 13.04.2006
$lang['config_headline']="Konfiguration";
$lang['save_success']="Die Einstellungen wurden erfolgreich gespeichert.";
$lang['save_error']="Die Einstellungen konnten nicht gespeichert werden!";
$lang['config_email']="E-Mail-Benachrichtigung";
$lang['config_autodelete']="automatisches L&ouml;schen";
$lang['config_interface']="Interface";
$lang['multi_part_groesse']="maximale Dateigr&ouml;&szlig;e";
$lang['help_multipart']="Bei eingeschaltetem Multipart werden mehrere Backup-Dateien erzeugt, deren Maximalgr&ouml;&szlig;e sich nach der unteren Einstellung richtet";
$lang['help_multipartgroesse']="Die maximale Gr&ouml;&szlig;e der einzelnen Backup-Dateien kann hier bei eingeschaltetem Multipart bestimmt werden";
$lang['empty_db_before_restore']="Datenbank vor Wiederherstellung l&ouml;schen";
$lang['allpars']="alle Parameter";
$lang['cron_extender']="Dateiendung des Scripts";
$lang['cron_savepath']="Konfigurationsdatei";
$lang['cron_printout']="Textausgabe";
$lang['config_cronperl']="Crondump-Einstellungen f&uuml;r das Perlscript";
$lang['cron_mailprg']="Mailprogramm";
$lang['cron_ftp']="Backup per FTP senden";
$lang['optimize']="Tabellen vor dem Backup optimieren";
$lang['help_optimize']="Wenn die Option aktiviert ist, werden vor jedem Backup alle Tabellen optimiert";
$lang['help_ftptimeout']="Die Zeit, die bei keiner &Uuml;bertragung zum Timeout f&uuml;hrt, Default = 90 Sekunden.";
$lang['ftp_timeout']="Verbindungs-Timeout";
$lang['help_ftpssl']="Gibt an, ob eine sichere SSL-Verbindung f&uuml;r die &Uuml;bertragung benutzt werden soll.";
$lang['config_askload']="Sollen die Einstellungen wirklich mit den Anfangseinstellungen &uuml;berschrieben werden?";
$lang['load']="Anfangseinstellungen
laden";
$lang['load_success']="Die Anfangseinstellungen wurden geladen.";
$lang['cron_samedb']="Aktuelle Datenbank benutzen";
$lang['cron_crondbindex']="Datenbank und Tabellen-Pr&auml;fix<br> f&uuml;r den Cronjob";
$lang['withattach']=" mit Anhang";
$lang['withoutattach']=" ohne Anhang";
$lang['multidumpconf']="=Multidump Einstellungen=";
$lang['multidumpall']="=alle Datenbanken=";
$lang['gzip']="GZip-Kompression";
$lang['send_mail_form']="E-Mail senden";
$lang['send_mail_dump']="Backup anh&auml;ngen";
$lang['email_adress']="E-Mail-Adresse";
$lang['email_subject']="Absender der E-Mail";
$lang['email_maxsize']="maximale Gr&ouml;&szlig;e des Anhangs";
$lang['age_of_files']="Alter der Dateien (in Tagen)";
$lang['number_of_files_form']="Anzahl von Backup-Dateien";
$lang['language']="Sprache";
$lang['list_db']="Konfigurierte Datenbanken:";
$lang['config_ftp']="FTP-Transfer der Backup-Datei";
$lang['ftp_transfer']="FTP-Transfer";
$lang['ftp_server']="Server";
$lang['ftp_port']="Port";
$lang['ftp_user']="User";
$lang['ftp_pass']="Passwort";
$lang['ftp_dir']="Upload-Ordner";
$lang['ftp_ssl']="sichere SSL-FTP-Verbindung";
$lang['ftp_useSSL']="benutze SSL-Verbindung";
$lang['sqlboxheight']="H&ouml;he der SQL-Box";
$lang['sqllimit']="Anzahl der Datens&auml;tze pro Seite";
$lang['bbparams']="Einstellung f&uuml;r BB-Code";
$lang['bbtextcolor']="Textfarbe";
$lang['help_commands']="Man kann vor und nach dem Backup einen Befehl ausf&uuml;hren lassen.
Dies kann eine SQL-Anweisung sein oder ein Systembefehl (z. B. ein Script)";
$lang['command']="Befehl";
$lang['wrong_connectionpars']="Verbindungsparameter stimmen nicht!";
$lang['connectionpars']="Verbindungsparameter";
$lang['extendedpars']="erweiterte Parameter";
$lang['fade_in_out']="ein-/ausblenden";
$lang['db_backuppars']="Datenbanken Backup-Einstellungen";
$lang['general']="allgemein";
$lang['maxsize']="maximale Gr&ouml;&szlig;e";
$lang['backup_format']="Backup-Format";
$lang['inserts_complete']="vollst&auml;ndige Inserts";
$lang['inserts_extended']="erweiterte Inserts";
$lang['inserts_delayed']="verz&ouml;gerte Inserts";
$lang['inserts_ignore']="fehler&uuml;bergehende Inserts";
$lang['lock_tables']="Tabellen sperren";
$lang['errorhandling_restore']="Fehlerbehandlung bei Wiederherstellung";
$lang['ehrestore_continue']="fortfahren und Fehler protokollieren";
$lang['ehrestore_stop']="anhalten";
$lang['in_mainframe']="im Hauptframe";
$lang['in_leftframe']="im linken Frame";
$lang['width']="Breite";
$lang['sql_befehle']="SQL-Befehle";
$lang['download_languages']="andere Sprachen herunterladen";
$lang['download_styles']="andere Themen herunterladen";
$lang['connect_to']="Verbinde mit";
$lang['changedir']="Wechsle in das Verzeichnis ";
$lang['changedirerror']="Es konnte nicht in das Verzeichnis gewechselt werden!";
$lang['ftp_ok']="Die Verbindung wurde erfolgreich hergestellt.";
$lang['install']="Installation";
$lang['noftppossible']="Es stehen keine FTP-Funktionen zur Verf&uuml;gung!";
$lang['found_db']="gefundene DB: ";
$lang['ftp_choose_mode']="FTP-&Uuml;bertragungsmodus";
$lang['ftp_passive']="passiven &Uuml;bertragungsmodus benutzen";
?>

Datei anzeigen

@ -0,0 +1,58 @@
<?php
//generated at 13.04.2006
$lang['dump_headline']="erzeuge Backup...";
$lang['gzip_compression']="GZip-Kompression";
$lang['saving_table']="Speichere Tabelle ";
$lang['of']="von";
$lang['actual_table']="Aktuelle Tabelle";
$lang['progress_table']="Fortschritt Tabelle";
$lang['progress_over_all']="Fortschritt gesamt";
$lang['entry']="Eintrag";
$lang['done']="Fertig!";
$lang['dump_successful']=" wurde erfolgreich erstellt.";
$lang['upto']="bis";
$lang['email_was_send']="Die E-Mail wurde erfolgreich verschickt an ";
$lang['back_to_control']="weiter";
$lang['back_to_overview']="Datenbank-&Uuml;bersicht";
$lang['dump_filename']="Backup-Datei: ";
$lang['withpraefix']="mit Praefix";
$lang['dump_notables']="Es konnten keine Tabellen in der Datenbank `<b>%s</b>` gefunden werden.";
$lang['dump_endergebnis']="Es wurden <b>%s</b> Tabellen mit insgesamt <b>%s</b> Datens&auml;tzen gesichert.<br>";
$lang['mailerror']="Leider ist beim Verschicken der E-Mail ein Fehler aufgetreten!";
$lang['emailbody_attach']="In der Anlage findest du die Sicherung deiner MySQL-Datenbank.<br>Sicherung der Datenbank `%s`
<br><br>Folgende Datei wurde erzeugt:<br><br>%s <br><br>Viele Gr&uuml;&szlig;e<br><br>MySQLDumper<br>";
$lang['emailbody_mp_noattach']="Es wurde eine Multipart-Sicherung erstellt.<br>Die Sicherungen werden nicht als Anhang mitgeliefert!<br>Sicherung der Datenbank `%s`
<br><br>Folgende Dateien wurden erzeugt:<br><br>%s<br><br><br>Viele Gr&uuml;&szlig;e<br><br>MySQLDumper<br>";
$lang['emailbody_mp_attach']="Es wurde eine Multipart-Sicherung erstellt.<br>Die Sicherungen werden in separaten E-Mails als Anhang geliefert!<br>Sicherung der Datenbank `%s`
<br><br>Folgende Dateien wurden erzeugt:<br><br>%s<br><br><br>Viele Gr&uuml;&szlig;e<br><br>MySQLDumper<br>";
$lang['emailbody_footer']="<br><br><br>Viele Gr&uuml;&szlig;e<br><br>MySQLDumper<br>";
$lang['emailbody_toobig']="Die Sicherung &uuml;berschreitet die Maximalgr&ouml;&szlig;e von %s und wurde daher nicht angeh&auml;ngt.<br>Sicherung der Datenbank `%s`
<br><br>Folgende Datei wurde erzeugt:<br><br>%s
<br><br>Viele Gr&uuml;&szlig;e<br><br>MySQLDumper<br>";
$lang['emailbody_noattach']="Das Backup wurde nicht angeh&auml;ngt.<br>Sicherung der Datenbank `%s`
<br><br>Folgende Datei wurde erzeugt:<br><br>%s
<br><br>Viele Gr&uuml;&szlig;e<br><br>MySQLDumper<br>";
$lang['email_only_attachment']=" ... nur der Anhang";
$lang['tableselection']="Tabellenauswahl";
$lang['selectall']="alle ausw&auml;hlen";
$lang['deselectall']="Auswahl aufheben";
$lang['startdump']="Backup starten";
$lang['datawith']="Datens&auml;tze mit";
$lang['lastbufrom']="letztes Update vom";
$lang['not_supported']="Dieses Backup unterst&uuml;tzt diese Funktion nicht.";
$lang['multidump']="Multidump: Es wurden <b>%d</b> Datenbanken gesichert.";
$lang['filesendftp']="versende File via FTP... bitte habe etwas Geduld. ";
$lang['ftpconnerror']="FTP-Verbindung nicht hergestellt! Verbindung mit ";
$lang['ftpconnerror1']=" als Benutzer ";
$lang['ftpconnerror2']=" nicht m&ouml;glich";
$lang['ftpconnerror3']="FTP-Upload war fehlerhaft! ";
$lang['ftpconnected1']="Verbunden mit ";
$lang['ftpconnected2']=" auf ";
$lang['ftpconnected3']=" geschrieben";
$lang['nr_tables_selected']="- mit %s gew&auml;hlten Tabellen";
$lang['nr_tables_optimized']="<span class=\"small\">%s Tabellen wurden optimiert.</span>";
$lang['dump_errors']="<p class=\"error\">%s Fehler aufgetreten: <a href=\"log.php?r=3\">verdere</a></p>";
?>

Datei anzeigen

@ -0,0 +1,77 @@
<?php
//generated at 13.04.2006
$lang['convert_start']="Konvertierung starten";
$lang['convert_title']="Konvertiere Dump ins MSD-Format";
$lang['convert_wrong_parameters']="Falsche Parameter! Konvertierung ist nicht m&ouml;glich.";
$lang['fm_uploadfilerequest']="Gib bitte eine Datei an.";
$lang['fm_uploadnotallowed1']="Dieser Dateityp ist nicht erlaubt.";
$lang['fm_uploadnotallowed2']="G&uuml;ltige Typen sind: *.gz und *.sql-Dateien";
$lang['fm_uploadmoveerror']="Die hochgeladene Datei konnte nicht in den richtigen Ordner verschoben werden.";
$lang['fm_uploadfailed']="Der Upload ist leider fehlgeschlagen!";
$lang['fm_uploadfileexists']="Es existiert bereits eine Datei mit diesem Namen!";
$lang['fm_nofile']="Du hast gar keine Datei ausgew&auml;hlt!";
$lang['fm_delete1']="Die Datei ";
$lang['fm_delete2']=" wurde erfolgreich gel&ouml;scht.";
$lang['fm_delete3']=" konnte nicht gel&ouml;scht werden!";
$lang['fm_choose_file']="gew&auml;hlte Datei:";
$lang['fm_filesize']="Dateigr&ouml;&szlig;e";
$lang['fm_filedate']="Datum";
$lang['fm_nofilesfound']="Keine Datei gefunden.";
$lang['fm_tables']="Tabellen";
$lang['fm_records']="Eintr&auml;ge";
$lang['fm_all_bu']="alle Backups";
$lang['fm_anz_bu']="Backups";
$lang['fm_last_bu']="letztes Backup";
$lang['fm_totalsize']="Gesamtgr&ouml;&szlig;e";
$lang['fm_selecttables']="Auswahl der Tabellen";
$lang['fm_comment']="Kommentar eingeben";
$lang['fm_restore']="Wiederherstellen";
$lang['fm_alertrestore1']="Soll die Datenbank ";
$lang['fm_alertrestore2']="mit den Inhalten der Datei";
$lang['fm_alertrestore3']="wiederhergestellt werden?";
$lang['fm_delete']="ausgew&auml;hlte Dateien
l&ouml;schen";
$lang['fm_askdelete1']="M&ouml;chtest du die Datei ";
$lang['fm_askdelete2']=" wirklich l&ouml;schen?";
$lang['fm_askdelete3']="M&ouml;chtest du Autodelete nach den eingestellten Regeln jetzt ausf&uuml;hren?";
$lang['fm_askdelete4']="M&ouml;chtest du alle Backup-Dateien jetzt l&ouml;schen?";
$lang['fm_askdelete5']="M&ouml;chtest du alle Backup-Dateien mit ";
$lang['fm_askdelete5_2']="_* jetzt l&ouml;schen?";
$lang['fm_deleteauto']="Autodelete manuell ausf&uuml;hren";
$lang['fm_deleteall']="alle Backup-Dateien l&ouml;schen";
$lang['fm_deleteallfilter']="alle l&ouml;schen mit
";
$lang['fm_deleteallfilter2']="_*";
$lang['fm_startdump']="Neues Backup starten";
$lang['fm_fileupload']="Datei hochladen";
$lang['fm_dbname']="Datenbankname";
$lang['fm_files1']="Datenbank-Backups";
$lang['fm_files2']="Datenbank-Strukturen";
$lang['fm_autodel1']="Autodelete: Folgende Dateien wurden aufgrund der maximalen Dateianzahl gel&ouml;scht:";
$lang['fm_autodel2']="Autodelete: Folgende Dateien wurden aufgrund ihres Erstellungsdatums gel&ouml;scht:";
$lang['fm_dumpsettings']="Einstellungen f&uuml;r das Backup";
$lang['fm_dumpsettings_cron']="Einstellungen f&uuml;r das Perl-Cronscript";
$lang['fm_oldbackup']="(unbekannt)";
$lang['fm_restore_header']="Wiederherstellung der Datenbank <strong>";
$lang['fm_restore_header2']="\"</strong>";
$lang['fm_dump_header']="Backup";
$lang['DoCronButton']="Perl-Cronscript ausf&uuml;hren";
$lang['DoPerlTest']="Perl-Module testen";
$lang['DoSimpleTest']="Perl testen";
$lang['perloutput1']="Eintrag in crondump.pl f&uuml;r absolute_path_of_configdir";
$lang['perloutput2']="Aufruf im Browser oder f&uuml;r externen Cronjob";
$lang['perloutput3']="Aufruf in der Shell oder f&uuml;r die Crontab";
$lang['converter']="Backup-Konverter";
$lang['convert_file']="zu konvertierende Datei";
$lang['convert_filename']="Name der Zieldatei (ohne Endung)";
$lang['converting']="Konvertierung";
$lang['convert_fileread']="Datei '%s' wird eingelesen";
$lang['convert_finished']="Konvertierung abgeschlossen, '%s' wurde erzeugt.";
$lang['no_msd_backupfile']="Dateien anderer Programme";
$lang['max_upload_size']="Maximale Dateigr&ouml;&szlig;e";
$lang['max_upload_size_info']="Wenn Deine Backup-Datei gr&ouml;&szlig;er als das angegebene Limit ist, dann musst Du Sie per FTP in den \"work/backup\"-Ordner hochladen.
Danach wird diese Datei hier in der Verwaltung angezeigt und l&auml;sst sich f&uuml;r eine Wiederherstellung ausw&auml;hlen.";
?>

Datei anzeigen

@ -0,0 +1,51 @@
<?php
//generated at 13.04.2006
$lang['help_db']="Dies ist die Liste der vorhandenen Datenbanken.";
$lang['help_praefix']="Der Pr&auml;fix ist eine Zeichenfolge f&uuml;r den Anfang von Tabellen, der als Filter fungiert.";
$lang['help_zip']="Kompression mit GZip - emfohlen ist 'aktiviert'.";
$lang['help_memorylimit']="Das ist die maximale Gr&ouml;&szlig;e in Bytes, die das Skript an Speicher bekommt.
0 = deaktiviert";
$lang['memory_limit']="Speichergrenze";
$lang['help_mail1']="Wenn aktiviert, dann wird nach der Erstellung der Sicherung eine E-Mail mit dem Backup verschickt.";
$lang['help_mail2']="Dies ist die Empf&auml;nger-Adresse der E-Mail.";
$lang['help_mail3']="Dies ist die Absende-Adresse der E-Mail.";
$lang['help_mail4']="Die maximale Gr&ouml;&szlig;e f&uuml;r einen E-Mail-Anhang. Bei 0 bleibt die Angabe unber&uuml;cksichtigt.";
$lang['help_mail5']="Hier kann bestimmt werden, ob das Backup als E-Mail-Anhang verschickt werden soll.";
$lang['help_ad1']="Wenn aktiviert, dann werden automatisch Backup-Dateien gel&ouml;scht.";
$lang['help_ad2']="Die maximale Anzahl von Tagen, die eine Backup-Datei haben darf (f&uuml;r Autodelete).
0 = deaktiviert";
$lang['help_ad3']="Die maximale Anzahl von Dateien, die im Backup-Verzeichnis sein d&uuml;rfen (f&uuml;r Autodelete).
0 = deaktiviert";
$lang['help_lang']="Stellt auf die gew&uuml;nschte Sprache.";
$lang['help_empty_db_before_restore']="Um &uuml;berfl&uuml;ssige Daten zu eliminieren, kann man anweisen, die Datenbank vor der Wiederherstellung komplett zu leeren.";
$lang['help_cronmail']="Bestimmt, ob im Cronjob das Backup per E-Mail verschickt werden soll.";
$lang['help_cronmailprg']="Der Pfad zum E-Mail-Programm. Default ist sendmail im angegebenen Pfad.";
$lang['help_cronftp']="Bestimmt, ob im Cronjob das Backup per FTP verschickt werden soll.";
$lang['help_cronzip']="Kompression mit GZip. Emfohlen ist 'aktiviert'. (Die Kompressions-Lib muss installiert sein!)";
$lang['help_cronextender']="Die Endung des Perlscriptes, Standard ist '.pl'.";
$lang['help_cronsavepath']="Der Name der Konfigurationsdatei f&uuml;r das Perlskript.";
$lang['help_cronprintout']="Wenn die Textausgabe abgeschaltet ist, wird kein Text mehr ausgegeben.
Diese Funktion ist unabh&auml;ngig von der Log-Ausgabe.";
$lang['help_cronsamedb']="Soll die gleiche Datenbank f&uuml;r Cronjob wie in den Einstellungen benutzt werden?";
$lang['help_crondbindex']="W&auml;hle die Datenbank f&uuml;r den Cronjob.";
$lang['help_cronmail_dump']="Bestimmt, ob die vom Cronjob verschickten Email das Backup als Anhang enthalten soll. ";
$lang['help_ftptransfer']="Wenn aktiviert, wird nach dem Backup die Datei per FTP gesendet.";
$lang['help_ftpserver']="Adresse des FTP-Servers.";
$lang['help_ftpport']="Port des FTP-Servers. Standard: 21.";
$lang['help_ftpuser']="Gibt den Benutzernamen der FTP-Verbindung an.";
$lang['help_ftppass']="Gibt das Passwort der FTP-Verbindung an.";
$lang['help_ftpdir']="Wohin soll die Datei gesendet werden?";
$lang['help_speed']="Minimale und maximale Geschwindigkeit. Standard ist 50 bis 5000.
(Zu hohe Geschwindigkeiten k&ouml;nnen zu Timeouts f&uuml;hren!)";
$lang['speed']="Geschwindigkeitskontrolle";
$lang['help_cronexecpath']="Der Ort, an dem die Perlskripte liegen.
Ausgangspunkt ist die HTTP-Adresse (also im Browser).
Erlaubt sind absolute und relative Pfadangaben.";
$lang['cron_execpath']="Pfad der Perlskripte";
$lang['help_croncompletelog']="Wenn die Funktion aktiviert ist, wird die komplette Ausgabe im complete_log geschrieben.
Diese Funktion ist unabh&auml;ngig von der Textausgabe.";
$lang['help_ftp_mode']="Gibt den FTP-&Uuml;bertragungsmodus an. Wenn Probleme im aktiven Modus auftreten, sollte in den passiven Modus umgeschaltet werden";
?>

Datei anzeigen

@ -0,0 +1,89 @@
<?php
//generated at 13.04.2006
$lang['installfinished']="<br>die Installation ist abgeschlossen --> <a href=\"index.php\">starte MySQLDumper</a><br>";
$lang['install_forcescript']="MySQLDumper ohne Installation starten";
$lang['install_tomenu']="zum Hauptmen&uuml;";
$lang['installmenu']="Hauptmen&uuml;";
$lang['step']="Schritt";
$lang['install']="Installation";
$lang['uninstall']="Deinstallation";
$lang['tools']="Tools";
$lang['editconf']="Konfiguration bearbeiten";
$lang['osweiter']="ohne Speichern weiter";
$lang['errorman']="<strong>Fehler beim Schreiben der Konfiguration!</strong><br>Bitte editiere die Datei ";
$lang['manuell']="manuell";
$lang['createdirs']="erstelle Verzeichnisse";
$lang['install_continue']="mit der Installation fortfahren";
$lang['connecttomysql']=" zu MySQL verbinden ";
$lang['dbparameter']="Datenbank-Parameter";
$lang['confignotwritable']="Die Datei \"config.php\" ist nicht beschreibbar.
Gib ihr mit einem FTP-Programm entsprechende Rechte, z. B. den CHMod-Wert 0777.";
$lang['dbconnection']="Datenbank-Verbindung";
$lang['connectionerror']="Fehler: Es konnte keine Verbindung herstellt werden.";
$lang['connection_ok']="Datenbank-Verbindung wurde hergestellt.";
$lang['saveandcontinue']="speichern und Installation fortsetzen";
$lang['confbasic']="Grundeinstellungen";
$lang['install_step2finished']="Datenbankeinstellungen wurden gesichert.<br><br>Du kannst mit der Standardkonfiguration die Installation fortsetzen oder die Konfiguration bearbeiten.";
$lang['install_step2_1']="Installation mit Standardkonfiguration fortsetzen";
$lang['laststep']="Abschluss der Installation";
$lang['ftpmode']="Verzeichnisse per FTP erzeugen (safe_mode)";
$lang['safemodedesc']="Da PHP auf diesem Server mit der Option \"safe_mode=on\" ausgef&uuml;hrt wird, m&uuml;ssen folgende Verzeichnisse von Hand angelegt werden (dies kannst Du mit Deinem FTP-Programm erledigen oder gib Deine FTP-Zugangsdaten in nebenstehendes Formular ein damit MySQLDumper die Verzeichnisse selbst anlegen kann): ";
$lang['idomanual']="Ich erstelle die Verzeichnisse manuell";
$lang['dofrom']="ausgehend von";
$lang['ftpmode2']="Erstelle die Verzeichnisse per FTP:";
$lang['connect']="verbinden";
$lang['dirs_created']="Die Verzeichnisse wurden ordnungsgem&auml;&szlig; erstellt.";
$lang['connect_to']="verbinde zu";
$lang['changedir']="Wechsel ins Verzeichnis";
$lang['changedirerror']="Wechsel ins Verzeichnis nicht m&ouml;glich";
$lang['ftp_ok']="FTP-Parameter sind ok";
$lang['createdirs2']="Verzeichnisse erstellen";
$lang['ftp_notconnected']="FTP-Verbindung nicht hergestellt!";
$lang['connwith']="Verbindung mit";
$lang['asuser']="als Benutzer";
$lang['notpossible']="nicht m&ouml;glich";
$lang['dircr1']="erstelle Arbeitsverzeichnis";
$lang['dircr2']="erstelle Backup-Verzeichnis";
$lang['dircr3']="erstelle Strukturverzeichnis";
$lang['dircr4']="erstelle Log-Verzeichnis";
$lang['dircr5']="erstelle Konfigurationsverzeichnis";
$lang['indir']="bin im Verzeichnis";
$lang['check']="&uuml;berpr&uuml;fen";
$lang['disabledfunctions']="Abgeschaltete Funktionen";
$lang['noftppossible']="Es stehen keine FTP-Funktionen zur Verf&uuml;gung!";
$lang['nogzpossible']="Es stehen keine Kompressions-Funktionen zur Verf&uuml;gung!";
$lang['ui1']="Es werden alle Arbeitsverzeichnisse incl. den darin enthaltenen Backups gel&ouml;scht.";
$lang['ui2']="Bist du sicher, dass du das m&ouml;chtest?";
$lang['ui3']="Nein, sofort abbrechen";
$lang['ui4']="ja, bitte fortfahren";
$lang['ui5']="l&ouml;sche Arbeitsverzeichnis";
$lang['ui6']="alles wurde erfolgreich gel&ouml;scht.";
$lang['ui7']="Bitte l&ouml;sche das Skriptverzeichnis";
$lang['ui8']="eine Ebene nach oben";
$lang['ui9']="Ein Fehler trat auf, l&ouml;schen war nicht m&ouml;glich</p>Fehler bei Verzeichnis ";
$lang['import']="Konfiguration importieren";
$lang['import1']="Einstellungen aus ";
$lang['import2']="Einstellungen hochladen und importieren";
$lang['import3']="Die Konfiguration wurde geladen...";
$lang['import4']="Die Konfiguration wurde gesichert.";
$lang['import5']="MySQLDumper starten";
$lang['import6']="Installations-Men&uuml;";
$lang['import7']="Konfiguration hochladen";
$lang['import8']="zur&uuml;ck zum Upload";
$lang['import9']="Dies ist keine Konfigurationssicherung!";
$lang['import10']="Die Konfiguration wurde erfolgreich hochgeladen...";
$lang['import11']="<strong>Fehler: </strong>Es gab Probleme beim Schreiben der sql_statements.";
$lang['import12']="<strong>Fehler: </strong>Es gab Probleme beim Schreiben der config.php.";
$lang['install_help_port']="(leer = Standardport)";
$lang['install_help_socket']="(leer = Standardsocket)";
$lang['tryagain']="noch einmal versuchen";
$lang['socket']="Socket";
$lang['port']="Port";
$lang['found_no_db']="Fehler: nicht gefundene Datenbank:";
$lang['found_db']="gefundene DB: ";
$lang['fm_fileupload']="Datei hochladen";
$lang['pass']="Passwort";
?>

Datei anzeigen

@ -0,0 +1,11 @@
<?php
//generated at 13.04.2006
$lang['log_delete']="Log l&ouml;schen";
$lang['logfileformat']="Log-Dateiformat";
$lang['logfilenotwritable']="Log-Datei kann nicht geschrieben werden!";
$lang['noreverse']="&auml;ltester Eintrag zuerst";
$lang['reverse']="neuster Eintrag zuerst";
?>

Datei anzeigen

@ -0,0 +1,67 @@
<?php
//generated at 13.04.2006
$lang['noftppossible']="Es stehen keine FTP-Funktionen zur Verf&uuml;gung!";
$lang['info_location']="Du befindest dich auf ";
$lang['info_databases']="Folgende Datenbank(en) befinden sich auf dem MySql-Server:";
$lang['info_nodb']="Datenbank existiert nicht";
$lang['info_table1']="Tabelle";
$lang['info_table2']="n";
$lang['info_dbdetail']="Detail-Information von Datenbank ";
$lang['info_dbempty']="Die Datenbank ist leer!";
$lang['info_records']="Datens&auml;tze";
$lang['info_size']="Gr&ouml;&szlig;e";
$lang['info_lastupdate']="letztes Update";
$lang['info_sum']="insgesamt";
$lang['info_optimized']="optimiert";
$lang['optimize_databases']="Tabellen optimieren";
$lang['check_tables']="Tabellen &uuml;berpr&uuml;fen";
$lang['clear_database']="Datenbank leeren";
$lang['delete_database']="Datenbank l&ouml;schen";
$lang['info_cleared']="wurde geleert";
$lang['info_deleted']="wurde gel&ouml;scht";
$lang['info_emptydb1']="Soll die Datenbank";
$lang['info_emptydb2']=" wirklich geleert werden? (Achtung! Alle Daten gehen unwiderruflich verloren)";
$lang['info_killdb']=" wirklich gel&ouml;scht werden? (Achtung! Alle Daten gehen unwiderruflich verloren)";
$lang['processkill1']="Es wird versucht, Prozess ";
$lang['processkill2']="zu beenden.";
$lang['processkill3']="Es wird seit ";
$lang['processkill4']=" Sekunde(n) versucht, Prozess ";
$lang['htaccess1']="Verzeichnisschutz erstellen";
$lang['htaccess2']="Passwort:";
$lang['htaccess3']="Passwort (Wiederholung):";
$lang['htaccess4']="Verschl&uuml;sselungsart:";
$lang['htaccess5']="Linux und Unix-Systeme (Crypt)";
$lang['htaccess6']="Linux and Unix-Systeme (MD5)";
$lang['htaccess7']="unverschl&uuml;sselt (Windows)";
$lang['htaccess8']="Es besteht bereits ein Verzeichnisschutz. Wenn Du einen neuen erstellst, wird der alte &uuml;berschrieben!";
$lang['htaccess9']="Du musst einen Namen eingeben!<br>";
$lang['htaccess10']="Die Passw&ouml;rter sind nicht identisch oder leer!<br>";
$lang['htaccess11']="Soll der Verzeichnisschutz jetzt erstellt werden?";
$lang['htaccess12']="Der Verzeichnisschutz wurde erstellt.";
$lang['htaccess13']="Inhalt der Datei";
$lang['htaccess14']="Es ist ein Fehler bei der Erstellung des Verzeichnisschutzes aufgetreten!<br>Bitte erzeuge die Dateien manuell mit folgendem Inhalt:";
$lang['htaccess15']="Dringend empfohlen!";
$lang['htaccess16']=".htaccess editieren";
$lang['htaccess17']=".htaccess erstellen und editieren";
$lang['htaccess18']=".htaccess erstellen in ";
$lang['htaccess19']=" neu laden ";
$lang['htaccess20']="Skript ausf&uuml;hren";
$lang['htaccess21']="Handler zuf&uuml;gen";
$lang['htaccess22']="Ausf&uuml;hrbar machen";
$lang['htaccess23']="Verzeichnis-Listing";
$lang['htaccess24']="Error-Dokument";
$lang['htaccess25']="Rewrite aktivieren";
$lang['htaccess26']="Deny / Allow";
$lang['htaccess27']="Redirect";
$lang['htaccess28']="Error-Log";
$lang['htaccess29']="weitere Beispiele und Dokumentation";
$lang['htaccess30']="Provider";
$lang['htaccess31']="allgemein";
$lang['htaccess32']="Achtung! Die .htaccess hat eine direkte Auswirkung auf den Browser.<br>Bei falscher Anwendung sind die Seiten nicht mehr erreichbar.";
$lang['phpbug']="Bug in zlib! Keine Kompression m&ouml;glich";
$lang['disabledfunctions']="Abgeschaltete Funktionen";
$lang['nogzpossible']="Da zlib nicht installiert ist, stehen keine GZip-Funktionen zur Verf&uuml;gung.";
?>

Datei anzeigen

@ -0,0 +1,23 @@
<?php
//generated at 13.04.2006
$lang['restore_tables_completed0']="Es wurden bisher <b>%d</b> Tabellen angelegt.";
$lang['file_missing']="konnte Datei nicht finden";
$lang['restore_db']="Datenbank '<b>%s</b>' auf Server '<b>%s</b>'.";
$lang['restore_complete']="<b>%s</b> Tabellen wurden angelegt.";
$lang['restore_run1']="<br>Es wurden bisher <b>%s</b> von <b>%s</b> Datens&auml;tzen erfolgreich eingetragen.";
$lang['restore_run2']="<br>Momentan wird die Tabelle '<b>%s</b>' mit Datens&auml;tzen gef&uuml;llt.<br><br>";
$lang['restore_complete2']="<b>%s</b> Datens&auml;tze wurden eingetragen.";
$lang['restore_tables_completed']="Es wurden bisher <b>%d</b> von <b>%d</b> Tabellen angelegt.";
$lang['restore_total_complete']="<br><b>Herzlichen Gl&uuml;ckwunsch.</b><br><br>Die Datenbank wurde komplett wiederhergestellt.<br>Alle Daten aus der Backup-Datei wurden erfolgreich in die Datenbank eingetragen.<br><br>Alles fertig. :-)";
$lang['db_select_error']="<br>Fehler:<br>Auswahl der Datenbank '<b>";
$lang['db_select_error2']="</b>' fehlgeschlagen!";
$lang['file_open_error']="Fehler: Die Datei konnte nicht ge&ouml;ffnet werden.";
$lang['progress_over_all']="Fortschritt gesamt";
$lang['back_to_overview']="Datenbank-&Uuml;bersicht";
$lang['restore_run0']="<br>Es wurden bisher <b>%s</b> Datens&auml;tze erfolgreich eingetragen.";
$lang['unknown_sqlcommand']="Unbekannter SQL-Befehl:";
$lang['notices']="Hinweise";
?>

Datei anzeigen

@ -0,0 +1,164 @@
<?php
//generated at 13.04.2006
$lang['command']="Befehl";
$lang['sql_view_normal']="Ansicht: normal";
$lang['sql_view_compact']="Ansicht: kompakt";
$lang['import_notable']="Es ist keine Tabelle f&uuml;r den Import ausgew&auml;hlt!";
$lang['sql_warning']="Die Ausf&uuml;hrung von SQL-Befehlen kann Daten manipulieren! Der Autor &uuml;bernimmt keine Haftung bei Datenverlusten.";
$lang['sql_exec']="SQL-Befehl ausf&uuml;hren";
$lang['sql_dataview']="Daten-Ansicht";
$lang['sql_tableview']="Tabellen-Ansicht";
$lang['sql_vonins']="von insgesamt";
$lang['sql_nodata']="keine Datens&auml;tze";
$lang['sql_recordupdated']="Datensatz wurde ge&auml;ndert";
$lang['sql_recordinserted']="Datensatz wurde gespeichert";
$lang['sql_backdboverview']="zur&uuml;ck zur Datenbank-&Uuml;bersicht";
$lang['sql_recorddeleted']="Datensatz wurde gel&ouml;scht";
$lang['asktableempty']="Soll die Tabelle `%s` geleert werden?";
$lang['sql_recordedit']="editiere Datensatz";
$lang['sql_recordnew']="Datensatz einf&uuml;gen";
$lang['askdeleterecord']="Soll der Datensatz gel&ouml;scht werden?";
$lang['askdeletetable']="Soll die Tabelle `%s` gel&ouml;scht werden?";
$lang['sql_befehle']="SQL-Befehle";
$lang['sql_befehlneu']="neuer Befehl";
$lang['sql_befehlsaved1']="SQL-Befehl";
$lang['sql_befehlsaved2']="wurde hinzugef&uuml;gt";
$lang['sql_befehlsaved3']="wurde gespeichert";
$lang['sql_befehlsaved4']="wurde nach oben gebracht";
$lang['sql_befehlsaved5']="wurde gel&ouml;scht";
$lang['sql_queryentry']="Die Abfrage enth&auml;lt";
$lang['sql_columns']="Spalten";
$lang['askdbdelete']="Soll die Datenbank `%s` samt Inhalt wirklich gel&ouml;scht werden?";
$lang['askdbempty']="Soll die Datenbank `%s` wirklich geleert werden?";
$lang['askdbcopy']="Soll der Inhalt der Datenbank `%s` in die Datenbank `%s` kopiert werden?";
$lang['sql_tablenew']="Tabellen bearbeiten";
$lang['sql_output']="SQL-Ausgabe";
$lang['do_now']="jetzt ausf&uuml;hren";
$lang['sql_namedest_missing']="Name f&uuml;r die Zieldatenbank fehlt!";
$lang['askdeletefield']="Soll das Feld gel&ouml;scht werden?";
$lang['sql_commands_in']=" Zeilen in ";
$lang['sql_commands_in2']=" Sekunde(n) abgearbeitet.";
$lang['sql_out1']="Es wurden ";
$lang['sql_out2']="Befehle ausgef&uuml;hrt";
$lang['sql_out3']="Es gab ";
$lang['sql_out4']="Kommentare";
$lang['sql_out5']="Da die Ausgabe &uuml;ber 5000 Zeilen enth&auml;lt, wird sie nicht angezeigt.";
$lang['sql_selecdb']="Datenbank ausw&auml;hlen";
$lang['sql_tablesofdb']="Tabellen der Datenbank";
$lang['sql_edit']="bearbeiten";
$lang['sql_nofielddelete']="L&ouml;schen nicht m&ouml;glich, da eine Tabelle mindestens 1 Feld haben muss.";
$lang['sql_fielddelete1']="Das Feld";
$lang['sql_deleted']="wurde gel&ouml;scht.";
$lang['sql_changed']="wurde ge&auml;ndert.";
$lang['sql_created']="wurde angelegt.";
$lang['sql_nodest_copy']="Ohne Ziel kann nicht kopiert werden!";
$lang['sql_desttable_exists']="Zieltabelle existiert schon!";
$lang['sql_scopy']="Tabellenstruktur von `%s` wurde in Tabelle `%s` kopiert.";
$lang['sql_tcopy']="Tabelle `%s` wurde mit Daten in Tabelle `%s` kopiert.";
$lang['sql_tablenoname']="Tabelle braucht einen Namen!";
$lang['sql_tblnameempty']="Tabellenname darf nicht leer sein!";
$lang['sql_collatenotmatch']="Zeichensatz und Sortierung passen nicht zueinander!";
$lang['sql_fieldnamenotvalid']="Fehler: Kein g&uuml;ltiger Feldname";
$lang['sql_createtable']="Tabelle anlegen";
$lang['sql_copytable']="Tabelle kopieren";
$lang['sql_structureonly']="nur Struktur";
$lang['sql_structuredata']="Struktur und Daten";
$lang['sql_notablesindb']="Es befinden sich keine Tabellen in der Datenbank";
$lang['sql_selecttable']="Tabelle ausw&auml;hlen";
$lang['sql_showdatatable']="Daten der Tabelle anzeigen";
$lang['sql_tblpropsof']="Tabelleneigenschaften von";
$lang['sql_editfield']="Editiere Feld";
$lang['sql_newfield']="Neues Feld";
$lang['sql_indexes']="Indizes";
$lang['sql_atposition']="an Position einf&uuml;gen";
$lang['sql_first']="zuerst";
$lang['sql_after']="nach";
$lang['sql_changefield']="Feld &auml;ndern";
$lang['sql_insertfield']="Feld einf&uuml;gen";
$lang['sql_insertnewfield']="neues Feld einf&uuml;gen";
$lang['sql_tableindexes']="Indizes der Tabelle";
$lang['sql_allowdups']="Duplikate erlaubt";
$lang['sql_cardinality']="Kardinalit&auml;t";
$lang['sql_tablenoindexes']="Die Tabelle enth&auml;lt keine Indizes";
$lang['sql_createindex']="neuen Index erzeugen";
$lang['sql_wasemptied']="wurde geleert";
$lang['sql_renamedto']="wurde umbenannt in";
$lang['sql_dbcopy']="Der Inhalt der Datenbank `%s` wurde in die Datenbank `%s` kopiert.";
$lang['sql_dbscopy']="Die Struktur der Datenbank `%s` wurde in die Datenbank `%s` kopiert.";
$lang['sql_wascreated']="wurde erzeugt";
$lang['sql_renamedb']="Datenbank umbenennen";
$lang['sql_actions']="Aktionen";
$lang['sql_chooseaction']="Aktion w&auml;hlen";
$lang['sql_deletedb']="Datenbank l&ouml;schen";
$lang['sql_emptydb']="Datenbank leeren";
$lang['sql_copydatadb']="Inhalt in Datenbank kopieren";
$lang['sql_copysdb']="Struktur in Datenbank kopieren";
$lang['sql_imexport']="Im-/Export";
$lang['info_records']="Datens&auml;tze";
$lang['asktableemptykeys']="Sollen die Tabelle `%s` geleert und die Indizes zur&uuml;ckgesetzt werden?";
$lang['edit']="editieren";
$lang['delete']="l&ouml;schen";
$lang['empty']="leeren";
$lang['emptykeys']="leeren und Indizes zur&uuml;cksetzen";
$lang['sql_tableemptied']="Tabelle `%s` wurde geleert.";
$lang['sql_tableemptiedkeys']="Tabelle `%s` wurde geleert, und die Indizes wurden zur&uuml;ckgesetzt.";
$lang['sql_library']="SQL-Bibliothek";
$lang['sql_attributes']="Attribute";
$lang['sql_enumsethelp']="Bei Feldtypen ENUM und SET bitte bei Size die Werteliste eingeben.
Die Werte m&uuml;ssen in Hochkommas und mit Kommas getrennt sein.
Bei Benutzung von Sonderzeichen m&uuml;ssen diese mit \ (Backslash) maskiert werden.
Beispiele:
'a','b','c'
'ja','nein'
'x','y'";
$lang['sql_uploadedfile']="geladene Datei: ";
$lang['sql_import']="Import in Datenbank `%s`";
$lang['export']="Export";
$lang['import']="Import";
$lang['importoptions']="Import-Optionen";
$lang['csvoptions']="CSV-Optionen";
$lang['importtable']="Import in Tabelle";
$lang['newtable']="neue Tabelle";
$lang['importsource']="Import-Quelle";
$lang['fromtextbox']="aus Textfeld";
$lang['fromfile']="aus Datei";
$lang['emptytablebefore']="Tabelle vorher leeren";
$lang['createautoindex']="Auto-Index erzeugen";
$lang['csv_namefirstline']="Feldnamen in die erste Zeile";
$lang['csv_fieldseperate']="Felder getrennt mit";
$lang['csv_fieldsenclosed']="Felder eingeschlossen von";
$lang['csv_fieldsescape']="Felder escaped von";
$lang['csv_eol']="Zeilen getrennt mit";
$lang['csv_null']="Ersetze NULL durch";
$lang['csv_fileopen']="CSV-Datei &ouml;ffnen";
$lang['importieren']="importieren";
$lang['sql_export']="Export aus Datenbank `%s`";
$lang['exportoptions']="Export-Optionen";
$lang['excel2003']="Excel ab 2003";
$lang['showresult']="Ergebnis anzeigen";
$lang['sendresultasfile']="Ergebnis als Datei senden";
$lang['exportlines']="<strong>%s</strong> Zeilen exportiert";
$lang['csv_fieldcount_nomatch']="Die Anzahl der Tabellenfelder stimmen nicht mit den zu importierenden Daten &uuml;berein (%d statt %d).";
$lang['csv_fieldslines']="%d Felder ermittelt, insgesamt %d Zeilen";
$lang['csv_errorcreatetable']="Fehler beim Erstellen der Tabelle `%s`!";
$lang['fm_uploadfilerequest']="Bitte gib eine Datei an.";
$lang['csv_nodata']="Keine Daten zum Importieren gefunden!";
$lang['sqllib_generalfunctions']="allgemeine Funktionen";
$lang['sqllib_resetauto']="Auto-Wert zur&uuml;cksetzen";
$lang['sqllib_boards']="Boards";
$lang['sqllib_deactivateboard']="Board deaktivieren";
$lang['sqllib_activateboard']="Board aktivieren";
$lang['sql_notablesselected']="Es sind keine Tabellen ausgew&auml;hlt!";
$lang['tools']="Tools";
$lang['tools_toolbox']="Datenbank ausw&auml;hlen / Datenbankfunktionen / Im- und Export ";
?>

Datei anzeigen

@ -0,0 +1,151 @@
<?php
if(file_exists("./../../work/config/parameter.php")){
@include("./../../work/config/parameter.php");
}
@include("./../../inc/functions_global.php");
@include("./../../language/".$config["language"]."/lang.php");
@include("./../../language/".$config["language"]."/lang_help.php");
echo MSDHeader(2);
echo headline($lang['credits']);
?>
<div id="content">
<h3>About this project</h3>
The idea for this project comes from Daniel Schlichtholz.<p>In 2004 he created a forum called <a href="http://www.mysqldumper.de/board" target="_blank">MySQLDumper</a> and soon, programmers who wrote new scripts, supplemented Daniel's scripts.<br>After a short time the small backup-script developed into a stately project.<p>If you have any improvement suggestions you can visit the MySQLDumper-Forum: <a href="http://www.mysqldumper.de/board" target="_blank">http://www.mysqldumper.de</a>.<p>We wish you a lot of fun with this project.<br><br><h4>The MySQLDumper-Team</h4>
<table><tr><td><img src="../../images/logo.gif" alt="MySQLDumper" width="160" height="42" border="1"></td><td valign="top">
Daniel Schlichtholz - Steffen Kamper<br>
Perlscript with Support from Detlev Richter<br>
</td></tr></table>
<h3>MySQLDumper Help</h3>
<h4>Download</h4>
This Script is available on the Homepage of MySQLDumper.<br>
It is recommanded to visit the Homepage frequently to get the latest information, updates and help.<br>
The address is <a href="http://www.mysqldumper.de/board" target="_blank">
http://www.mysqldumper.de/board
</a>
<h4>System Mandatories</h4>
The Script works with nearly any server (Windows, Linux, ...) <br>
and PHP >= Version 4.3.4 with GZip-Library, MySQL (>= 3.23), JavaScript (must be enabled).
<a href="../../install.php?language=de" target="_top"><h4>Installation</h4></a>
The installation is very easy.
Unpack the archive in any folder,
which is accessible from the Webserver<br>
(e.g. in the root directory [Server rootdir/]MySQLDumper)<br>
change config.php to chmod 777<br>
... all done!<br>
you can start MySQLDumper in your Browser by typing "http://webserver/MySQLDumper"
to complete the setup, just follow the instructions.
<br><b>Note:</b><br><i>If your webserver runs with the option safemode=ON MySqlDump mustn't create directories.<br>
You will have to do that yourself.<br>
MySqlDump breaks in that case and tells you what to do.<br>
After you created the directories MySqlDump will function normally.</i><br>
<a name="perl"></a><h4>Guidance for the Perl script</h4>
Most have a cgi-bin directory, in which Perl can be executed. <br>
This is usually by Browser over http://www.domain.de/cgi-bin/ available. <br><br>
Make the following steps for this case please. <br><br>
1. Call in MySQLDumper the page Backup and click "Backup Perl" <br>
2. Copy the path, that stands behind entry in crondump.pl for $absolute_path_of_configdir: <br>
3. open the file "crondump.pl" in the editor <br>
4. paste the copied path there with absolute_path_of_configdir (no blanks) <br>
5. Save crondump.pl <br>
6. copy crondump.pl, as well as perltest.pl and simpletest.pl to the cgi-bin directory (ASCII mode in the ftp-client!) <br>
7. chmod 755 to the scripts. <br>
7b. If the ending cgi is desired, change the ending of all 3 files pl - > cgi (rename) <br>
8. Call in the MySQLDumper the page Configuration<br>
9. click on Cronscript <br>
10. changes Perl execution path to /cgi-bin/<br>
10b. if the Scripts are renamed to *.cgi , change Fileextension to cgi <br>
11 save the Configuration <br><br>
Ready ! The scripts are available from the Page "Backup" <br><br>
When you can execute Perl anywhere, only following step are needed: <br><br>
1. Call in MySQLDumper the page Backup. <br>
2. Copy the path, that stands behind entry in crondump.pl for $absolute_path_of_configdir: <br>
3. open the file "crondump.pl" in the editor <br>
4. paste the copied path there with absolute_path_of_configdir (no blanks) <br>
5. Save crondump.pl <br>
6. chmod 755 to the scripts. <br>
6b. If the ending cgi is desired, change the ending of all 3 files pl - > cgi (rename) <br>
(ev. 10b+11 from above) <br><br>
Windowsuser must change the first line of all Perlscripts, to the path of Perl. <br><br>
Example: <br>
instead of: #!/usr/bin/perl w <br>
now #!C:\perl\bin\perl.exe w<br>
<h4>Operating</h4><ul>
<h6>Menu</h6>
In the select box above you choose your database.<br>
All actions refer to this database.
<h6>Home</h6>
Here you get information about your system, the version numbers and details about the configured databases.<br>
If you click on a database in the table, you get a list of tables with record counts, size and last update stamp.
<h6>Configuration</h6>
Here you can edit your configuration, save it or load the default settings.
<ul>
<li><a name="conf1"><strong>Configured Databases:</strong> list of configured databases. The active database is in bold.</li>
<li><a name="conf2"><strong>Table-Prefix:</strong> you can choose a prefix for each database seperated. The prefix is a filter, which only handle the tables in a dump, that start with this prefix (e.g. all tables starting with "phpBB_"). If you don't want to use it, leave this field empty.</li>
<li><a name="conf3"><strong>GZip-Compression:</strong> Here you can activate the compression. It is recommended to work with compression because of the smaller size of files, netherless disk space is ever rarely.</li>
<li><a name="conf19"></a><strong>Records count for backup:</strong> These are the number of records which are being read simultaneously while the backup, before the script makes the callback. For slow server you can reduce this parameter to prevent timeouts.</li>
<li><a name="conf20"></a><strong>Records count for restore:</strong> These are the number of records which are being read simultaneously while the backup, before the script makes the callback. For slow server you can reduce this parameter to prevent timeouts.</li>
<li><a name="conf4"></a><strong>Directory for Backup files:</strong> choose your directory for the backup files. If you choose a new one, the script will create it for you. You can use relative or absolute paths.</li>
<li><a name="conf5"></a><strong>Send dumpfile as email:</strong> When this option is enabled, the script will automatically send the finished backup file as an email with an attachment (be careful!, you should use compression with this option because the dumpfile may be too large for email!)</li>
<li><a name="conf6"></a><strong>Email address:</strong> Recipient's email address</li>
<li><a name="conf7"></a><strong>Email subject:</strong> The subject of the email</li>
<li><a name="conf13"></a><strong>FTP-Transfer: </strong>When this option is enabled, the script will automatically send the finished backup file via FTP.</li>
<li><a name="conf14"><strong>FTP Server: </strong>the Address of the FTP-Servers (e.g. ftp.mybackups.de)</li>
<li><a name="conf15"></a><strong>FTP Server Port: </strong>the Port for the FTP-Server (normally 21)</li>
<li><a name="conf16"></a><strong>FTP User: </strong>the username for the FTP-Account</li>
<li><a name="conf17"></a><strong>FTP Passwort: </strong>the password for the FTP-Account</li>
<li><a name="conf18"></a><strong>FTP Upload-Ordner: </strong>the folder for saving the backup file (there must be Upload-Rights!)</li>
<li><a name="conf8"></a><strong>automatic deletion of backups:</strong> When you activate this options, backup files will be deleted automatically by the following rules. Combinations are possible.</li>
<li><a name="conf9"></a><strong>Delete by age of files (in days):</strong> A Value > 0 deletes all files older than the value in days</li>
<li><a name="conf10"></a><strong>Delete by number of files:</strong> A Value > 0 deletes all files except the given value</li>
<li><a name="conf11"></a><strong>Langauge:</strong> choose your language for the interface.</li>
</ul>
<h6>Management</h6>
All the actions are listed here.<br>
You see all files in the backup directory.
For the actions "Restore" and "Delete" you have to select a file first.
<UL>
<li><strong>Restore:</strong> you restore the database with the records of the selected backupfile.</li>
<li><strong>Delete:</strong> you can delete the selected backup file.</li>
<li><strong>Start new Dump:</strong> here you start a new backup (dump) with your configured parameters.</li>
</UL>
<h6>Log</h6>
You can read the Log entries and delete them.
<h6>Credits / Help</h6>
This page.
</ul>
<h3>Our Sponsores</h3>
The Sponsores can be found also at our <a href="http://www.mysqldumper.de/en/index.php?m=7" target="_blank">Sponsorepage</a><br>
<?php echo MSDFooter();?>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>

Datei anzeigen

@ -0,0 +1,112 @@
<?php
//generated at 13.04.2006
$lang['yes']="yes";
$lang['to']="to";
$lang['activated']="activated";
$lang['not_activated']="not activated";
$lang['error']="Error";
$lang['of']=" of ";
$lang['added']="added";
$lang['db']="Database";
$lang['dbs']="Databases";
$lang['tables']="Tables";
$lang['table']="Table";
$lang['records']="Records";
$lang['compressed']="compressed (gz)";
$lang['notcompressed']="normal (uncompressed)";
$lang['general']="general";
$lang['comment']="Comment";
$lang['filesize']="File size";
$lang['all']="all";
$lang['none']="none";
$lang['with']=" with ";
$lang['dir']="Directory";
$lang['rechte']="Permissions";
$lang['status']="State";
$lang['finished']="finished";
$lang['file']="File";
$lang['fields']="Fields";
$lang['new']="new";
$lang['charset']="Charset";
$lang['collation']="Collation";
$lang['change']="change";
$lang['in']="in";
$lang['do']="Execute";
$lang['view']="view";
$lang['existing']="existing";
$lang['authors']="Authors";
$lang['back']="back";
$lang['normal']="normal";
$lang['db_host']="Hostname";
$lang['db_user']="User";
$lang['db_pass']="Password";
$lang['info_scriptdir']="Directory of MySQLDumper";
$lang['info_actdb']="Actual Database";
$lang['useconnection']="Use Connection";
$lang['wrongconnectionpars']="Wrong or no connection parameter!";
$lang['conn_not_possible']="Connection not possible !";
$lang['servercaption']="Display Server";
$lang['help_servercaption']="When using MySQLDumper on different domains or servers, it can be helpful to display the domain/server name at the top of the screen.";
$lang['activate_multidump']="activate MultiDump";
$lang['save']="Save";
$lang['reset']="Reset";
$lang['praefix']="Table Prefix";
$lang['autodelete']="Delete backups automatically";
$lang['max_backup_files_each1']="For all databases";
$lang['max_backup_files_each2']="For each database";
$lang['saving_db_form']="Database";
$lang['testconnection']="Test Connection";
$lang['back_to_minisql']="Edit Database";
$lang['critical_safemode']="<h3>Attention:Program can't continue in Safe-Mode!</h3>Create the following directories manually in the MySQLDumper directory:<br><div style=";
$lang['create']="Create";
$lang['mailabsendererror']="Mail without Sender can't be sent !";
$lang['Ausgabe']="Output";
$lang['Zusatz']="Addition";
$lang['Variabeln']="Variables";
$lang['berichtsent']="The Error Report was sent successfully.";
$lang['autobericht']="automatically generated Error Report from";
$lang['berichtman1']="Please send the Mail manually to the ";
$lang['Statusinformationen']="Status Information";
$lang['Versionsinformationen']="Version Information";
$lang['MySQL Dumper Informationen']="MySQL Dumper Information";
$lang['Fehlerbericht']="Error Report";
$lang['backupfilesanzahl']="In the Backup directory are ";
$lang['lastbackup']="Last Backup";
$lang['notavail']="<em>not available</em>";
$lang['vom']="from";
$lang['mysqlvars']="MySQL Variables";
$lang['mysqlsys']="MySQL Commands";
$lang['Status']="State";
$lang['Prozesse']="Processes";
$lang['info_novars']="no variables available";
$lang['Inhalt']="Value";
$lang['info_nostatus']="no state available";
$lang['info_noprocesses']="no running processes";
$lang['fm_freespace']="Free Space on Server";
$lang['load_database']="Reload databases";
$lang['home']="Home";
$lang['config']="Configuration";
$lang['dump']="Backup";
$lang['restore']="Restore";
$lang['file_manage']="File Administration";
$lang['log']="Log";
$lang['choose_db']="Choose Database";
$lang['credits']="Credits / Help";
$lang['multi_part']="Multipart Backup";
$lang['logfilenotwritable']="Can't write Logfile !";
$lang['sql_error1']="Error in Query:";
$lang['sql_error2']="MySQL says:";
$lang['unknown']="";
$lang['unknown_number_of_records']="unknown";
$lang['cron_completelog']="Log complete output";
$lang['no']="no";
$lang['MySQLErrorDoc']="MySQL Documentation of Errors";
$lang['downgrade']="Downgrade (MySQL 4.x => 3.x)";
$lang['create_database']="Create new database";
$lang['exportfinished']="Export finalized.";
$lang['sql_browser']="SQL-Browser";
$lang['server']="Server";
?>

Datei anzeigen

@ -0,0 +1,93 @@
<?php
//generated at 13.04.2006
$lang['config_headline']="Configuration";
$lang['save_success']="Configuration was saved.";
$lang['save_error']="Error - unable to save configuration!";
$lang['config_email']="Email Notification";
$lang['config_autodelete']="Autodelete";
$lang['config_interface']="Interface";
$lang['multi_part_groesse']="maximum File size";
$lang['help_multipart']="If Multipart is switched on, Backup creates multiple Backup files, with the maximum size determined by the configuration below";
$lang['help_multipartgroesse']="The maximum size of Backup files is set here, if Multipart is switched on";
$lang['empty_db_before_restore']="Delete tables before restoring";
$lang['allpars']="All Parameters";
$lang['cron_extender']="File extension";
$lang['cron_savepath']="Configuration file";
$lang['cron_printout']="Print output on screen.";
$lang['config_cronperl']="Crondump Settings for Perl script";
$lang['cron_mailprg']="Mail program";
$lang['cron_ftp']="Send backup by FTP";
$lang['optimize']="Optimize Tables before Backup";
$lang['help_optimize']="If this option is activated, all tables will be optimized before the backup";
$lang['help_ftptimeout']="Default setting for Timeout is 90 seconds.";
$lang['ftp_timeout']="Connection Timeout";
$lang['help_ftpssl']="Choose if the connection will be established via SSL.";
$lang['config_askload']="Do you want to override the actual settings with the default settings?";
$lang['load']="Load default\nsettings";
$lang['load_success']="The default settings were loaded.";
$lang['cron_samedb']="Use actual database";
$lang['cron_crondbindex']="Database and Table-Prefix<br> for the Cron job";
$lang['withattach']=" with attach";
$lang['withoutattach']=" without attach";
$lang['multidumpconf']="=Multidump Configuration=";
$lang['multidumpall']="=all Databases=";
$lang['gzip']="GZip compression";
$lang['send_mail_form']="Send email report";
$lang['send_mail_dump']="Attach backup";
$lang['email_adress']="Email address";
$lang['email_subject']="Sender address of the email";
$lang['email_maxsize']="Maximum size of attachment";
$lang['age_of_files']="Delete by age of files (in days)";
$lang['number_of_files_form']="Delete by number of files";
$lang['language']="Language";
$lang['list_db']="Configured Databases:";
$lang['config_ftp']="FTP Transfer of Backup file";
$lang['ftp_transfer']="FTP Transfer";
$lang['ftp_server']="Server";
$lang['ftp_port']="Port";
$lang['ftp_user']="User";
$lang['ftp_pass']="Password";
$lang['ftp_dir']="Upload directory";
$lang['ftp_ssl']="Secure SSL FTP connection";
$lang['ftp_useSSL']="use SSL Connection";
$lang['sqlboxheight']="Height of SQL-Box";
$lang['sqllimit']="Count of records each page";
$lang['bbparams']="Configuration for BB-Code";
$lang['bbtextcolor']="Text color";
$lang['help_commands']="You can execute a command before and after the backup.\nThis command can be a SQL-Construct or a System Command (e.g. a script)";
$lang['command']="Command";
$lang['wrong_connectionpars']="Connection parameters are wrong !";
$lang['connectionpars']="Connection Parameter";
$lang['extendedpars']="Extended Parameter";
$lang['fade_in_out']="Display on/off";
$lang['db_backuppars']="Database Backup Parameter";
$lang['general']="General";
$lang['maxsize']="max. Size";
$lang['backup_format']="Backup Format";
$lang['inserts_complete']="Complete Inserts";
$lang['inserts_extended']="Extended Inserts";
$lang['inserts_delayed']="Delayed Inserts";
$lang['inserts_ignore']="Error ignoring Inserts";
$lang['lock_tables']="Lock Tables";
$lang['errorhandling_restore']="Error Handling while restoring";
$lang['ehrestore_continue']="continue and log errors";
$lang['ehrestore_stop']="stop";
$lang['in_mainframe']="in main frame";
$lang['in_leftframe']="in left frame";
$lang['width']="Width";
$lang['sql_befehle']="SQL Commands";
$lang['download_languages']="download other languages";
$lang['download_styles']="download other themes";
$lang['connect_to']="";
$lang['changedir']="Changing to Directory";
$lang['changedirerror']="Couldn`t change directory!";
$lang['ftp_ok']="Connection successful.";
$lang['install']="Installation";
$lang['noftppossible']="You don't have FTP functions !";
$lang['found_db']="found db";
$lang['ftp_choose_mode']="FTP-transfer-mode";
$lang['ftp_passive']="use passive mode";
?>

Datei anzeigen

@ -0,0 +1,59 @@
<?php
//generated at 13.04.2006
$lang['dump_headline']="Create backup...";
$lang['gzip_compression']="GZip Compression";
$lang['saving_table']="Saving table ";
$lang['of']="of";
$lang['actual_table']="Actual table";
$lang['progress_table']="Progress of table";
$lang['progress_over_all']="Overall Progress";
$lang['entry']="Entry";
$lang['done']="Done!";
$lang['dump_successful']=" was successfully created.";
$lang['upto']="up to";
$lang['email_was_send']="Email was successfully sent to ";
$lang['back_to_control']="Continue";
$lang['back_to_overview']="Database Overview";
$lang['dump_filename']="Backup File: ";
$lang['withpraefix']="with prefix";
$lang['dump_notables']="No tables found in database `<b>%s</b>` ";
$lang['dump_endergebnis']="The file contains <b>%s</b> tables with <b>%s</b> records.<br>";
$lang['mailerror']="Sending of email failed!";
$lang['emailbody_attach']="The Attachment contains the backup of your MySQL-Database.<br>Backup of Database `%s`
<br><br>Following File was created:<br><br>%s <br><br>Kind regards<br><br>MySQLDumper<br>";
$lang['emailbody_mp_noattach']="A Multipart Backup was created.<br>The Backup files are not attached to this email!<br>Backup of Database `%s`
<br><br>Following Files were created:<br><br>%s
<br><br>Kind regards<br><br>MySQLDumper<br>";
$lang['emailbody_mp_attach']="A Multipart Backup was created.<br>The Backup files are attached to separate emails.<br>Backup of Database `%s`
<br><br>Following Files were created:<br><br>%s <br><br>Kind regards<br><br>MySQLDumper<br>";
$lang['emailbody_footer']="`<br><br>Kind regards<br><br>MySQLDumper<br>";
$lang['emailbody_toobig']="The Backup file exceeded the maximum size of %s and was not attached to this email.<br>Backup of Database `%s`
<br><br>Following File was created:<br><br>%s
<br><br>Kind regards<br><br>MySQLDumper<br>";
$lang['emailbody_noattach']="Files are not attached to this email!<br>Backup of Database `%s`
<br><br>Following File was created:<br><br>%s
<br><br>Kind regards<br><br>MySQLDumper<br>";
$lang['email_only_attachment']=" ... attachment only.";
$lang['tableselection']="Table selection";
$lang['selectall']="Deselect All";
$lang['deselectall']="Deselect all";
$lang['startdump']="Start Backup";
$lang['datawith']="Records with";
$lang['lastbufrom']="last update from";
$lang['not_supported']="This backup doesn't support this function.";
$lang['multidump']="Multidump: Backup of <b>%d</b> Databases done.";
$lang['filesendftp']="send file via FTP... please be patient. ";
$lang['ftpconnerror']="FTP connection not established! Connection with ";
$lang['ftpconnerror1']=" as user ";
$lang['ftpconnerror2']=" not possible";
$lang['ftpconnerror3']="FTP Upload failed! ";
$lang['ftpconnected1']="Connected with ";
$lang['ftpconnected2']=" on ";
$lang['ftpconnected3']=" transfer successful";
$lang['nr_tables_selected']="- with %s selected tables";
$lang['nr_tables_optimized']="<span class=\"small\">%s tables have been optimized.</span>";
$lang['dump_errors']="<p class=\"error\">%s errors occured: <a href=\"log.php?r=3\">verdere</a></p>";
?>

Datei anzeigen

@ -0,0 +1,75 @@
<?php
//generated at 13.04.2006
$lang['convert_start']="Start Conversion";
$lang['convert_title']="Convert Dump to MSD Format";
$lang['convert_wrong_parameters']="Wrong parameters! Conversion is not possible.";
$lang['fm_uploadfilerequest']="please choose a file.";
$lang['fm_uploadnotallowed1']="This file type is not supported.";
$lang['fm_uploadnotallowed2']="Valid types are: *.gz and *.sql-files";
$lang['fm_uploadmoveerror']="Couldn't move selected file to the upload directory.";
$lang['fm_uploadfailed']="The upload has failed!";
$lang['fm_uploadfileexists']="A file with the same name already exists !";
$lang['fm_nofile']="You didn't choose a file!";
$lang['fm_delete1']="The file ";
$lang['fm_delete2']=" was deleted successfully.";
$lang['fm_delete3']=" couldn't be deleted!";
$lang['fm_choose_file']="Chosen file:";
$lang['fm_filesize']="File size";
$lang['fm_filedate']="File date";
$lang['fm_nofilesfound']="No file found.";
$lang['fm_tables']="Tables";
$lang['fm_records']="Records";
$lang['fm_all_bu']="All Backups";
$lang['fm_anz_bu']="Backups";
$lang['fm_last_bu']="Last Backup";
$lang['fm_totalsize']="Total Size";
$lang['fm_selecttables']="Select tables";
$lang['fm_comment']="Enter Comment";
$lang['fm_restore']="Restore";
$lang['fm_alertrestore1']="Should the database";
$lang['fm_alertrestore2']="be restored with the records from the file";
$lang['fm_alertrestore3']=" ?";
$lang['fm_delete']="Delete";
$lang['fm_askdelete1']="Should the file ";
$lang['fm_askdelete2']=" really be deleted?";
$lang['fm_askdelete3']="Do you want autodelete to be executed with configured rules now?";
$lang['fm_askdelete4']="Do you want to delete all backup files?";
$lang['fm_askdelete5']="Do you want to delete all backup files with ";
$lang['fm_askdelete5_2']="_* ?";
$lang['fm_deleteauto']="Run autodelete manually";
$lang['fm_deleteall']="Delete all backup files";
$lang['fm_deleteallfilter']="Delete all with ";
$lang['fm_deleteallfilter2']="_*";
$lang['fm_startdump']="Start New Backup";
$lang['fm_fileupload']="Upload file";
$lang['fm_dbname']="Database name";
$lang['fm_files1']="Database Backups";
$lang['fm_files2']="Database Structures";
$lang['fm_autodel1']="Autodelete: the following files were deleted because of maximum files setting:";
$lang['fm_autodel2']="Autodelete: the following files were deleted because of their date:";
$lang['fm_dumpsettings']="Configuration for Perl Cron script";
$lang['fm_dumpsettings_cron']="Properties of the Perl Cron script";
$lang['fm_oldbackup']="(unknown)";
$lang['fm_restore_header']="Restore of Database <strong>";
$lang['fm_restore_header2']="\"</strong>";
$lang['fm_dump_header']="Backup";
$lang['DoCronButton']="Run the Perl Cron script";
$lang['DoPerlTest']="Test Perl Modules";
$lang['DoSimpleTest']="Test Perl";
$lang['perloutput1']="Entry in crondump.pl for absolute_path_of_configdir";
$lang['perloutput2']="URL for the browser or for external Cron job";
$lang['perloutput3']="Commandline in the Shell or for the Crontab";
$lang['converter']="Backup Converter";
$lang['convert_file']="File to be converted";
$lang['convert_filename']="Name of destination file (without extension)";
$lang['converting']="Converting";
$lang['convert_fileread']="Read file '%s'";
$lang['convert_finished']="Conversion finished, '%s' was written successfully.";
$lang['no_msd_backupfile']="Backups of other scripts";
$lang['max_upload_size']="Maximum filesize";
$lang['max_upload_size_info']="If your Dumpfile is bigger than the above mentioned limit, you must upload it via FTP into the directory \"work/backup\".
After that you can choose it to begin a restore progress. ";
?>

Datei anzeigen

@ -0,0 +1,47 @@
<?php
//generated at 13.04.2006
$lang['help_db']="This is the list of all Databases";
$lang['help_praefix']="the prefix is a string at the beginning of a table name, which works as a filter.";
$lang['help_zip']="Compression with GZip - recommended state is 'activated'";
$lang['help_memorylimit']="The max. amount of memory in Bytes for the script\n0 = deactivated";
$lang['memory_limit']="Memory limit";
$lang['help_mail1']="If activated, then after a backup, an email is sent with the backup as an attachment.";
$lang['help_mail2']="This is the receiver of the email.";
$lang['help_mail3']="This is the sender of the email.";
$lang['help_mail4']="The maximum size for email attachment, if is 0 it will be ignored";
$lang['help_mail5']="Here you can select if the backup should send as email-attach";
$lang['help_ad1']="If activated, then backup files will be deleted automatically.";
$lang['help_ad2']="the maximum number of days to keep backup file (for autodelete)
0 = deactivated";
$lang['help_ad3']="the maximum number of backup files (for autodelete)
0 = deactivated";
$lang['help_lang']="select your language";
$lang['help_empty_db_before_restore']="To eliminate useless data you can instruct to empty the database before restore";
$lang['help_cronmail']="Select if the Cron job should send the Backup via Mail";
$lang['help_cronmailprg']="the path to your mail program, default is sendmail with given path";
$lang['help_cronftp']="Select if the Cron job should send the Backup via FTP";
$lang['help_cronzip']="Compression with GZip in Cron job- recommended state is 'activated' (you need the Compression-Lib installed!)";
$lang['help_cronextender']="The extension of the Perl scripts, default is '.pl'";
$lang['help_cronsavepath']="The name of the configuration file for the Perl script";
$lang['help_cronprintout']="If deactivated the output will not be printed on screen.
It is independant from the printing in the logfile.";
$lang['help_cronsamedb']="Use same database in Cron job like configured under Database?";
$lang['help_crondbindex']="choose the database for Cron job";
$lang['help_cronmail_dump']="Select if the Cron job should attach the backup to the email.";
$lang['help_ftptransfer']="if activated, file will be sent via FTP.";
$lang['help_ftpserver']="Address of the FTP-Server";
$lang['help_ftpport']="Port of the FTP-Server, standard: 21";
$lang['help_ftpuser']="enter username for FTP";
$lang['help_ftppass']="enter password for FTP";
$lang['help_ftpdir']="where is the upload-dir? enter path!";
$lang['help_speed']="Minimum and maximum speed, default is 50 to 5000";
$lang['speed']="Speed control";
$lang['help_cronexecpath']="The place of the Perl scripts.\nStarting Point is the HTTP-Address (like Addresses in the Browser)\nAllowed are absolute or relative entries.";
$lang['cron_execpath']="Path of Perl scripts";
$lang['help_croncompletelog']="When activated the complete output is written in the complete_log-file.
This is independent from text printing";
$lang['help_ftp_mode']="When you discover problems using the FTP-transfer, enable passive mode.";
?>

Datei anzeigen

@ -0,0 +1,89 @@
<?php
//generated at 13.04.2006
$lang['installfinished']="<br>Installation completed --> <a href=\"index.php\">start MySQLDumper</a><br>";
$lang['install_forcescript']="Start MySQLDumper without installation";
$lang['install_tomenu']="Back to main menu";
$lang['installmenu']="Main menu";
$lang['step']="Step";
$lang['install']="Installation";
$lang['uninstall']="Uninstall";
$lang['tools']="Tools";
$lang['editconf']="Edit configuration";
$lang['osweiter']="Continue without saving";
$lang['errorman']="<strong>Error while saving the Configuration!</strong><br>Please edit the File ";
$lang['manuell']="manually";
$lang['createdirs']="Create Directories";
$lang['install_continue']="Continue with installation";
$lang['connecttomysql']="Connect to MySQL ";
$lang['dbparameter']="Database Parameters";
$lang['confignotwritable']="I cannot write to file \"config.php\".
Please use your FTP-Programm and chmod this file to 0777.";
$lang['dbconnection']="Database Connection";
$lang['connectionerror']="Error: unable to connect.";
$lang['connection_ok']="Database connection was established.";
$lang['saveandcontinue']="Save and continue installation";
$lang['confbasic']="Basic Parameter";
$lang['install_step2finished']="Database parameters were saved.<br><br>You may continue installation with the default settings or edit configuration.";
$lang['install_step2_1']="Continue installation with the default settings";
$lang['laststep']="Installation Finish";
$lang['ftpmode']="Create necessary directories in safe-mode";
$lang['safemodedesc']="";
$lang['idomanual']="I create the dirs myself";
$lang['dofrom']="starting from";
$lang['ftpmode2']="Create the dirs with FTP:";
$lang['connect']="connect";
$lang['dirs_created']="The directories are created and correctly permissioned.";
$lang['connect_to']="connect to";
$lang['changedir']="change to dir";
$lang['changedirerror']="change to dir was not possible";
$lang['ftp_ok']="FTP parameter are ok";
$lang['createdirs2']="Create directories";
$lang['ftp_notconnected']="FTP connection not established!";
$lang['connwith']="Connection with";
$lang['asuser']="as user";
$lang['notpossible']="not possible";
$lang['dircr1']="create workdir";
$lang['dircr2']="create backupdir";
$lang['dircr3']="create structurdir";
$lang['dircr4']="create logdir";
$lang['dircr5']="create configurationdir";
$lang['indir']="now in dir";
$lang['check']="Check my directories";
$lang['disabledfunctions']="Disabled Functions";
$lang['noftppossible']="You don't have FTP functions !";
$lang['nogzpossible']="You don't have compression functions !";
$lang['ui1']="All working directories which can contain backups will be deleted.";
$lang['ui2']="Are you sure you want that?";
$lang['ui3']="no, cancel immediately";
$lang['ui4']="yes, please continue";
$lang['ui5']="delete working directories";
$lang['ui6']="all was deleted successfully.";
$lang['ui7']="Please delete the script directory";
$lang['ui8']="one level up";
$lang['ui9']="An error occured, deleting was not possible</p>Error with directory ";
$lang['import']="Import Configuration";
$lang['import1']="Import settings from ";
$lang['import2']="Upload and import settings";
$lang['import3']="Configuration was loaded ...";
$lang['import4']="Configuration was saved.";
$lang['import5']="Start MySQLDumper";
$lang['import6']="Installation Menu";
$lang['import7']="Upload configuration";
$lang['import8']="back to upload";
$lang['import9']="This is not a configuration backup !";
$lang['import10']="Configuration was uploaded successfully ...";
$lang['import11']="<strong>Error: </strong>There were problems writing sql_statements";
$lang['import12']="<strong>Error: </strong>There were problems writing config.php";
$lang['install_help_port']="(empty = Default Port)";
$lang['install_help_socket']="(empty = Default Socket)";
$lang['tryagain']="Try again";
$lang['socket']="Socket";
$lang['port']="Port";
$lang['found_no_db']="ERROR: the following DB was not found:";
$lang['found_db']="found db";
$lang['fm_fileupload']="Upload file";
$lang['pass']="Password";
?>

Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden Mehr anzeigen