From acb756a871ad3b69c88ab1ca146f7b3370b38da2 Mon Sep 17 00:00:00 2001 From: Jokob-sk Date: Sat, 8 Jul 2023 22:48:49 +1000 Subject: [PATCH] moving plugins --- docker-compose.yml | 1 + front/deviceDetails.php | 12 + front/php/templates/language/en_us.php | 10 +- front/plugins.php | 455 +------------------------ front/pluginsCore.php | 452 ++++++++++++++++++++++++ 5 files changed, 479 insertions(+), 451 deletions(-) create mode 100755 front/pluginsCore.php diff --git a/docker-compose.yml b/docker-compose.yml index 8bde7d41..89e91edc 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -38,6 +38,7 @@ services: - ${DEV_LOCATION}/front/devices.php:/home/pi/pialert/front/devices.php - ${DEV_LOCATION}/front/events.php:/home/pi/pialert/front/events.php - ${DEV_LOCATION}/front/plugins.php:/home/pi/pialert/front/plugins.php + - ${DEV_LOCATION}/front/pluginsCore.php:/home/pi/pialert/front/pluginsCore.php - ${DEV_LOCATION}/front/help_faq.php:/home/pi/pialert/front/help_faq.php - ${DEV_LOCATION}/front/index.php:/home/pi/pialert/front/index.php - ${DEV_LOCATION}/front/maintenance.php:/home/pi/pialert/front/maintenance.php diff --git a/front/deviceDetails.php b/front/deviceDetails.php index 1686ca42..f5bb00d7 100755 --- a/front/deviceDetails.php +++ b/front/deviceDetails.php @@ -107,6 +107,7 @@
  • +
  • + +
    + + + + +
    + diff --git a/front/php/templates/language/en_us.php b/front/php/templates/language/en_us.php index da3b4a5b..020af74a 100755 --- a/front/php/templates/language/en_us.php +++ b/front/php/templates/language/en_us.php @@ -542,7 +542,7 @@ The arp-scan time itself depends on the number of IP addresses to check so set t 'DAYS_TO_KEEP_EVENTS_name' => 'Delete events older than', 'DAYS_TO_KEEP_EVENTS_description' => 'This is a maintenance setting. This specifies the number of days worth of event entries that will be kept. All older events will be deleted periodically. Also applies on Plugin Events History.', 'HRS_TO_KEEP_NEWDEV_name' => 'Keep new devices for', -'HRS_TO_KEEP_NEWDEV_description' => 'This is a maintenance setting. If enabled (0 is disabled), Devices marked as New Device will be deleted if their First Session time was older than the specified hours in this setting. Use this setting if you want to auto-delete New Devices after X hours', +'HRS_TO_KEEP_NEWDEV_description' => 'This is a maintenance setting. If enabled (0 is disabled), devices marked as New Device will be deleted if their First Session time was older than the specified hours in this setting. Use this setting if you want to auto-delete New Devices after X hours.', 'REPORT_DASHBOARD_URL_name' => 'Pi.Alert URL', 'REPORT_DASHBOARD_URL_description' => 'This URL is used as the base for generating links in the emails. Enter full URL starting with http:// including the port number (no trailig slash /).', 'DIG_GET_IP_ARG_name' => 'Internet IP discovery', @@ -558,13 +558,13 @@ The arp-scan time itself depends on the number of IP addresses to check so set t 'NEWDEV_SCAN_name' => 'Scan device', 'NEWDEV_SCAN_description' => 'The default value of the Scan device dropdown. Select 1 if newly discovered devices should be scanned (this will result in Yes being selected in the dropdown) or 0, if not.', 'NEWDEV_ALERT_ALL_name' => 'Alert All Events', -'NEWDEV_ALERT_ALL_description' => 'The default value of the Alert All Events checkbox. Select 1 if newly discovered devices should have this checkbox selected or 0, if not.', +'NEWDEV_ALERT_ALL_description' => 'The default value of the Alert All Events checkbox (1 is checked, 0 is unchecked).', 'NEWDEV_ALERT_DWN_name' => 'Alert Down', -'NEWDEV_ALERT_DWN_description' => 'The default value of the Alert Down checkbox. Select 1 if newly discovered devices should have this checkbox selected or 0, if not.', +'NEWDEV_ALERT_DWN_description' => 'The default value of the Alert Down checkbox (1 is checked, 0 is unchecked).', 'NEWDEV_NEWDEV_name' => 'New Device', -'NEWDEV_NEWDEV_description' => 'The default value of the New Device checkbox. Select 1 if newly discovered devices should have this checkbox selected or 0, if not.', +'NEWDEV_NEWDEV_description' => 'The default value of the New Device checkbox (1 is checked, 0 is unchecked).', 'NEWDEV_ARCHIVED_name' => 'Archived', -'NEWDEV_ARCHIVED_description' => 'The default value of the Archived checkbox. Select 1 if newly discovered devices should have this checkbox selected or 0, if not.', +'NEWDEV_ARCHIVED_description' => 'The default value of the Archived checkbox (1 is checked, 0 is unchecked).', 'NEWDEV_SKIPNTF_name' => 'Skip repeated notifications for', 'NEWDEV_SKIPNTF_description' => 'The default value of the Skip repeated notifications for dropdown. Select the number of hours for which repeated notifications should be ignored for.', diff --git a/front/plugins.php b/front/plugins.php index b1f6f5b3..b3b8ca41 100755 --- a/front/plugins.php +++ b/front/plugins.php @@ -1,6 +1,7 @@ @@ -8,461 +9,23 @@
    - -
    - + +
    +

    - -
    -
    - - - - diff --git a/front/pluginsCore.php b/front/pluginsCore.php new file mode 100755 index 00000000..3289371a --- /dev/null +++ b/front/pluginsCore.php @@ -0,0 +1,452 @@ + + + + + +
    +
    + + + \ No newline at end of file