Skip to content
Snippets Groups Projects
Verified Commit ad561844 authored by David Beniamine's avatar David Beniamine
Browse files

Wip reboot

parent 9a5955ea
No related branches found
No related tags found
No related merge requests found
...@@ -143,6 +143,21 @@ if(!isset($action)){ ...@@ -143,6 +143,21 @@ if(!isset($action)){
<input type="hidden" name="mac" value="<?php echo $entry[1]; ?>"> <input type="hidden" name="mac" value="<?php echo $entry[1]; ?>">
<input type="submit" value="Démarrer" title="Démarrer la machine"> <input type="submit" value="Démarrer" title="Démarrer la machine">
</form> </form>
<script>
function validate(name) {
if(!confirm("Êtes-vous sûr de vouloir redémarrer la machine"+name) {
return false;
}
else {
return true;
}
}
</script>
<form action="index.php" method="post">
<input type="hidden" name="action" value="reboot">
<input type="hidden" name="mac" value="<?php echo $entry[1]; ?>">
<input type="submit" value="Redémarrer" title="redémarrer la machine" onsubmit="return validate(<? echo $entry[2]; ?>);" >
</form>
<form action="index.php" method="post"> <form action="index.php" method="post">
<input type="hidden" name="action" value="upgrade"> <input type="hidden" name="action" value="upgrade">
<input type="hidden" name="name" value="<?php echo $entry[2]; ?>"> <input type="hidden" name="name" value="<?php echo $entry[2]; ?>">
...@@ -221,6 +236,7 @@ if(!isset($action)){ ...@@ -221,6 +236,7 @@ if(!isset($action)){
'upgradeApt', 'upgradeApt',
'upgrade', 'upgrade',
'getLog', 'getLog',
'reboot',
]; ];
if($action == "wake"){ if($action == "wake"){
echo "<div id='result'><p>Démarrage demandé pour la machine $mac, veuillez patienter</p></div>"; echo "<div id='result'><p>Démarrage demandé pour la machine $mac, veuillez patienter</p></div>";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment