mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
Merge branch 'main' of https://github.com/leiweibau/Pi.Alert
This commit is contained in:
@@ -1,7 +1,32 @@
|
|||||||
cp pialert.conf pialert.conf.bak
|
#!/bin/sh
|
||||||
|
PIA_CONF_FILE='pialert.conf'
|
||||||
PIA_PASS=$1
|
PIA_PASS=$1
|
||||||
echo "The password '$1' is hashed"
|
echo "Check of key PIALERT_WEB_PROTECTION exists:"
|
||||||
PIA_PASS_HASH=$(echo -n $PIA_PASS | sha256sum | awk '{print $1}')
|
CHECK_PROT=$(grep "PIALERT_WEB_PROTECTION" $PIA_CONF_FILE | wc -l)
|
||||||
echo "The hashed password is: $PIA_PASS_HASH"
|
if [ $CHECK_PROT -eq 0 ]
|
||||||
sed -i "/PIALERT_WEB_PASSWORD/c\PIALERT_WEB_PASSWORD = '$PIA_PASS_HASH'" pialert.conf
|
then
|
||||||
echo "The hash was saved in the configuration file"
|
cp $PIA_CONF_FILE $PIA_CONF_FILE.bak1
|
||||||
|
echo " Key not found. Key 'PIALERT_WEB_PROTECTION' will be created."
|
||||||
|
echo " Check Config after the script is finished."
|
||||||
|
sed -i "/^VENDORS_DB.*/a PIALERT_WEB_PROTECTION = False" $PIA_CONF_FILE > pialert.tmp
|
||||||
|
else
|
||||||
|
echo " Key exists. Nothing to do."
|
||||||
|
fi
|
||||||
|
echo ""
|
||||||
|
echo "Check of key PIALERT_WEB_PASSWORD exists:"
|
||||||
|
CHECK_PWD=$(grep "PIALERT_WEB_PASSWORD" $PIA_CONF_FILE | wc -l)
|
||||||
|
if [ $CHECK_PWD -eq 0 ]
|
||||||
|
then
|
||||||
|
cp $PIA_CONF_FILE $PIA_CONF_FILE.bak2
|
||||||
|
echo " Key not found. Key 'PIALERT_WEB_PASSWORD' will be created."
|
||||||
|
echo " Check Config after the script is finished."
|
||||||
|
echo " If the key is just created, please run the script again to set a new password".
|
||||||
|
sed -i "/^PIALERT_WEB_PROTECTION.*/a PIALERT_WEB_PASSWORD = '8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92'" $PIA_CONF_FILE
|
||||||
|
else
|
||||||
|
echo " The password '$1' is hashed"
|
||||||
|
PIA_PASS_HASH=$(echo -n $PIA_PASS | sha256sum | awk '{print $1}')
|
||||||
|
echo " The hashed password is:"
|
||||||
|
echo " $PIA_PASS_HASH"
|
||||||
|
sed -i "/PIALERT_WEB_PASSWORD/c\PIALERT_WEB_PASSWORD = '$PIA_PASS_HASH'" $PIA_CONF_FILE
|
||||||
|
echo " The hash was saved in the configuration file"
|
||||||
|
fi
|
||||||
|
|||||||
@@ -664,6 +664,27 @@ input[type="password"]::-webkit-caps-lock-indicator {
|
|||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nav-tabs-custom > .nav-tabs > li:hover > a, .nav-tabs-custom > .nav-tabs > li.active:hover > a {
|
||||||
|
background-color: #272c30;
|
||||||
|
color: #bec5cb;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-tabs-custom > .nav-tabs > li.active > a, .nav-tabs-custom > .nav-tabs > li.active:hover > a {
|
||||||
|
border-left-color: #30383f;
|
||||||
|
border-right-color: #30383f;
|
||||||
|
background-color: #272c30;
|
||||||
|
color: #bec5cb;
|
||||||
|
}
|
||||||
|
.nav-tabs-custom > .nav-tabs {
|
||||||
|
background-color: #353c42;
|
||||||
|
}
|
||||||
|
.nav-tabs-custom .tab-content {
|
||||||
|
background-color: #272c30;
|
||||||
|
}
|
||||||
|
.top_small_box_gray_text {
|
||||||
|
color: white !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* remove white border that appears on mobile screen sizes */
|
/* remove white border that appears on mobile screen sizes */
|
||||||
.box-body {
|
.box-body {
|
||||||
border: 0px;
|
border: 0px;
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ $config_file_lines_bypass = array_values(preg_grep('/^PIALERT_WEB_PROTECTION\s.*
|
|||||||
$protection_line = explode("=", $config_file_lines_bypass[0]);
|
$protection_line = explode("=", $config_file_lines_bypass[0]);
|
||||||
$Pia_WebProtection = strtolower(trim($protection_line[1]));
|
$Pia_WebProtection = strtolower(trim($protection_line[1]));
|
||||||
|
|
||||||
if ($Pia_WebProtection == 'false')
|
if ($Pia_WebProtection != 'true')
|
||||||
{
|
{
|
||||||
header('Location: /pialert/devices.php');
|
header('Location: /pialert/devices.php');
|
||||||
$_SESSION["login"] = 1;
|
$_SESSION["login"] = 1;
|
||||||
|
|||||||
@@ -214,7 +214,6 @@ if (submit && isset($_POST['langselector_set'])) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="nav-tabs-custom">
|
<div class="nav-tabs-custom">
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs">
|
||||||
<li class="active"><a href="#tab_Settings" data-toggle="tab"><?php echo $pia_lang['Maintenance_Tools_Tab_Settings'];?></a></li>
|
<li class="active"><a href="#tab_Settings" data-toggle="tab"><?php echo $pia_lang['Maintenance_Tools_Tab_Settings'];?></a></li>
|
||||||
@@ -311,6 +310,14 @@ if (submit && isset($_POST['langselector_set'])) {
|
|||||||
</div>
|
</div>
|
||||||
<div class="db_tools_table_cell_b"><?php echo $pia_lang['Maintenance_Tool_del_allevents_text'];?></div>
|
<div class="db_tools_table_cell_b"><?php echo $pia_lang['Maintenance_Tool_del_allevents_text'];?></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="db_info_table_row">
|
||||||
|
<div class="db_tools_table_cell_a" style="">
|
||||||
|
<button type="button" class="btn btn-default pa-btn pa-btn-delete bg-red dbtools-button" id="btnDeleteActHistory" onclick="askDeleteActHistory()"><?php echo $pia_lang['Maintenance_Tool_del_ActHistory'];?></button>
|
||||||
|
</div>
|
||||||
|
<div class="db_tools_table_cell_b"><?php echo $pia_lang['Maintenance_Tool_del_ActHistory_text'];?></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane" id="tab_BackupRestore">
|
<div class="tab-pane" id="tab_BackupRestore">
|
||||||
@@ -338,8 +345,6 @@ if (submit && isset($_POST['langselector_set'])) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div style="width: 100%; height: 20px;"></div>
|
<div style="width: 100%; height: 20px;"></div>
|
||||||
<!-- ----------------------------------------------------------------------- -->
|
<!-- ----------------------------------------------------------------------- -->
|
||||||
|
|
||||||
@@ -354,7 +359,6 @@ if (submit && isset($_POST['langselector_set'])) {
|
|||||||
require 'php/templates/footer.php';
|
require 'php/templates/footer.php';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
// delete devices with emty macs
|
// delete devices with emty macs
|
||||||
@@ -413,6 +417,20 @@ function deleteEvents()
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// delete Hostory
|
||||||
|
function askDeleteActHistory () {
|
||||||
|
// Ask
|
||||||
|
showModalWarning('<?php echo $pia_lang['Maintenance_Tool_del_ActHistory_noti'];?>', '<?php echo $pia_lang['Maintenance_Tool_del_ActHistory_noti_text'];?>',
|
||||||
|
'Cancel', 'Delete', 'deleteActHistory');
|
||||||
|
}
|
||||||
|
function deleteActHistory()
|
||||||
|
{
|
||||||
|
// Execute
|
||||||
|
$.get('php/server/devices.php?action=deleteActHistory', function(msg) {
|
||||||
|
showMessage (msg);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// Backup DB to Archive
|
// Backup DB to Archive
|
||||||
function askPiaBackupDBtoArchive () {
|
function askPiaBackupDBtoArchive () {
|
||||||
// Ask
|
// Ask
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ if (strlen($pia_lang_selected) == 0) {$pia_lang_selected = 'en_us';}
|
|||||||
case 'runScan1min': runScan1min(); break;
|
case 'runScan1min': runScan1min(); break;
|
||||||
case 'deleteUnknownDevices': deleteUnknownDevices(); break;
|
case 'deleteUnknownDevices': deleteUnknownDevices(); break;
|
||||||
case 'deleteEvents': deleteEvents(); break;
|
case 'deleteEvents': deleteEvents(); break;
|
||||||
|
case 'deleteActHistory': deleteActHistory(); break;
|
||||||
case 'PiaBackupDBtoArchive': PiaBackupDBtoArchive(); break;
|
case 'PiaBackupDBtoArchive': PiaBackupDBtoArchive(); break;
|
||||||
case 'PiaRestoreDBfromArchive': PiaRestoreDBfromArchive(); break;
|
case 'PiaRestoreDBfromArchive': PiaRestoreDBfromArchive(); break;
|
||||||
case 'PiaPurgeDBBackups': PiaPurgeDBBackups(); break;
|
case 'PiaPurgeDBBackups': PiaPurgeDBBackups(); break;
|
||||||
@@ -272,6 +273,26 @@ function deleteEvents() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// Delete History
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
function deleteActHistory() {
|
||||||
|
global $db;
|
||||||
|
global $pia_lang;
|
||||||
|
|
||||||
|
// sql
|
||||||
|
$sql = 'DELETE FROM Online_History';
|
||||||
|
// execute sql
|
||||||
|
$result = $db->query($sql);
|
||||||
|
|
||||||
|
// check result
|
||||||
|
if ($result == TRUE) {
|
||||||
|
echo $pia_lang['BackDevices_DBTools_DelActHistory'];
|
||||||
|
} else {
|
||||||
|
echo $pia_lang['BackDevices_DBTools_DelActHistoryError']."\n\n$sql \n\n". $db->lastErrorMsg();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// Backup DB to Archiv
|
// Backup DB to Archiv
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
@@ -358,7 +379,7 @@ function PiaPurgeDBBackups() {
|
|||||||
echo $pia_lang['BackDevices_DBTools_Purge'];
|
echo $pia_lang['BackDevices_DBTools_Purge'];
|
||||||
echo("<meta http-equiv='refresh' content='1'>");
|
echo("<meta http-equiv='refresh' content='1'>");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// Toggle Dark/Light Themes
|
// Toggle Dark/Light Themes
|
||||||
|
|||||||
@@ -220,31 +220,37 @@ $pia_lang['Maintenance_Tool_purgebackup'] = 'Sicherungen aufräumen';
|
|||||||
$pia_lang['Maintenance_Tool_purgebackup_text'] = 'Es werden, bis auf die letzten 3 Backups, alle übrigen Backups gelöscht.';
|
$pia_lang['Maintenance_Tool_purgebackup_text'] = 'Es werden, bis auf die letzten 3 Backups, alle übrigen Backups gelöscht.';
|
||||||
$pia_lang['Maintenance_Tool_purgebackup_noti'] = 'Sicherungen aufräumen';
|
$pia_lang['Maintenance_Tool_purgebackup_noti'] = 'Sicherungen aufräumen';
|
||||||
$pia_lang['Maintenance_Tool_purgebackup_noti_text'] = 'Sind Sie sicher, alle Backups, bis auf die letzten 3 löschen möchten?';
|
$pia_lang['Maintenance_Tool_purgebackup_noti_text'] = 'Sind Sie sicher, alle Backups, bis auf die letzten 3 löschen möchten?';
|
||||||
|
$pia_lang['Maintenance_Tool_del_ActHistory'] = 'Löschen der Netzwerkaktivität';
|
||||||
|
$pia_lang['Maintenance_Tool_del_ActHistory_text'] = 'Der Graph für die Netzwerkaktivität wird zurückgesetzt. Hierbei werden die Events nicht beeinflusst.';
|
||||||
|
$pia_lang['Maintenance_Tool_del_ActHistory_noti'] = 'Netzwerkaktivität löschen';
|
||||||
|
$pia_lang['Maintenance_Tool_del_ActHistory_noti_text'] = 'Sind Sie sicher, dass Sie die Netzwerkaktivität zurücksetzen möchten?';
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
// Maintenance Page
|
// Maintenance Page
|
||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
$pia_lang['BackDevices_Arpscan_disabled'] = 'Automatischer Arp-Scan deaktiviert';
|
$pia_lang['BackDevices_Arpscan_disabled'] = 'Automatischer Arp-Scan deaktiviert.';
|
||||||
$pia_lang['BackDevices_Arpscan_enabled'] = 'Automatischer Arp-Scan aktiviert';
|
$pia_lang['BackDevices_Arpscan_enabled'] = 'Automatischer Arp-Scan aktiviert.';
|
||||||
$pia_lang['BackDevices_darkmode_disabled'] = 'Heller Modus aktiviert';
|
$pia_lang['BackDevices_darkmode_disabled'] = 'Heller Modus aktiviert.';
|
||||||
$pia_lang['BackDevices_darkmode_enabled'] = 'Dunkler Modus aktiviert';
|
$pia_lang['BackDevices_darkmode_enabled'] = 'Dunkler Modus aktiviert.';
|
||||||
$pia_lang['BackDevices_Restore_CopError'] = 'Die originale Datenbank konnte nicht kopiert werden.';
|
$pia_lang['BackDevices_Restore_CopError'] = 'Die originale Datenbank konnte nicht kopiert werden.';
|
||||||
$pia_lang['BackDevices_Restore_okay'] = 'Die Wiederherstellung wurde erfolgreich ausgeführt';
|
$pia_lang['BackDevices_Restore_okay'] = 'Die Wiederherstellung wurde erfolgreich ausgeführt.';
|
||||||
$pia_lang['BackDevices_Restore_Failed'] = 'Die Wiederherstellung ist fehlgeschlagen. Stellen Sie das Backup manuell her.';
|
$pia_lang['BackDevices_Restore_Failed'] = 'Die Wiederherstellung ist fehlgeschlagen. Stellen Sie das Backup manuell her.';
|
||||||
$pia_lang['BackDevices_Backup_CopError'] = 'Die originale Datenbank konnte nicht gesichert werden.';
|
$pia_lang['BackDevices_Backup_CopError'] = 'Die originale Datenbank konnte nicht gesichert werden.';
|
||||||
$pia_lang['BackDevices_Backup_okay'] = 'Das Backup wurde erfolgreich beendet';
|
$pia_lang['BackDevices_Backup_okay'] = 'Das Backup wurde erfolgreich beendet.';
|
||||||
$pia_lang['BackDevices_Backup_Failed'] = 'Das Backup wurde teilweise ausgeführt. Das Archiv ist entweder leer oder nicht vorhanden.';
|
$pia_lang['BackDevices_Backup_Failed'] = 'Das Backup wurde teilweise ausgeführt. Das Archiv ist entweder leer oder nicht vorhanden.';
|
||||||
$pia_lang['BackDevices_DBTools_DelDev_a'] = 'Gerät erfolgreich gelöscht';
|
$pia_lang['BackDevices_DBTools_DelDev_a'] = 'Gerät erfolgreich gelöscht.';
|
||||||
$pia_lang['BackDevices_DBTools_DelDev_b'] = 'Geräte erfolgreich gelöscht';
|
$pia_lang['BackDevices_DBTools_DelDev_b'] = 'Geräte erfolgreich gelöscht.';
|
||||||
$pia_lang['BackDevices_DBTools_DelEvents'] = 'Events erfolgreich gelöscht';
|
$pia_lang['BackDevices_DBTools_DelEvents'] = 'Events erfolgreich gelöscht.';
|
||||||
$pia_lang['BackDevices_DBTools_DelEventsError'] = 'Fehler beim Löschen der Ereignisse';
|
$pia_lang['BackDevices_DBTools_DelEventsError'] = 'Fehler beim Löschen der Ereignisse.';
|
||||||
$pia_lang['BackDevices_DBTools_DelDevError_a'] = 'Fehler beim Löschen des Gerätes';
|
$pia_lang['BackDevices_DBTools_DelDevError_a'] = 'Fehler beim Löschen des Gerätes.';
|
||||||
$pia_lang['BackDevices_DBTools_DelDevError_b'] = 'Fehler beim Löschen der Geräte';
|
$pia_lang['BackDevices_DBTools_DelDevError_b'] = 'Fehler beim Löschen der Geräte.';
|
||||||
$pia_lang['BackDevices_DBTools_UpdDev'] = 'Gerät erfolgreich aktualisiert';
|
$pia_lang['BackDevices_DBTools_UpdDev'] = 'Gerät erfolgreich aktualisiert.';
|
||||||
$pia_lang['BackDevices_DBTools_UpdDevError'] = 'Fehler beim Aktualisieren des Gerätes';
|
$pia_lang['BackDevices_DBTools_UpdDevError'] = 'Fehler beim Aktualisieren des Gerätes.';
|
||||||
$pia_lang['BackDevices_DBTools_Upgrade'] = 'Datenbank erfolgreich aktualisiert';
|
$pia_lang['BackDevices_DBTools_Upgrade'] = 'Datenbank erfolgreich aktualisiert.';
|
||||||
$pia_lang['BackDevices_DBTools_UpgradeError'] = 'Fehler beim Aktualisieren der Datenbank';
|
$pia_lang['BackDevices_DBTools_UpgradeError'] = 'Fehler beim Aktualisieren der Datenbank.';
|
||||||
$pia_lang['BackDevices_DBTools_Purge'] = 'Die ältesten Backups wurden gelöscht';
|
$pia_lang['BackDevices_DBTools_Purge'] = 'Die ältesten Backups wurden gelöscht.';
|
||||||
|
$pia_lang['BackDevices_DBTools_DelActHistory'] = 'Die Anzeige der Netzwerkaktivität wurde zurückgesetzt.';
|
||||||
|
$pia_lang['BackDevices_DBTools_DelActHistoryError'] = 'Fehler beim Zurücksetzen der Netzwerkaktivitätsanzeige.';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|||||||
@@ -220,6 +220,10 @@ $pia_lang['Maintenance_Tool_purgebackup'] = 'Purge Backups';
|
|||||||
$pia_lang['Maintenance_Tool_purgebackup_text'] = 'All other backups will be deleted except for the last 3 backups.';
|
$pia_lang['Maintenance_Tool_purgebackup_text'] = 'All other backups will be deleted except for the last 3 backups.';
|
||||||
$pia_lang['Maintenance_Tool_purgebackup_noti'] = 'Purge Backups';
|
$pia_lang['Maintenance_Tool_purgebackup_noti'] = 'Purge Backups';
|
||||||
$pia_lang['Maintenance_Tool_purgebackup_noti_text'] = 'Are you sure you want to delete all backups except the last 3?';
|
$pia_lang['Maintenance_Tool_purgebackup_noti_text'] = 'Are you sure you want to delete all backups except the last 3?';
|
||||||
|
$pia_lang['Maintenance_Tool_del_ActHistory'] = 'Deleting the network activity';
|
||||||
|
$pia_lang['Maintenance_Tool_del_ActHistory_text'] = 'The network activity graph is reset. This does not affect the events.';
|
||||||
|
$pia_lang['Maintenance_Tool_del_ActHistory_noti'] = 'Delete network activity';
|
||||||
|
$pia_lang['Maintenance_Tool_del_ActHistory_noti_text'] = 'Are you sure you want to reset the network activity?';
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
// Maintenance Page
|
// Maintenance Page
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
// Device Page - by @TeroRERO 23jul2022
|
// Device Page - Update by @TeroRERO 25jul2022
|
||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
$pia_lang['Navigation_Devices'] = 'Dispositivos';
|
$pia_lang['Navigation_Devices'] = 'Dispositivos';
|
||||||
@@ -36,7 +36,7 @@ $pia_lang['Device_Table_nav_next'] = 'Siguiente';
|
|||||||
$pia_lang['Device_Table_nav_prev'] = 'Anterior';
|
$pia_lang['Device_Table_nav_prev'] = 'Anterior';
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
// Presence Page - by @TeroRERO 23jul2022
|
// Presence Page - Update by @TeroRERO 25jul2022
|
||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
$pia_lang['Presence_Title'] = 'Historial por dispositivo';
|
$pia_lang['Presence_Title'] = 'Historial por dispositivo';
|
||||||
@@ -57,7 +57,7 @@ $pia_lang['Presence_CalHead_month'] = 'mes';
|
|||||||
$pia_lang['Presence_CalHead_week'] = 'semana';
|
$pia_lang['Presence_CalHead_week'] = 'semana';
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
// Events Page - by @TeroRERO 23jul2022
|
// Events Page - Update by @TeroRERO 25jul2022
|
||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
$pia_lang['Events_Title'] = 'Eventos';
|
$pia_lang['Events_Title'] = 'Eventos';
|
||||||
@@ -93,7 +93,7 @@ $pia_lang['Events_Table_nav_next'] = 'Siguiente';
|
|||||||
$pia_lang['Events_Table_nav_prev'] = 'Anterior';
|
$pia_lang['Events_Table_nav_prev'] = 'Anterior';
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
// Device Details Page - by @TeroRERO 23jul2022
|
// Device Details Page - Update by @TeroRERO 25jul2022
|
||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
$pia_lang['DevDetail_Periodselect_today'] = 'Hoy';
|
$pia_lang['DevDetail_Periodselect_today'] = 'Hoy';
|
||||||
@@ -154,7 +154,7 @@ $pia_lang['DevDetail_Nmap_buttonDefault_text'] = 'Escaneo predeterminado: NMAP e
|
|||||||
$pia_lang['DevDetail_Nmap_buttonDetail_text'] = 'Escaneo detallado: escaneo predeterminado con detección de sistema operativo habilitado, detección de versiones, escaneo de script y traceroute (hasta 30 segundos o más)';
|
$pia_lang['DevDetail_Nmap_buttonDetail_text'] = 'Escaneo detallado: escaneo predeterminado con detección de sistema operativo habilitado, detección de versiones, escaneo de script y traceroute (hasta 30 segundos o más)';
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
// Maintenance Page - by @TeroRERO 23jul2022
|
// Maintenance Page - Update by @TeroRERO 25jul2022
|
||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
$pia_lang['Maintenance_Title'] = 'Herramientas de mantenimiento';
|
$pia_lang['Maintenance_Title'] = 'Herramientas de mantenimiento';
|
||||||
@@ -216,13 +216,17 @@ $pia_lang['Maintenance_Tool_restore'] = 'Restaurar DB';
|
|||||||
$pia_lang['Maintenance_Tool_restore_text'] = 'La última copia de seguridad se puede restaurar a través del botón, pero las copias de seguridad anteriores solo se pueden restaurar manualmente. Después de la restauración, realice una verificación de integridad en la base de datos por seguridad, en caso de que el DB estuviera actualmente en acceso de escritura cuando se creó la copia de seguridad.';
|
$pia_lang['Maintenance_Tool_restore_text'] = 'La última copia de seguridad se puede restaurar a través del botón, pero las copias de seguridad anteriores solo se pueden restaurar manualmente. Después de la restauración, realice una verificación de integridad en la base de datos por seguridad, en caso de que el DB estuviera actualmente en acceso de escritura cuando se creó la copia de seguridad.';
|
||||||
$pia_lang['Maintenance_Tool_restore_noti'] = 'Restaurar DB';
|
$pia_lang['Maintenance_Tool_restore_noti'] = 'Restaurar DB';
|
||||||
$pia_lang['Maintenance_Tool_restore_noti_text'] = '¿Estás seguro de que quieres hacer exactos la restauración de DB? Asegúrese de que ningún escaneo se esté ejecutando actualmente.';
|
$pia_lang['Maintenance_Tool_restore_noti_text'] = '¿Estás seguro de que quieres hacer exactos la restauración de DB? Asegúrese de que ningún escaneo se esté ejecutando actualmente.';
|
||||||
$pia_lang['Maintenance_Tool_purgebackup'] = 'Purge Backups';
|
$pia_lang['Maintenance_Tool_purgebackup'] = 'Purgar Respaldos';
|
||||||
$pia_lang['Maintenance_Tool_purgebackup_text'] = 'All other backups will be deleted except for the last 3 backups.';
|
$pia_lang['Maintenance_Tool_purgebackup_text'] = 'Todas las copias de seguridad serán eliminadas, excepto las 3 últimas.';
|
||||||
$pia_lang['Maintenance_Tool_purgebackup_noti'] = 'Purge Backups';
|
$pia_lang['Maintenance_Tool_purgebackup_noti'] = 'Purgar Respaldos';
|
||||||
$pia_lang['Maintenance_Tool_purgebackup_noti_text'] = 'Are you sure you want to delete all backups except the last 3?';
|
$pia_lang['Maintenance_Tool_purgebackup_noti_text'] = '¿Está seguro de borrar todas las copias de seguridad excepto las 3 últimas?';
|
||||||
|
$pia_lang['Maintenance_Tool_del_ActHistory'] = 'Eliminar la actividad de la red';
|
||||||
|
$pia_lang['Maintenance_Tool_del_ActHistory_text'] = 'El gráfico de actividad de la red se resetea. Esto no afecta a los eventos.';
|
||||||
|
$pia_lang['Maintenance_Tool_del_ActHistory_noti'] = 'Borrar la actividad de la red';
|
||||||
|
$pia_lang['Maintenance_Tool_del_ActHistory_noti_text'] = '¿Está seguro de restablecer la actividad de la red?';
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
// Maintenance Page - by @TeroRERO 23jul2022
|
// Maintenance Page - Update by @TeroRERO 25jul2022
|
||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
$pia_lang['BackDevices_Arpscan_disabled'] = 'Arp-Scan Desactivado';
|
$pia_lang['BackDevices_Arpscan_disabled'] = 'Arp-Scan Desactivado';
|
||||||
@@ -245,6 +249,5 @@ $pia_lang['BackDevices_DBTools_UpdDev'] = 'Dispositivo actualizado con éxito';
|
|||||||
$pia_lang['BackDevices_DBTools_UpdDevError'] = 'Error al actualizar el dispositivo';
|
$pia_lang['BackDevices_DBTools_UpdDevError'] = 'Error al actualizar el dispositivo';
|
||||||
$pia_lang['BackDevices_DBTools_Upgrade'] = 'Base de datos actualizada correctamente';
|
$pia_lang['BackDevices_DBTools_Upgrade'] = 'Base de datos actualizada correctamente';
|
||||||
$pia_lang['BackDevices_DBTools_UpgradeError'] = 'Falló la actualización de la base de datos';
|
$pia_lang['BackDevices_DBTools_UpgradeError'] = 'Falló la actualización de la base de datos';
|
||||||
$pia_lang['BackDevices_DBTools_Purge'] = 'The oldest backups were deleted';
|
$pia_lang['BackDevices_DBTools_Purge'] = 'Las copias de seguridad más antiguas fueron eliminadas';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
DB_NAME="pialert.db"
|
||||||
echo "Create backup before insert new table"
|
echo "Create backup before insert new table"
|
||||||
cp ../db/pialert.db ../db/pialert.db.bak
|
cp ../db/$DB_NAME ../db/pialert.db.bak
|
||||||
echo "Insert new table 'Online_History' to pialert.db"
|
echo "Insert new table 'Online_History' to $DB_NAME"
|
||||||
sqlite3 ../db/pialert.db "CREATE TABLE 'Online_History' ('Index' INTEGER, 'Scan_Date' TEXT, 'Online_Devices' INTEGER, 'Down_Devices' INTEGER, 'All_Devices' INTEGER, 'Archived_Devices' INTEGER, PRIMARY KEY('Index' AUTOINCREMENT));"
|
sqlite3 ../db/$DB_NAME "CREATE TABLE 'Online_History' ('Index' INTEGER, 'Scan_Date' TEXT, 'Online_Devices' INTEGER, 'Down_Devices' INTEGER, 'All_Devices' INTEGER, 'Archived_Devices' INTEGER, PRIMARY KEY('Index' AUTOINCREMENT));"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user