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

Fix div and shell exec

parent d2a69554
Branches
No related tags found
No related merge requests found
...@@ -25,8 +25,6 @@ ...@@ -25,8 +25,6 @@
$cmd = "../scripts/sendmac.sh"; $cmd = "../scripts/sendmac.sh";
echo "<p> Démarrage de la machine ".$args." terminé</p>"; echo "<p> Démarrage de la machine ".$args." terminé</p>";
echo "<pre><code>"; echo "<pre><code>";
$process = proc_open("$cmd $args", $descriptorspec, $pipes, realpath('./'), array()); echo shell_exec("$cmd $args");
echo "<pre>";
shell_exec("$cmd $args");
echo "</code></pre>"; echo "</code></pre>";
} }
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
extract($_POST); extract($_POST);
switch($action){ switch($action){
case "wake" : case "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>";
?> ?>
<script language="javascript"> <script language="javascript">
$.ajax({ $.ajax({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment