diff --git a/example.php b/example.php index 9f4273d..9db61a7 100644 --- a/example.php +++ b/example.php @@ -61,7 +61,7 @@ ?>

QnetGateway Dashboard

1) { +if (`ps -aux | grep -e qn -e MMDVMHost | wc -l` > 1) { echo 'Process:
', "\n"; echo str_replace(' ', ' ', 'USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
'), "\n"; $lines = explode("\n", `ps -aux | grep -e qngateway -e qnlink -e qndtmf -e qndvap -e qnitap -e qnrelay -e qndvrptr -e qnmodem -e MMDVMHost | grep -v grep`); @@ -131,7 +131,7 @@ URCall: if (strlen($furcall)>0 && strlen($fmodule)>0) { $command = 'sgsremote '.strtolower($fmodule).' '.strtolower($cfg['ircddb_login']).' '.$furcall; echo $command, "
\n"; - //exec($command); + exec($command); } ?>