mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
@@ -1215,8 +1215,8 @@ def email_reporting ():
|
|||||||
mail_text = mail_text.replace ('<REPORT_DATE>', timeFormated)
|
mail_text = mail_text.replace ('<REPORT_DATE>', timeFormated)
|
||||||
mail_html = mail_html.replace ('<REPORT_DATE>', timeFormated)
|
mail_html = mail_html.replace ('<REPORT_DATE>', timeFormated)
|
||||||
|
|
||||||
mail_text = mail_text.replace ('<SCAN_CYCLE>', cycle )
|
# mail_text = mail_text.replace ('<SCAN_CYCLE>', cycle )
|
||||||
mail_html = mail_html.replace ('<SCAN_CYCLE>', cycle )
|
# mail_html = mail_html.replace ('<SCAN_CYCLE>', cycle )
|
||||||
|
|
||||||
mail_text = mail_text.replace ('<SERVER_NAME>', socket.gethostname() )
|
mail_text = mail_text.replace ('<SERVER_NAME>', socket.gethostname() )
|
||||||
mail_html = mail_html.replace ('<SERVER_NAME>', socket.gethostname() )
|
mail_html = mail_html.replace ('<SERVER_NAME>', socket.gethostname() )
|
||||||
|
|||||||
@@ -24,9 +24,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<table width=100% border=0 bgcolor=#FFD966 cellpadding=5px cellspacing=0 style="border-collapse: collapse; font-size: 15px; text-align:center; color:#404040"> <tr>
|
<table width=100% border=0 bgcolor=#FFD966 cellpadding=5px cellspacing=0 style="border-collapse: collapse; font-size: 15px; text-align:center; color:#404040"> <tr>
|
||||||
<td width=50%> Report Date: <b><REPORT_DATE></b> </td>
|
<td width=100%> Report Date: <b><REPORT_DATE></b> </td>
|
||||||
<td width=50%> Scan Cycle: <b><SCAN_CYCLE></b> </td>
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
Report Date: <REPORT_DATE>
|
Report Date: <REPORT_DATE>
|
||||||
Scan Cycle: <SCAN_CYCLE>
|
|
||||||
Server: <SERVER_NAME>
|
Server: <SERVER_NAME>
|
||||||
|
|
||||||
<SECTION_INTERNET>
|
<SECTION_INTERNET>
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
VERSION = '3.5_leiweibau'
|
VERSION = '3.6_leiweibau'
|
||||||
VERSION_YEAR = '2022'
|
VERSION_YEAR = '2022'
|
||||||
VERSION_DATE = '2022-07-07'
|
VERSION_DATE = '2022-07-27'
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ if ($_SESSION["login"] != 1)
|
|||||||
}
|
}
|
||||||
|
|
||||||
require 'php/templates/header.php';
|
require 'php/templates/header.php';
|
||||||
|
require 'php/server/db.php';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- Page ------------------------------------------------------------------ -->
|
<!-- Page ------------------------------------------------------------------ -->
|
||||||
@@ -263,6 +264,20 @@ if ($_REQUEST['mac'] == 'Internet') { $DevDetail_Tap_temp = "Tools"; } else { $D
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">Network Hardware</label>
|
||||||
|
<div class="col-sm-9">
|
||||||
|
<input class="form-control" id="txtInfrastructure" type="text" value="--">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">Network HW Port</label>
|
||||||
|
<div class="col-sm-9">
|
||||||
|
<input class="form-control" id="txtInfrastructurePort" type="text" value="--">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -412,6 +427,8 @@ if ($_REQUEST['mac'] == 'Internet') { $DevDetail_Tap_temp = "Tools"; } else { $D
|
|||||||
<!-- Buttons -->
|
<!-- Buttons -->
|
||||||
<div class="col-xs-12">
|
<div class="col-xs-12">
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
<button type="button" class="btn btn-default pa-btn pa-btn-delete" style="margin-left:0px;"
|
||||||
|
id="btnDeleteEvents" onclick="askDeleteDeviceEvents()"> <?php echo $pia_lang['DevDetail_button_DeleteEvents'];?> </button>
|
||||||
<button type="button" class="btn btn-default pa-btn pa-btn-delete" style="margin-left:0px;"
|
<button type="button" class="btn btn-default pa-btn pa-btn-delete" style="margin-left:0px;"
|
||||||
id="btnDelete" onclick="askDeleteDevice()"> <?php echo $pia_lang['DevDetail_button_Delete'];?> </button>
|
id="btnDelete" onclick="askDeleteDevice()"> <?php echo $pia_lang['DevDetail_button_Delete'];?> </button>
|
||||||
<button type="button" class="btn btn-default pa-btn" style="margin-left:6px;"
|
<button type="button" class="btn btn-default pa-btn" style="margin-left:6px;"
|
||||||
@@ -453,7 +470,7 @@ if ($_REQUEST['mac'] == 'Internet') {
|
|||||||
?>
|
?>
|
||||||
<h4 class="">Online Speedtest</h4>
|
<h4 class="">Online Speedtest</h4>
|
||||||
<div style="width:100%; text-align: center; margin-bottom: 50px;">
|
<div style="width:100%; text-align: center; margin-bottom: 50px;">
|
||||||
<button type="button" id="speedtestcli" class="btn btn-default pa-btn" style="margin: auto;" onclick="speedtestcli()">Start Speedtest</button>
|
<button type="button" id="speedtestcli" class="btn btn-primary pa-btn" style="margin: auto;" onclick="speedtestcli()">Start Speedtest</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -483,11 +500,11 @@ if ($_REQUEST['mac'] == 'Internet') {
|
|||||||
}, 2000);
|
}, 2000);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<button type="button" id="piamanualnmap_fast" class="btn btn-default pa-btn" style="margin: auto;" onclick="manualnmapscan(document.getElementById('txtLastIP').value, 'fast')">Loading...</button>
|
<button type="button" id="piamanualnmap_fast" class="btn btn-primary pa-btn" style="margin-bottom: 20px; margin-left: 10px; margin-right: 10px;" onclick="manualnmapscan(document.getElementById('txtLastIP').value, 'fast')">Loading...</button>
|
||||||
<button type="button" id="piamanualnmap_normal" class="btn btn-default pa-btn" style="margin: auto;" onclick="manualnmapscan(document.getElementById('txtLastIP').value, 'normal')">Loading...</button>
|
<button type="button" id="piamanualnmap_normal" class="btn btn-primary pa-btn" style="margin-bottom: 20px; margin-left: 10px; margin-right: 10px;" onclick="manualnmapscan(document.getElementById('txtLastIP').value, 'normal')">Loading...</button>
|
||||||
<button type="button" id="piamanualnmap_detail" class="btn btn-default pa-btn" style="margin: auto;" onclick="manualnmapscan(document.getElementById('txtLastIP').value, 'detail')">Loading...</button>
|
<button type="button" id="piamanualnmap_detail" class="btn btn-primary pa-btn" style="margin-bottom: 20px; margin-left: 10px; margin-right: 10px;" onclick="manualnmapscan(document.getElementById('txtLastIP').value, 'detail')">Loading...</button>
|
||||||
|
|
||||||
<div style="margin-top: 20px; text-align: left;">
|
<div style="text-align: left;">
|
||||||
<ul style="padding:20px;">
|
<ul style="padding:20px;">
|
||||||
<li><?php echo $pia_lang['DevDetail_Nmap_buttonFast_text'];?></li>
|
<li><?php echo $pia_lang['DevDetail_Nmap_buttonFast_text'];?></li>
|
||||||
<li><?php echo $pia_lang['DevDetail_Nmap_buttonDefault_text'];?></li>
|
<li><?php echo $pia_lang['DevDetail_Nmap_buttonDefault_text'];?></li>
|
||||||
@@ -1090,33 +1107,35 @@ function getDeviceData (readAllData=false) {
|
|||||||
$('#deviceStatus')[0].className = 'text-gray';
|
$('#deviceStatus')[0].className = 'text-gray';
|
||||||
$('#deviceStatusIcon')[0].className = '';
|
$('#deviceStatusIcon')[0].className = '';
|
||||||
|
|
||||||
$('#deviceSessions').html ('--');
|
$('#deviceSessions').html ('--');
|
||||||
$('#deviceDownAlerts').html ('--');
|
$('#deviceDownAlerts').html ('--');
|
||||||
$('#deviceEvents').html ('--');
|
$('#deviceEvents').html ('--');
|
||||||
|
|
||||||
$('#txtMAC').val ('--');
|
$('#txtMAC').val ('--');
|
||||||
$('#txtName').val ('--');
|
$('#txtName').val ('--');
|
||||||
$('#txtOwner').val ('--');
|
$('#txtOwner').val ('--');
|
||||||
$('#txtDeviceType').val ('--');
|
$('#txtDeviceType').val ('--');
|
||||||
$('#txtVendor').val ('--');
|
$('#txtVendor').val ('--');
|
||||||
|
|
||||||
$('#chkFavorite').iCheck ('uncheck');
|
$('#chkFavorite').iCheck ('uncheck');
|
||||||
$('#txtGroup').val ('--');
|
$('#txtGroup').val ('--');
|
||||||
$('#txtLocation').val ('--');
|
$('#txtLocation').val ('--');
|
||||||
$('#txtComments').val ('--');
|
$('#txtComments').val ('--');
|
||||||
|
$('#txtInfrastructure').val ('--');
|
||||||
|
$('#txtInfrastructurePort').val ('--');
|
||||||
|
|
||||||
$('#txtFirstConnection').val ('--');
|
$('#txtFirstConnection').val ('--');
|
||||||
$('#txtLastConnection').val ('--');
|
$('#txtLastConnection').val ('--');
|
||||||
$('#txtLastIP').val ('--');
|
$('#txtLastIP').val ('--');
|
||||||
$('#txtStatus').val ('--');
|
$('#txtStatus').val ('--');
|
||||||
$('#chkStaticIP').iCheck ('uncheck');
|
$('#chkStaticIP').iCheck ('uncheck');
|
||||||
|
|
||||||
$('#txtScanCycle').val ('--');
|
$('#txtScanCycle').val ('--');
|
||||||
$('#chkAlertEvents').iCheck ('uncheck')
|
$('#chkAlertEvents').iCheck ('uncheck')
|
||||||
$('#chkAlertDown').iCheck ('uncheck')
|
$('#chkAlertDown').iCheck ('uncheck')
|
||||||
$('#txtSkipRepeated').val ('--');
|
$('#txtSkipRepeated').val ('--');
|
||||||
$('#chkNewDevice').iCheck ('uncheck');
|
$('#chkNewDevice').iCheck ('uncheck');
|
||||||
$('#chkArchived').iCheck ('uncheck');
|
$('#chkArchived').iCheck ('uncheck');
|
||||||
|
|
||||||
$('#iconRandomMACactive').addClass ('hidden');
|
$('#iconRandomMACactive').addClass ('hidden');
|
||||||
$('#iconRandomMACinactive').removeClass ('hidden');
|
$('#iconRandomMACinactive').removeClass ('hidden');
|
||||||
@@ -1184,6 +1203,8 @@ function getDeviceData (readAllData=false) {
|
|||||||
$('#txtGroup').val (deviceData['dev_Group']);
|
$('#txtGroup').val (deviceData['dev_Group']);
|
||||||
$('#txtLocation').val (deviceData['dev_Location']);
|
$('#txtLocation').val (deviceData['dev_Location']);
|
||||||
$('#txtComments').val (deviceData['dev_Comments']);
|
$('#txtComments').val (deviceData['dev_Comments']);
|
||||||
|
$('#txtInfrastructure').val (deviceData['dev_Infrastructure']);
|
||||||
|
$('#txtInfrastructurePort').val (deviceData['dev_Infrastructure_port']);
|
||||||
|
|
||||||
$('#txtFirstConnection').val (deviceData['dev_FirstConnection']);
|
$('#txtFirstConnection').val (deviceData['dev_FirstConnection']);
|
||||||
$('#txtLastConnection').val (deviceData['dev_LastConnection']);
|
$('#txtLastConnection').val (deviceData['dev_LastConnection']);
|
||||||
@@ -1292,6 +1313,8 @@ function setDeviceData (refreshCallback='') {
|
|||||||
+ '&group=' + $('#txtGroup').val()
|
+ '&group=' + $('#txtGroup').val()
|
||||||
+ '&location=' + $('#txtLocation').val()
|
+ '&location=' + $('#txtLocation').val()
|
||||||
+ '&comments=' + $('#txtComments').val()
|
+ '&comments=' + $('#txtComments').val()
|
||||||
|
+ '&infrastructure=' + $('#txtInfrastructure').val()
|
||||||
|
+ '&infrastructureport=' + $('#txtInfrastructurePort').val()
|
||||||
+ '&staticIP=' + ($('#chkStaticIP')[0].checked * 1)
|
+ '&staticIP=' + ($('#chkStaticIP')[0].checked * 1)
|
||||||
+ '&scancycle=' + $('#txtScanCycle').val().split(' ')[0]
|
+ '&scancycle=' + $('#txtScanCycle').val().split(' ')[0]
|
||||||
+ '&alertevents=' + ($('#chkAlertEvents')[0].checked * 1)
|
+ '&alertevents=' + ($('#chkAlertEvents')[0].checked * 1)
|
||||||
@@ -1324,7 +1347,7 @@ function askSkipNotifications () {
|
|||||||
if ($('#chkArchived')[0].checked && $('#txtScanCycle').val().split(' ')[0] != "0") {
|
if ($('#chkArchived')[0].checked && $('#txtScanCycle').val().split(' ')[0] != "0") {
|
||||||
// Ask skip notifications
|
// Ask skip notifications
|
||||||
showModalDefault ('Device Archived', 'Do you want to skip all notifications for this device?',
|
showModalDefault ('Device Archived', 'Do you want to skip all notifications for this device?',
|
||||||
'Cancel', 'Ok', 'skipNotifications');
|
'<?php echo $pia_lang['Gen_Cancel'];?>', '<?php echo $pia_lang['Gen_Okay'];?>', 'skipNotifications');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1340,6 +1363,33 @@ function skipNotifications () {
|
|||||||
activateSaveRestoreData();
|
activateSaveRestoreData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------
|
||||||
|
function askDeleteDeviceEvents () {
|
||||||
|
// Check MAC
|
||||||
|
if (mac == '') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ask delete device Events
|
||||||
|
showModalWarning ('<?php echo $pia_lang['DevDetail_button_DeleteEvents'];?>', '<?php echo $pia_lang['DevDetail_button_DeleteEvents_Warning'];?>',
|
||||||
|
'<?php echo $pia_lang['Gen_Cancel'];?>', '<?php echo $pia_lang['Gen_Delete'];?>', 'deleteDeviceEvents');
|
||||||
|
}
|
||||||
|
|
||||||
|
function deleteDeviceEvents () {
|
||||||
|
// Check MAC
|
||||||
|
if (mac == '') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Delete device events
|
||||||
|
$.get('php/server/devices.php?action=deleteDeviceEvents&mac='+ mac, function(msg) {
|
||||||
|
showMessage (msg);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Deactivate controls
|
||||||
|
$('#panDetails :input').attr('disabled', true);
|
||||||
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
function askDeleteDevice () {
|
function askDeleteDevice () {
|
||||||
// Check MAC
|
// Check MAC
|
||||||
@@ -1349,7 +1399,7 @@ function askDeleteDevice () {
|
|||||||
|
|
||||||
// Ask delete device
|
// Ask delete device
|
||||||
showModalWarning ('Delete Device', 'Are you sure you want to delete this device?<br>(maybe you prefer to archive it)',
|
showModalWarning ('Delete Device', 'Are you sure you want to delete this device?<br>(maybe you prefer to archive it)',
|
||||||
'Cancel', 'Delete', 'deleteDevice');
|
'<?php echo $pia_lang['Gen_Cancel'];?>', '<?php echo $pia_lang['Gen_Delete'];?>', 'deleteDevice');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -310,8 +310,6 @@ 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_info_table_row">
|
||||||
<div class="db_tools_table_cell_a" style="">
|
<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>
|
<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>
|
||||||
@@ -379,7 +377,7 @@ function deleteDevicesWithEmptyMACs()
|
|||||||
function askDeleteAllDevices () {
|
function askDeleteAllDevices () {
|
||||||
// Ask
|
// Ask
|
||||||
showModalWarning('<?php echo $pia_lang['Maintenance_Tool_del_alldev_noti'];?>', '<?php echo $pia_lang['Maintenance_Tool_del_alldev_noti_text'];?>',
|
showModalWarning('<?php echo $pia_lang['Maintenance_Tool_del_alldev_noti'];?>', '<?php echo $pia_lang['Maintenance_Tool_del_alldev_noti_text'];?>',
|
||||||
'Cancel', 'Delete', 'deleteAllDevices');
|
'<?php echo $pia_lang['Gen_Cancel'];?>', '<?php echo $pia_lang['Gen_Delete'];?>', 'deleteAllDevices');
|
||||||
}
|
}
|
||||||
function deleteAllDevices()
|
function deleteAllDevices()
|
||||||
{
|
{
|
||||||
@@ -393,7 +391,7 @@ function deleteAllDevices()
|
|||||||
function askDeleteUnknown () {
|
function askDeleteUnknown () {
|
||||||
// Ask
|
// Ask
|
||||||
showModalWarning('<?php echo $pia_lang['Maintenance_Tool_del_unknowndev_noti'];?>', '<?php echo $pia_lang['Maintenance_Tool_del_unknowndev_noti_text'];?>',
|
showModalWarning('<?php echo $pia_lang['Maintenance_Tool_del_unknowndev_noti'];?>', '<?php echo $pia_lang['Maintenance_Tool_del_unknowndev_noti_text'];?>',
|
||||||
'Cancel', 'Delete', 'deleteUnknownDevices');
|
'<?php echo $pia_lang['Gen_Cancel'];?>', '<?php echo $pia_lang['Gen_Delete'];?>', 'deleteUnknownDevices');
|
||||||
}
|
}
|
||||||
function deleteUnknownDevices()
|
function deleteUnknownDevices()
|
||||||
{
|
{
|
||||||
@@ -407,7 +405,7 @@ function deleteUnknownDevices()
|
|||||||
function askDeleteEvents () {
|
function askDeleteEvents () {
|
||||||
// Ask
|
// Ask
|
||||||
showModalWarning('<?php echo $pia_lang['Maintenance_Tool_del_allevents_noti'];?>', '<?php echo $pia_lang['Maintenance_Tool_del_allevents_noti_text'];?>',
|
showModalWarning('<?php echo $pia_lang['Maintenance_Tool_del_allevents_noti'];?>', '<?php echo $pia_lang['Maintenance_Tool_del_allevents_noti_text'];?>',
|
||||||
'Cancel', 'Delete', 'deleteEvents');
|
'<?php echo $pia_lang['Gen_Cancel'];?>', '<?php echo $pia_lang['Gen_Delete'];?>', 'deleteEvents');
|
||||||
}
|
}
|
||||||
function deleteEvents()
|
function deleteEvents()
|
||||||
{
|
{
|
||||||
@@ -421,7 +419,7 @@ function deleteEvents()
|
|||||||
function askDeleteActHistory () {
|
function askDeleteActHistory () {
|
||||||
// Ask
|
// Ask
|
||||||
showModalWarning('<?php echo $pia_lang['Maintenance_Tool_del_ActHistory_noti'];?>', '<?php echo $pia_lang['Maintenance_Tool_del_ActHistory_noti_text'];?>',
|
showModalWarning('<?php echo $pia_lang['Maintenance_Tool_del_ActHistory_noti'];?>', '<?php echo $pia_lang['Maintenance_Tool_del_ActHistory_noti_text'];?>',
|
||||||
'Cancel', 'Delete', 'deleteActHistory');
|
'<?php echo $pia_lang['Gen_Cancel'];?>', '<?php echo $pia_lang['Gen_Delete'];?>', 'deleteActHistory');
|
||||||
}
|
}
|
||||||
function deleteActHistory()
|
function deleteActHistory()
|
||||||
{
|
{
|
||||||
@@ -435,7 +433,7 @@ function deleteActHistory()
|
|||||||
function askPiaBackupDBtoArchive () {
|
function askPiaBackupDBtoArchive () {
|
||||||
// Ask
|
// Ask
|
||||||
showModalWarning('<?php echo $pia_lang['Maintenance_Tool_backup_noti'];?>', '<?php echo $pia_lang['Maintenance_Tool_backup_noti_text'];?>',
|
showModalWarning('<?php echo $pia_lang['Maintenance_Tool_backup_noti'];?>', '<?php echo $pia_lang['Maintenance_Tool_backup_noti_text'];?>',
|
||||||
'Cancel', 'Run Backup', 'PiaBackupDBtoArchive');
|
'<?php echo $pia_lang['Gen_Cancel'];?>', '<?php echo $pia_lang['Gen_Backup'];?>', 'PiaBackupDBtoArchive');
|
||||||
}
|
}
|
||||||
function PiaBackupDBtoArchive()
|
function PiaBackupDBtoArchive()
|
||||||
{
|
{
|
||||||
@@ -449,7 +447,7 @@ function PiaBackupDBtoArchive()
|
|||||||
function askPiaRestoreDBfromArchive () {
|
function askPiaRestoreDBfromArchive () {
|
||||||
// Ask
|
// Ask
|
||||||
showModalWarning('<?php echo $pia_lang['Maintenance_Tool_restore_noti'];?>', '<?php echo $pia_lang['Maintenance_Tool_restore_noti_text'];?>',
|
showModalWarning('<?php echo $pia_lang['Maintenance_Tool_restore_noti'];?>', '<?php echo $pia_lang['Maintenance_Tool_restore_noti_text'];?>',
|
||||||
'Cancel', 'Run Restore', 'PiaRestoreDBfromArchive');
|
'<?php echo $pia_lang['Gen_Cancel'];?>', '<?php echo $pia_lang['Gen_Restore'];?>', 'PiaRestoreDBfromArchive');
|
||||||
}
|
}
|
||||||
function PiaRestoreDBfromArchive()
|
function PiaRestoreDBfromArchive()
|
||||||
{
|
{
|
||||||
@@ -463,7 +461,7 @@ function PiaRestoreDBfromArchive()
|
|||||||
function askPiaPurgeDBBackups() {
|
function askPiaPurgeDBBackups() {
|
||||||
// Ask
|
// Ask
|
||||||
showModalWarning('<?php echo $pia_lang['Maintenance_Tool_purgebackup_noti'];?>', '<?php echo $pia_lang['Maintenance_Tool_purgebackup_noti_text'];?>',
|
showModalWarning('<?php echo $pia_lang['Maintenance_Tool_purgebackup_noti'];?>', '<?php echo $pia_lang['Maintenance_Tool_purgebackup_noti_text'];?>',
|
||||||
'Cancel', 'Purge', 'PiaPurgeDBBackups');
|
'<?php echo $pia_lang['Gen_Cancel'];?>', '<?php echo $pia_lang['Gen_Purge'];?>', 'PiaPurgeDBBackups');
|
||||||
}
|
}
|
||||||
function PiaPurgeDBBackups()
|
function PiaPurgeDBBackups()
|
||||||
{
|
{
|
||||||
@@ -477,7 +475,7 @@ function PiaPurgeDBBackups()
|
|||||||
function askPiaEnableDarkmode() {
|
function askPiaEnableDarkmode() {
|
||||||
// Ask
|
// Ask
|
||||||
showModalWarning('<?php echo $pia_lang['Maintenance_Tool_darkmode_noti'];?>', '<?php echo $pia_lang['Maintenance_Tool_darkmode_noti_text'];?>',
|
showModalWarning('<?php echo $pia_lang['Maintenance_Tool_darkmode_noti'];?>', '<?php echo $pia_lang['Maintenance_Tool_darkmode_noti_text'];?>',
|
||||||
'Cancel', 'Switch', 'PiaEnableDarkmode');
|
'<?php echo $pia_lang['Gen_Cancel'];?>', '<?php echo $pia_lang['Gen_Switch'];?>', 'PiaEnableDarkmode');
|
||||||
}
|
}
|
||||||
function PiaEnableDarkmode()
|
function PiaEnableDarkmode()
|
||||||
{
|
{
|
||||||
@@ -491,7 +489,7 @@ function PiaEnableDarkmode()
|
|||||||
function askPiaToggleArpScan () {
|
function askPiaToggleArpScan () {
|
||||||
// Ask
|
// Ask
|
||||||
showModalWarning('<?php echo $pia_lang['Maintenance_Tool_arpscansw_noti'];?>', '<?php echo $pia_lang['Maintenance_Tool_arpscansw_noti_text'];?>',
|
showModalWarning('<?php echo $pia_lang['Maintenance_Tool_arpscansw_noti'];?>', '<?php echo $pia_lang['Maintenance_Tool_arpscansw_noti_text'];?>',
|
||||||
'Cancel', 'Switch', 'PiaToggleArpScan');
|
'<?php echo $pia_lang['Gen_Cancel'];?>', '<?php echo $pia_lang['Gen_Switch'];?>', 'PiaToggleArpScan');
|
||||||
}
|
}
|
||||||
function PiaToggleArpScan()
|
function PiaToggleArpScan()
|
||||||
{
|
{
|
||||||
|
|||||||
374
front/network.php
Normal file
374
front/network.php
Normal file
@@ -0,0 +1,374 @@
|
|||||||
|
<?php
|
||||||
|
session_start();
|
||||||
|
if ($_SESSION["login"] != 1)
|
||||||
|
{
|
||||||
|
header('Location: /pialert/index.php');
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
require 'php/templates/header.php';
|
||||||
|
require 'php/server/db.php';
|
||||||
|
|
||||||
|
$DBFILE = '../db/pialert.db';
|
||||||
|
OpenDB();
|
||||||
|
// #####################################
|
||||||
|
// ## Create Table if not exists'
|
||||||
|
// #####################################
|
||||||
|
$sql = 'CREATE TABLE IF NOT EXISTS "network_infrastructure" (
|
||||||
|
"device_id" INTEGER,
|
||||||
|
"net_device_name" TEXT NOT NULL,
|
||||||
|
"net_device_typ" TEXT NOT NULL,
|
||||||
|
"net_device_port" INTEGER,
|
||||||
|
PRIMARY KEY("device_id" AUTOINCREMENT)
|
||||||
|
)';
|
||||||
|
$result = $db->query($sql);
|
||||||
|
// #####################################
|
||||||
|
// ## Expand Devices Table
|
||||||
|
// #####################################
|
||||||
|
$sql = 'ALTER TABLE "Devices" ADD "dev_Infrastructure" INTEGER';
|
||||||
|
$result = $db->query($sql);
|
||||||
|
$sql = 'ALTER TABLE "Devices" ADD "dev_Infrastructure_port" INTEGER';
|
||||||
|
$result = $db->query($sql);
|
||||||
|
// #####################################
|
||||||
|
// Add New Network Devices
|
||||||
|
// #####################################
|
||||||
|
if ($_REQUEST['Networkinsert'] == "yes") {
|
||||||
|
if (isset($_REQUEST['NetworkDeviceName']) && isset($_REQUEST['NetworkDeviceTyp']))
|
||||||
|
{
|
||||||
|
$sql = 'INSERT INTO "network_infrastructure" ("net_device_name", "net_device_typ", "net_device_port") VALUES("'.$_REQUEST['NetworkDeviceName'].'", "'.$_REQUEST['NetworkDeviceTyp'].'", "'.$_REQUEST['NetworkDevicePort'].'")';
|
||||||
|
$result = $db->query($sql);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// #####################################
|
||||||
|
// Add New Network Devices
|
||||||
|
// #####################################
|
||||||
|
if ($_REQUEST['Networkedit'] == "yes") {
|
||||||
|
if (isset($_REQUEST['NewNetworkDeviceName']) && isset($_REQUEST['NewNetworkDeviceTyp']))
|
||||||
|
{
|
||||||
|
$sql = 'UPDATE "network_infrastructure" SET "net_device_name" = "'.$_REQUEST['NewNetworkDeviceName'].'", "net_device_typ" = "'.$_REQUEST['NewNetworkDeviceTyp'].'", "net_device_port" = "'.$_REQUEST['NewNetworkDevicePort'].'" WHERE "device_id"="'.$_REQUEST['NetworkDeviceID'].'"';
|
||||||
|
//$sql = 'INSERT INTO "network_infrastructure" ("net_device_name", "net_device_typ", "net_device_port") VALUES("'.$_REQUEST['NetworkDeviceName'].'", "'.$_REQUEST['NetworkDeviceTyp'].'", "'.$_REQUEST['NetworkDevicePort'].'")';
|
||||||
|
$result = $db->query($sql);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// #####################################
|
||||||
|
// remove Network Devices
|
||||||
|
// #####################################
|
||||||
|
if ($_REQUEST['Networkdelete'] == "yes") {
|
||||||
|
if (isset($_REQUEST['NetworkDeviceID']))
|
||||||
|
{
|
||||||
|
$sql = 'DELETE FROM "network_infrastructure" WHERE "device_id"="'.$_REQUEST['NetworkDeviceID'].'"';
|
||||||
|
$result = $db->query($sql);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<!-- Page ------------------------------------------------------------------ -->
|
||||||
|
<div class="content-wrapper">
|
||||||
|
|
||||||
|
<!-- Content header--------------------------------------------------------- -->
|
||||||
|
<section class="content-header">
|
||||||
|
<?php require 'php/templates/notification.php'; ?>
|
||||||
|
<h1 id="pageTitle">
|
||||||
|
<?php echo $pia_lang['Network_Title'];?>
|
||||||
|
</h1>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
echo $_REQUEST['device_id'];
|
||||||
|
?>
|
||||||
|
<!-- Main content ---------------------------------------------------------- -->
|
||||||
|
<section class="content">
|
||||||
|
<div class="box box-default collapsed-box"> <!-- collapsed-box -->
|
||||||
|
<div class="box-header with-border" data-widget="collapse">
|
||||||
|
<h3 class="box-title"><?php echo $pia_lang['Network_ManageDevices'];?></h3>
|
||||||
|
<div class="box-tools pull-right">
|
||||||
|
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-plus"></i></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- /.box-header -->
|
||||||
|
<div class="box-body" style="">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<h4 class="box-title"><?php echo $pia_lang['Network_ManageAdd'];?></h4>
|
||||||
|
<form role="form" method="post" action="./network.php">
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="NetworkDeviceName"><?php echo $pia_lang['Network_ManageAdd_Name'];?>:</label>
|
||||||
|
<input type="text" class="form-control" id="NetworkDeviceName" name="NetworkDeviceName" placeholder="<?php echo $pia_lang['Network_ManageAdd_Name_text'];?>">
|
||||||
|
</div>
|
||||||
|
<!-- /.form-group -->
|
||||||
|
<div class="form-group">
|
||||||
|
<label><?php echo $pia_lang['Network_ManageAdd_Type'];?>:</label>
|
||||||
|
<select class="form-control" name="NetworkDeviceTyp">
|
||||||
|
<option value=""><?php echo $pia_lang['Network_ManageAdd_Type_text'];?></option>
|
||||||
|
<option value="Router">Router</option>
|
||||||
|
<option value="Switch">Switch</option>
|
||||||
|
<option value="WLAN">WLAN</option>
|
||||||
|
<option value="Powerline">Powerline</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="NetworkDevicePort"><?php echo $pia_lang['Network_ManageAdd_Port'];?>:</label>
|
||||||
|
<input type="text" class="form-control" id="NetworkDevicePort" name="NetworkDevicePort" placeholder="<?php echo $pia_lang['Network_ManageAdd_Port_text'];?>">
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<button type="submit" class="btn btn-success" name="Networkinsert" value="yes"><?php echo $pia_lang['Network_ManageAdd_Submit'];?></button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
<!-- /.form-group -->
|
||||||
|
</div>
|
||||||
|
<!-- /.col -->
|
||||||
|
<div class="col-md-4">
|
||||||
|
<h4 class="box-title"><?php echo $pia_lang['Network_ManageEdit'];?></h4>
|
||||||
|
<form role="form" method="post" action="./network.php">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><?php echo $pia_lang['Network_ManageEdit_ID'];?>:</label>
|
||||||
|
<select class="form-control" name="NetworkDeviceID">
|
||||||
|
<option value=""><?php echo $pia_lang['Network_ManageEdit_ID_text'];?></option>
|
||||||
|
<?php
|
||||||
|
$sql = 'SELECT "device_id", "net_device_name", "net_device_typ" FROM "network_infrastructure"';
|
||||||
|
$result = $db->query($sql);//->fetchArray(SQLITE3_ASSOC);
|
||||||
|
while($res = $result->fetchArray(SQLITE3_ASSOC)){
|
||||||
|
if(!isset($res['device_id'])) continue;
|
||||||
|
echo '<option value="'.$res['device_id'].'">'.$res['net_device_name'].' / '.$res['net_device_typ'].'</option>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="NetworkDeviceName"><?php echo $pia_lang['Network_ManageEdit_Name'];?>:</label>
|
||||||
|
<input type="text" class="form-control" id="NewNetworkDeviceName" name="NewNetworkDeviceName" placeholder="<?php echo $pia_lang['Network_ManageEdit_Name_text'];?>">
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label><?php echo $pia_lang['Network_ManageEdit_Type'];?>:</label>
|
||||||
|
<select class="form-control" name="NewNetworkDeviceTyp">
|
||||||
|
<option value=""><?php echo $pia_lang['Network_ManageEdit_Type_text'];?></option>
|
||||||
|
<option value="Router">Router</option>
|
||||||
|
<option value="Switch">Switch</option>
|
||||||
|
<option value="WLAN">WLAN</option>
|
||||||
|
<option value="Powerline">Powerline</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="NetworkDevicePort"><?php echo $pia_lang['Network_ManageEdit_Port'];?>:</label>
|
||||||
|
<input type="text" class="form-control" id="NewNetworkDevicePort" name="NewNetworkDevicePort" placeholder="<?php echo $pia_lang['Network_ManageEdit_Port_text'];?>">
|
||||||
|
</div>
|
||||||
|
<!-- /.form-group -->
|
||||||
|
<div class="form-group">
|
||||||
|
<button type="submit" class="btn btn-primary" name="Networkedit" value="yes"><?php echo $pia_lang['Network_ManageEdit_Submit'];?></button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
<!-- /.form-group -->
|
||||||
|
</div>
|
||||||
|
<!-- /.col -->
|
||||||
|
<div class="col-md-4">
|
||||||
|
<h4 class="box-title"><?php echo $pia_lang['Network_ManageDel'];?></h4>
|
||||||
|
<form role="form" method="post" action="./network.php">
|
||||||
|
<div class="form-group">
|
||||||
|
<label><?php echo $pia_lang['Network_ManageDel_Name'];?>:</label>
|
||||||
|
<select class="form-control" name="NetworkDeviceID">
|
||||||
|
<option value=""><?php echo $pia_lang['Network_ManageDel_Name_text'];?></option>
|
||||||
|
<?php
|
||||||
|
$sql = 'SELECT "device_id", "net_device_name", "net_device_typ" FROM "network_infrastructure"';
|
||||||
|
$result = $db->query($sql);//->fetchArray(SQLITE3_ASSOC);
|
||||||
|
while($res = $result->fetchArray(SQLITE3_ASSOC)){
|
||||||
|
if(!isset($res['device_id'])) continue;
|
||||||
|
echo '<option value="'.$res['device_id'].'">'.$res['net_device_name'].' / '.$res['net_device_typ'].'</option>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<!-- /.form-group -->
|
||||||
|
<div class="form-group">
|
||||||
|
<button type="submit" class="btn btn-danger" name="Networkdelete" value="yes"><?php echo $pia_lang['Network_ManageDel_Submit'];?></button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
<!-- /.form-group -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- /.row -->
|
||||||
|
</div>
|
||||||
|
<!-- /.box-body -->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
// #####################################
|
||||||
|
// ## Start Function Setup
|
||||||
|
// #####################################
|
||||||
|
function createnetworktab($pia_func_netdevid, $pia_func_netdevname, $pia_func_netdevtyp, $pia_func_netdevport, $activetab) {
|
||||||
|
echo '<li class="'.$activetab.'"><a href="#'.$pia_func_netdevid.'" data-toggle="tab">'.$pia_func_netdevname.' / '.$pia_func_netdevtyp;
|
||||||
|
if ($pia_func_netdevport != "") {echo ' ('.$pia_func_netdevport.')';}
|
||||||
|
echo '</a></li>';
|
||||||
|
}
|
||||||
|
function createnetworktabcontent($pia_func_netdevid, $pia_func_netdevname, $pia_func_netdevtyp, $pia_func_netdevport, $activetab) {
|
||||||
|
global $pia_lang;
|
||||||
|
echo '<div class="tab-pane '.$activetab.'" id="'.$pia_func_netdevid.'">
|
||||||
|
<h4>'.$pia_func_netdevname.' (ID: '.$pia_func_netdevid.')</h4><br>';
|
||||||
|
echo '<div class="box-body no-padding">
|
||||||
|
<table class="table table-striped">
|
||||||
|
<tbody><tr>
|
||||||
|
<th style="width: 40px">Port</th>
|
||||||
|
<th style="width: 100px">'.$pia_lang['Network_Table_State'].'</th>
|
||||||
|
<th>'.$pia_lang['Network_Table_Hostname'].'</th>
|
||||||
|
<th>'.$pia_lang['Network_Table_IP'].'</th>
|
||||||
|
</tr>';
|
||||||
|
// Prepare Array for Devices with Port value
|
||||||
|
// If no Port is set, the Port number is set to 1
|
||||||
|
if ($pia_func_netdevport == "") {$pia_func_netdevport = 1;}
|
||||||
|
// Create Array with specific length
|
||||||
|
$network_device_portname = array();
|
||||||
|
$network_device_portmac = array();
|
||||||
|
$network_device_portip = array();
|
||||||
|
$network_device_portstate = array();
|
||||||
|
// make sql query for Network Hardware ID
|
||||||
|
global $db;
|
||||||
|
$func_sql = 'SELECT * FROM "Devices" WHERE "dev_Infrastructure" = "'.$pia_func_netdevid.'"';
|
||||||
|
$func_result = $db->query($func_sql);//->fetchArray(SQLITE3_ASSOC);
|
||||||
|
while($func_res = $func_result->fetchArray(SQLITE3_ASSOC)) {
|
||||||
|
//if(!isset($func_res['dev_Name'])) continue;
|
||||||
|
if ($func_res['dev_PresentLastScan'] == 1) {$port_state = '<div class="badge bg-green text-white" style="width: 60px;">Online</div>';} else {$port_state = '<div class="badge bg-red text-white" style="width: 60px;">Offline</div>';}
|
||||||
|
// Prepare Table with Port > push values in array
|
||||||
|
if ($pia_func_netdevport > 1)
|
||||||
|
{
|
||||||
|
if (stristr($func_res['dev_Infrastructure_port'], ',') == '') {
|
||||||
|
if ($network_device_portname[$func_res['dev_Infrastructure_port']] != '') {$network_device_portname[$func_res['dev_Infrastructure_port']] = $network_device_portname[$func_res['dev_Infrastructure_port']].','.$func_res['dev_Name'];} else {$network_device_portname[$func_res['dev_Infrastructure_port']] = $func_res['dev_Name'];}
|
||||||
|
if ($network_device_portmac[$func_res['dev_Infrastructure_port']] != '') {$network_device_portmac[$func_res['dev_Infrastructure_port']] = $network_device_portmac[$func_res['dev_Infrastructure_port']].','.$func_res['dev_MAC'];} else {$network_device_portmac[$func_res['dev_Infrastructure_port']] = $func_res['dev_MAC'];}
|
||||||
|
if ($network_device_portip[$func_res['dev_Infrastructure_port']] != '') {$network_device_portip[$func_res['dev_Infrastructure_port']] = $network_device_portip[$func_res['dev_Infrastructure_port']].','.$func_res['dev_LastIP'];} else {$network_device_portip[$func_res['dev_Infrastructure_port']] = $func_res['dev_LastIP'];}
|
||||||
|
if (isset($network_device_portstate[$func_res['dev_Infrastructure_port']])) {$network_device_portstate[$func_res['dev_Infrastructure_port']] = $network_device_portstate[$func_res['dev_Infrastructure_port']].','.$func_res['dev_PresentLastScan'];} else {$network_device_portstate[$func_res['dev_Infrastructure_port']] = $func_res['dev_PresentLastScan'];}
|
||||||
|
} else {
|
||||||
|
$multiport = array();
|
||||||
|
$multiport = explode(',',$func_res['dev_Infrastructure_port']);
|
||||||
|
foreach($multiport as $row) {
|
||||||
|
$network_device_portname[trim($row)] = $func_res['dev_Name'];
|
||||||
|
$network_device_portmac[trim($row)] = $func_res['dev_MAC'];
|
||||||
|
$network_device_portip[trim($row)] = $func_res['dev_LastIP'];
|
||||||
|
$network_device_portstate[trim($row)] = $func_res['dev_PresentLastScan'];
|
||||||
|
}
|
||||||
|
unset($multiport);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// Table without Port > echo values
|
||||||
|
// Specific icon for devicetype
|
||||||
|
if ($pia_func_netdevtyp == "WLAN") {$dev_port_icon = 'fa-wifi';}
|
||||||
|
if ($pia_func_netdevtyp == "Powerline") {$dev_port_icon = 'fa-flash';}
|
||||||
|
echo '<tr><td style="text-align: center;"><i class="fa '.$dev_port_icon.'"></i></td><td>'.$port_state.'</td><td style="padding-left: 10px;"><a href="./deviceDetails.php?mac='.$func_res['dev_MAC'].'"><b>'.$func_res['dev_Name'].'</b></a></td><td>'.$func_res['dev_LastIP'].'</td></tr>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Create table with Port
|
||||||
|
if ($pia_func_netdevport > 1)
|
||||||
|
{
|
||||||
|
for ($x=1; $x<=$pia_func_netdevport; $x++)
|
||||||
|
{
|
||||||
|
// Prepare online/offline badge for later functions
|
||||||
|
$online_badge = '<div class="badge bg-green text-white" style="width: 60px;">Online</div>';
|
||||||
|
$offline_badge = '<div class="badge bg-red text-white" style="width: 60px;">Offline</div>';
|
||||||
|
// Set online/offline badge
|
||||||
|
echo '<tr>';
|
||||||
|
echo '<td style="text-align: right; padding-right:16px;">'.$x.'</td>';
|
||||||
|
// Set online/offline badge
|
||||||
|
// Check if multiple badges necessary
|
||||||
|
if (stristr($network_device_portstate[$x],',') == '') {
|
||||||
|
// Set single online/offline badge
|
||||||
|
if ($network_device_portstate[$x] == 1) {$port_state = $online_badge;} else {$port_state = $offline_badge;}
|
||||||
|
echo '<td>'.$port_state.'</td>';
|
||||||
|
} else {
|
||||||
|
// Set multiple online/offline badges
|
||||||
|
$multistate = array();
|
||||||
|
$multistate = explode(',',$network_device_portstate[$x]);
|
||||||
|
echo '<td>';
|
||||||
|
foreach($multistate as $key => $value) {
|
||||||
|
if ($value == 1) {$port_state = $online_badge;} else {$port_state = $offline_badge;}
|
||||||
|
echo $port_state.'<br>';
|
||||||
|
}
|
||||||
|
echo '</td>';
|
||||||
|
unset($multistate);
|
||||||
|
}
|
||||||
|
// Check if multiple Hostnames are set
|
||||||
|
// print single hostname
|
||||||
|
if (stristr($network_device_portmac[$x],',') == '') {
|
||||||
|
echo '<td style="padding-left: 10px;"><a href="./deviceDetails.php?mac='.$network_device_portmac[$x].'"><b>'.$network_device_portname[$x].'</b></a></td>';
|
||||||
|
} else {
|
||||||
|
// print multiple hostnames with separate links
|
||||||
|
$multimac = array();
|
||||||
|
$multimac = explode(',',$network_device_portmac[$x]);
|
||||||
|
$multiname = array();
|
||||||
|
$multiname = explode(',',$network_device_portname[$x]);
|
||||||
|
echo '<td style="padding-left: 10px;">';
|
||||||
|
foreach($multiname as $key => $value) {
|
||||||
|
echo '<a href="./deviceDetails.php?mac='.$multimac[$key].'"><b>'.$value.'</b></a><br>';
|
||||||
|
}
|
||||||
|
echo '</td>';
|
||||||
|
unset($multiname, $multimac);
|
||||||
|
}
|
||||||
|
// Check if multiple IP are set
|
||||||
|
// print single IP
|
||||||
|
if (stristr($network_device_portip[$x],',') == '') {
|
||||||
|
echo '<td style="padding-left: 10px;">'.$network_device_portip[$x].'</td>';
|
||||||
|
} else {
|
||||||
|
// print multiple IPs
|
||||||
|
$multiip = array();
|
||||||
|
$multiip = explode(',',$network_device_portip[$x]);
|
||||||
|
echo '<td style="padding-left: 10px;">';
|
||||||
|
foreach($multiip as $key => $value) {
|
||||||
|
echo $value.'<br>';
|
||||||
|
}
|
||||||
|
echo '</td>';
|
||||||
|
unset($multiip);
|
||||||
|
}
|
||||||
|
echo '</tr>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
echo ' </tbody></table>
|
||||||
|
</div>';
|
||||||
|
echo '</div> ';
|
||||||
|
}
|
||||||
|
// #####################################
|
||||||
|
// ## End Function Setup
|
||||||
|
// #####################################
|
||||||
|
|
||||||
|
// #####################################
|
||||||
|
// ## Create Tabs
|
||||||
|
// #####################################
|
||||||
|
$sql = 'SELECT "device_id", "net_device_name", "net_device_typ", "net_device_port" FROM "network_infrastructure"';
|
||||||
|
$result = $db->query($sql);//->fetchArray(SQLITE3_ASSOC);
|
||||||
|
?>
|
||||||
|
<div class="nav-tabs-custom" style="margin-bottom: 0px;">
|
||||||
|
<ul class="nav nav-tabs">
|
||||||
|
<?php
|
||||||
|
$i = 0;
|
||||||
|
while($res = $result->fetchArray(SQLITE3_ASSOC)){
|
||||||
|
if(!isset($res['device_id'])) continue;
|
||||||
|
if ($i == 0) {$active = 'active';} else {$active = '';}
|
||||||
|
createnetworktab($res['device_id'], $res['net_device_name'], $res['net_device_typ'], $res['net_device_port'], $active);
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</ul>
|
||||||
|
<div class="tab-content">
|
||||||
|
<?php
|
||||||
|
// #####################################
|
||||||
|
// ## Ctreate Tab Content
|
||||||
|
// #####################################
|
||||||
|
$i = 0;
|
||||||
|
while($res = $result->fetchArray(SQLITE3_ASSOC)){
|
||||||
|
if(!isset($res['device_id'])) continue;
|
||||||
|
if ($i == 0) {$active = 'active';} else {$active = '';}
|
||||||
|
createnetworktabcontent($res['device_id'], $res['net_device_name'], $res['net_device_typ'], $res['net_device_port'], $active);
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
unset($i);
|
||||||
|
?>
|
||||||
|
<!-- /.tab-pane -->
|
||||||
|
</div>
|
||||||
|
<!-- /.tab-content -->
|
||||||
|
</div>
|
||||||
|
<div style="width: 100%; height: 20px;"></div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- /.content -->
|
||||||
|
</div>
|
||||||
|
<!-- /.content-wrapper -->
|
||||||
|
|
||||||
|
<!-- ----------------------------------------------------------------------- -->
|
||||||
|
<?php
|
||||||
|
require 'php/templates/footer.php';
|
||||||
|
?>
|
||||||
@@ -44,6 +44,7 @@ if (strlen($pia_lang_selected) == 0) {$pia_lang_selected = 'en_us';}
|
|||||||
case 'deleteUnknownDevices': deleteUnknownDevices(); break;
|
case 'deleteUnknownDevices': deleteUnknownDevices(); break;
|
||||||
case 'deleteEvents': deleteEvents(); break;
|
case 'deleteEvents': deleteEvents(); break;
|
||||||
case 'deleteActHistory': deleteActHistory(); break;
|
case 'deleteActHistory': deleteActHistory(); break;
|
||||||
|
case 'deleteDeviceEvents': deleteDeviceEvents(); 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;
|
||||||
@@ -86,6 +87,8 @@ function getDeviceData() {
|
|||||||
$deviceData = $row;
|
$deviceData = $row;
|
||||||
$mac = $deviceData['dev_MAC'];
|
$mac = $deviceData['dev_MAC'];
|
||||||
|
|
||||||
|
$deviceData['dev_Infrastructure'] = $row['dev_Infrastructure'];
|
||||||
|
$deviceData['dev_Infrastructure_port'] = $row['dev_Infrastructure_port'];
|
||||||
$deviceData['dev_FirstConnection'] = formatDate ($row['dev_FirstConnection']); // Date formated
|
$deviceData['dev_FirstConnection'] = formatDate ($row['dev_FirstConnection']); // Date formated
|
||||||
$deviceData['dev_LastConnection'] = formatDate ($row['dev_LastConnection']); // Date formated
|
$deviceData['dev_LastConnection'] = formatDate ($row['dev_LastConnection']); // Date formated
|
||||||
|
|
||||||
@@ -153,6 +156,8 @@ function setDeviceData() {
|
|||||||
dev_Group = "'. quotes($_REQUEST['group']) .'",
|
dev_Group = "'. quotes($_REQUEST['group']) .'",
|
||||||
dev_Location = "'. quotes($_REQUEST['location']) .'",
|
dev_Location = "'. quotes($_REQUEST['location']) .'",
|
||||||
dev_Comments = "'. quotes($_REQUEST['comments']) .'",
|
dev_Comments = "'. quotes($_REQUEST['comments']) .'",
|
||||||
|
dev_Infrastructure = "'. quotes($_REQUEST['infrastructure']).'",
|
||||||
|
dev_Infrastructure_port = "'. quotes($_REQUEST['infrastructureport']).'",
|
||||||
dev_StaticIP = "'. quotes($_REQUEST['staticIP']) .'",
|
dev_StaticIP = "'. quotes($_REQUEST['staticIP']) .'",
|
||||||
dev_ScanCycle = "'. quotes($_REQUEST['scancycle']) .'",
|
dev_ScanCycle = "'. quotes($_REQUEST['scancycle']) .'",
|
||||||
dev_AlertEvents = "'. quotes($_REQUEST['alertevents']) .'",
|
dev_AlertEvents = "'. quotes($_REQUEST['alertevents']) .'",
|
||||||
@@ -233,7 +238,25 @@ function deleteUnknownDevices() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// Delete Device Events
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
function deleteDeviceEvents() {
|
||||||
|
global $db;
|
||||||
|
global $pia_lang;
|
||||||
|
|
||||||
|
// sql
|
||||||
|
$sql = 'DELETE FROM Events WHERE eve_MAC="' . $_REQUEST['mac'] .'"';
|
||||||
|
// execute sql
|
||||||
|
$result = $db->query($sql);
|
||||||
|
|
||||||
|
// check result
|
||||||
|
if ($result == TRUE) {
|
||||||
|
echo $pia_lang['BackDevices_DBTools_DelEvents'];
|
||||||
|
} else {
|
||||||
|
echo $pia_lang['BackDevices_DBTools_DelEventsError']."\n\n$sql \n\n". $db->lastErrorMsg();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// Delete all devices
|
// Delete all devices
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
<?php
|
<?php
|
||||||
$conf_file = '../config/version.conf';
|
$conf_file = '../config/version.conf';
|
||||||
$conf_data = parse_ini_file($conf_file);
|
$conf_data = parse_ini_file($conf_file);
|
||||||
echo 'Pi.Alert  '. $conf_data['VERSION'] .'  <small>('. $conf_data['VERSION_DATE'] .')</small>';
|
echo 'Pi.Alert '. $conf_data['VERSION'] .' <small>('. $conf_data['VERSION_DATE'] .')</small>';
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
@@ -92,6 +92,7 @@ require 'php/templates/language/'.$pia_lang_selected.'.php';
|
|||||||
|
|
||||||
<!-- For better UX on Mobile Devices using the Shortcut on the Homescreen -->
|
<!-- For better UX on Mobile Devices using the Shortcut on the Homescreen -->
|
||||||
<link rel="manifest" href="img/manifest.json">
|
<link rel="manifest" href="img/manifest.json">
|
||||||
|
<link rel="apple-touch-icon" href="https://net-dev.de/pialert_homescreen.png">
|
||||||
<!-- Dark-Mode Patch -->
|
<!-- Dark-Mode Patch -->
|
||||||
<?php
|
<?php
|
||||||
if ($ENABLED_DARKMODE === True) {
|
if ($ENABLED_DARKMODE === True) {
|
||||||
@@ -99,7 +100,6 @@ if ($ENABLED_DARKMODE === True) {
|
|||||||
$BACKGROUND_IMAGE_PATCH='style="background-image: url(\'img/boxed-bg-dark.png\');"';
|
$BACKGROUND_IMAGE_PATCH='style="background-image: url(\'img/boxed-bg-dark.png\');"';
|
||||||
} else { $BACKGROUND_IMAGE_PATCH='style="background-image: url(\'img/background.png\');"';}
|
} else { $BACKGROUND_IMAGE_PATCH='style="background-image: url(\'img/background.png\');"';}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- Servertime to the right of the hostname -->
|
<!-- Servertime to the right of the hostname -->
|
||||||
<script>
|
<script>
|
||||||
var pia_servertime = new Date(<?php echo date("Y, n, j, G, i, s") ?>);
|
var pia_servertime = new Date(<?php echo date("Y, n, j, G, i, s") ?>);
|
||||||
@@ -151,7 +151,7 @@ function show_pia_servertime() {
|
|||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
|
|
||||||
<!-- Server Name -->
|
<!-- Server Name -->
|
||||||
<li><a style="pointer-events:none;"><?php echo gethostname();?> <span id="PIA_Servertime_place"></a></li>
|
<li><a style="pointer-events:none;"><?php echo gethostname();?> <span id="PIA_Servertime_place"></span></a></li>
|
||||||
|
|
||||||
<!-- Header right info -->
|
<!-- Header right info -->
|
||||||
<li class="dropdown user user-menu">
|
<li class="dropdown user user-menu">
|
||||||
@@ -225,6 +225,10 @@ function show_pia_servertime() {
|
|||||||
<a href="events.php"><i class="fa fa-bolt"></i> <span><?php echo $pia_lang['Navigation_Events'];?></span></a>
|
<a href="events.php"><i class="fa fa-bolt"></i> <span><?php echo $pia_lang['Navigation_Events'];?></span></a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li class=" <?php if (in_array (basename($_SERVER['SCRIPT_NAME']), array('network.php') ) ){ echo 'active'; } ?>">
|
||||||
|
<a href="network.php"><i class="fa fa-server"></i> <span><?php echo $pia_lang['Navigation_Network'];?></span></a>
|
||||||
|
</li>
|
||||||
|
|
||||||
<li class=" <?php if (in_array (basename($_SERVER['SCRIPT_NAME']), array('maintenance.php') ) ){ echo 'active'; } ?>">
|
<li class=" <?php if (in_array (basename($_SERVER['SCRIPT_NAME']), array('maintenance.php') ) ){ echo 'active'; } ?>">
|
||||||
<a href="maintenance.php"><i class="fa fa-cog"></i> <span><?php echo $pia_lang['Navigation_Maintenance'];?></span></a>
|
<a href="maintenance.php"><i class="fa fa-cog"></i> <span><?php echo $pia_lang['Navigation_Maintenance'];?></span></a>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -1,4 +1,15 @@
|
|||||||
<?php
|
<?php
|
||||||
|
//////////////////////////////////////////////////////////////////
|
||||||
|
// General
|
||||||
|
//////////////////////////////////////////////////////////////////
|
||||||
|
$pia_lang['Gen_Delete'] = 'Löschen';
|
||||||
|
$pia_lang['Gen_Cancel'] = 'Abbrechen';
|
||||||
|
$pia_lang['Gen_Okay'] = 'Ok';
|
||||||
|
$pia_lang['Gen_Purge'] = 'Aufräumen';
|
||||||
|
$pia_lang['Gen_Backup'] = 'Sichern';
|
||||||
|
$pia_lang['Gen_Restore'] = 'Wiederherstellen';
|
||||||
|
$pia_lang['Gen_Switch'] = 'Umschalten';
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
// Device Page
|
// Device Page
|
||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
@@ -7,6 +18,7 @@ $pia_lang['Navigation_Devices'] = 'Geräte';
|
|||||||
$pia_lang['Navigation_Presence'] = 'Anwesenheit';
|
$pia_lang['Navigation_Presence'] = 'Anwesenheit';
|
||||||
$pia_lang['Navigation_Events'] = 'Ereignisse';
|
$pia_lang['Navigation_Events'] = 'Ereignisse';
|
||||||
$pia_lang['Navigation_Maintenance'] = 'Wartung';
|
$pia_lang['Navigation_Maintenance'] = 'Wartung';
|
||||||
|
$pia_lang['Navigation_Network'] = 'Netzwerk';
|
||||||
$pia_lang['Device_Title'] = 'Geräte';
|
$pia_lang['Device_Title'] = 'Geräte';
|
||||||
$pia_lang['Device_Shortcut_AllDevices'] = 'Alle Geräte';
|
$pia_lang['Device_Shortcut_AllDevices'] = 'Alle Geräte';
|
||||||
$pia_lang['Device_Shortcut_Connected'] = 'Verbunden';
|
$pia_lang['Device_Shortcut_Connected'] = 'Verbunden';
|
||||||
@@ -140,6 +152,8 @@ $pia_lang['DevDetail_EveandAl_ScanCycle_z'] = 'Gerät nicht scannen (0 min)';
|
|||||||
$pia_lang['DevDetail_button_Delete'] = 'Lösche Gerät';
|
$pia_lang['DevDetail_button_Delete'] = 'Lösche Gerät';
|
||||||
$pia_lang['DevDetail_button_Reset'] = 'Verwerfen';
|
$pia_lang['DevDetail_button_Reset'] = 'Verwerfen';
|
||||||
$pia_lang['DevDetail_button_Save'] = 'Speichern';
|
$pia_lang['DevDetail_button_Save'] = 'Speichern';
|
||||||
|
$pia_lang['DevDetail_button_DeleteEvents'] = 'Lösche Events';
|
||||||
|
$pia_lang['DevDetail_button_DeleteEvents_Warning'] = 'Sind Sie sicher, dass Sie alle Ereignisse dieses Geräts löschen möchten? (dies löscht den Ereignisverlauf und die Sitzungen und könnte bei ständigen (anhaltenden) Benachrichtigungen helfen)';
|
||||||
$pia_lang['DevDetail_SessionTable_Order'] = 'Order';
|
$pia_lang['DevDetail_SessionTable_Order'] = 'Order';
|
||||||
$pia_lang['DevDetail_SessionTable_Connection'] = 'Verbindung';
|
$pia_lang['DevDetail_SessionTable_Connection'] = 'Verbindung';
|
||||||
$pia_lang['DevDetail_SessionTable_Disconnection'] = 'Trennung';
|
$pia_lang['DevDetail_SessionTable_Disconnection'] = 'Trennung';
|
||||||
@@ -253,5 +267,36 @@ $pia_lang['BackDevices_DBTools_UpgradeError'] = 'Fehler beim Aktualisieren der D
|
|||||||
$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_DelActHistory'] = 'Die Anzeige der Netzwerkaktivität wurde zurückgesetzt.';
|
||||||
$pia_lang['BackDevices_DBTools_DelActHistoryError'] = 'Fehler beim Zurücksetzen der Netzwerkaktivitätsanzeige.';
|
$pia_lang['BackDevices_DBTools_DelActHistoryError'] = 'Fehler beim Zurücksetzen der Netzwerkaktivitätsanzeige.';
|
||||||
?>
|
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////
|
||||||
|
// Maintenance Page
|
||||||
|
//////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
$pia_lang['Network_Title'] = 'Netzwerkübersicht';
|
||||||
|
$pia_lang['Network_ManageDevices'] = 'Geräte verwalten';
|
||||||
|
$pia_lang['Network_ManageAdd'] = 'Geräte hinzufügen';
|
||||||
|
$pia_lang['Network_ManageEdit'] = 'Geräte bearbeiten';
|
||||||
|
$pia_lang['Network_ManageDel'] = 'Geräte löschen';
|
||||||
|
$pia_lang['Network_ManageAdd_Name'] = 'Name des Geräte';
|
||||||
|
$pia_lang['Network_ManageAdd_Name_text'] = 'Name ohne Sonderzeichen';
|
||||||
|
$pia_lang['Network_ManageAdd_Type'] = 'Gerätetyp';
|
||||||
|
$pia_lang['Network_ManageAdd_Type_text'] = '-- Typ wählen --';
|
||||||
|
$pia_lang['Network_ManageAdd_Port'] = 'Portanzahl';
|
||||||
|
$pia_lang['Network_ManageAdd_Port_text'] = 'bei WLAN oder Powerline leer lassen';
|
||||||
|
$pia_lang['Network_ManageAdd_Submit'] = 'Hinzufügen';
|
||||||
|
$pia_lang['Network_ManageEdit_ID'] = 'Gerät zum Bearbeiten auswählen';
|
||||||
|
$pia_lang['Network_ManageEdit_ID_text'] = '-- Gerät wählen --';
|
||||||
|
$pia_lang['Network_ManageEdit_Name'] = 'Neuer Name des Geräte';
|
||||||
|
$pia_lang['Network_ManageEdit_Name_text'] = 'Name ohne Sonderzeichen';
|
||||||
|
$pia_lang['Network_ManageEdit_Type'] = 'Neuer Gerätetyp';
|
||||||
|
$pia_lang['Network_ManageEdit_Type_text'] = '-- Typ wählen --';
|
||||||
|
$pia_lang['Network_ManageEdit_Port'] = 'Neue Portanzahl';
|
||||||
|
$pia_lang['Network_ManageEdit_Port_text'] = 'bei WLAN oder Powerline leer lassen';
|
||||||
|
$pia_lang['Network_ManageEdit_Submit'] = 'Speichern';
|
||||||
|
$pia_lang['Network_ManageDel_Name'] = 'Geräte zum Löschen auswählen';
|
||||||
|
$pia_lang['Network_ManageDel_Name_text'] = '-- Gerät wählen --';
|
||||||
|
$pia_lang['Network_ManageDel_Submit'] = 'Löschen';
|
||||||
|
$pia_lang['Network_Table_State'] = 'Status';
|
||||||
|
$pia_lang['Network_Table_Hostname'] = 'Gerätename';
|
||||||
|
$pia_lang['Network_Table_IP'] = 'IP';
|
||||||
|
?>
|
||||||
@@ -1,4 +1,15 @@
|
|||||||
<?php
|
<?php
|
||||||
|
//////////////////////////////////////////////////////////////////
|
||||||
|
// General
|
||||||
|
//////////////////////////////////////////////////////////////////
|
||||||
|
$pia_lang['Gen_Delete'] = 'Delete';
|
||||||
|
$pia_lang['Gen_Cancel'] = 'Cancel';
|
||||||
|
$pia_lang['Gen_Okay'] = 'Ok';
|
||||||
|
$pia_lang['Gen_Purge'] = 'Purge';
|
||||||
|
$pia_lang['Gen_Backup'] = 'Run Backup';
|
||||||
|
$pia_lang['Gen_Restore'] = 'Run Restore';
|
||||||
|
$pia_lang['Gen_Switch'] = 'Switch';
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
// Device Page
|
// Device Page
|
||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
@@ -7,6 +18,7 @@ $pia_lang['Navigation_Devices'] = 'Devices';
|
|||||||
$pia_lang['Navigation_Presence'] = 'Presence';
|
$pia_lang['Navigation_Presence'] = 'Presence';
|
||||||
$pia_lang['Navigation_Events'] = 'Events';
|
$pia_lang['Navigation_Events'] = 'Events';
|
||||||
$pia_lang['Navigation_Maintenance'] = 'Maintenance';
|
$pia_lang['Navigation_Maintenance'] = 'Maintenance';
|
||||||
|
$pia_lang['Navigation_Network'] = 'Network';
|
||||||
$pia_lang['Device_Title'] = 'Devices';
|
$pia_lang['Device_Title'] = 'Devices';
|
||||||
$pia_lang['Device_Shortcut_AllDevices'] = 'All Devices';
|
$pia_lang['Device_Shortcut_AllDevices'] = 'All Devices';
|
||||||
$pia_lang['Device_Shortcut_Connected'] = 'Connected';
|
$pia_lang['Device_Shortcut_Connected'] = 'Connected';
|
||||||
@@ -140,6 +152,8 @@ $pia_lang['DevDetail_EveandAl_ScanCycle_z'] = 'Don't Scan Device (0 min)';
|
|||||||
$pia_lang['DevDetail_button_Delete'] = 'Delete Device';
|
$pia_lang['DevDetail_button_Delete'] = 'Delete Device';
|
||||||
$pia_lang['DevDetail_button_Reset'] = 'Reset Changes';
|
$pia_lang['DevDetail_button_Reset'] = 'Reset Changes';
|
||||||
$pia_lang['DevDetail_button_Save'] = 'Save';
|
$pia_lang['DevDetail_button_Save'] = 'Save';
|
||||||
|
$pia_lang['DevDetail_button_DeleteEvents'] = 'Delete Events';
|
||||||
|
$pia_lang['DevDetail_button_DeleteEvents_Warning'] = 'Are you sure you want to delete all Events of this device?<br><br>(this will clear the <b>Events history</b> and the <b>Sessions</b> and might help with constant (persistent) notifications)';
|
||||||
$pia_lang['DevDetail_SessionTable_Order'] = 'Order';
|
$pia_lang['DevDetail_SessionTable_Order'] = 'Order';
|
||||||
$pia_lang['DevDetail_SessionTable_Connection'] = 'Connection';
|
$pia_lang['DevDetail_SessionTable_Connection'] = 'Connection';
|
||||||
$pia_lang['DevDetail_SessionTable_Disconnection'] = 'Disconnection';
|
$pia_lang['DevDetail_SessionTable_Disconnection'] = 'Disconnection';
|
||||||
@@ -251,5 +265,36 @@ $pia_lang['BackDevices_DBTools_UpdDevError'] = 'Error updating device';
|
|||||||
$pia_lang['BackDevices_DBTools_Upgrade'] = 'Database upgraded successfully';
|
$pia_lang['BackDevices_DBTools_Upgrade'] = 'Database upgraded successfully';
|
||||||
$pia_lang['BackDevices_DBTools_UpgradeError'] = 'Database upgrade failed';
|
$pia_lang['BackDevices_DBTools_UpgradeError'] = 'Database upgrade failed';
|
||||||
$pia_lang['BackDevices_DBTools_Purge'] = 'The oldest backups were deleted';
|
$pia_lang['BackDevices_DBTools_Purge'] = 'The oldest backups were deleted';
|
||||||
?>
|
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////
|
||||||
|
// Network Page
|
||||||
|
//////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
$pia_lang['Network_Title'] = 'Network overview';
|
||||||
|
$pia_lang['Network_ManageDevices'] = 'Manage Devices';
|
||||||
|
$pia_lang['Network_ManageAdd'] = 'Add Device';
|
||||||
|
$pia_lang['Network_ManageEdit'] = 'Update Device';
|
||||||
|
$pia_lang['Network_ManageDel'] = 'Delete Device';
|
||||||
|
$pia_lang['Network_ManageAdd_Name'] = 'Device Name';
|
||||||
|
$pia_lang['Network_ManageAdd_Name_text'] = 'Name without special characters';
|
||||||
|
$pia_lang['Network_ManageAdd_Type'] = 'Device Type';
|
||||||
|
$pia_lang['Network_ManageAdd_Type_text'] = '-- Select Type --';
|
||||||
|
$pia_lang['Network_ManageAdd_Port'] = 'Port Count';
|
||||||
|
$pia_lang['Network_ManageAdd_Port_text'] = 'leave blank for wifi and powerline';
|
||||||
|
$pia_lang['Network_ManageAdd_Submit'] = 'Add Device';
|
||||||
|
$pia_lang['Network_ManageEdit_ID'] = 'Device to update';
|
||||||
|
$pia_lang['Network_ManageEdit_ID_text'] = '-- Select Device for editing --';
|
||||||
|
$pia_lang['Network_ManageEdit_Name'] = 'New Device Name';
|
||||||
|
$pia_lang['Network_ManageEdit_Name_text'] = 'Name without special characters';
|
||||||
|
$pia_lang['Network_ManageEdit_Type'] = 'New Device Type';
|
||||||
|
$pia_lang['Network_ManageEdit_Type_text'] = '-- Select Type --';
|
||||||
|
$pia_lang['Network_ManageEdit_Port'] = ' New Port Count';
|
||||||
|
$pia_lang['Network_ManageEdit_Port_text'] = 'leave blank for wifi and powerline';
|
||||||
|
$pia_lang['Network_ManageEdit_Submit'] = 'Save Changes';
|
||||||
|
$pia_lang['Network_ManageDel_Name'] = 'Device to delete';
|
||||||
|
$pia_lang['Network_ManageDel_Name_text'] = '-- Select Device --';
|
||||||
|
$pia_lang['Network_ManageDel_Submit'] = 'Delete';
|
||||||
|
$pia_lang['Network_Table_State'] = 'State';
|
||||||
|
$pia_lang['Network_Table_Hostname'] = 'Hostname';
|
||||||
|
$pia_lang['Network_Table_IP'] = 'IP';
|
||||||
|
?>
|
||||||
@@ -1,4 +1,15 @@
|
|||||||
<?php
|
<?php
|
||||||
|
//////////////////////////////////////////////////////////////////
|
||||||
|
// General
|
||||||
|
//////////////////////////////////////////////////////////////////
|
||||||
|
$pia_lang['Gen_Delete'] = 'Delete';
|
||||||
|
$pia_lang['Gen_Cancel'] = 'Cancel';
|
||||||
|
$pia_lang['Gen_Okay'] = 'Ok';
|
||||||
|
$pia_lang['Gen_Purge'] = 'Purge';
|
||||||
|
$pia_lang['Gen_Backup'] = 'Run Backup';
|
||||||
|
$pia_lang['Gen_Restore'] = 'Run Restore';
|
||||||
|
$pia_lang['Gen_Switch'] = 'Switch';
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
// Device Page - Update by @TeroRERO 25jul2022
|
// Device Page - Update by @TeroRERO 25jul2022
|
||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
@@ -251,4 +262,36 @@ $pia_lang['BackDevices_DBTools_UpdDevError'] = 'Error al actualizar el dispositi
|
|||||||
$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'] = 'Las copias de seguridad más antiguas fueron eliminadas';
|
$pia_lang['BackDevices_DBTools_Purge'] = 'Las copias de seguridad más antiguas fueron eliminadas';
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////
|
||||||
|
// Network Page
|
||||||
|
//////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
$pia_lang['Network_Title'] = 'Network overview';
|
||||||
|
$pia_lang['Network_ManageDevices'] = 'Manage Devices';
|
||||||
|
$pia_lang['Network_ManageAdd'] = 'Add Device';
|
||||||
|
$pia_lang['Network_ManageEdit'] = 'Update Device';
|
||||||
|
$pia_lang['Network_ManageDel'] = 'Delete Device';
|
||||||
|
$pia_lang['Network_ManageAdd_Name'] = 'Device Name';
|
||||||
|
$pia_lang['Network_ManageAdd_Name_text'] = 'Name without special characters';
|
||||||
|
$pia_lang['Network_ManageAdd_Type'] = 'Device Type';
|
||||||
|
$pia_lang['Network_ManageAdd_Type_text'] = '-- Select Type --';
|
||||||
|
$pia_lang['Network_ManageAdd_Port'] = 'Port Count';
|
||||||
|
$pia_lang['Network_ManageAdd_Port_text'] = 'leave blank for wifi and powerline';
|
||||||
|
$pia_lang['Network_ManageAdd_Submit'] = 'Add Device';
|
||||||
|
$pia_lang['Network_ManageEdit_ID'] = 'Device to update';
|
||||||
|
$pia_lang['Network_ManageEdit_ID_text'] = '-- Select Device for editing --';
|
||||||
|
$pia_lang['Network_ManageEdit_Name'] = 'New Device Name';
|
||||||
|
$pia_lang['Network_ManageEdit_Name_text'] = 'Name without special characters';
|
||||||
|
$pia_lang['Network_ManageEdit_Type'] = 'New Device Type';
|
||||||
|
$pia_lang['Network_ManageEdit_Type_text'] = '-- Select Type --';
|
||||||
|
$pia_lang['Network_ManageEdit_Port'] = ' New Port Count';
|
||||||
|
$pia_lang['Network_ManageEdit_Port_text'] = 'leave blank for wifi and powerline';
|
||||||
|
$pia_lang['Network_ManageEdit_Submit'] = 'Save Changes';
|
||||||
|
$pia_lang['Network_ManageDel_Name'] = 'Device to delete';
|
||||||
|
$pia_lang['Network_ManageDel_Name_text'] = '-- Select Device --';
|
||||||
|
$pia_lang['Network_ManageDel_Submit'] = 'Delete';
|
||||||
|
$pia_lang['Network_Table_State'] = 'State';
|
||||||
|
$pia_lang['Network_Table_Hostname'] = 'Hostname';
|
||||||
|
$pia_lang['Network_Table_IP'] = 'IP';
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user