From 176a436ad4dd2084ad708c037abf22c9bc608ddf Mon Sep 17 00:00:00 2001 From: Jokob-sk Date: Sat, 4 Mar 2023 20:47:25 +1100 Subject: [PATCH] Removed pialert_pholus.log --- back/pialert.py | 4 ---- front/maintenance.php | 20 +------------------- front/php/server/util.php | 2 +- front/php/templates/language/en_us.php | 2 +- front/plugins.php | 10 ---------- 5 files changed, 3 insertions(+), 35 deletions(-) diff --git a/back/pialert.py b/back/pialert.py index daf0ac6b..d7d7354d 100755 --- a/back/pialert.py +++ b/back/pialert.py @@ -1920,10 +1920,6 @@ def performPholusScan (timeoutSec): # cleanup - select only lines containing a separator to filter out unnecessary data newLines = list(filter(lambda x: '|' in x, newLines)) - - # regular logging - for line in newLines: - append_line_to_file (logPath + '/pialert_pholus.log', line +'\n') # build SQL query parameters to insert into the DB params = [] diff --git a/front/maintenance.php b/front/maintenance.php index 05bd8112..bbfdc4f7 100755 --- a/front/maintenance.php +++ b/front/maintenance.php @@ -364,25 +364,7 @@ if (isset($_POST['submit']) && submit && isset($_POST['skinselector_set'])) { - -
- -
- -
-
-
-
pialert_pholus.log
- -
-
- -
-
-
- -
+
diff --git a/front/php/server/util.php b/front/php/server/util.php index 233d68c2..5653ea5e 100755 --- a/front/php/server/util.php +++ b/front/php/server/util.php @@ -202,7 +202,7 @@ function cleanLog($logFile) $path = ""; - $allowedFiles = ['pialert.log', 'pialert_front.log', 'IP_changes.log', 'stdout.log', 'stderr.log', "pialert_pholus.log", "pialert_pholus_lastrun.log"]; + $allowedFiles = ['pialert.log', 'pialert_front.log', 'IP_changes.log', 'stdout.log', 'stderr.log', "pialert_pholus_lastrun.log"]; if(in_array($logFile, $allowedFiles)) { diff --git a/front/php/templates/language/en_us.php b/front/php/templates/language/en_us.php index 387cbd08..2bddbbd4 100755 --- a/front/php/templates/language/en_us.php +++ b/front/php/templates/language/en_us.php @@ -650,7 +650,7 @@ The arp-scan time itself depends on the number of IP addresses to check so set t 'PHOLUS_RUN_SCHD_description' => 'Only enabled if you select schedule in the PHOLUS_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes.', 'PHOLUS_DAYS_DATA_name' => 'Data retention', -'PHOLUS_DAYS_DATA_description' => 'How many days of Pholus scan entries should be kept (globally, not device specific!). The pialert_pholus.log file is not touched. Enter 0 to disable.', +'PHOLUS_DAYS_DATA_description' => 'How many days of Pholus scan entries should be kept (globally, not device specific!) Enter 0 to disable.', // Nmap 'Nmap_display_name' => 'Nmap', diff --git a/front/plugins.php b/front/plugins.php index 6925a695..8454be2c 100755 --- a/front/plugins.php +++ b/front/plugins.php @@ -173,8 +173,6 @@ function getData(){ $.get('api/table_plugins_objects.json', function(res) { pluginObjects = res["data"]; - - console.log(pluginObjects) $.get('api/table_plugins_history.json', function(res) { @@ -259,8 +257,6 @@ function generateTabs() } } - console.log(pluginObjects) - // Generate the object rows var obCount = 0; for(var i=0;i' } obRows += '' + clm + ''