/web/acc/backup/log_generation.php |
---|
4,6 → 4,7 |
<link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css"> |
<script src="../../../js/jquery.min.js"></script> |
<script src="../../../js/bootstrap.min.js"></script> |
<link rel="stylesheet" href="../manager/htdocs/style.css"> |
<style> |
body{ |
background-color: #EFEFEF; |
82,7 → 83,6 |
$password=$_POST['password']; |
$demandeur=$_POST['demandeur']; |
$raison=$_POST['comment']; |
#si le mot de passe est vide ou si il contient des espaces |
if($password != "" && $demandeur != "" && $raison != "") |
{ |
131,8 → 131,20 |
else |
{ |
#Interface permettant de configurer la génération des journaux d'imputabilité. |
echo "<div>"; |
echo " <div style=\"margin-top:20px\">"; |
echo "<table class=\"tableTop\" border='0' cellspacing='0' cellpadding='0'>"; |
echo "<tbody >"; |
echo " <tr>"; |
echo "<th class='thBasicACC'>"; |
echo "ALCASAR Report"; |
echo "</th>"; |
echo "</tr>"; |
echo "</tbody>"; |
echo "<tr bgcolor='#FFCC66'><td class=\"tdSizeACC\"> |
<img src='/images/pix.gif' width='1' height='2'></td></tr>"; |
echo "</table>"; |
echo "<div class =\"frameBorderACC\">"; |
echo " <div style=\"margin-top:16px;margin-left:15px;\">"; |
echo " <div>"; |
echo " <fieldset>"; |
142,13 → 154,13 |
echo "<h4> $l_options_info </h4>"; |
echo "<div class=\"radio\">"; |
echo "<label><input type=\"radio\" name=\"optradio\" onclick=\"radio_interact1()\" checked> $l_options_1 </label>"; |
echo "<label><input type=\"radio\" name=\"optradio\" onclick=\"radio_interact1()\" style=\"margin-top: -1px;\" checked> $l_options_1 </label>"; |
echo "</div>"; |
echo "<div class=\"radio\">"; |
echo "<label><input type=\"radio\" name=\"optradio\" onclick=\"radio_interact2()\"> $l_options_2 </label>"; |
echo "<label><input type=\"radio\" name=\"optradio\" onclick=\"radio_interact2()\" style=\"margin-top: -1px;\" > $l_options_2 </label>"; |
echo "</div>"; |
echo "<div class=\"radio\">"; |
echo "<label><input type=\"radio\" name=\"optradio\" onclick=\"radio_interact3()\"> $l_options_3 </label>"; |
echo "<label><input type=\"radio\" name=\"optradio\" onclick=\"radio_interact3()\" style=\"margin-top: -1px;\"> $l_options_3 </label>"; |
echo "</div>"; |
echo "<form name=\"form_log\" method=\"post\" action=\"log_generation.php\" role=\"form\">"; |
echo "<p> $l_password </p><input name=\"password\" type=\"password\" size=\"25\">"; |
/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> |
67,12 → 87,23 |
$spoofs = array_reverse($spoofs); |
?> |
<h3 style="text-align: center;"><?= $l_spoofing ?></h3> |
<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,49 → 1,81 |
<form action="stats.php" method="get"> |
<table border=0 width=600 cellpadding=2 cellspacing=0> |
<tr> |
<td align=left> |
<table border=0 cellspacing=0 cellpadding=2> |
<tr valign=bottom> |
<td><small><b>De </td> |
<td><small><b>à </td> |
<td><small><b>usager</td> |
<td><small><b>sur le serveur</td> |
<td> </td> |
</tr> |
<tr valign=middle> |
<?php |
if(!isset($login)) |
{ |
$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; |
# 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"; |
} |
?> |
</select></td> |
<td valign=middle><input type="submit" class=button value="Go"></td> |
<form action="stats.php" method="get"> |
<table width="100%" border=0 cellspacing=0 cellpadding=2> |
<tbody> |
<tr> |
<th class="thBasicACC"> |
<?echo "$l_Pagename";?> |
</th> |
</tr> |
</table> |
</td> |
</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> |
<td><small><b>usager</td> |
<td><small><b>sur le serveur</td> |
<td> </td> |
</tr> |
<tr valign=middle> |
<?php |
if(!isset($login)) |
{ |
$login = ""; |
} |
?> |
<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"%"> |
<tr> |
<small> |
<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> |
<td align=center valign=top width="40%"> |
<font color="darkblue" ><b><?php echo $date ?></b></font> |
</td> |
</small> |
<td align= center width="10%"> |
Période observée :<br> |
<?php |
echo <<<EOM |
52,10 → 84,13 |
?> |
</td> |
</tr> |
</table> |
</td> |
</tr> |
<tr> |
</tbody> |
</table> |
<br> |
<tr > |
<td align=center><h1><b>Statistiques d'utilisation journalière</td> |
</tr> |
<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> |
<font color="white">Analyse journalière</font> |
<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,27 → 168,61 |
// |
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"> |
<head> |
<title>vnStat - PHP frontend</title> |
<link rel="stylesheet" type="text/css" href="themes/<?php echo $style ?>/style.css"/> |
<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> |
<div id="wrap"> |
<div id="sidebar"><?php write_side_bar(); ?></div> |
<div id="content"> |
<div id="header"><?php print T('Traffic data for').(isset($iface_title[$iface]) ? $iface_title[$iface] : '')." ($iface)";?></div> |
<div id="main"> |
<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" style="width: 70%"> |
<div id="header" ><?php print T('Traffic data for ').(isset($iface_title[$iface]) ? $iface_title[$iface] : '')." ($iface)";?></div> |
<div id="main" "> |
<?php |
$graph_params = "if=$iface&page=$page&style=$style"; |
if ($page != 's') |
if ($graph_format == 'svg') { |
print "<object type=\"image/svg+xml\" width=\"692\" height=\"297\" data=\"graph_svg.php?$graph_params\"></object>\n"; |
print "<object type=\"image/svg+xml\" width=\"692\" height=\"297\" data=\"graph_svg.php?$graph_params\"></object>\n"; |
} else { |
print "<img src=\"graph.php?$graph_params\" alt=\"graph\"/>\n"; |
print "<img src=\"graph.php?$graph_params\" alt=\"graph\"/>\n"; |
} |
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> |
/web/acc/menu.php |
---|
37,7 → 37,7 |
fclose($file_conf); |
// Retrieve the user's profil |
$user_htdigest = $_SERVER['REMOTE_USER']; |
$user_htdigest = $_SERVER['PHP_AUTH_USER']; |
exec('sudo alcasar-profil.sh --list | cut -d":" -f2', $output); |
$admin_members = explode(' ', ltrim($output[0], " \t")); |
$backup_members = explode(' ', ltrim($output[1], " \t")); |
113,12 → 113,12 |
$l_edit_group = "Manage groups"; |
$l_import_empty = "Import / Empty"; |
$l_protocols = "Protocols"; |
$l_stat_user_day = "By connexion"; |
$l_stat_user_day = "By connection"; |
$l_stat_con = "Global accounting"; |
$l_stat_daily = "daily use"; |
$l_stat_global_network = "global trafic"; |
$l_stat_detail_network = "detailed trafic"; |
$l_security = "security"; |
$l_stat_daily = "Daily use"; |
$l_stat_global_network = "Global traffic"; |
$l_stat_detail_network = "Detailed traffic"; |
$l_security = "Security"; |
$l_menu = "Main"; |
$l_gammu = "Auto registration (SMS)"; |
$l_backup_archive = "Archives"; |
207,7 → 207,7 |
<li><div class="caret"></div><a href="manager/htdocs/accounting.php" target="REXY2"><?= $l_stat_con ?></a></li> |
<li><div class="caret"></div><a href="manager/htdocs/stats.php" target="REXY2"><?= $l_stat_daily ?></a></li> |
<li><div class="caret"></div><a href="manager/stats/index.php" target="REXY2"><?= $l_stat_global_network ?></a></li> |
<li><div class="caret"></div><a href="manager/nfsen/nfsen.php" target="REXY2"><?= $l_stat_detail_network ?></a></li> |
<li><div class="caret"></div><a href="manager/nfsen.php" target="REXY2"><?= $l_stat_detail_network ?></a></li> |
<li><div class="caret"></div><a href="manager/htdocs/security.php" target="REXY2"><?= $l_security ?></a></li> |
</ul> |
</li> |