Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2006 → Rev 2009

/web/acc/manager/activity_report/index.php
0,0 → 1,82
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><!-- written by Rexy -->
<HEAD>
<TITLE>Sauvegarde</TITLE>
<link rel="stylesheet" href="/css/style.css" type="text/css">
</HEAD>
<body>
 
<?php
#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']))
{
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
$Language = strtolower(substr(chop($Langue[0]),0,2));
}
if($Language == 'fr')
{
$l_info = "Rapport d'activité hebdomadaire";
$l_info_report = "Chaque dimanche soir, un rapport se génère décrivant ainsi l'activité de ALCASAR";
$l_report_list = "Liste des rapports";
$l_empty_log="Il n'y a pas encore de rapport d'activité généré";
}
else
{
$l_info = "Weekly activity report";
$l_info_report = "Every sunday night, a report will be generated to describe the activity of ALCASAR";
$l_report_list = "Report list";
$l_empty_log="There no activity report for the moment.";
}
 
$dirname="/acc/manager/activity_report";
$dirfullpath="/var/www/html$dirname";
$file_report=scandir($dirfullpath);
?>
 
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th><?echo "$l_info";?></th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
</TABLE>
 
<p><?php echo $l_info_report?></p>
 
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
<TR align="center">
<TD bgcolor="#CCCCCC"><b><?echo "$l_report_list";?></b></TD>
</TR><TR align="center">
 
 
<?php
$empty_file=0;
 
 
foreach($file_report as $file)
{
if(preg_match ("/^alcasar-report-/", $file))
{
$empty_file=1;
echo "<TD valign='top'>";
echo "<center><a href='$dirname/$file'> $file </a></center>";
echo "</TD>";
echo "</tr>";
echo "<tr>";
}
}
 
if(!$empty_file)
{
echo "<TD valign='top'>$l_empty_log</TD>";
}
 
 
?>
 
</tr>
</body>
</html>
 
/web/acc/manager/activity_report/models/Chart.report.js
0,0 → 1,49
//Création du graphe
var XXCONFXX = {
type: //line, bar, radar, pie, doughnut
'XXTYPEXX',
data: {
datasets: [{ //valeur de mes attributs de graph
data: [XXDATAXX],
backgroundColor: [XXCOLORXX],//couleur des attributs '#F7464A','#46BFBD','#FDB45C','#949FB1','#4D5360','#33CC33','#6699ff','#996633','#9966ff','#ffff66'
}],
labels: [XXLABELSXX] //labels
},
options: {
title: { //titre du graph
display: true,
text: 'XXTITLEXX',
fontFamily: "Calibri",
fontSize : 20,
},
responsive: false,
animation: false,
animateRotate: false,
legend: { //display : 'pie' => true // 'autre' => false
display: XXLEGENDXX,
position: 'right',
},
//ne pas commenter pour afficher la valeur de l'axe : 'pie' => false // 'autre' => true
XXCOMMENT-BEGINXX
scales: {
yAxes: [{
scaleLabel: {
display:
true,
labelString:
'XXYLABELXX',
}
}]
},
scales: {
yAxes: [{
ticks: {
beginAtZero:true
}
}]
}
XXCOMMENT-ENDXX
}
};
 
/web/acc/manager/activity_report/models/tabinfo.html
0,0 → 1,70
 
<div class="container">
 
<h2>Configuration de l'ALCASAR</h2>
<table class="table table-striped">
<thead>
<tr>
<th>Organisme</th>
<th>Installation</th>
<th>Version</th>
<th>@IP publique</th>
<th>@IP privée</th>
<th>Passerelle</th>
<th>DNS1</th>
<th>DNS2</th>
</tr>
</thead>
<tbody>
<tr>
<td>XXORGXX</td>
<td>XXINSTALLXX</td>
<td>XXAVERSIONXX</td>
<td>XXIP_PUBLICXX</td>
<td>XXIP_PRIVEXX</td>
<td>XXGWXX</td>
<td>XXDNS1XX</td>
<td>XXDNS2XX</td>
</tr>
</tbody>
</table>
 
<h2>Configuration du Système</h2>
<table class="table table-striped">
<thead>
<tr>
<th>Hostname</th>
<th>Version</th>
<th>Last reboot</th>
<th>MAJ Antivirus</th>
<th>MAJ Blacklist</th>
</tr>
</thead>
<tbody>
<tr>
<td>XXHOSTXX</td>
<td>XXOS_VERSIONXX</td>
<td>XXREBOOTXX</td>
<td>XXMAJCLAMAVXX</td>
<td>XXMAJBLXX</td>
</tr>
</tbody>
</table>
 
 
<h2>Logiciel mis à jour (cette semaine)</h2>
<table class="table table-striped">
<thead>
<tr>
<th>NOM</th>
<th>DATE</th>
<th>VERSION</th>
</tr>
</thead>
<tbody>
XXRPMXX
</tbody>
</table>
 
</div>
 
/web/acc/manager/htdocs/help/protocols_help.html
0,0 → 1,33
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><!-- written by Rexy -->
<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">
</HEAD>
<body>
<center>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th>Filtrage de protocole - Protocol filtering</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 valign="middle" align="left">
Cet attribut définit le niveau de filtrage de protocole d'un usager :<br/>
- Aucun : aucun filtrage de protocole<br/>
- Navigation Web : On autorise les protocoles HTTP et HTTPS.<br/>
- Navigation Web, Messagerie et serveur distant : On autorise les protocoles : HTTP/S, POP3/S, IMAP/S, FTP, SFTP et SSH<br/>
- Personnalisable : vous disposez d'un profil modifiable <a href='../../../admin/protocols_filter.php' > ici </a>
<HR>
This attribute defines the protocol filtering level for a user :<br/>
- None : no protocol filtering<br/>
- Web browsing : Only HTTP/S allowed<br/>
- Web browsing, Mail et server administration : Those protocols are allowed : HTTP/S, POP3/S, IMAP/S, FTP, SFTP et SSH<br/>
- Custom : you can custom your own protocol filter <a href='../../../admin/protocols_filter.php' > here </a>
</td></tr>
</table>
<br>
<a href="javascript:window.close();"><b>Close / Fermer</b></a>
</center>
</body>
</html>
/web/acc/menu.php
73,6 → 73,7
$l_archive="Archivage";
$l_log="Générer les journaux";
$l_backup_archive="Archives";
$l_activity_report="Rapport d'activité";
}
else
{
105,6 → 106,7
$l_gammu="Auto registration (SMS)";
$l_backup_archive="Archives";
$l_backup_log="Log generation";
$l_activity_report="Activity report";
}
echo "
<TABLE width=\"100%\" border=0 cellspacing=0 cellpadding=0>
/web/acc/stat.php
6,6 → 6,7
$select[3]="$l_stat_global_network";
$select[4]="$l_stat_detail_network";
$select[5]="$l_security";
$select[6]="$l_activity_report";
$fich[0]="manager/htdocs/user_stats.php";
$fich[1]="manager/htdocs/accounting.php";
$fich[2]="manager/htdocs/stats.php";
12,6 → 13,7
$fich[3]="manager/stats/index.php";
$fich[4]="manager/nfsen/nfsen.php";
$fich[5]="manager/htdocs/security.php";
$fich[6]="manager/activity_report/index.php";
$j=0;
while ($j != count($select))
{