website functions expanded
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
<br>
|
||||
|
||||
|
||||
Hier wird live das access log angezeigt. <br><br>
|
||||
Hier werden live die letzten 200 Zeilen des access log von heute angezeigt. Vergangene Daten gibts <a href="./access_log_history.php">hier</a>. <br><br>
|
||||
|
||||
|
||||
Access log:<br>
|
||||
|
||||
52
website_data/html/access_log_history.php
Normal file
52
website_data/html/access_log_history.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html><head>
|
||||
<meta name="description" content="fet.at - abgesagte Prüfungen">
|
||||
<meta name="author" content="fet.at">
|
||||
<link href="style.css" rel="stylesheet" type="text/css">
|
||||
<meta charset="UTF-8">
|
||||
<title>fet.at - Lab Doorknob</title>
|
||||
<meta name=viewport content="width=device-width, initial-scale=1, user-scalable=yes">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script>0</script>
|
||||
<div class="breitenbegrenzer">
|
||||
<div class="centertext">
|
||||
<big><big>Sarah <br>ACCESS LOG History</big></big><br>
|
||||
<a href="/">
|
||||
<img src="FET-Logo.png" height="100px">
|
||||
<br>
|
||||
HOME</a>
|
||||
</div>
|
||||
<br>
|
||||
|
||||
|
||||
Hier werden die letzten 31 Tage des access log angezeigt. <br><br>
|
||||
|
||||
|
||||
access log:<br><br>
|
||||
<?php
|
||||
|
||||
for($i=1; $i<32; $i++){
|
||||
$date = date('Ymd',strtotime("-".$i." days"));
|
||||
echo $date.":<br>";
|
||||
$access_file = "/home/zutritt/Documents/sarah/logs/".$date."_entrance_log.csv";
|
||||
if(file_exists($access_file)){
|
||||
echo "<pre>".shell_exec("tail -2000 ".$access_file)."</pre>";
|
||||
}
|
||||
else{
|
||||
echo "<pre>File is nixi --> No Entries </pre>";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<br><br><br>
|
||||
<a href="https://www.fet.at/kontakt">Kontakt</a> <br>fet.at - 2022
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body></html>
|
||||
@@ -58,7 +58,7 @@
|
||||
<br>
|
||||
|
||||
|
||||
Hier wird live das debug log angezeigt. <br><br>
|
||||
Hier werden live die letzten 20 Zeilen des heutigen debug log angezeigt. <br><br>
|
||||
|
||||
|
||||
Debug log:<br>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<?php
|
||||
|
||||
$date_today = date("Ymd");
|
||||
echo "<pre>".shell_exec("tail -20 /home/zutritt/Documents/sarah/logs/".$date_today."_entrance_log.csv")."</pre>";
|
||||
echo "<pre>".shell_exec("tail -200 /home/zutritt/Documents/sarah/logs/".$date_today."_entrance_log.csv")."</pre>";
|
||||
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user