From b4e741568bd86c39cb15c4c2381c3a807e0e0651 Mon Sep 17 00:00:00 2001 From: jokob-sk Date: Sat, 11 Jan 2025 11:23:32 +1100 Subject: [PATCH] Extending Maintenance w/ app.conf (im/ex)port --- front/maintenance.php | 90 +++++++++++++++++++------ front/php/server/query_config.php | 23 +++++-- front/php/templates/language/ar_ar.json | 6 ++ front/php/templates/language/ca_ca.json | 8 ++- front/php/templates/language/cs_cz.json | 6 ++ front/php/templates/language/de_de.json | 8 ++- front/php/templates/language/en_us.json | 20 ++++-- front/php/templates/language/es_es.json | 8 ++- front/php/templates/language/fr_fr.json | 8 ++- front/php/templates/language/it_it.json | 8 ++- front/php/templates/language/nb_no.json | 8 ++- front/php/templates/language/pl_pl.json | 8 ++- front/php/templates/language/pt_br.json | 8 ++- front/php/templates/language/ru_ru.json | 8 ++- front/php/templates/language/tr_tr.json | 6 ++ front/php/templates/language/uk_ua.json | 8 ++- front/php/templates/language/zh_cn.json | 8 ++- 17 files changed, 197 insertions(+), 42 deletions(-) diff --git a/front/maintenance.php b/front/maintenance.php index 123761df..ffc3604b 100755 --- a/front/maintenance.php +++ b/front/maintenance.php @@ -209,26 +209,38 @@
-
-
-
- -
-
-
-
-
- -
-
-
-
-
- -
-
-
-
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
@@ -445,6 +457,44 @@ function restartBackend() { }) } +// ----------------------------------------------------------- +// Import pasted Config ASK +function askImportPastedConfig() { + + // Add new icon as base64 string + showModalInput (' ', '', + '', '', 'UploadConfig'); +} + +// ----------------------------------------------------------- +// Upload Settings Config +function UploadConfig() +{ + // alert("aaa") + + appConf = $('#modal-input-textarea').val() + // encode for import + appConfBase64 = btoa(appConf) + + // import + $.post('php/server/query_replace_config.php', { config: appConfBase64 }, function(msg) { + console.log(msg); + // showMessage(msg); + write_notification(`[Maintenance] Settings imported from backup: ${msg}`, 'interrupt'); + }); + +} + +// ----------------------------------------------------------- +// Download Settings Config +function DownloadConfig() +{ + // Execute + openInNewTab("php/server/query_config.php?file=app.conf&download=true") +} + + + // ----------------------------------------------------------- // Export CSV function ExportCSV() diff --git a/front/php/server/query_config.php b/front/php/server/query_config.php index 4e20a256..f1c96a0b 100755 --- a/front/php/server/query_config.php +++ b/front/php/server/query_config.php @@ -11,8 +11,9 @@ //------------------------------------------------------------------------------ // Handle incoming requests if ($_SERVER['REQUEST_METHOD'] === 'GET') { - // Get query string parameter ?file=settings_table.json + // Get query string parameters ?file=settings_table.json&download=true $file = isset($_GET['file']) ? $_GET['file'] : null; + $download = isset($_GET['download']) ? $_GET['download'] === 'true' : false; // Check if file parameter is provided if ($file) { @@ -21,9 +22,23 @@ // Check if the file exists if (file_exists($filePath)) { - // Send the response back to the client - header('Content-Type: text/plain'); - echo file_get_contents($filePath); + // Handle download behavior + if ($download) { + // Force file download + header('Content-Description: File Transfer'); + header('Content-Type: application/octet-stream'); + header('Content-Disposition: attachment; filename="' . basename($filePath) . '"'); + header('Expires: 0'); + header('Cache-Control: must-revalidate'); + header('Pragma: public'); + header('Content-Length: ' . filesize($filePath)); + readfile($filePath); + exit; + } else { + // Display file content + header('Content-Type: text/plain'); + echo file_get_contents($filePath); + } } else { // File not found response http_response_code(404); diff --git a/front/php/templates/language/ar_ar.json b/front/php/templates/language/ar_ar.json index 33d41579..7a8c1cd7 100755 --- a/front/php/templates/language/ar_ar.json +++ b/front/php/templates/language/ar_ar.json @@ -398,6 +398,8 @@ "Maintenance_Running_Version": "", "Maintenance_Status": "", "Maintenance_Title": "", + "Maintenance_Tool_DownloadConfig": "", + "Maintenance_Tool_DownloadConfig_text": "", "Maintenance_Tool_ExportCSV": "", "Maintenance_Tool_ExportCSV_noti": "", "Maintenance_Tool_ExportCSV_noti_text": "", @@ -406,9 +408,13 @@ "Maintenance_Tool_ImportCSV_noti": "", "Maintenance_Tool_ImportCSV_noti_text": "", "Maintenance_Tool_ImportCSV_text": "", + "Maintenance_Tool_ImportConfig_noti": "", "Maintenance_Tool_ImportPastedCSV": "", "Maintenance_Tool_ImportPastedCSV_noti_text": "", "Maintenance_Tool_ImportPastedCSV_text": "", + "Maintenance_Tool_ImportPastedConfig": "", + "Maintenance_Tool_ImportPastedConfig_noti_text": "", + "Maintenance_Tool_ImportPastedConfig_text": "", "Maintenance_Tool_arpscansw": "", "Maintenance_Tool_arpscansw_noti": "", "Maintenance_Tool_arpscansw_noti_text": "", diff --git a/front/php/templates/language/ca_ca.json b/front/php/templates/language/ca_ca.json index 2336a244..639d47a4 100755 --- a/front/php/templates/language/ca_ca.json +++ b/front/php/templates/language/ca_ca.json @@ -398,6 +398,8 @@ "Maintenance_Running_Version": "Versió instal·lada", "Maintenance_Status": "Estat", "Maintenance_Title": "Eines de manteniment", + "Maintenance_Tool_DownloadConfig": "", + "Maintenance_Tool_DownloadConfig_text": "", "Maintenance_Tool_ExportCSV": "CSV Exportació", "Maintenance_Tool_ExportCSV_noti": "CSV Exportació", "Maintenance_Tool_ExportCSV_noti_text": "Estàs segur que vols generar un fitxer CSV?", @@ -406,9 +408,13 @@ "Maintenance_Tool_ImportCSV_noti": "CSV Importació", "Maintenance_Tool_ImportCSV_noti_text": "Estàs segur que vols importar el fitxer CSV? Això sobreescriurà completament els dispositius de la seva base de dades.", "Maintenance_Tool_ImportCSV_text": "Abans d'utilitzar aquesta funció, fes una còpia de seguretat, si us plau. Importa un CSV (comma separated value) el fitxer que conté la llista dels dispositius que inclouen les relacions de Xarxa entre Nodes i dispositius connectats. Per fer-ho col·loca el CSV el fitxer anomenat devices.csv a la vostra /config carpeta.", + "Maintenance_Tool_ImportConfig_noti": "", "Maintenance_Tool_ImportPastedCSV": "Importació CSV (Paste)", "Maintenance_Tool_ImportPastedCSV_noti_text": "Estàs segur que vols importar el CSV copiat? Això sobreescriurà completament els dispositius de la base de dades.", "Maintenance_Tool_ImportPastedCSV_text": "Abans d'utilitzar aquesta funció, feu una còpia de seguretat. Importar un fitxer CSV (comma separated value) que contingui la llista de dispositius, incloent les relacions de xarxa entre els nodes i els dispositius connectats.", + "Maintenance_Tool_ImportPastedConfig": "", + "Maintenance_Tool_ImportPastedConfig_noti_text": "", + "Maintenance_Tool_ImportPastedConfig_text": "", "Maintenance_Tool_arpscansw": "Conmuta arp-Scan (on/off)", "Maintenance_Tool_arpscansw_noti": "Conmuta arp-Scan on or off", "Maintenance_Tool_arpscansw_noti_text": "Quan l'escàner ha estat canviat a off es queda off fins que és activat de bell nou.", @@ -744,4 +750,4 @@ "settings_update_item_warning": "Actualitza el valor sota. Sigues curós de seguir el format anterior. No hi ha validació.", "test_event_icon": "fa-vial-circle-check", "test_event_tooltip": "Deseu els canvis primer abans de comprovar la configuració." -} +} \ No newline at end of file diff --git a/front/php/templates/language/cs_cz.json b/front/php/templates/language/cs_cz.json index 33d41579..7a8c1cd7 100755 --- a/front/php/templates/language/cs_cz.json +++ b/front/php/templates/language/cs_cz.json @@ -398,6 +398,8 @@ "Maintenance_Running_Version": "", "Maintenance_Status": "", "Maintenance_Title": "", + "Maintenance_Tool_DownloadConfig": "", + "Maintenance_Tool_DownloadConfig_text": "", "Maintenance_Tool_ExportCSV": "", "Maintenance_Tool_ExportCSV_noti": "", "Maintenance_Tool_ExportCSV_noti_text": "", @@ -406,9 +408,13 @@ "Maintenance_Tool_ImportCSV_noti": "", "Maintenance_Tool_ImportCSV_noti_text": "", "Maintenance_Tool_ImportCSV_text": "", + "Maintenance_Tool_ImportConfig_noti": "", "Maintenance_Tool_ImportPastedCSV": "", "Maintenance_Tool_ImportPastedCSV_noti_text": "", "Maintenance_Tool_ImportPastedCSV_text": "", + "Maintenance_Tool_ImportPastedConfig": "", + "Maintenance_Tool_ImportPastedConfig_noti_text": "", + "Maintenance_Tool_ImportPastedConfig_text": "", "Maintenance_Tool_arpscansw": "", "Maintenance_Tool_arpscansw_noti": "", "Maintenance_Tool_arpscansw_noti_text": "", diff --git a/front/php/templates/language/de_de.json b/front/php/templates/language/de_de.json index 5824b4cb..be6b7518 100755 --- a/front/php/templates/language/de_de.json +++ b/front/php/templates/language/de_de.json @@ -424,6 +424,8 @@ "Maintenance_Running_Version": "Installierte Version", "Maintenance_Status": "Status", "Maintenance_Title": "Wartungswerkzeuge", + "Maintenance_Tool_DownloadConfig": "", + "Maintenance_Tool_DownloadConfig_text": "", "Maintenance_Tool_ExportCSV": "CSV Export", "Maintenance_Tool_ExportCSV_noti": "CSV Export", "Maintenance_Tool_ExportCSV_noti_text": "Sind Sie sich sicher, dass Sie die CSV-Datei erstellen wollen?", @@ -432,9 +434,13 @@ "Maintenance_Tool_ImportCSV_noti": "CSV Import", "Maintenance_Tool_ImportCSV_noti_text": "Sind Sie sich sicher, dass Sie die CSV-Datei importieren wollen? Dies wird alle Geräte in der Datenbank überschreiben.", "Maintenance_Tool_ImportCSV_text": "Machen Sie ein Backup, bevor Sie diese Funk­tion nutzen. Importiere eine CSV-Datei (comma separated values) mit einer Liste aller Geräte und deren Beziehungen zwischen Netzwerkknoten und verbundenen Geräten. Um dies zu tun platziere die devices.csv benannte CSV-Datei in deinen /config Ordner.", + "Maintenance_Tool_ImportConfig_noti": "", "Maintenance_Tool_ImportPastedCSV": "CSV-Import (Einfügen)", "Maintenance_Tool_ImportPastedCSV_noti_text": "", "Maintenance_Tool_ImportPastedCSV_text": "", + "Maintenance_Tool_ImportPastedConfig": "", + "Maintenance_Tool_ImportPastedConfig_noti_text": "", + "Maintenance_Tool_ImportPastedConfig_text": "", "Maintenance_Tool_arpscansw": "ARP-Scan umschalten (ein/aus)", "Maintenance_Tool_arpscansw_noti": "ARP-Scan ein- oder ausschalten", "Maintenance_Tool_arpscansw_noti_text": "Wenn der Scan aus ist, bleibt er so lange aus bis er wieder aktiviert wird.", @@ -825,4 +831,4 @@ "settings_update_item_warning": "", "test_event_icon": "", "test_event_tooltip": "Speichere die Änderungen, bevor Sie die Einstellungen testen." -} +} \ No newline at end of file diff --git a/front/php/templates/language/en_us.json b/front/php/templates/language/en_us.json index 4c871de2..8511e850 100755 --- a/front/php/templates/language/en_us.json +++ b/front/php/templates/language/en_us.json @@ -398,17 +398,23 @@ "Maintenance_Running_Version": "Installed version", "Maintenance_Status": "Status", "Maintenance_Title": "Maintenance tools", - "Maintenance_Tool_ExportCSV": "CSV Export", - "Maintenance_Tool_ExportCSV_noti": "CSV Export", + "Maintenance_Tool_DownloadConfig": "Settings Export", + "Maintenance_Tool_DownloadConfig_text": "Download a full backup of your Settings configuration stored in the app.conf file.", + "Maintenance_Tool_ExportCSV": "Devices Export (csv)", + "Maintenance_Tool_ExportCSV_noti": "Devices Export (csv)", "Maintenance_Tool_ExportCSV_noti_text": "Are you sure you want to generate a CSV file?", - "Maintenance_Tool_ExportCSV_text": "Generate a CSV (comma separated value) file containing the list of Devices including the Network relationships between Network Nodes and connected devices. You can also trigger this by accessing this URL your NetAlertX url/php/server/devices.php?action=ExportCSV or by enabling the CSV Backup plugin.", - "Maintenance_Tool_ImportCSV": "CSV Import", - "Maintenance_Tool_ImportCSV_noti": "CSV Import", + "Maintenance_Tool_ExportCSV_text": "Generate a CSV (comma separated value) file containing the list of Devices including the Network relationships between Network Nodes and connected devices. You can also trigger this by accessing this URL your_NetAlertX_url/php/server/devices.php?action=ExportCSV or by enabling the CSV Backup plugin.", + "Maintenance_Tool_ImportCSV": "Devices Import (csv)", + "Maintenance_Tool_ImportCSV_noti": "Devices Import (csv)", "Maintenance_Tool_ImportCSV_noti_text": "Are you sure you want to import the CSV file? This will completely overwrite the devices in your database.", "Maintenance_Tool_ImportCSV_text": "Before using this function, please make a backup. Import a CSV (comma separated value) file containing the list of Devices including the Network relationships between Network Nodes and connected devices. To do that place the CSV file named devices.csv into your /config folder.", - "Maintenance_Tool_ImportPastedCSV": "CSV Import (Paste)", + "Maintenance_Tool_ImportConfig_noti": "Settings Import (app.conf)", + "Maintenance_Tool_ImportPastedCSV": "Devices Import (csv) (paste)", "Maintenance_Tool_ImportPastedCSV_noti_text": "Are you sure you want to import the pasted CSV? This will completely overwrite the devices in your database.", "Maintenance_Tool_ImportPastedCSV_text": "Before using this function, please make a backup. Import a CSV (comma separated value) file containing the list of Devices including the Network relationships between Network Nodes and connected devices.", + "Maintenance_Tool_ImportPastedConfig": "Settings Import (paste)", + "Maintenance_Tool_ImportPastedConfig_noti_text": "Are you sure you want to import the pasted config settings? This will completely overwrite the app.conf file.", + "Maintenance_Tool_ImportPastedConfig_text": "Imports the app.conf file containing all the application Settings. You might want to download the current app.conf file first with the Settings Export.", "Maintenance_Tool_arpscansw": "Toggle arp-Scan (on/off)", "Maintenance_Tool_arpscansw_noti": "Toggle arp-Scan on or off", "Maintenance_Tool_arpscansw_noti_text": "When the scan has been switched off it remains off until it is activated again.", @@ -489,7 +495,7 @@ "Maintenance_themeselector_lable": "Select Skin", "Maintenance_themeselector_text": "The change takes place on the server side, so it affects all devices in use.", "Maintenance_version": "App updates", - "NETWORK_DEVICE_TYPES_description": "Which device types are allowed to be used as network devices in the Network view. The device type has to match exactly the Type setting on a specific device in Device details. Add it on teh Device via the + button. Do not remove existing types, only add new ones.", + "NETWORK_DEVICE_TYPES_description": "Which device types are allowed to be used as network devices in the Network view. The device type has to match exactly the Type setting on a specific device in Device details. Add it on the Device via the + button. Do not remove existing types, only add new ones.", "NETWORK_DEVICE_TYPES_name": "Network device types", "Navigation_About": "About", "Navigation_Devices": "Devices", diff --git a/front/php/templates/language/es_es.json b/front/php/templates/language/es_es.json index 319e8cd0..54875eb4 100755 --- a/front/php/templates/language/es_es.json +++ b/front/php/templates/language/es_es.json @@ -422,6 +422,8 @@ "Maintenance_Running_Version": "Versión instalada", "Maintenance_Status": "Situación", "Maintenance_Title": "Herramientas de mantenimiento", + "Maintenance_Tool_DownloadConfig": "", + "Maintenance_Tool_DownloadConfig_text": "", "Maintenance_Tool_ExportCSV": "Exportación CSV", "Maintenance_Tool_ExportCSV_noti": "Exportación CSV", "Maintenance_Tool_ExportCSV_noti_text": "¿Está seguro de que quiere generar un archivo CSV?", @@ -430,9 +432,13 @@ "Maintenance_Tool_ImportCSV_noti": "Importación CSV", "Maintenance_Tool_ImportCSV_noti_text": "¿Estás seguro de que quieres importar el archivo CSV? Esto sobrescribirá completamente los dispositivos en su base de datos.", "Maintenance_Tool_ImportCSV_text": "Antes de usar esta función, haga una copia de seguridad. Importe un archivo CSV (valor separado por comas) que contiene la lista de dispositivos, incluidas las relaciones de red entre nodos de red y dispositivos conectados. Para hacer eso, coloque el archivo CSV llamado devices.csv en su carpeta /config .", + "Maintenance_Tool_ImportConfig_noti": "", "Maintenance_Tool_ImportPastedCSV": "Importar CSV (Pegar)", "Maintenance_Tool_ImportPastedCSV_noti_text": "¿Seguro que desea importar el CSV pegado? Esto sobrescribirá completamente los dispositivos en su base de datos.", "Maintenance_Tool_ImportPastedCSV_text": "Antes de usar esta función, por favor haga una copia de seguridad. Importar un archivo CSV (valor separado por comas) que contiene la lista de Dispositivos incluyendo las relaciones de red entre los Nodos de red y los dispositivos conectados.", + "Maintenance_Tool_ImportPastedConfig": "", + "Maintenance_Tool_ImportPastedConfig_noti_text": "", + "Maintenance_Tool_ImportPastedConfig_text": "", "Maintenance_Tool_arpscansw": "Activar arp-scan (on/off)", "Maintenance_Tool_arpscansw_noti": "Activar arp-scan on or off", "Maintenance_Tool_arpscansw_noti_text": "Cuando el escaneo se ha apagado, permanece apagado hasta que se active nuevamente.", @@ -823,4 +829,4 @@ "settings_update_item_warning": "Actualice el valor a continuación. Tenga cuidado de seguir el formato anterior. O la validación no se realiza.", "test_event_icon": "fa-vial-circle-check", "test_event_tooltip": "Guarda tus cambios antes de probar nuevos ajustes." -} +} \ No newline at end of file diff --git a/front/php/templates/language/fr_fr.json b/front/php/templates/language/fr_fr.json index a63bff5b..8e9a7542 100755 --- a/front/php/templates/language/fr_fr.json +++ b/front/php/templates/language/fr_fr.json @@ -398,6 +398,8 @@ "Maintenance_Running_Version": "Version installée", "Maintenance_Status": "État", "Maintenance_Title": "Outils de maintenance", + "Maintenance_Tool_DownloadConfig": "", + "Maintenance_Tool_DownloadConfig_text": "", "Maintenance_Tool_ExportCSV": "Export en CSV", "Maintenance_Tool_ExportCSV_noti": "Export en CSV", "Maintenance_Tool_ExportCSV_noti_text": "Êtes-vous sûr de vouloir générer un fichier CSV ?", @@ -406,9 +408,13 @@ "Maintenance_Tool_ImportCSV_noti": "Import CSV", "Maintenance_Tool_ImportCSV_noti_text": "Êtes-vous sûr de vouloir importer le fichier CSV ? Cela écrasera complètement les appareils de votre base de données.", "Maintenance_Tool_ImportCSV_text": "Avant d'utiliser cette fonctionnalité, il est recommandé de faire une sauvegarde. La fonctionnalité importe un fichier CSV (valeurs séparées par des virgules) contenant la liste des appareils, dont les liens réseau entre les nœuds du réseau et ces appareils. Pour cela, placer un fichier CSV nommé devices.csv dans votre répertoire /config.", + "Maintenance_Tool_ImportConfig_noti": "", "Maintenance_Tool_ImportPastedCSV": "Import CSV (coller)", "Maintenance_Tool_ImportPastedCSV_noti_text": "Êtes-vous sûr de vouloir importer les CSV copié ? Cela va complètement remplacer les appareils de votre base de données.", "Maintenance_Tool_ImportPastedCSV_text": "Avant d'utiliser cette fonctionnalité, il est recommandé de faire une sauvegarde. Importe un fichier CSV (valeurs séparées par des virgules) contenant la liste des appareils, dont les liens réseaux entre les nœuds du réseau et les appareils connectés.", + "Maintenance_Tool_ImportPastedConfig": "", + "Maintenance_Tool_ImportPastedConfig_noti_text": "", + "Maintenance_Tool_ImportPastedConfig_text": "", "Maintenance_Tool_arpscansw": "Basculer l'arp-Scan (activé/désactivé)", "Maintenance_Tool_arpscansw_noti": "Activer ou désactiver l'arp-Scan", "Maintenance_Tool_arpscansw_noti_text": "Une fois le scan désactivé, il reste désactivé jusqu'à ce qu'il soit réactivé.", @@ -744,4 +750,4 @@ "settings_update_item_warning": "Mettre à jour la valeur ci-dessous. Veillez à bien suivre le même format qu'auparavant. Il n'y a pas de pas de contrôle.", "test_event_icon": "fa-vial-circle-check", "test_event_tooltip": "Enregistrer d'abord vos modifications avant de tester vôtre paramétrage." -} +} \ No newline at end of file diff --git a/front/php/templates/language/it_it.json b/front/php/templates/language/it_it.json index 8c33c0c8..1a031d1e 100755 --- a/front/php/templates/language/it_it.json +++ b/front/php/templates/language/it_it.json @@ -398,6 +398,8 @@ "Maintenance_Running_Version": "Versione installata", "Maintenance_Status": "Stato", "Maintenance_Title": "Strumenti di manutenzione", + "Maintenance_Tool_DownloadConfig": "", + "Maintenance_Tool_DownloadConfig_text": "", "Maintenance_Tool_ExportCSV": "Esporta CSV", "Maintenance_Tool_ExportCSV_noti": "Esporta CSV", "Maintenance_Tool_ExportCSV_noti_text": "Sei sicuro di voler generare un file CSV?", @@ -406,9 +408,13 @@ "Maintenance_Tool_ImportCSV_noti": "Importa CSV", "Maintenance_Tool_ImportCSV_noti_text": "Sei sicuro di voler importare il file CSV? Questa operazione sovrascriverà tutti i dispositivi presenti nel database.", "Maintenance_Tool_ImportCSV_text": "Prima di utilizzare questa funzione, esegui un backup. Importa un file CSV (comma separated value) contenente la lista dei dispositivi incluse le relazioni di rete tra i nodi di rete e i dispositivi connessi. Per far ciò posiziona il file CSV denominato devices.csv nella cartella /config.", + "Maintenance_Tool_ImportConfig_noti": "", "Maintenance_Tool_ImportPastedCSV": "Importazione CSV (incolla)", "Maintenance_Tool_ImportPastedCSV_noti_text": "Sei sicuro di voler importare il CSV incollato? Questo sovrascriverà completamente i dispositivi nel tuo database.", "Maintenance_Tool_ImportPastedCSV_text": "Prima di utilizzare questa funzione, esegui un backup. Importa un file CSV (valori separati da virgole) contenente l'elenco dei dispositivi, comprese le relazioni di rete tra i nodi di rete e i dispositivi collegati.", + "Maintenance_Tool_ImportPastedConfig": "", + "Maintenance_Tool_ImportPastedConfig_noti_text": "", + "Maintenance_Tool_ImportPastedConfig_text": "", "Maintenance_Tool_arpscansw": "Attiva/disattiva arp-Scan", "Maintenance_Tool_arpscansw_noti": "Attiva o disattiva arp-Scan", "Maintenance_Tool_arpscansw_noti_text": "Una volta disattivata la scansione rimane disattivata finché non viene nuovamente attivata.", @@ -744,4 +750,4 @@ "settings_update_item_warning": "Aggiorna il valore qui sotto. Fai attenzione a seguire il formato precedente. La convalida non viene eseguita.", "test_event_icon": "fa-vial-circle-check", "test_event_tooltip": "Salva le modifiche prima di provare le nuove impostazioni." -} +} \ No newline at end of file diff --git a/front/php/templates/language/nb_no.json b/front/php/templates/language/nb_no.json index d2aaeb64..2fe6a0ba 100755 --- a/front/php/templates/language/nb_no.json +++ b/front/php/templates/language/nb_no.json @@ -398,6 +398,8 @@ "Maintenance_Running_Version": "Installert versjon", "Maintenance_Status": "Status", "Maintenance_Title": "Vedlikeholdsverktøy", + "Maintenance_Tool_DownloadConfig": "", + "Maintenance_Tool_DownloadConfig_text": "", "Maintenance_Tool_ExportCSV": "Eksporter CSV", "Maintenance_Tool_ExportCSV_noti": "Eksporter CSV", "Maintenance_Tool_ExportCSV_noti_text": "Er du sikker på at du vil generere en CSV-fil?", @@ -406,9 +408,13 @@ "Maintenance_Tool_ImportCSV_noti": "Importer CSV", "Maintenance_Tool_ImportCSV_noti_text": "Er du sikker på at du vil importere CSV-filen? Dette vil fullstendig overskrive enhetene i databasen din.", "Maintenance_Tool_ImportCSV_text": "Før du bruker denne funksjonen, vennligst ta en sikkerhetskopi. Importer en CSV-fil (kommaseparert verdi) som inneholder listen over enheter, inkludert nettverksrelasjoner mellom nettverksnoder og tilkoblede enheter. For å gjøre det, plasser CSV-filen med navnet devices.csv i mappen /config.", + "Maintenance_Tool_ImportConfig_noti": "", "Maintenance_Tool_ImportPastedCSV": "", "Maintenance_Tool_ImportPastedCSV_noti_text": "", "Maintenance_Tool_ImportPastedCSV_text": "", + "Maintenance_Tool_ImportPastedConfig": "", + "Maintenance_Tool_ImportPastedConfig_noti_text": "", + "Maintenance_Tool_ImportPastedConfig_text": "", "Maintenance_Tool_arpscansw": "Slå arp-Scan (på/av)", "Maintenance_Tool_arpscansw_noti": "Slå arp-Scan på eller av", "Maintenance_Tool_arpscansw_noti_text": "Når skanningen er slått av, forblir den slått av til den aktiveres igjen.", @@ -744,4 +750,4 @@ "settings_update_item_warning": "Oppdater verdien nedenfor. Pass på å følge forrige format. Validering etterpå utføres ikke.", "test_event_icon": "fa-vial-circle-check", "test_event_tooltip": "Lagre endringene først, før du tester innstillingene dine." -} +} \ No newline at end of file diff --git a/front/php/templates/language/pl_pl.json b/front/php/templates/language/pl_pl.json index b7d515bc..fbdcbfb7 100755 --- a/front/php/templates/language/pl_pl.json +++ b/front/php/templates/language/pl_pl.json @@ -398,6 +398,8 @@ "Maintenance_Running_Version": "Zainstalowana wersja", "Maintenance_Status": "Status", "Maintenance_Title": "Narzędzia konserwacyjne", + "Maintenance_Tool_DownloadConfig": "", + "Maintenance_Tool_DownloadConfig_text": "", "Maintenance_Tool_ExportCSV": "Eksport CSV", "Maintenance_Tool_ExportCSV_noti": "Eksport CSV", "Maintenance_Tool_ExportCSV_noti_text": "Jesteś pewien, że chcesz wygenerować plik CSV?", @@ -406,9 +408,13 @@ "Maintenance_Tool_ImportCSV_noti": "Import CSV", "Maintenance_Tool_ImportCSV_noti_text": "Jesteś pewien że chcesz zaimportować plik CSV? Nadpisze to wszystkie urządzenie w bazie danych.", "Maintenance_Tool_ImportCSV_text": "Przed użyciem tej funkcji, wykonaj proszę kopię zapasową. Zaimportuj plik CSV (wartości oddzielone przecinkami) zawierający listę Urządzeń, w tym Relacji Sieci między sieciowymi węzłami i podłączonymi urządzeniami. By to zrobić umieść plik CSV nazwany devices.csv do twojego folderu /config.", + "Maintenance_Tool_ImportConfig_noti": "", "Maintenance_Tool_ImportPastedCSV": "", "Maintenance_Tool_ImportPastedCSV_noti_text": "", "Maintenance_Tool_ImportPastedCSV_text": "", + "Maintenance_Tool_ImportPastedConfig": "", + "Maintenance_Tool_ImportPastedConfig_noti_text": "", + "Maintenance_Tool_ImportPastedConfig_text": "", "Maintenance_Tool_arpscansw": "Przełącz Skan-arp (wł/wył)", "Maintenance_Tool_arpscansw_noti": "Przełącz Skan-arp na włączony lub wyłączony", "Maintenance_Tool_arpscansw_noti_text": "Kiedy skan zostanie przełączony na wył zostaje wyłączony do czasu ponownej aktywacji.", @@ -744,4 +750,4 @@ "settings_update_item_warning": "Zaktualizuj poniższą wartość. Zachowaj ostrożność i postępuj zgodnie z poprzednim formatem. Walidacja nie jest wykonywana.", "test_event_icon": "fa-vial-circle-check", "test_event_tooltip": "Zapisz zmiany zanim będziesz testować swoje ustawienia." -} +} \ No newline at end of file diff --git a/front/php/templates/language/pt_br.json b/front/php/templates/language/pt_br.json index 728110b1..63fef608 100755 --- a/front/php/templates/language/pt_br.json +++ b/front/php/templates/language/pt_br.json @@ -398,6 +398,8 @@ "Maintenance_Running_Version": "", "Maintenance_Status": "", "Maintenance_Title": "", + "Maintenance_Tool_DownloadConfig": "", + "Maintenance_Tool_DownloadConfig_text": "", "Maintenance_Tool_ExportCSV": "", "Maintenance_Tool_ExportCSV_noti": "", "Maintenance_Tool_ExportCSV_noti_text": "", @@ -406,9 +408,13 @@ "Maintenance_Tool_ImportCSV_noti": "", "Maintenance_Tool_ImportCSV_noti_text": "", "Maintenance_Tool_ImportCSV_text": "", + "Maintenance_Tool_ImportConfig_noti": "", "Maintenance_Tool_ImportPastedCSV": "", "Maintenance_Tool_ImportPastedCSV_noti_text": "", "Maintenance_Tool_ImportPastedCSV_text": "", + "Maintenance_Tool_ImportPastedConfig": "", + "Maintenance_Tool_ImportPastedConfig_noti_text": "", + "Maintenance_Tool_ImportPastedConfig_text": "", "Maintenance_Tool_arpscansw": "", "Maintenance_Tool_arpscansw_noti": "", "Maintenance_Tool_arpscansw_noti_text": "", @@ -744,4 +750,4 @@ "settings_update_item_warning": "", "test_event_icon": "", "test_event_tooltip": "" -} +} \ No newline at end of file diff --git a/front/php/templates/language/ru_ru.json b/front/php/templates/language/ru_ru.json index 0e99927e..fc1a2d29 100755 --- a/front/php/templates/language/ru_ru.json +++ b/front/php/templates/language/ru_ru.json @@ -398,6 +398,8 @@ "Maintenance_Running_Version": "Установленная версия", "Maintenance_Status": "Статус", "Maintenance_Title": "Инструменты обслуживания", + "Maintenance_Tool_DownloadConfig": "", + "Maintenance_Tool_DownloadConfig_text": "", "Maintenance_Tool_ExportCSV": "Экспорт CSV", "Maintenance_Tool_ExportCSV_noti": "Экспорт CSV", "Maintenance_Tool_ExportCSV_noti_text": "Вы уверены, что хотите создать файл CSV?", @@ -406,9 +408,13 @@ "Maintenance_Tool_ImportCSV_noti": "Импорт CSV", "Maintenance_Tool_ImportCSV_noti_text": "Вы уверены, что хотите импортировать файл CSV? Это полностью перезапишет устройства в вашей базе данных.", "Maintenance_Tool_ImportCSV_text": "Прежде чем использовать эту функцию, сделайте резервную копию. Импортируйте файл CSV (значения, разделенные запятыми), содержащий список устройств, включая сетевые отношения между сетевыми узлами и подключенными устройствами. Для этого поместите файл CSV с именем devices.csv в папку /config.", + "Maintenance_Tool_ImportConfig_noti": "", "Maintenance_Tool_ImportPastedCSV": "Импорт CSV (вставка)", "Maintenance_Tool_ImportPastedCSV_noti_text": "Вы уверены, что хотите импортировать вставленный CSV? Это полностью перезапишет устройства в вашей базе данных.", "Maintenance_Tool_ImportPastedCSV_text": "Перед использованием этой функции, пожалуйста, создайте резервную копию. Импортируйте файл формата CSV (значения, разделенные запятыми), содержащий список устройств, включая сетевые связи между узлами сети и подключенными устройствами.", + "Maintenance_Tool_ImportPastedConfig": "", + "Maintenance_Tool_ImportPastedConfig_noti_text": "", + "Maintenance_Tool_ImportPastedConfig_text": "", "Maintenance_Tool_arpscansw": "Переключить arp-скан (ВКЛ./ВЫКЛ.)", "Maintenance_Tool_arpscansw_noti": "Включить или выключить arp-скан", "Maintenance_Tool_arpscansw_noti_text": "Когда сканирование было выключено, оно остается выключенным до тех пор, пока не будет активировано снова.", @@ -744,4 +750,4 @@ "settings_update_item_warning": "Обновить значение ниже. Будьте осторожны, следуя предыдущему формату. Проверка не выполняется.", "test_event_icon": "fa-vial-circle-check", "test_event_tooltip": "Сначала сохраните изменения, прежде чем проверять настройки." -} +} \ No newline at end of file diff --git a/front/php/templates/language/tr_tr.json b/front/php/templates/language/tr_tr.json index 9eca75a6..4b887197 100755 --- a/front/php/templates/language/tr_tr.json +++ b/front/php/templates/language/tr_tr.json @@ -398,6 +398,8 @@ "Maintenance_Running_Version": "Yüklenmiş sürüm", "Maintenance_Status": "Durum", "Maintenance_Title": "", + "Maintenance_Tool_DownloadConfig": "", + "Maintenance_Tool_DownloadConfig_text": "", "Maintenance_Tool_ExportCSV": "", "Maintenance_Tool_ExportCSV_noti": "", "Maintenance_Tool_ExportCSV_noti_text": "Bir CSV dosyası oluşturmak istediğinize emin misiniz?", @@ -406,9 +408,13 @@ "Maintenance_Tool_ImportCSV_noti": "", "Maintenance_Tool_ImportCSV_noti_text": "", "Maintenance_Tool_ImportCSV_text": "", + "Maintenance_Tool_ImportConfig_noti": "", "Maintenance_Tool_ImportPastedCSV": "", "Maintenance_Tool_ImportPastedCSV_noti_text": "", "Maintenance_Tool_ImportPastedCSV_text": "", + "Maintenance_Tool_ImportPastedConfig": "", + "Maintenance_Tool_ImportPastedConfig_noti_text": "", + "Maintenance_Tool_ImportPastedConfig_text": "", "Maintenance_Tool_arpscansw": "", "Maintenance_Tool_arpscansw_noti": "", "Maintenance_Tool_arpscansw_noti_text": "", diff --git a/front/php/templates/language/uk_ua.json b/front/php/templates/language/uk_ua.json index 678ed37e..88886d01 100755 --- a/front/php/templates/language/uk_ua.json +++ b/front/php/templates/language/uk_ua.json @@ -398,6 +398,8 @@ "Maintenance_Running_Version": "Встановлена версія", "Maintenance_Status": "Статус", "Maintenance_Title": "Інструменти обслуговування", + "Maintenance_Tool_DownloadConfig": "", + "Maintenance_Tool_DownloadConfig_text": "", "Maintenance_Tool_ExportCSV": "Експорт CSV", "Maintenance_Tool_ExportCSV_noti": "Експорт CSV", "Maintenance_Tool_ExportCSV_noti_text": "Ви впевнені, що хочете створити файл CSV?", @@ -406,9 +408,13 @@ "Maintenance_Tool_ImportCSV_noti": "Імпорт CSV", "Maintenance_Tool_ImportCSV_noti_text": "Ви впевнені, що бажаєте імпортувати файл CSV? Це повністю перезапише пристрої у вашій базі даних.", "Maintenance_Tool_ImportCSV_text": "Перед використанням цієї функції зробіть резервну копію. Імпортуйте файл CSV (значення, розділене комами), який містить список пристроїв, включаючи мережеві зв’язки між мережевими вузлами та підключеними пристроями. Для цього помістіть файл CSV під назвою devices.csv у папку /config.", + "Maintenance_Tool_ImportConfig_noti": "", "Maintenance_Tool_ImportPastedCSV": "Імпорт CSV (вставити)", "Maintenance_Tool_ImportPastedCSV_noti_text": "Ви впевнені, що бажаєте імпортувати вставлений CSV? Це повністю перезапише пристрої у вашій базі даних.", "Maintenance_Tool_ImportPastedCSV_text": "Перед використанням цієї функції зробіть резервну копію. Імпортуйте файл CSV (значення, розділене комами), що містить список пристроїв, включаючи мережеві зв’язки між мережевими вузлами та підключеним пристроєм.", + "Maintenance_Tool_ImportPastedConfig": "", + "Maintenance_Tool_ImportPastedConfig_noti_text": "", + "Maintenance_Tool_ImportPastedConfig_text": "", "Maintenance_Tool_arpscansw": "Перемикач arp-сканування (увімк./вимк.)", "Maintenance_Tool_arpscansw_noti": "Увімкніть або вимкніть arp-Scan", "Maintenance_Tool_arpscansw_noti_text": "Коли сканування було вимкнено, воно залишається вимкненим, доки не буде активовано знову.", @@ -744,4 +750,4 @@ "settings_update_item_warning": "Оновіть значення нижче. Слідкуйте за попереднім форматом. Перевірка не виконана.", "test_event_icon": "fa-vial-circle- check", "test_event_tooltip": "Перш ніж перевіряти налаштування, збережіть зміни." -} +} \ No newline at end of file diff --git a/front/php/templates/language/zh_cn.json b/front/php/templates/language/zh_cn.json index ad00bc25..353b84ce 100755 --- a/front/php/templates/language/zh_cn.json +++ b/front/php/templates/language/zh_cn.json @@ -398,6 +398,8 @@ "Maintenance_Running_Version": "安装版本", "Maintenance_Status": "状态", "Maintenance_Title": "维护工具", + "Maintenance_Tool_DownloadConfig": "", + "Maintenance_Tool_DownloadConfig_text": "", "Maintenance_Tool_ExportCSV": "CSV 导出", "Maintenance_Tool_ExportCSV_noti": "CSV 导出", "Maintenance_Tool_ExportCSV_noti_text": "您确定要生成 CSV 文件吗?", @@ -406,9 +408,13 @@ "Maintenance_Tool_ImportCSV_noti": "CSV 导入", "Maintenance_Tool_ImportCSV_noti_text": "您确定要导入 CSV 文件吗?这将完全覆盖数据库中的设备。", "Maintenance_Tool_ImportCSV_text": "在使用此功能之前,请先备份。导入一个 CSV(逗号分隔值)文件,其中包含设备列表,包括网络节点和连接设备之间的网络关系。为此,请将名为 devices.csv 的 CSV 文件放入您的 /config 文件夹中。", + "Maintenance_Tool_ImportConfig_noti": "", "Maintenance_Tool_ImportPastedCSV": "CSV 导入(粘贴)", "Maintenance_Tool_ImportPastedCSV_noti_text": "您确定要导入粘贴的 CSV 吗?这将完全覆盖数据库中的设备。", "Maintenance_Tool_ImportPastedCSV_text": "使用此功能前,请先备份。导入一个包含设备列表(包括网络节点和所连接设备之间的网络关系)的 CSV(逗号分隔值)文件。", + "Maintenance_Tool_ImportPastedConfig": "", + "Maintenance_Tool_ImportPastedConfig_noti_text": "", + "Maintenance_Tool_ImportPastedConfig_text": "", "Maintenance_Tool_arpscansw": "切换 arp 扫描(开/关)", "Maintenance_Tool_arpscansw_noti": "打开或关闭 arp 扫描", "Maintenance_Tool_arpscansw_noti_text": "当扫描关闭时,它会保持关闭状态,直到再次激活为止。", @@ -744,4 +750,4 @@ "settings_update_item_warning": "更新下面的值。请注意遵循先前的格式。未执行验证。", "test_event_icon": "", "test_event_tooltip": "在测试设置之前,请先保存更改。" -} +} \ No newline at end of file