Subversion Repositories ALCASAR

Compare Revisions

No changes between revisions

Ignore whitespace Rev 2817 → Rev 2818

/web/alcasar-certificat.pdf
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Deleted: svn:mime-type
-application/octet-stream
\ No newline at end of property
/web/acc/admin_log.php
50,49 → 50,43
}
 
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Admin Logs</title>
<link rel="stylesheet" href="/css/style.css" type="text/css">
<style>
body {
background-color: #EFEFEF;
}
</style>
<link rel="stylesheet" href="/css/acc.css" type="text/css">
</head>
<body>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th><? echo "$l_title";?></th></tr>
<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>
<thead>
<tr>
<th>Date</th>
<th><?=$l_user?></th>
<th><?=$l_ip_address?></th>
<th>Agent</th>
</tr>
</thead>
<tbody>
<?php if (empty($accessLogs)): ?>
<div class="panel">
<div class="panel-header"><?= $l_title ?></div>
<div class="panel-row">
<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
<tr><td>
<TABLE width="100%" border=1 cellspacing=0 cellpadding=0>
<tr>
<th>Date</th>
<th><?=$l_user?></th>
<th><?=$l_ip_address?></th>
<th>Agent</th>
</tr>
<?php if (empty($accessLogs)): ?>
<tr>
<td colspan="4"><center>Empty</center></td>
</tr>
<?php else: ?>
<?php else: ?>
<?php foreach ($accessLogs as $access): ?>
<tr>
<td><?= $access->date ?></td>
<td><?= $access->username ?></td>
<td><?= $access->ip ?></td>
<td><?= $access->user_agent ?></td>
</tr>
<td><?= $access->date ?></td>
<td><?= $access->username ?></td>
<td><?= $access->ip ?></td>
<td><?= $access->user_agent ?></td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</tbody>
</table>
<?php endif; ?>
</table>
</table>
</div>
</div>
</body>
</html>
/web/acc/backup/log_generation.php
1,26 → 1,18
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<TITLE>ALCASAR Report</TITLE>
<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;
}
</style>
</HEAD>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ALCASAR Report</title>
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/acc.css">
<script src="/js/jquery.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
</head>
<body>
 
<?php
# $Id $
# Cette page permet de générer les journaux d'imputabilité dans une archive avec mot de passe.
# Lors de la création de cette archive, tous les utilisateurs d'alcasar seront prévenus lors de leur prochaine connexion par un message d'alerte.
 
#Cette page permet de générer les journaux d'imputabilité dans une archive avec mot de passe.
#Lors de la création de cette archive, tous les utilisateurs d'alcasar seront prévenus lors de leur prochaine connexion par un message d'alerte.
#Cette page a été créé suite à la demande d'une préfecture de police afin de faciliter le déroulement des affaires judiciaires UNIQUEMENT.
 
 
# Choice of language
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE']))
{
29,6 → 21,7
}
if($Language == 'fr')
{
$l_title = "Journaux d'imputabilité";
$l_info = "Génération des journaux d'imputabilité";
$l_log_info = "Vous allez générer un document réservé aux autorités dans le cadre d'une requête judiciaire ou administrative. Tout les utilisateurs seront avertis de la génération de ce document.";
$l_password = "Entrez votre mot de passe afin de protéger l'archive contenant le document généré";
53,6 → 46,7
}
else
{
$l_title = "Imputabilities logs";
$l_info = "Imputabilities logs generation";
$l_log_info = "You are in progress to generate a document reserved for a judicial or administrative investigation. All users will be warned.";
$l_password = "Enter your password to protect the archive which contains the document.";
74,30 → 68,22
$l_logtab="Last entries :";
$l_empty_log="Logs are empty";
}
 
 
$filename='/var/www/html/acc/backup/log_info.txt';
 
if(isset($_POST['submit']))
{
$password=$_POST['password'];
$demandeur=$_POST['demandeur'];
$raison=$_POST['comment'];
#si le mot de passe est vide ou si il contient des espaces
# si le mot de passe est vide ou si il contient des espaces
if($password != "" && $demandeur != "" && $raison != "")
{
#Génération de log
# Génération de log
$text=date("Y-m-d H:i:s")."|||".$demandeur."|||".$raison."|||".$_SERVER['REMOTE_ADDR'];
#supprimer les nouvelles lignes
# supprimer les nouvelles lignes
$text = str_replace("\n", ' ', $text);
$text = str_replace("\r", ' ', $text);
 
file_put_contents($filename, $text.PHP_EOL, FILE_APPEND);
 
 
#Création des journaux dans une archive avec mot de passe.
# Création des journaux dans une archive avec mot de passe.
$filename_logs="imputabilities_logs.zip";
switch($_POST['submit'])
{
113,11 → 99,8
$date1_selected= $_POST['start-year'].'-'.$_POST['start-month'].'-'.$_POST['start-day'].' '.$_POST['start-hour'].':'.$_POST['start-min'].':'.$_POST['start-sec'];
exec("sudo alcasar-generate_log.sh ".escapeshellarg($password)." ".escapeshellarg($date1_selected));
break;
}
 
 
#Interface permettant de télécharger les journaux d'imputabilité
# Interface permettant de télécharger les journaux d'imputabilité
echo "<h3>$l_create</h3>";
echo "<a href=\"$filename_logs\" class=\"btn btn-info btn-lg\">";
echo " <span class=\"glyphicon glyphicon-download-alt\"></span> $l_download";
130,28 → 113,16
}
else
{
#Interface permettant de configurer la génération des journaux d'imputabilité.
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\">";
# Interface permettant de configurer la génération des journaux d'imputabilité.
echo "<div class=\"panel\">\n";
echo "<div class=\"panel-header\">$l_title</div>";
echo "<div class=\"panel-row\">";
echo " <div style=\"margin-top:16px;margin-left:15px;\">";
echo " <div>";
echo " <fieldset>";
echo " <h3>$l_info</h3>";
echo " <p>$l_log_info</p>";
echo " </fieldset>";
 
echo "<h4> $l_options_info </h4>";
echo "<div class=\"radio\">";
echo "<label><input type=\"radio\" name=\"optradio\" onclick=\"radio_interact1()\" style=\"margin-top: -1px;\" checked> $l_options_1 </label>";
169,7 → 140,6
echo "<p>$l_commentary</p><textarea name='comment'></textarea>";
echo "<p id=\"query_option\"></br></br><button type=\"submit\" onClick=\"this.classList.add('disabled');\" class=\"btn btn-primary\" name=\"submit\" value=\"query_all\"> $l_submit </button></p>";
}
 
echo "<br><div style=\"height:1px;background:#717171;border-bottom:1px solid #313030:\"></div>";
echo "<h2>$l_logtab</h2>";
if(file_exists($filename)){
389,6 → 359,6
echo "</div>";
echo "</div>";
?>
 
</div>
</body>
</html>
/web/acc/backup/sauvegarde.php
2,8 → 2,8
<!-- Written by Rexy -->
<html>
<head>
<title>Sauvegarde</title>
<link rel="stylesheet" href="/css/acc.css" type="text/css">
<title>Sauvegarde</title>
<link rel="stylesheet" href="/css/acc.css" type="text/css">
</head>
<body>
<?
/web/acc/haut.php
22,7 → 22,7
window.open(page, "portail", "alwaysRaised=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,hotkeys=no,width=640 ,height=480");
}
</script>
<link rel="stylesheet" type="text/css" href="/css/style.css">
<link rel="stylesheet" type="text/css" href="/css/acc.css">
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
/web/acc/manager/htdocs/accounting.php
1,10 → 1,9
<!DOCTYPE html>
<?php
 
require('/etc/freeradius-web/config.php');
require('../lib/functions.php');
require('../lib/sql/functions.php');
require('../lib/acctshow.php');
 
if (is_file("../lib/sql/drivers/$config[sql_type]/functions.php"))
include_once("../lib/sql/drivers/$config[sql_type]/functions.php");
else{
11,8 → 10,8
echo <<<EOM
<html>
<head>
<title>G&eacute;n&eacute;rateur de rapports de comptes</title>
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>$l_title</title>
<link rel="stylesheet" href="/css/acc.css">
</head>
<body>
23,6 → 22,16
EOM;
exit();
}
$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_title = "Journal des connexions";
} else {
$l_title = "Connections log";
}
 
$operators=array( '=','<', '>', '<=', '>=', 'regexp', 'like' );
if ($config['sql_type'] == 'pg'){
30,10 → 39,7
}
$link = da_sql_pconnect ($config) or die('cannot connect to sql databse');
$fields = da_sql_list_fields($config['sql_accounting_table'],$link,$config);
 
 
unset($items);
 
while($row = $fields->fetch_array())
{
$key = strtolower($row[0]);
107,18 → 113,14
?>
<html>
<head>
<title>Journal des connexions</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config['general_charset']?>">
<link rel="stylesheet" href="/css/acc.css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?= $l_title ?></title>
<link rel="stylesheet" href="/css/acc.css">
</head>
<body>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th>Journal des connexions</th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2">
</td></tr>
</TABLE>
<TABLE width="100%" border="1" cellspacing="0" cellpadding="1">
<tr><td>
<div class="panel">
<div class="panel-header"><?= $l_title ?></div>
<div class="panel-row">
<?php
if(!isset($queryflag))
{
207,11 → 209,7
</tr>
</table>
</form>
</table>
</body>
</html>
EOM;
 
}
 
if ($queryflag == 1){
269,13 → 267,10
echo <<<EOM
<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
<tr><td>
<p>
<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
<tr bgcolor="#d0ddb0">
</tr>
<table border=1 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
<tr bgcolor="#d0ddb0">
EOM;
 
 
foreach($accounting_show_attrs as $val){
$desc = $sql_attrs[$val]['desc'];
if($val == 'acctoutputoctets')
301,7 → 296,7
$info = '-';
if ($val == 'username'){
$Info = urlencode($info);
$info = "<a href=\"user_admin.php?login=$Info\" title=\"Edit user $info\">$info<a/>";
$info = "<a href=\"user_admin.php?login=$Info\" title=\"Edit user $info\">$info</a>";
}
echo <<<EOM
<td>$info</td>
312,15 → 307,14
}
else
echo "<b>Database query failed: " . da_sql_error($link,$config) . "</b><br>\n";
echo <<<EOM
</table>
echo <<<EOM
</table>
</td></tr>
</table>
</td></tr>
</table>
</table>
</body>
</html>
</table>\n
EOM;
}
?>
</div>
</div>
</body>
</html>
/web/acc/manager/htdocs/help/help.php
File deleted
/web/acc/manager/htdocs/help/framed_protocol_help.html
File deleted
/web/acc/manager/htdocs/help/lock_message_help.html
File deleted
/web/acc/manager/htdocs/help/dialup_access_help.html
File deleted
/web/acc/manager/htdocs/help/reply_message_help.html
File deleted
/web/acc/manager/htdocs/help/framed_mtu_help.html
File deleted
/web/acc/manager/htdocs/help/framed_compression_help.html
File deleted
/web/acc/manager/htdocs/help/class_help.html
File deleted
/web/acc/manager/htdocs/help/port_limit_help.html
File deleted
/web/acc/manager/htdocs/help/callback_id_help.html
File deleted
/web/acc/manager/htdocs/help/callback_number_help.html
File deleted
/web/acc/manager/htdocs/help/login_time_help2.html
File deleted
/web/acc/manager/htdocs/help/filter_id_help.html
File deleted
/web/acc/manager/htdocs/help/service_type_help.html
File deleted
/web/acc/manager/htdocs/help/framed_ip_netmask_help.html
File deleted
/web/acc/manager/htdocs/help/badusers_help.html
File deleted
/web/acc/manager/htdocs/help/framed_ip_address_help.html
File deleted
/web/acc/manager/htdocs/help/idle_timeout_help.html
File deleted
/web/acc/manager/htdocs/help/auth_type_help.html
File deleted
/web/acc/manager/htdocs/help/coovachilli_bandwidth_max_down_help.html
3,7 → 3,7
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Help Page</title>
<link rel="stylesheet" href="/css/style.css" type="text/css">
<link rel="stylesheet" href="/css/acc.css" type="text/css">
</HEAD>
<body>
<center>
/web/acc/manager/htdocs/help/coovachilli_bandwidth_max_up_help.html
3,7 → 3,7
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Help Page</title>
<link rel="stylesheet" href="/css/style.css" type="text/css">
<link rel="stylesheet" href="/css/acc.css" type="text/css">
</HEAD>
<body>
<center>
/web/acc/manager/htdocs/help/coovachilli_max_input_octets_help.html
3,7 → 3,7
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Help Page</title>
<link rel="stylesheet" href="/css/style.css" type="text/css">
<link rel="stylesheet" href="/css/acc.css" type="text/css">
</HEAD>
<body>
<center>
/web/acc/manager/htdocs/help/coovachilli_max_output_octets_help.html
3,7 → 3,7
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Help Page</title>
<link rel="stylesheet" href="/css/style.css" type="text/css">
<link rel="stylesheet" href="/css/acc.css" type="text/css">
</HEAD>
<body>
<center>
/web/acc/manager/htdocs/help/coovachilli_max_total_octets_help.html
3,7 → 3,7
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Help Page</title>
<link rel="stylesheet" href="/css/style.css" type="text/css">
<link rel="stylesheet" href="/css/acc.css" type="text/css">
</HEAD>
<body>
<center>
/web/acc/manager/htdocs/help/expiration_help.html
3,7 → 3,7
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Help Page</title>
<link rel="stylesheet" href="/css/style.css" type="text/css">
<link rel="stylesheet" href="/css/acc.css" type="text/css">
</HEAD>
<body>
<center>
/web/acc/manager/htdocs/help/expire_after_help.html
3,7 → 3,7
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Help Page</title>
<link rel="stylesheet" href="/css/style.css" type="text/css">
<link rel="stylesheet" href="/css/acc.css" type="text/css">
</HEAD>
<body>
<center>
/web/acc/manager/htdocs/help/filtering_help.html
3,7 → 3,7
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Help Page</title>
<link rel="stylesheet" href="/css/style.css" type="text/css">
<link rel="stylesheet" href="/css/acc.css" type="text/css">
</HEAD>
<body>
<center>
/web/acc/manager/htdocs/help/login_time_help.html
3,7 → 3,7
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Help Page</title>
<link rel="stylesheet" href="/css/style.css" type="text/css">
<link rel="stylesheet" href="/css/acc.css" type="text/css">
</HEAD>
<body>
<center>
/web/acc/manager/htdocs/help/max_all_session_help.html
3,7 → 3,7
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Help Page</title>
<link rel="stylesheet" href="/css/style.css" type="text/css">
<link rel="stylesheet" href="/css/acc.css" type="text/css">
</HEAD>
<body>
<center>
/web/acc/manager/htdocs/help/protocols_help.html
3,7 → 3,7
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Help Page</title>
<link rel="stylesheet" href="/css/style.css" type="text/css">
<link rel="stylesheet" href="/css/acc.css" type="text/css">
</HEAD>
<body>
<center>
/web/acc/manager/htdocs/help/session_timeout_help.html
3,7 → 3,7
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Help page</title>
<link rel="stylesheet" href="/css/style.css" type="text/css">
<link rel="stylesheet" href="/css/acc.css" type="text/css">
</HEAD>
<body>
<center>
/web/acc/manager/htdocs/help/simultaneous_use_help.html
3,7 → 3,7
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Help Page</title>
<link rel="stylesheet" href="/css/style.css" type="text/css">
<link rel="stylesheet" href="/css/acc.css" type="text/css">
</HEAD>
<body>
<center>
/web/acc/manager/htdocs/help/statusOpenRequired_help.html
3,7 → 3,7
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Help Page</title>
<link rel="stylesheet" href="/css/style.css" type="text/css">
<link rel="stylesheet" href="/css/acc.css" type="text/css">
</HEAD>
<body>
<center>
/web/acc/manager/htdocs/help/wispr_redirection_url_help.html
3,7 → 3,7
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Help Page</title>
<link rel="stylesheet" href="/css/style.css" type="text/css">
<link rel="stylesheet" href="/css/acc.css" type="text/css">
</HEAD>
<body>
<center>
/web/acc/manager/htdocs/security.php
27,38 → 27,25
}
$tab = (isset($_GET['tab'])) ? intval($_GET['tab']) : 1;
?>
<!DOCTYPE HTML PUBLIC>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title><?= $l_title ?></title>
<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">
</head>
<body>
<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>
<a href="security.php?tab=3" class="btn btn-default<?= (($tab === 3) ? ' active' : '') ?>" role="button"><?= $l_fail2ban ?></a>
</div>
<br>
<head>
<meta charset="UTF-8">
<title><?= $l_title ?></title>
<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="/css/acc.css">
</head>
<body>
<div class="panel">
<div class="panel-header"><?= $l_title ?></div>
<div class="panel-row">
<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>
<a href="security.php?tab=3" class="btn btn-default<?= (($tab === 3) ? ' active' : '') ?>" role="button"><?= $l_fail2ban ?></a>
</div>
<?php
if ($tab === 1) {
$spoofs = [];
84,34 → 71,34
}
$spoofs = array_reverse($spoofs);
?>
<h3 style="text-align: center;"><?= $l_spoofing ?></h3>
<div class="container">
<table style='font-family: "DejaVu Sans";font-size: small;color: #666650;' class="table table-striped tableBis table-hover" border="1">
<h3><?= $l_spoofing ?></h3>
<div class="container">
<table class="table table-striped table-hover" border="1">
<tr>
<th class="thSecurityBis" >
<th>
Date
</th>
<th class="thSecurityBis">
<th>
<?= $l_ipAddress ?>
</th>
<th class="thSecurityBis">
<th>
MAC
</th>
<th class="thSecurityBis">
<th>
<?= $l_user ?>
</th>
</tr>
<tbody>
<?php if (!empty($spoofs)): ?>
<tbody>
<?php if (!empty($spoofs)): ?>
<?php foreach ($spoofs as $spoof): ?>
<tr><td><?= $spoof->date ?></td><td><?= $spoof->ip ?></td><td><?= $spoof->mac ?></td><td><?= $spoof->user ?></td></tr>
<tr><td><?= $spoof->date ?></td><td><?= $spoof->ip ?></td><td><?= $spoof->mac ?></td><td><?= $spoof->user ?></td></tr>
<?php endforeach; ?>
<?php else: ?>
<?php else: ?>
<tr><td colspan="4" style="text-align: center;"><?= $l_empty ?></td></tr>
<?php endif; ?>
</tbody>
</table>
</div>
<?php endif; ?>
</tbody>
</table>
</div>
<?php
} else if ($tab === 2) {
$filePath = '/var/log/havp/access.log';
119,12 → 106,10
if ($lines === false) {
exit("Cannot open '$filePath'.");
}
 
$lines = array_reverse($lines);
?>
<h3 style="text-align: center;"><?= $l_virus ?></h3>
<h3><?= $l_virus ?></h3>
<div class="container">
 
<table class="table table-striped table-hover">
<tbody>
<?php if (!empty($lines)): ?>
168,20 → 153,20
}
$bans = array_reverse($bans);
?>
<h3 style="text-align: center;"><?= $l_fail2ban ?></h3>
<h3><?= $l_fail2ban ?></h3>
<div class="container" border="1">
<table class="table tableBis table-striped table-hover" border="1">
<table class="table table-striped table-hover" border="1">
<tr >
<th class="thSecurityBis" >
<th>
Date
</th>
<th class="thSecurityBis" >
<th>
Date Unban
</th>
<th class="thSecurityBis" >
<th>
<?= $l_rule ?>
</th>
<th class="thSecurityBis" >
<th>
<?= $l_ipAddress ?>
</th>
</tr>
212,6 → 197,7
echo 'Unknown tab';
}
?>
</div>
</div>
</body>
</html>
/web/acc/manager/nfsen.php
11,27 → 11,14
?>
<!DOCTYPE html>
<html>
<header>
<link rel="stylesheet" href="htdocs/acc.css">
</header>
<head>
<link rel="stylesheet" href="/css/acc.css">
</head>
<body>
<table border=0 cellspacing=0 cellpadding=0 class="tableTopACC">
<tbody class="tbodyAcc" >
<tr>
<th class="thBasicACC">
<?echo $l_title;?>
</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="ACCiframe" src="nfsen/nfsen.php">
</iframe>
<div class="panel">
<div class="panel-header"><?= $l_title ?></div>
<iframe class="panel-iframe" src="nfsen/nfsen.php">
</iframe>
</div>
</body>
</html>
/web/index.php
55,7 → 55,6
$remote_ip = preg_match('#^([0-9]{1,3}\.){3}[0-9]{1,3}$#', $_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '';
$connection_history = '';
$nb_connection_history = 3;
 
$redirect_link = 'www.euronews.com'; // Default redirection for HTTPS interception (beware, this website must run in HTTP)
 
// Check if the SMS service is enable
172,11 → 171,7
}
$l_password_change = "<a href=\"https://$hostname/password.php\">Changer votre mot de passe</a>";
$l_password_change_explain = "Vous devez avoir un compte internet valide.";
$l_sms_explain = "Vous redirige vers la page explicative de l'auto enregistrement par SMS.<br><br><strong>Identifiant:</strong> votre numéro de téléphone<br><strong>Mot de passe:</strong> votre message";
$l_back_page = "<a href=\"javascript:history.back()\">Page précédente</a>";
$l_service_sms = "Service SMS actif";
$l_service_sms_n = "Service SMS non actif";
$l_acc_sms = "Auto enregistrement par SMS";
$l_explain_warn = "L'administrateur a créé une archive contenant vos journaux de connexion dans le cadre d'une affaire judiciaire.";
if (isset($_GET['url'])) {
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">Je comprends et je souhaite continuer ma navigation.</a>";
219,11 → 214,7
}
$l_password_change = "<a href=\"https://$hostname/password.php\">Mudar sua senha</a>";
$l_password_change_explain = "Você será redirecionado à página de alteração de senha.<br><br> e deverá ter uma conta de usuário valido para efetuar a troca e acessar à Internet.";
$l_sms_explain = "Redirect you on auto registration page.<br><br><strong>Login:</strong> your phone number<br><strong>Password:</strong> SMS content";
$l_back_page = "<a href=\"javascript:history.back()\">Página anterior</a>";
$l_service_sms = "SMS service enable";
$l_service_sms_n = "SMS service disable";
$l_acc_sms = "Auto registration by SMS";
$l_explain_warn = "El administrador ha creado un archivo que contiene los periódicos de inicio de sesión como parte de un proceso judicial.";
if (isset($_GET['url'])) {
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">Lo comprendo y deseo continuar mi navegación.</a>";
266,11 → 257,7
}
$l_password_change = "<a href=\"https://$hostname/password.php\">更改您的密码</a>";
$l_password_change_explain = "重新指向密码修改页面。<br><br> 您需要一个可用的网络账户。";
$l_sms_explain = "重新指向短信登录页面。<br><br><strong>用户名:</strong>您的电话号码<br><strong>密码:</strong>您的信息";
$l_back_page = "<a href=\"javascript:history.back()\">上一页</a>";
$l_service_sms = "短信服务可用";
$l_service_sms_n = "短信服务禁用";
$l_acc_sms = "短信自动注册";
$l_explain_warn = "管理员创建了一份可用于司法调查的连接日志文档。";
if (isset($_GET['url'])) {
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">我明白并希望继续浏览。</a>";
332,12 → 319,8
$your_phone_text = "رقم الهاتف الخاص بك";
$pass_text = "كلمة السر";
$your_message_text = "رسالتك";
$l_sms_explain = "$your_message_text <strong>$pass_text</strong><br>$your_phone_text <strong>$login_text</strong><br><br>$redirect_sms_text";
$previous_text = "الصفحة السابقة";
$l_back_page = "<a href=\"javascript:history.back()\">$previous_text</a>";
$l_service_sms = "نشطة SMS خدمة";
$l_service_sms_n = "غير نشطة SMS خدمة";
$l_acc_sms = "تسجيل ذاتي عن طريق SMS";
$l_explain_warn = "المسؤول أنشأ أرشيفاً تحتوي على سجلات الاتصال في إطار تحقيق قضائي";
$understand_text = "أنا متفهم و أريد ان أواصل التصفح";
if (isset($_GET['url'])) {
381,11 → 364,7
}
$l_password_change = "<a href=\"https://$hostname/password.php\">Passwort ändern</a>";
$l_password_change_explain = "Leitet Sie auf die Seite der Passwortänderung weiter.<br><br> Sie sollten bereits einen Account für den Internetzugriff haben.";
$l_sms_explain = "Leitet Sie auf die automatische Registrierungsseite weiter.<br><br><strong>Login:</strong> Ihre Telefonnummer<br><strong>Passwort:</strong> SMS content";
$l_back_page = "<a href=\"javascript:history.back()\">Previous page</a>";
$l_service_sms = "SMS-Service aktivieren";
$l_service_sms_n = "SMS-Service deaktivieren";
$l_acc_sms = "Automatische Registrierung per SMS";
$l_explain_warn = "Der Administrator wird ein Archiv erstellen, welches Ihre Logdaten für den Fall einer gerichtlichen Untersuchung beinhaltet.";
if (isset($_GET['url'])) {
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">Ich verstehe und möchte fortfahren.</a>";
429,11 → 408,7
}
$l_password_change = "<a href=\"https://$hostname/password.php\">Change your password</a>";
$l_password_change_explain = "You should already have an Internet access account.";
$l_sms_explain = "Redirect you on auto registration page.<br><br><strong>Login:</strong> your phone number<br><strong>Password:</strong> SMS content";
$l_back_page = "<a href=\"javascript:history.back()\">Previous page</a>";
$l_service_sms = "SMS service enable";
$l_service_sms_n = "SMS service disable";
$l_acc_sms = "Auto registration by SMS";
$l_explain_warn = "The administrator created an archive which contains your imputabilities logs for a judicial investigation.";
if (isset($_GET['url'])) {
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">I understand and I wish to continue.</a>";
519,7 → 494,7
}
////////////////////////////////////////////////////////////////////////
/////////////////////////// TEST VARIABLES /////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
//$service_SMS_status = true;
//$direct_access = true;
//$network_pb = false;
527,10 → 502,8
// 'name' => 'name_test',
// 'domain' => 'domain_test'
//];
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////
 
 
 
// Cleaning the cache
header('Expires: Tue, 01 Jan 2000 00:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
547,10 → 520,8
<title>ALCASAR - <?= $l_title ?></title>
<link type="text/css" href="<?= ((!$direct_access) ? "//$hostname" : '') ?>/css/bootstrap.min.css" rel="stylesheet">
<link type="text/css" href="/css/index.css" rel="stylesheet">
 
</head>
<body>
 
<div class="col-xs-12 col-md-10 col-md-offset-1" id="gui">
 
<!-- HeaderBox -->
562,7 → 533,6
 
<!-- Title -->
<div id="cadre_titre" class="col-xs-12 col-sm-8">
<?php if ($direct_access): ?>
<p id="acces_controle" class="titre_controle"><?= $l_title ?></p>
<?php if ($network_pb): ?>
569,13 → 539,10
<div class="explanation_net_pb"><?= $l_explain_net_pb ?></div>
<?php endif; ?>
<?php else: // the user is intercepted ?>
 
<?php // if user need to be warned that someone reads his logs ?>
<?php if (isset($_GET['warn']) && isset($_GET['url']) && $_GET['warn'] == '1'): ?>
<?php if (isset($_GET['warn']) && isset($_GET['url']) && $_GET['warn'] == '1'): // if user need to be warm that someone reads his log ?>
<div id="cadre_titre" class="titre_refus">
<p id="acces_controle" class="titre_refus"><?= $l_title_warn ?></p>
</div>
<?php else: // the user is blacklisted (or whitelisted) ?>
<div id="cadre_titre" class="titre_refus">
<p id="acces_controle" class="titre_refus"><?= $l_title ?></p>
588,14 → 555,12
<!-- Main content box -->
<div class="row">
<div id="contenu_acces" class="col-xs-12 col-lg-offset-1 col-lg-10">
<?php if ((!$direct_access) && (!$network_pb) && (!isset($_GET['warn']))): // print blacklist categories ?>
<div id="box_url">
<?php // Print blacklist categories ?>
<?php if ((!$direct_access) && (!$network_pb) && (!isset($_GET['warn']))): ?>
<?= $filteredUrlHtml ?>
<?php endif; ?>
<?= $filteredUrlHtml ?>
</div>
<?php endif; ?>
 
 
<!-- Menu -->
<div class="menu-container container col_xs_12 col-sm-7">
<?php if ($direct_access): ?>
621,15 → 586,14
</div>
 
<?php if ($service_SMS_status === true): ?>
<div class="box_menu_right box_menu" id="box_acc">
<span><?= $l_sms_access ?></span>
<div class="menu-image">
<img class="img-responsive menu-image" src="<?= $img_rep.$img_sms ?>">
</div>
<div class="box_menu_right box_menu" id="box_acc">
<span><?= $l_sms_access ?></span>
<div class="menu-image">
<img class="img-responsive menu-image" src="<?= $img_rep.$img_sms ?>">
</div>
</div>
<?php endif; ?>
</div>
 
<!-- Info Box -->
<div class="info-box-container col-sm-5">
651,11 → 615,6
<h2 class="box_infos_titles"><?= $l_password_change ?></h2>
<p class="box_infos_explanations"><?= $l_password_change_explain ?></p>
<?php if ($service_SMS_status === true): ?>
<h2 class="box_infos_titles"><?= $l_sms_access ?></h2>
<p class="box_infos_explanations"><?= $l_sms_explain ?></p>
<p style="color: green; text-align: center;"><?= $l_service_sms ?></p>
<?php endif; ?>
<?php else: // the user is intercepted ?>
<?php if (isset($_GET['warn']) && isset($_GET['url']) && $_GET['warn'] === '1'): // user need to be warned that someone reads his logs ?>
<div id="box_refuse">
681,13 → 640,11
<span>Diagnostic : <?= $diagnostic ?></span>
<?php endif; ?>
</div>
<?php if ($direct_access): // display the admin logo (wheel) at the bottom right ?>
<div id="corner">
<div id="adm" class="corn">
<a href="<?= "https://$hostname/acc/" ?>"><img src="<?= $img_rep.$img_adm ?>"></a>
</div>
<div id="corner">
<div id="adm" class="corn">
<a href="<?= "https://$hostname/acc/" ?>"><img src="<?= $img_rep.$img_adm ?>"></a>
</div>
</div>
</div>
<?php endif; ?>
697,7 → 654,5
<img class="img-responsive img-organisme" src="<?= ((!$direct_access) ? "//$hostname" : '') ?><?= $img_rep.$img_organisme ?>">
</div>
</div>
 
 
</body>
</html>