2009 |
raphael.pi |
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
|
2 |
<HTML><!-- written by Rexy -->
|
|
|
3 |
<HEAD>
|
|
|
4 |
<TITLE>Sauvegarde</TITLE>
|
|
|
5 |
<link rel="stylesheet" href="/css/style.css" type="text/css">
|
|
|
6 |
</HEAD>
|
|
|
7 |
<body>
|
|
|
8 |
|
|
|
9 |
<?php
|
|
|
10 |
#Cette page permet de générer les journaux d'imputabilité dans une archive avec mot de passe.
|
|
|
11 |
#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.
|
|
|
12 |
#Cette page a été créé suite à la demande d'une préfecture de police afin de faciliter le déroulement des affaires judiciaires UNIQUEMENT.
|
|
|
13 |
|
|
|
14 |
|
|
|
15 |
# Choice of language
|
|
|
16 |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE']))
|
|
|
17 |
{
|
|
|
18 |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
|
|
19 |
$Language = strtolower(substr(chop($Langue[0]),0,2));
|
|
|
20 |
}
|
|
|
21 |
if($Language == 'fr')
|
|
|
22 |
{
|
|
|
23 |
$l_info = "Rapport d'activité hebdomadaire";
|
|
|
24 |
$l_info_report = "Chaque dimanche soir, un rapport se génère décrivant ainsi l'activité de ALCASAR";
|
|
|
25 |
$l_report_list = "Liste des rapports";
|
|
|
26 |
$l_empty_log="Il n'y a pas encore de rapport d'activité généré";
|
|
|
27 |
}
|
|
|
28 |
else
|
|
|
29 |
{
|
|
|
30 |
$l_info = "Weekly activity report";
|
|
|
31 |
$l_info_report = "Every sunday night, a report will be generated to describe the activity of ALCASAR";
|
|
|
32 |
$l_report_list = "Report list";
|
|
|
33 |
$l_empty_log="There no activity report for the moment.";
|
|
|
34 |
}
|
|
|
35 |
|
|
|
36 |
$dirname="/acc/manager/activity_report";
|
|
|
37 |
$dirfullpath="/var/www/html$dirname";
|
|
|
38 |
$file_report=scandir($dirfullpath);
|
|
|
39 |
?>
|
|
|
40 |
|
|
|
41 |
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
42 |
<tr><th><?echo "$l_info";?></th></tr>
|
|
|
43 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
|
|
|
44 |
</TABLE>
|
|
|
45 |
|
|
|
46 |
<p><?php echo $l_info_report?></p>
|
|
|
47 |
|
|
|
48 |
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
|
|
|
49 |
<TR align="center">
|
|
|
50 |
<TD bgcolor="#CCCCCC"><b><?echo "$l_report_list";?></b></TD>
|
|
|
51 |
</TR><TR align="center">
|
|
|
52 |
|
|
|
53 |
|
|
|
54 |
<?php
|
|
|
55 |
$empty_file=0;
|
|
|
56 |
|
|
|
57 |
|
|
|
58 |
foreach($file_report as $file)
|
|
|
59 |
{
|
|
|
60 |
if(preg_match ("/^alcasar-report-/", $file))
|
|
|
61 |
{
|
|
|
62 |
$empty_file=1;
|
|
|
63 |
echo "<TD valign='top'>";
|
|
|
64 |
echo "<center><a href='$dirname/$file'> $file </a></center>";
|
|
|
65 |
echo "</TD>";
|
|
|
66 |
echo "</tr>";
|
|
|
67 |
echo "<tr>";
|
|
|
68 |
}
|
|
|
69 |
}
|
|
|
70 |
|
|
|
71 |
if(!$empty_file)
|
|
|
72 |
{
|
|
|
73 |
echo "<TD valign='top'>$l_empty_log</TD>";
|
|
|
74 |
}
|
|
|
75 |
|
|
|
76 |
|
|
|
77 |
?>
|
|
|
78 |
|
|
|
79 |
</tr>
|
|
|
80 |
</body>
|
|
|
81 |
</html>
|
|
|
82 |
|