break; default: $func->information(t('Der von dir angegebene Dateityp wird nicht unterstützt. Bitte wähle eine Datei vom Typ *.xml, oder *.csv aus oder überspringe den Dateiimport.'), "index.php?mod=install&action=import"); break; } $dsp->AddBackButton("index.php?mod=install&action=export", "install/export"); $dsp->AddContent(); break; case 3: $db->connect(); switch ($_GET["type"]) { case "xml": $export->ExportAllTables($_POST["e_struct"], $_POST["e_cont"]); break; case "xml_modules": $export->LSTableHead(); foreach ($_POST["table"] as $key => $value) { if ($key) { $export->ExportMod($key, $_POST["e_struct"], $_POST["e_cont"], $_POST["e_trans"]); } } $export->LSTableFoot(); break; case "xml_tables": $export->LSTableHead(); foreach ($_POST["table"] as $key => $value) { if ($key) { $export->ExportTable($key, $_POST["e_struct"], $_POST["e_cont"]); } } $export->LSTableFoot();
case 41: $func->question(t('Bist du sicher, dass du die Datenbank des Moduls "%1" zurücksetzen möchtest? Dies löscht unwiderruflich alle Daten, die in diesem Modul bereits geschrieben wurden!', array($_GET['module'])), 'index.php?mod=install&action=mod_cfg&step=42&module=' . $_GET['module'] . '&tab=2', 'index.php?mod=install&action=mod_cfg&module=' . $_GET['module'] . '&tab=2'); break; // Rewrite specific Module-DB // Rewrite specific Module-DB case 42: $install->WriteTableFromXMLFile($_GET['module'], 1); $func->confirmation(t('Tabelle wurde erfolgreich neu geschrieben'), 'index.php?mod=install&action=mod_cfg&module=' . $_GET['module'] . '&tab=2'); break; // Export Module-DB // Export Module-DB case 43: include_once 'modules/install/class_export.php'; $export = new Export(); if ($_GET['module']) { $export->LSTableHead('lansuite_' . $_GET['module'] . '_' . date('ymd') . '.xml'); $export->ExportMod($_GET['module'], $_POST['e_struct'], $_POST['e_cont']); $export->LSTableFoot(); } break; default: # $dsp->NewContent(t('Datenbank - Modul') .": ". $_GET["module"], t('Hier kannst du die Datenbankeinträge zu diesem Modul verwalten')); $mod_tables = ''; $mod_tables_arr = array(); if (is_dir('modules/' . $_GET['module'] . '/mod_settings')) { $file = 'modules/' . $_GET['module'] . '/mod_settings/db.xml'; if (file_exists($file)) { $xml_file = fopen($file, 'r'); $xml_content = fread($xml_file, filesize($file)); fclose($xml_file); $lansuite = $xml->get_tag_content('lansuite', $xml_content);