Subversion Repositories ALCASAR

Rev

Rev 1827 | Rev 2142 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1827 Rev 2138
Line 13... Line 13...
13
 $Language = strtolower(substr(chop($Langue[0]),0,2));}
13
 $Language = strtolower(substr(chop($Langue[0]),0,2));}
14
if ($Language == 'fr'){
14
if ($Language == 'fr'){
15
 $l_backups = "Sauvegarde";
15
 $l_backups = "Sauvegarde";
16
 $l_create_user_db_backup = "Créer le fichier de la base actuelle des usagers";
16
 $l_create_user_db_backup = "Créer le fichier de la base actuelle des usagers";
17
 $l_traceability_backup = "Créer le fichier de traces de la semaine en cours";
17
 $l_traceability_backup = "Créer le fichier de traces de la semaine en cours";
18
 $l_execute = "Exécuter";
18
 $l_execute = "Exécuter";
19
 $l_backup_files = "Fichiers disponibles pour archivage";
19
 $l_backup_files = "Fichiers disponibles pour archivage";
20
 $l_firewall_log = "Journaux de traçabilité";
20
 $l_firewall_log = "Journaux de traçabilité";
21
 $l_users_db_backups = "Base des usagers";
21
 $l_users_db_backups = "Base des usagers";
-
 
22
 $l_weekly_report = "Rapport d'activité hebdomadaire";
22
 $l_empty = "vide";
23
 $l_empty = "vide";
23
}
24
}
24
else {
25
else {
25
 $l_backups = "Backups";
26
 $l_backups = "Backups";
26
 $l_create_user_db_backup = "Create the current users database file";
27
 $l_create_user_db_backup = "Create the current users database file";
27
 $l_traceability_backup = "Create the traceability file of the current week";
28
 $l_traceability_backup = "Create the traceability file of the current week";
28
 $l_execute = "Execute";
29
 $l_execute = "Execute";
29
 $l_backup_files = "Archive backup files";
30
 $l_backup_files = "Archive backup files";
30
 $l_firewall_log = "Traceability log files";
31
 $l_firewall_log = "Traceability log files";
31
 $l_users_db_backups = "Users database";
32
 $l_users_db_backups = "Users database";
-
 
33
 $l_weekly_report = "Weekly activity report";
32
 $l_empty = "empty";
34
 $l_empty = "empty";
33
}
35
}
34
function taille_fichier($fichier)
36
function taille_fichier($fichier)
35
{
37
{
36
	$taille_fichier = filesize($fichier);
38
	$taille_fichier = filesize($fichier);
Line 48... Line 50...
48
	<tr><th><? echo $l_backups;?></th></tr>
50
	<tr><th><? echo $l_backups;?></th></tr>
49
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
51
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
50
</TABLE>
52
</TABLE>
51
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
53
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
52
	<tr><td valign="middle" align="left">
54
	<tr><td valign="middle" align="left">
53
	<FORM action="sauvegarde.php" method=POST><b>
55
	<FORM action="sauvegarde.php" method=POST>
54
		<select name='choix'></b>
56
		<select name='choix'>
55
			<option value="traceability_backup"><?echo "$l_traceability_backup";?>
57
			<option value="traceability_backup"><?echo "$l_traceability_backup";?>
56
			<option value="user_DB_backup"><?echo "$l_create_user_db_backup";?>
58
			<option value="user_DB_backup"><?echo "$l_create_user_db_backup";?>
57
		</select>
59
		</select>
58
		<input type=submit value="<?echo "$l_execute";?>">
60
		<input type=submit value="<?echo "$l_execute";?>">
59
	</FORM>
61
	</FORM>
Line 65... Line 67...
65
</TABLE>
67
</TABLE>
66
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
68
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
67
	<TR align="center">
69
	<TR align="center">
68
	<TD><b><?echo "$l_firewall_log";?></b></TD>
70
	<TD><b><?echo "$l_firewall_log";?></b></TD>
69
	<TD><b><?echo "$l_users_db_backups";?></b></TD>
71
	<TD><b><?echo "$l_users_db_backups";?></b></TD>
-
 
72
	<TD><b><?echo "$l_weekly_report";?></b></TD>
70
	</TR><TR align="center">
73
	</TR><TR align="center">
71
<?
74
<?
72
if (isset($_POST['choix'])){
75
if (isset($_POST['choix'])){
73
	switch ($_POST['choix']){
76
	switch ($_POST['choix']){
74
		case 'user_DB_backup' :
77
		case 'user_DB_backup' :
Line 79... Line 82...
79
		break;
82
		break;
80
	}
83
	}
81
}
84
}
82
$dir[0]="archive";
85
$dir[0]="archive";
83
$dir[1]="base";
86
$dir[1]="base";
-
 
87
$dir[2]="activity_report";
84
$j=0;
88
$j=0;
85
$nb=count($dir);
89
$nb=count($dir);
86
while ($j != $nb)
90
while ($j != $nb)
87
{
91
{
88
	echo "<TD valign='top'>";
92
	echo "<TD valign='top'>";
Line 108... Line 112...
108
		{
112
		{
109
			$i--;
113
			$i--;
110
			echo "<a href=\"/save/$dir[$j]/$liste_f[$i]\">$liste_f[$i]</A> (";echo taille_fichier("/var/Save/".$dir[$j]."/".$liste_f[$i]);echo ")<BR>";
114
			echo "<a href=\"/save/$dir[$j]/$liste_f[$i]\">$liste_f[$i]</A> (";echo taille_fichier("/var/Save/".$dir[$j]."/".$liste_f[$i]);echo ")<BR>";
111
		}
115
		}
112
	}
116
	}
113
	echo "</TD>";
117
	echo "</TD>\n";
114
	$j++;
118
	$j++;
115
}
119
}
116
?>
120
?>
117
	</tr>
121
	</tr>
118
</TABLE>
122
</TABLE>