Added auth log page

This commit is contained in:
Martijn Scheepers
2019-07-04 08:27:02 +02:00
parent 8622f2c0d1
commit 6c0d7aa5b1
2 changed files with 24 additions and 0 deletions

23
auth.php Normal file
View File

@@ -0,0 +1,23 @@
<?php include('partialpage/header.php');?>
<?php include('partialpage/sidebar.php');?>
<!-- !PAGE CONTENT! -->
<div class="w3-main" style="margin-left:340px;margin-right:40px">
<!-- auth log output -->
<div class="w3-container" id="auths" style="margin-top:75px">
<h1 class="w3-jumbo"><b>Auth Log</b></h1>
<br>
<div style="border:5px solid red; width:100px" class="w3-round"></div>
<br>
<p>Auth log file(/var/log/auth.log).</p>
<div class="w3-section">
<textarea class="w3-input w3-border" type="text" name="auths" rows="50">
<?php echo file_get_contents('/var/log/auth.log');?>
</textarea>
</div>
</div>
<!-- End page content -->
</div>
<?php include('partialpage/footer.php');?>

View File

@@ -24,6 +24,7 @@
<a href="time.php" onclick="w3_close()" class="w3-bar-item w3-button">Time/date</a>
<a href="messages.php" onclick="w3_close()" class="w3-bar-item w3-button">Messages Log</a>
<a href="dmesg.php" onclick="w3_close()" class="w3-bar-item w3-button">dmesg</a>
<a href="auth.php" onclick="w3_close()" class="w3-bar-item w3-button">Auth Log</a>
<a href="phpinfo.php" onclick="w3_close()" class="w3-bar-item w3-button">phpinfo</a>
</div>
<a href="help.php" onclick="w3_close()" class="w3-bar-item w3-button w3-hover-white">Help</a>