/web/acc/manager/htdocs/security.php |
---|
16,8 → 16,10 |
} |
$tab = (isset($_GET['tab'])) ? intval($_GET['tab']) : 1; |
?> |
<!DOCTYPE html> |
<html> |
<head> |
<meta charset="UTF-8"> |
25,6 → 27,7 |
<link rel="stylesheet" href="/css/bootstrap.min.css"> |
<script src="/js/jquery.min.js"></script> |
<script src="/js/bootstrap.min.js"></script> |
<link rel="stylesheet" href="style.css"> |
<style> |
body { |
background-color: #EFEFEF; |
31,8 → 34,25 |
} |
</style> |
</head> |
<body> |
<br> |
<table class="tableTop" border=0 cellspacing=0 cellpadding=0 > |
<tbody > |
<tr> |
<th class="thBasicACC"> |
<?echo "$l_title";?> |
</th> |
</tr> |
<tr bgcolor="#FFCC66" class="trSizeACC"> |
<td class="tdSizeACC"> |
<img src="/images/pix.gif" width=1 height=2> |
</td> |
</tr> |
</tbody> |
</table> |
<div class="frameBorderACC"> |
<div class="btn-group btn-group-justified" role="group" aria-label="Justified button group"> |
<a href="security.php?tab=1" class="btn btn-default<?= (($tab === 1) ? ' active' : '') ?>" role="button"><?= $l_spoofing ?></a> |
<a href="security.php?tab=2" class="btn btn-default<?= (($tab === 2) ? ' active' : '') ?>" role="button"><?= $l_virus ?></a> |
69,10 → 89,21 |
?> |
<h3 style="text-align: center;"><?= $l_spoofing ?></h3> |
<div class="container"> |
<table class="table table-striped table-hover"> |
<thead> |
<tr><th>Date</th><th><?= $l_ipAddress ?></th><th>MAC</th><th><?= $l_user ?></th></tr> |
</thead> |
<table style='font-family: "DejaVu Sans";font-size: small;color: #666650;' class="table table-striped tableBis table-hover" border="1"> |
<tr> |
<th class="thSecurityBis" > |
Date |
</th> |
<th class="thSecurityBis"> |
<?= $l_ipAddress ?> |
</th> |
<th class="thSecurityBis"> |
MAC |
</th> |
<th class="thSecurityBis"> |
<?= $l_user ?> |
</th> |
</tr> |
<tbody> |
<?php if (!empty($spoofs)): ?> |
<?php foreach ($spoofs as $spoof): ?> |
84,6 → 115,7 |
</tbody> |
</table> |
</div> |
</table> |
<?php |
} else if ($tab === 2) { |
$filePath = '/var/log/havp/access.log'; |
96,6 → 128,7 |
?> |
<h3 style="text-align: center;"><?= $l_virus ?></h3> |
<div class="container"> |
<table class="table table-striped table-hover"> |
<tbody> |
<?php if (!empty($lines)): ?> |
141,20 → 174,42 |
$bans = array_reverse($bans); |
?> |
<h3 style="text-align: center;"><?= $l_fail2ban ?></h3> |
<div class="container"> |
<table class="table table-striped table-hover"> |
<thead> |
<tr><th>Date</th><th>Date Unban</th><th><?= $l_rule ?></th><th><?= $l_ipAddress ?></th></tr> |
</thead> |
<tbody> |
<div class="container" border="1"> |
<table class="table tableBis table-striped table-hover" border="1"> |
<tr > |
<th class="thSecurityBis" > |
Date |
</th> |
<th class="thSecurityBis" > |
Date Unban |
</th> |
<th class="thSecurityBis" > |
<?= $l_rule ?> |
</th> |
<th class="thSecurityBis" > |
<?= $l_ipAddress ?> |
</th> |
</tr> |
<?php if (!empty($bans)): ?> |
<?php foreach ($bans as $ban): ?> |
<tr><td><?= $ban->date_ban ?></td><td><?= $ban->date_unban ?></td><td><?= $ban->rule ?></td><td><?= $ban->ip ?></td></tr> |
<tr> |
<td> |
<?= $ban->date_ban ?> |
</td> |
<td> |
<?= $ban->date_unban ?> |
</td> |
<td> |
<?= $ban->rule ?> |
</td> |
<td> |
<?= $ban->ip ?> |
</td> |
</tr> |
<?php endforeach; ?> |
<?php else: ?> |
<tr><td colspan="4" style="text-align: center;"><?= $l_empty ?></td></tr> |
<?php endif; ?> |
</tbody> |
</table> |
</div> |
<?php |
162,5 → 217,6 |
echo 'Unknown tab'; |
} |
?> |
</div> |
</body> |
</html> |
/web/acc/manager/html/stats.html.php |
---|
1,8 → 1,41 |
<?php |
# Choice of language |
$Language = 'en'; |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) |
{ |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']); |
$Language = strtolower(substr(chop($Langue[0]),0,2)); |
} |
if($Language == 'fr') |
{ |
$l_Pagename = "Usage journalier"; |
} |
else |
{ |
$l_Pagename = "Daily use"; |
} |
?> |
<form action="stats.php" method="get"> |
<table border=0 width=600 cellpadding=2 cellspacing=0> |
<table width="100%" border=0 cellspacing=0 cellpadding=2> |
<tbody> |
<tr> |
<td align=left> |
<table border=0 cellspacing=0 cellpadding=2> |
<th class="thBasicACC"> |
<?echo "$l_Pagename";?> |
</th> |
</tr> |
</tbody> |
<tr bgcolor="#FFCC66"> |
<td> |
<img src="/images/pix.gif" width="1" height="2"> |
</td> |
</tr> |
</table> |
<TABLE width="100%" border=1 cellspacing=0 cellpadding=0> |
<tr> |
<td colspan="2" align=center> |
<table border=0 cellspacing=2 cellpadding=2> |
<tr valign=bottom> |
<td><small><b>De </td> |
<td><small><b>à </td> |
16,34 → 49,33 |
{ |
$login = ""; |
} |
echo <<<EOM |
<td valign=middle><input type="text" name="after" size="12" value="$after" ></td> |
<td valign=middle><input type="text" name="before" size="12" value="$before"></td> |
<td valign=middle><input type="text" name="login" size="12" value="$login" ></td> |
<td valign=middle><select name="server" size=1> |
EOM; |
foreach($servers as $key => $val) |
echo <<<EOM |
<option value="$val">$key |
EOM; |
?> |
</select></td> |
<td valign=middle><input type="text" name="after" size="12" value="<?php echo $after; ?>" ></td> |
<td valign=middle><input type="text" name="before" size="12" value="<?php echo $before; ?>"></td> |
<td valign=middle><input type="text" name="login" size="12" value="<?php echo $login; ?>" ></td> |
<td valign=middle> |
<select name="server" size=1> |
<?php foreach($servers as $key => $val): ?> |
<option value="<?php echo $val; ?>"><?php echo $key; ?> |
<?php endforeach; ?> |
</select> |
</td> |
<td valign=middle><input type="submit" class=button value="Go"></td> |
</tr> |
</table> |
</td> |
</tr> |
<tbody > |
<tr> |
<td><hr size=1 noshade></td> |
</tr> |
<tr> |
<td valign=top> |
<tr> <td align=center valign=top width=100"%"> |
<small> |
<td align=center valign=top width="40%"> |
<font color="darkblue"><b><?php echo $date ?></b></font> |
</td> |
<td align=center valign=top width="10%"> </td> |
<td align=center valign=top width="45%"><small> |
</small> |
<td align= center width="10%"> |
Période observée :<br> |
<?php |
echo <<<EOM |
52,9 → 84,12 |
?> |
</td> |
</tr> |
</table> |
</td> |
</tr> |
</tbody> |
</table> |
<br> |
<tr> |
<td align=center><h1><b>Statistiques d'utilisation journalière</td> |
</tr> |
83,19 → 118,16 |
<tr> |
<td> |
<table border=0 cellpadding=0 cellspacing=0 width="100%"> |
<tr> <td colspan=2><hr size=1 noshade> |
<tr> <td colspan=2> |
</td> |
</tr> |
</table> |
</td> |
</tr> |
</table> |
<tr> |
<td align="center"> |
<tr> |
<td>Champs affichés :</td><td colspan=10 align=center nowrap><select name="column1"> |
<option <?php if(isset($selected1['sessions'])){print($selected1['sessions']);} ?> value="sessions">Nbre de sessions |
116,10 → 148,11 |
<option <?php if(isset($selected3['upload'])){print($selected3['upload']);} ?> value="upload">uploads |
<option <?php if(isset($selected3['download'])){print($selected3['download']);} ?> value="download">downloads |
</select> |
</td> |
</tr> |
<hr size=1 noshade> |
<tr> |
<td colspan=10 align=center valign=middle> |
<table border=0 width="100%"> |
140,19 → 173,25 |
<tr> |
<td colspan=10 height=20><img src="images/pixel.gif"></td> |
</tr> |
<tr> |
</table> |
<table width="100%" border=0 cellspacing=0 cellpadding=0> |
<tbody style='font-family: "DejaVu Sans";font-size: small;color: #666666;'> |
<td colspan=10 height=20 align=center> |
<tr valign=top> |
<td width=100%></td> |
<td bgcolor="black" width=200> |
<table border=0 width=100% cellpadding=2 cellspacing=0> |
<tr bgcolor="#666666" align=center valign=top><th> |
<tbody> |
<tr bgcolor="#666660" align=center valign=top><th> |
<font color="white">Analyse journalière</font> |
</th> |
</tr> |
<tr bgcolor="#FFCC66"> |
<td> |
<img src="/images/pix.gif" width="1" height="2"> |
</td> |
</tr> |
</tbody> |
</table> |
</td></tr> |
<tr valign=top><td colspan=2> |
<tr><td> |
<p> |
<tr valign=top> |
<tr> |
<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top> |
<tr bgcolor="#d0ddb0"> |
<th>date</th> |
198,30 → 237,29 |
</tr> |
</table> |
</td> |
</tr> |
EOM; |
} |
?> |
</table> |
</td></tr> |
</tbody> |
</table> |
</td></tr> |
</table> |
</td></tr> |
</table> |
<p> |
<table border=0 width=100% cellpadding=1 cellspacing=1> |
<table border=0 width=100% cellpadding=2 cellspacing=0> |
<tr valign=top> |
<td width=440></td> |
<tr bgcolor="#666666" align=center valign=top><th> |
<tr bgcolor="#666660" align=center valign=top><th> |
<font color="white">Récapitulatif journalier</font> |
</th></tr> |
<tr bgcolor="#FFCC66"> |
<td> |
<img src="/images/pix.gif" width="1" height="3"> |
</td> |
</tr> |
</table> |
</td></tr> |
<tr bgcolor="black" valign=top><td colspan=2> |
<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top> |
<tr valign=top><td colspan=2> |
<tr><td> |
<p> |
<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ff |
ffe0" valign=top> |
<tr bgcolor="#d0ddb0"> |
256,10 → 294,7 |
</tr> |
EOM; |
?> |
</table> |
</table> |
</td></tr> |
</table> |
</td></tr> |
</table> |
</form> |
/web/acc/manager/nfsen.php |
---|
0,0 → 1,26 |
<!DOCTYPE html> |
<html> |
<header> |
<link rel="stylesheet" href="../manager/htdocs/style.css"> |
</header> |
<body> |
<table border=0 cellspacing=0 cellpadding=0 class="tableTopNfsen"> |
<tbody class="tbodyAcc" > |
<tr> |
<th class="thBasicACC"> |
<?echo "NFSEN";?> |
</th> |
</tr> |
</tbody> |
<tr bgcolor="#FFCC66" class="trSizeACC"> |
<td class="tdSizeACC"> |
<img src="/images/pix.gif" width="1" height="2"> |
</td> |
</tr> |
</table> |
<div > |
<iframe class="nfseniframe" src="nfsen/nfsen.php"> |
</iframe> |
</div> |
</body> |
</html> |
/web/acc/manager/stats/index.php |
---|
168,6 → 168,22 |
// |
header('Content-type: text/html; charset=utf-8'); |
print '<?xml version="1.0"?>'; |
# Choice of language |
$Language = 'en'; |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) |
{ |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']); |
$Language = strtolower(substr(chop($Langue[0]),0,2)); |
} |
if($Language == 'fr') |
{ |
$l_Pagename = "Traffic Global"; |
} |
else |
{ |
$l_Pagename = "Global Traffic"; |
} |
?> |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
174,14 → 190,32 |
<head> |
<title>vnStat - PHP frontend</title> |
<link rel="stylesheet" type="text/css" href="themes/<?php echo $style ?>/style.css"/> |
<link rel="stylesheet" href="../../manager/htdocs/style.css"> |
</head> |
<body> |
<table class="tableTop" border="0" cellspacing="0" cellpadding="0" > |
<tbody> |
<tr> |
<th class="thBasicACC" > |
<?echo "$l_Pagename";?> |
</th> |
</tr> |
</tbody> |
<tr bgcolor="#FFCC66" class="trSizeACC"> |
<td class="tdSizeACC"> |
<img src="/images/pix.gif" width="1" height="2"> |
</td> |
</tr> |
</table> |
<div class="frameBorderACC test"> |
<div id="wrap"> |
<div id="sidebar"><?php write_side_bar(); ?></div> |
<div id="content"> |
<div id="content" style="width: 70%"> |
<div id="header"><?php print T('Traffic data for').(isset($iface_title[$iface]) ? $iface_title[$iface] : '')." ($iface)";?></div> |
<div id="main"> |
<div id="main" "> |
<?php |
$graph_params = "if=$iface&page=$page&style=$style"; |
if ($page != 's') |
212,5 → 246,6 |
<div id="footer"><a href="http://www.sqweek.com/">vnStat PHP frontend</a> 1.5.2 - ©2006-2011 Bjorge Dijkstra (bjd _at_ jooz.net)</div> |
</div> |
</div> |
</div> |
</body></html> |