Subversion Repositories ALCASAR

Rev

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

Rev 2182 Rev 2299
Line 100... Line 100...
100
		#Création des journaux dans une archive avec mot de passe.
100
		#Création des journaux dans une archive avec mot de passe.
101
		$filename_logs="imputabilities_logs.zip";
101
		$filename_logs="imputabilities_logs.zip";
102
		switch($_POST['submit'])
102
		switch($_POST['submit'])
103
		{
103
		{
104
			case 'query_all':
104
			case 'query_all':
105
				exec("sudo alcasar-generate_log.sh '$password'");
105
				exec("sudo alcasar-generate_log.sh ".escapeshellarg($password));
106
				break;
106
				break;
107
			case 'query_range':
107
			case 'query_range':
108
				$date1_selected= $_POST['start-year'].'-'.$_POST['start-month'].'-'.$_POST['start-day'].' '.$_POST['start-hour'].':'.$_POST['start-min'].':'.$_POST['start-sec'];
108
				$date1_selected= $_POST['start-year'].'-'.$_POST['start-month'].'-'.$_POST['start-day'].' '.$_POST['start-hour'].':'.$_POST['start-min'].':'.$_POST['start-sec'];
109
				$date2_selected= $_POST['stop-year'].'-'.$_POST['stop-month'].'-'.$_POST['stop-day'].' '.$_POST['stop-hour'].':'.$_POST['stop-min'].':'.$_POST['stop-sec'];
109
				$date2_selected= $_POST['stop-year'].'-'.$_POST['stop-month'].'-'.$_POST['stop-day'].' '.$_POST['stop-hour'].':'.$_POST['stop-min'].':'.$_POST['stop-sec'];
110
				exec("sudo alcasar-generate_log.sh '$password' '$date1_selected' '$date2_selected' ");
110
				exec("sudo alcasar-generate_log.sh ".escapeshellarg($password)." ".escapeshellarg($date1_selected)." ".escapeshellarg($date2_selected));
111
				break;
111
				break;
112
			case 'query_simple':
112
			case 'query_simple':
113
				$date1_selected= $_POST['start-year'].'-'.$_POST['start-month'].'-'.$_POST['start-day'].' '.$_POST['start-hour'].':'.$_POST['start-min'].':'.$_POST['start-sec'];
113
				$date1_selected= $_POST['start-year'].'-'.$_POST['start-month'].'-'.$_POST['start-day'].' '.$_POST['start-hour'].':'.$_POST['start-min'].':'.$_POST['start-sec'];
114
				exec("sudo alcasar-generate_log.sh '$password' '$date1_selected'");
114
				exec("sudo alcasar-generate_log.sh ".escapeshellarg($password)." ".escapeshellarg($date1_selected));
115
				break;
115
				break;
116
		
116
		
117
		}
117
		}
118
 
118
 
119
 
119