diff --git a/website_data/html/access_log.php b/website_data/html/access_log.php index f447927..fbf7447 100644 --- a/website_data/html/access_log.php +++ b/website_data/html/access_log.php @@ -58,7 +58,7 @@
-Hier wird live das access log angezeigt.

+Hier werden live die letzten 200 Zeilen des access log von heute angezeigt. Vergangene Daten gibts hier.

Access log:
diff --git a/website_data/html/access_log_history.php b/website_data/html/access_log_history.php new file mode 100644 index 0000000..12e967d --- /dev/null +++ b/website_data/html/access_log_history.php @@ -0,0 +1,52 @@ + + + + + + + fet.at - Lab Doorknob + + + + + + +
+
+ Sarah
ACCESS LOG History

+ + +
+ HOME
+
+
+ + +Hier werden die letzten 31 Tage des access log angezeigt.

+ + +access log:

+"; + $access_file = "/home/zutritt/Documents/sarah/logs/".$date."_entrance_log.csv"; + if(file_exists($access_file)){ + echo "
".shell_exec("tail -2000 ".$access_file)."
"; + } + else{ + echo "
File is nixi --> No Entries 
"; + } + + } + + + ?> + +


+ Kontakt
fet.at - 2022 +
+ + + diff --git a/website_data/html/debug_log.php b/website_data/html/debug_log.php index a245b9c..69ead48 100644 --- a/website_data/html/debug_log.php +++ b/website_data/html/debug_log.php @@ -58,7 +58,7 @@
-Hier wird live das debug log angezeigt.

+Hier werden live die letzten 20 Zeilen des heutigen debug log angezeigt.

Debug log:
diff --git a/website_data/html/get_access_log.php b/website_data/html/get_access_log.php index 2841fd5..a1b3d69 100644 --- a/website_data/html/get_access_log.php +++ b/website_data/html/get_access_log.php @@ -2,7 +2,7 @@ ".shell_exec("tail -20 /home/zutritt/Documents/sarah/logs/".$date_today."_entrance_log.csv").""; +echo "
".shell_exec("tail -200 /home/zutritt/Documents/sarah/logs/".$date_today."_entrance_log.csv")."
"; ?>