Unverified Commit 83df5e1c authored by David Beniamine's avatar David Beniamine
Browse files

Message pour les mises à jour

parent 7b3975f9
......@@ -160,11 +160,11 @@ if(!isset($action)){
}else{
$lines = array();
$run=false;
$emptymsg="<p>Not implemented yet</p>";
$emptymsg="<p>Not implemented yet</p><p>Cette action n'affiche pas de message.<br />Vous pouvez demander les logs depuis <a href='/wol/'>la page principale<a></p>";
if(!isset($name)){
$name="";
}
echo "<h2> Action en cours : $action $name</h2>";
echo "<h2> Action demandée : $action $name</h2>";
switch($action){
case "wake" :
echo "<div id='result'><p>Démarrage demandé pour la machine $mac, veuillez patienter</p></div>";
......@@ -223,6 +223,7 @@ if(!isset($action)){
if($run){
exec("../scripts/actions.sh .".escapeshellarg($action)." "
.escapeshellarg($name), $lines, $code);
echo "<p>Action effectuée, code : $code</p>";
if(!empty($lines)){
echo "<pre>";
foreach($lines as $line){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment