Пример #1
0
     foreach ($_POST['id'] as $key => $value) {
         if ($_GET['file']) {
             $db->qry("UPDATE %prefix%translation SET %plain% = %string% WHERE file = %string% AND id = %string%", $_SESSION['target_language'], $value, $_GET['file'], $key);
         } else {
             $db->qry("UPDATE %prefix%translation SET %plain% = %string% WHERE id = %string%", $_SESSION['target_language'], $value, $key);
         }
     }
     $func->confirmation('Module-Übersetzung wurde erfolgreich upgedatet');
     break;
     // Export Module Translations
 // Export Module Translations
 case 30:
     include "modules/install/class_export.php";
     $export = new Export();
     $export->LSTableHead();
     $export->ExportMod($_GET['file'], 0, 0, 1);
     $export->LSTableFoot();
     break;
     // Translate Item
 // Translate Item
 case 40:
     $dsp->NewContent(t('Modul Übersetzen'), '');
     include_once 'inc/classes/class_masterform.php';
     $mf = new masterform();
     $mf->AddField(t('Orginal-Text'), 'org', IS_NOT_CHANGEABLE);
     $mf->AddField(t('Deutsch'), 'de', '', '', FIELD_OPTIONAL);
     $mf->AddField(t('Englisch'), 'en', '', '', FIELD_OPTIONAL);
     $mf->AddField(t('Spanisch'), 'es', '', '', FIELD_OPTIONAL);
     $mf->AddField(t('Französisch'), 'fr', '', '', FIELD_OPTIONAL);
     $mf->AddField(t('Holländisch'), 'nl', '', '', FIELD_OPTIONAL);
     $mf->AddField(t('Italienisch'), 'it', '', '', FIELD_OPTIONAL);
Пример #2
0
             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();
             break;
         case "csv_complete":
             $output = $export->ExportCSVComplete(";");
Пример #3
0
     $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);
             $tables = $xml->get_tag_content_array('table', $lansuite);