-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbootlog.php
More file actions
24 lines (21 loc) · 646 Bytes
/
bootlog.php
File metadata and controls
24 lines (21 loc) · 646 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
include("header.php");
if($_SESSION['flag']=="allowed")
{echo'
<ol class="breadcrumb">
<li><a href="home.php">Home</a></li>
<li><a href="system.php">Systems</a></li>
<li class="active">Logs</li>
</ol>
<ul class="nav nav-tabs">
<li><a href="logsmessages.php">log/messages</a></li>
<li><a href="logshttpd.php">log/httpd</a></li>
<li class="active"><a href="bootlog.php">log/boot.log</a></li>
<li><a href="logsmail.php">log/maillog</a></li>
</ul>';
$data = `sudo cat /var/log/boot.log`;
echo '<label class="alert alert-primary"><pre>'.$data.'</pre></label>';
}
else
header("location:index.php");
?>