Subversion Repositories ALCASAR

Rev

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

Rev 1707 Rev 1827
Line 143... Line 143...
143
// Actions on system
143
// Actions on system
144
//-------------------------------
144
//-------------------------------
145
if (isset($_POST['choix'])){
145
if (isset($_POST['choix'])){
146
	switch ($_POST['choix']){
146
	switch ($_POST['choix']){
147
		case 'reboot' :
147
		case 'reboot' :
148
			exec ("sudo /usr/local/sbin/alcasar-logout.sh all");
148
			exec ("sudo /usr/local/bin/alcasar-logout.sh all");
149
			exec ("sudo /usr/sbin/shutdown -r now");
149
			exec ("sudo /usr/sbin/shutdown -r now");
150
		break;
150
		break;
151
		case 'halt' :
151
		case 'halt' :
152
			exec ("sudo /usr/local/sbin/alcasar-logout.sh all");
152
			exec ("sudo /usr/local/bin/alcasar-logout.sh all");
153
			exec ("sudo /usr/sbin/shutdown -h now");
153
			exec ("sudo /usr/sbin/shutdown -h now");
154
		break;
154
		break;
155
	}
155
	}
156
}
156
}
157
 
157