Subversion Repositories ALCASAR

Rev

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

Rev 1222 Rev 1245
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 = "Sauvegarder la base active des usagers";
16
 $l_create_user_db_backup = "Sauvegarder la base active des usagers";
17
 $l_tracability_backup = "Sauvegarder le fichier actif de traces";
17
 $l_tracability_backup = "Sauvegarder le fichier actif de traces";
18
 $l_create_system_backup = "Créer une archive système";
18
 $l_create_system_backup = "Créer un fichier de configuration";
19
 $l_execute = "Exécuter";
19
 $l_execute = "Exécuter";
20
 $l_backup_files = "Fichiers disponibles pour archivage";
20
 $l_backup_files = "Fichiers disponibles pour archivage";
21
 $l_firewall_log = "Journaux de traçabilité";
21
 $l_firewall_log = "Journaux de traçabilité";
22
 $l_users_db_backups = "Base des usagers";
22
 $l_users_db_backups = "Base des usagers";
23
 $l_system_backup = "Archive système";
23
 $l_system_backup = "Fichiers de configuration";
24
 $l_empty = "vide";
24
 $l_empty = "vide";
25
}
25
}
26
else {
26
else {
27
 $l_backups = "Backups";
27
 $l_backups = "Backups";
28
 $l_create_user_db_backup = "Save the active users database";
28
 $l_create_user_db_backup = "Save the active users database";
29
 $l_tracability_backup = "Save the active tracability file";
29
 $l_tracability_backup = "Save the active tracability file";
30
 $l_create_system_backup = "Create a system backup";
30
 $l_create_system_backup = "Create a configuration file";
31
 $l_execute = "Execute";
31
 $l_execute = "Execute";
32
 $l_backup_files = "Archive backup files";
32
 $l_backup_files = "Archive backup files";
33
 $l_firewall_log = "Traceability log files";
33
 $l_firewall_log = "Traceability log files";
34
 $l_users_db_backups = "Users database";
34
 $l_users_db_backups = "Users database";
35
 $l_system_backup = "system backup";
35
 $l_system_backup = "Configuration files";
36
 $l_empty = "empty";
36
 $l_empty = "empty";
37
}
37
}
38
function taille_fichier($fichier)
38
function taille_fichier($fichier)
39
{
39
{
40
	$taille_fichier = filesize($fichier);
40
	$taille_fichier = filesize($fichier);
Line 79... Line 79...
79
	switch ($_POST['choix']){
79
	switch ($_POST['choix']){
80
		case 'user_DB_backup' :
80
		case 'user_DB_backup' :
81
			exec ("sudo /usr/local/sbin/alcasar-mysql.sh --dump");
81
			exec ("sudo /usr/local/sbin/alcasar-mysql.sh --dump");
82
		break;
82
		break;
83
		case 'tracability_backup' :
83
		case 'tracability_backup' :
84
			exec ("sudo /usr/local/bin/alcasar-log.sh --live_export");
84
			exec ("sudo /usr/local/bin/alcasar-archive.sh --now");
85
		break;
85
		break;
86
		case 'system_backup' :
86
		case 'system_backup' :
87
			exec ("sudo /usr/local/bin/alcasar-conf.sh --create");
87
			exec ("sudo /usr/local/bin/alcasar-conf.sh --create");
88
		break;
88
		break;
89
	}
89
	}