Subversion Repositories ALCASAR

Rev

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

Rev 2829 Rev 2835
Line 20... Line 20...
20
 $l_execute = "Exécuter";
20
 $l_execute = "Exécuter";
21
 $l_backup_files = "Fichiers disponibles pour archivage";
21
 $l_backup_files = "Fichiers disponibles pour archivage";
22
 $l_firewall_log = "Journaux de traçabilité";
22
 $l_firewall_log = "Journaux de traçabilité";
23
 $l_users_db_backups = "Base des usagers";
23
 $l_users_db_backups = "Base des usagers";
24
 $l_weekly_report = "Rapports d'activité hebdomadaire";
24
 $l_weekly_report = "Rapports d'activité hebdomadaire";
25
 $l_system_backup = "Fichiers de configuration";
-
 
26
 $l_empty = "vide";
25
 $l_empty = "vide";
27
}
26
}
28
else {
27
else {
29
 $l_backups = "Backups";
28
 $l_backups = "Backups";
30
 $l_create_user_db_backup = "Create the current users database file";
29
 $l_create_user_db_backup = "Create the current users database file";
Line 33... Line 32...
33
 $l_execute = "Execute";
32
 $l_execute = "Execute";
34
 $l_backup_files = "Archive backup files";
33
 $l_backup_files = "Archive backup files";
35
 $l_firewall_log = "Traceability log files";
34
 $l_firewall_log = "Traceability log files";
36
 $l_users_db_backups = "Users database";
35
 $l_users_db_backups = "Users database";
37
 $l_weekly_report = "Weekly activity reports";
36
 $l_weekly_report = "Weekly activity reports";
38
 $l_system_backup = "Configuration files";
-
 
39
 $l_empty = "empty";
37
 $l_empty = "empty";
40
}
38
}
41
function taille_fichier($fichier)
39
function taille_fichier($fichier)
42
{
40
{
43
	$taille_fichier = filesize($fichier);
41
	$taille_fichier = filesize($fichier);
Line 73... Line 71...
73
		<table width="100%" border=0 cellspacing=0 cellpadding=1>
71
		<table width="100%" border=0 cellspacing=0 cellpadding=1>
74
			<tr align="center">
72
			<tr align="center">
75
				<td><b><?= $l_firewall_log?></b></td>
73
				<td><b><?= $l_firewall_log?></b></td>
76
				<td><b><?= $l_users_db_backups?></b></td>
74
				<td><b><?= $l_users_db_backups?></b></td>
77
				<td><b><?= $l_weekly_report?></b></td>
75
				<td><b><?= $l_weekly_report?></b></td>
78
				<TD><b><?= $l_system_backup?></b></TD>
-
 
79
			</tr>
76
			</tr>
80
			<tr align="center">
77
			<tr align="center">
81
<?
78
<?
82
if (isset($_POST['choix'])){
79
if (isset($_POST['choix'])){
83
	switch ($_POST['choix']){
80
	switch ($_POST['choix']){
Line 87... Line 84...
87
		case 'traceability_backup' :
84
		case 'traceability_backup' :
88
			exec ("sudo /usr/local/bin/alcasar-archive.sh --live");
85
			exec ("sudo /usr/local/bin/alcasar-archive.sh --live");
89
		break;
86
		break;
90
		case 'system_backup' :
87
		case 'system_backup' :
91
			exec ("sudo /usr/local/bin/alcasar-conf.sh --create");
88
			exec ("sudo /usr/local/bin/alcasar-conf.sh --create");
-
 
89
			header('Location: alcasar-conf.tar.gz');
92
		break;
90
		break;
93
	}
91
	}
94
}
92
}
95
$dir[0]="archive";
93
$dir[0]="archive";
96
$dir[1]="base";
94
$dir[1]="base";
97
$dir[2]="activity_report";
95
$dir[2]="activity_report";
98
$dir[3]="conf_file";
-
 
99
$j=0;
96
$j=0;
100
$nb=count($dir);
97
$nb=count($dir);
101
while ($j != $nb)
98
while ($j != $nb)
102
{
99
{
103
	echo "<td valign='top'>";
100
	echo "<td valign='top'>";