From e0c7ffbb12880fd8081b9d29eb02a6d3924a45bb Mon Sep 17 00:00:00 2001 From: Carlos V <76731844+cvc90@users.noreply.github.com> Date: Sun, 6 Aug 2023 13:43:48 +0200 Subject: [PATCH 1/8] Update header.php --- front/php/templates/header.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/front/php/templates/header.php b/front/php/templates/header.php index 60007e85..2ba6a7f6 100755 --- a/front/php/templates/header.php +++ b/front/php/templates/header.php @@ -234,6 +234,10 @@ if ($ENABLED_DARKMODE === True) { +
  • + +
  • +
  • From 3430118f099e38997d9f8be17bd60395aacd6295 Mon Sep 17 00:00:00 2001 From: Carlos V <76731844+cvc90@users.noreply.github.com> Date: Sun, 6 Aug 2023 13:46:27 +0200 Subject: [PATCH 2/8] Create report.php Added new page "Report.php" to load the last report generated by Pi.Alert --- front/report.php | 55 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 front/report.php diff --git a/front/report.php b/front/report.php new file mode 100644 index 00000000..b43cbac1 --- /dev/null +++ b/front/report.php @@ -0,0 +1,55 @@ + + +
    + + +
    + +

    + +

    +
    + + +
    + +Error"; + echo "

    The page you are looking for is temporarily unavailable, please try again after a few seconds

    "; +} +?> + +
    + + + + + + + + From 2a14d59a4549a72a2f9fd68c9ef6f2d0b4a58444 Mon Sep 17 00:00:00 2001 From: Carlos V <76731844+cvc90@users.noreply.github.com> Date: Sun, 6 Aug 2023 13:59:51 +0200 Subject: [PATCH 3/8] Update es_es.json Added variable "Navigation_Report" Added variable "REPORT_TITLE" Added variable "REPORT_ERROR" --- front/php/templates/language/es_es.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/front/php/templates/language/es_es.json b/front/php/templates/language/es_es.json index a9bede2f..c000420d 100755 --- a/front/php/templates/language/es_es.json +++ b/front/php/templates/language/es_es.json @@ -37,6 +37,7 @@ "Navigation_Devices" : "Dispositivos", "Navigation_Presence" : "Historial", "Navigation_Events" : "Eventos", + "Navigation_Report" : "Reporte", "Navigation_Network" : "Red", "Navigation_Plugins" : "Plugins", "Navigation_Maintenance" : "Mantenimiento", @@ -498,6 +499,8 @@ "APPRISE_PAYLOAD_description" : "Seleccione el tipo de carga útil enviada a Apprise. Por ejemplo, html funciona bien con correos electrónicos, text con aplicaciones de chat, como Telegram.", "MQTT_display_name" : "MQTT", "MQTT_icon" : "", + "REPORT_TITLE" : "Reporte", + "REPORT_ERROR" : "La página que está buscando no está disponible temporalmente, inténtelo de nuevo después de unos segundos", "REPORT_MQTT_name" : "Habilitar MQTT", "REPORT_MQTT_description" : "Habilitar el envío de notificaciones a través de MQTT a su Home Assistance.", "MQTT_BROKER_name" : "URL del broker MQTT", From 39282d51acc9e53b7499a52984726a35bde53328 Mon Sep 17 00:00:00 2001 From: Carlos V <76731844+cvc90@users.noreply.github.com> Date: Sun, 6 Aug 2023 14:07:28 +0200 Subject: [PATCH 4/8] Update en_us.json Added variable "Navigation_Report" Added variable "REPORT_TITLE" Added variable "REPORT_ERROR" --- front/php/templates/language/en_us.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/front/php/templates/language/en_us.json b/front/php/templates/language/en_us.json index f871a8a2..db6c5593 100755 --- a/front/php/templates/language/en_us.json +++ b/front/php/templates/language/en_us.json @@ -38,6 +38,7 @@ "Navigation_Devices" : "Devices", "Navigation_Presence" : "Presence", "Navigation_Events" : "Events", + "Navigation_Report" : "Report", "Navigation_Network" : "Network", "Navigation_Plugins" : "Plugins", "Navigation_Maintenance" : "Maintenance", @@ -523,6 +524,8 @@ "APPRISE_PAYLOAD_description" : "Select the payoad type sent to Apprise. For example html works well with emails, text with chat apps, such as Telegram.", "MQTT_display_name" : "MQTT", "MQTT_icon" : "", + "REPORT_TITLE" : "Report", + "REPORT_ERROR" : "The page you are looking for is temporarily unavailable, please try again after a few seconds", "REPORT_MQTT_name" : "Enable MQTT", "REPORT_MQTT_description" : "Enable sending notifications via MQTT to your Home Assistance instance.", "MQTT_BROKER_name" : "MQTT broker URL", From 64ad2f6b8048eb510cb8b9f98fdef4a42ecc6822 Mon Sep 17 00:00:00 2001 From: Carlos V <76731844+cvc90@users.noreply.github.com> Date: Sun, 6 Aug 2023 14:13:10 +0200 Subject: [PATCH 5/8] Update de_de.json Added variable "Navigation_Report" Added variable "REPORT_TITLE" Added variable "REPORT_ERROR --- front/php/templates/language/de_de.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/front/php/templates/language/de_de.json b/front/php/templates/language/de_de.json index b5bc24fd..86d060f4 100755 --- a/front/php/templates/language/de_de.json +++ b/front/php/templates/language/de_de.json @@ -26,6 +26,7 @@ "Navigation_Devices" : "Geräte", "Navigation_Presence" : "Anwesenheit", "Navigation_Events" : "Ereignisse", + "Navigation_Report" : "Bericht", "Navigation_Maintenance" : "Wartung", "Navigation_Settings" : "Einstellung", "Navigation_SystemInfo" : "System info", @@ -317,6 +318,8 @@ "HelpFAQ_Cat_Presence_401_text" : "Wenn dies geschieht hast du die Möglickeit, bei dem betreffenden Gerät (Detailsansicht) die Events zu löschen. Eine andere Möglichkeit wäre, das Gerät einzuschalten und zu warten, bis Pi.Alert mit dem nächsten Scan das Gerät als \"Online\" erkennt und anschließend das Gerät einfach wieder ausschalten. Nun sollte Pi.Alert mit dem nächsten Scan den Zustand des Gerätes ordentlich in der Datenbank vermerken.", "HelpFAQ_Cat_Network_600_head" : "Was bringt mir diese Seite?", "HelpFAQ_Cat_Network_600_text" : "Diese Seite soll dir die Möglichkeit bieten, die Belegung deiner Netzwerkgeräte abzubilden. Dazu kannst du einen oder mehrere Switches, WLANs, Router, etc. erstellen, sie ggf. mit einer Portanzahl versehen und bereits erkannte Geräte diesen zuordnen. Diese Zuordnung erfolgt in der Detailansicht, des zuzuordnenden Gerätes. So ist es dir möglich, schnell festzustellen an welchem Port ein Host angeschlossen und ob er online ist.", + "REPORT_TITLE" : "Bericht", + "REPORT_ERROR" : "Die gesuchte Seite ist vorübergehend nicht verfügbar. Bitte versuchen Sie es nach ein paar Sekunden erneut", "SYSTEM_TITLE" : "Systeminformationen" } } From 8f1223c55bcbd889deb8db2fa2ffb87450e57dd4 Mon Sep 17 00:00:00 2001 From: Carlos V <76731844+cvc90@users.noreply.github.com> Date: Sun, 6 Aug 2023 14:55:48 +0200 Subject: [PATCH 6/8] Update report.php Create variable echo lang('REPORT_ERROR'); --- front/report.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front/report.php b/front/report.php index b43cbac1..0012dc68 100644 --- a/front/report.php +++ b/front/report.php @@ -37,8 +37,8 @@ if (file_exists("log/report_output.html")) { include("log/report_output.html"); } else { // Display an error message - echo "

    Error

    "; - echo "

    The page you are looking for is temporarily unavailable, please try again after a few seconds

    "; + echo "

    Error

    "; + echo lang('REPORT_ERROR'); } ?> From 1baeeb99db86bb6ccb5695326ea68b03cb24fa14 Mon Sep 17 00:00:00 2001 From: Carlos V <76731844+cvc90@users.noreply.github.com> Date: Sun, 6 Aug 2023 15:00:58 +0200 Subject: [PATCH 7/8] Update report.php Update variable "REPORT_TITLE" --- front/report.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front/report.php b/front/report.php index 0012dc68..10dfbd4e 100644 --- a/front/report.php +++ b/front/report.php @@ -23,7 +23,7 @@

    - +

    @@ -38,7 +38,7 @@ if (file_exists("log/report_output.html")) { } else { // Display an error message echo "

    Error

    "; - echo lang('REPORT_ERROR'); + echo lang('REPORT_ERROR'); } ?> From 243f0034f3d061731114cf11f88cea5410ecdda1 Mon Sep 17 00:00:00 2001 From: Carlos V <76731844+cvc90@users.noreply.github.com> Date: Thu, 10 Aug 2023 21:50:21 +0200 Subject: [PATCH 8/8] Update report.php Modified the creators banner Removed error_reporting variable to disable php errors --- front/report.php | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/front/report.php b/front/report.php index 10dfbd4e..4cf644aa 100644 --- a/front/report.php +++ b/front/report.php @@ -1,18 +1,17 @@