Skip to content

Commit

Permalink
more js fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippMundhenk committed Oct 11, 2024
1 parent 67e7ded commit 727db35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions html/scan.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$target = $_POST["target"];
} elseif ($_SERVER['REQUEST_METHOD'] == 'GET') {
} else if ($_SERVER['REQUEST_METHOD'] == 'GET') {
$target = $_GET["target"];
}

Expand All @@ -20,7 +20,7 @@
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
// return immediately
$handle = popen('sudo -b -u \#'.$UID.' /opt/brother/scanner/brscan-skey/script/scanto'.$target.'.py', 'r');
} elseif ($_SERVER['REQUEST_METHOD'] == 'GET') {
} else if ($_SERVER['REQUEST_METHOD'] == 'GET') {
// wait for completion
$output=shell_exec('sudo -u \#'.$UID.' /opt/brother/scanner/brscan-skey/script/scanto'.$target.'.py');
}
Expand Down

0 comments on commit 727db35

Please sign in to comment.