// Muss für die Multipartyfunktion angepasst werden case 5: // Reset Users Signonstatus $db->qry("UPDATE %prefix%user SET signon = 0, paid = 0"); $signonnstatus_out = t('Status zurückgesetzt'); break; */ /* // Muss für die Multipartyfunktion angepasst werden case 5: // Reset Users Signonstatus $db->qry("UPDATE %prefix%user SET signon = 0, paid = 0"); $signonnstatus_out = t('Status zurückgesetzt'); break; */ case 6: // Rewrite Configs $db->qry("DROP TABLE %prefix%modules"); break; case 7: // Reset Module DBs $install->WriteTableFromXMLFile($_GET["module"], 1); break; } $dsp->NewContent(t('Datenbank-Initialisierung'), t('<br><b>Deine Datenbank-Struktur wurde soeben automatisch auf den neusten Stand gebracht</b>. Zusätzlich kannst du unterhalb einzelne Modul-Datenbanken zurücksetzen')); $install->CreateNewTables(1); $install->InsertPLZs(); # $install->InsertTranslations(); // Delete Log eintries which indicate a broken DB-Structure, for they are most likely fixed by now $db->qry_first('DELETE FROM %prefix%log WHERE type = 3 AND description LIKE \'%Unknown column%\''); $dsp->AddBackButton("index.php?mod=install", "install/db"); $dsp->AddContent(); }
$dsp->EndTab(); $dsp->StartTab(t('Datenbank'), 'database'); if (!file_exists('modules/' . $_GET['module'] . '/mod_settings/db.xml')) { $func->information(t('Dieses Modul benötigt keine Datenbank Tabellen'), NO_LINK); } elseif (!$func->isModActive($_GET['module'])) { $func->information(t('Dieses Modul ist nicht aktiv.')); } else { switch ($_GET['step']) { // Rewrite specific Module-DB - Question 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'));