-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlogsmail.php
More file actions
30 lines (28 loc) · 762 Bytes
/
logsmail.php
File metadata and controls
30 lines (28 loc) · 762 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
25
26
27
28
29
30
<?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><a href="bootlog.php">log/boot.log</a></li>
<li class="active"><a href="logsmail.php">log/maillog</a></li>
</ul>
';
$data = `sudo cat /var/log/maillog`;
if($data != "")
{
echo '<label class="alert alert-primary"><pre>'.$data.'</pre></label>';
}
else
echo '<label class="alert alert-primary"><pre>Mail Log Empty</pre></label>';
}
else
header("location:index.php");
?>