Unverified Commit 4da3ec1e authored by David Beniamine's avatar David Beniamine
Browse files

Remove log button for reboot

parent 6597d46f
...@@ -280,21 +280,23 @@ if(!isset($action)){ ...@@ -280,21 +280,23 @@ if(!isset($action)){
}else{ }else{
echo "<p>Erreur : pas de réponse</p>"; echo "<p>Erreur : pas de réponse</p>";
} }
if(!preg_match('/^reboot/', $action)){
?> ?>
<form action="index.php" method="post"> <form action="index.php" method="post">
<input type="hidden" name="action" value="getLog"> <input type="hidden" name="action" value="getLog">
<input type="hidden" name="name" value="<?php echo $name; ?>"> <input type="hidden" name="name" value="<?php echo $name; ?>">
<input type="submit" value="Rafraichir les logs" title="Rafraichir les logs"> <input type="submit" value="Rafraichir les logs" title="Rafraichir les logs">
</form> </form>
<? <?
}
}else{ }else{
echo "<p><strong>Action '$action' interdite !</strong></p>"; echo "<p><strong>Action '$action' interdite !</strong></p>";
} }
} }
?> ?>
<form action="index.php" method="post"> <form action="index.php" method="post">
<input type="submit" value="Retour à l'accueil" title="Retour à l'accueil"> <input type="submit" value="Retour à l'accueil" title="Retour à l'accueil">
</form> </form>
<?php <?php
} }
?> ?>
......
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