for command, use backtics, not system()

pull/14/head
Tom Early 6 years ago
parent 60959a3206
commit 3d90876104

@ -131,7 +131,7 @@ URCall: <input type="text" name='furcall' value="<?php echo $furcall;?>">
if (strlen($furcall)>0 && strlen($fmodule)>0) { if (strlen($furcall)>0 && strlen($fmodule)>0) {
$command = 'qnremote '.strtolower($fmodule).' '.strtolower($cfg['ircddb_login']).' '.$furcall; $command = 'qnremote '.strtolower($fmodule).' '.strtolower($cfg['ircddb_login']).' '.$furcall;
echo $command, "<br>\n"; echo $command, "<br>\n";
$lastline = system($command); $unused = `$command`;
} }
?> ?>
</body> </body>

Loading…
Cancel
Save

Powered by TurnKey Linux.