get output from shell_exec

pull/23/head
necro-nemesis 7 years ago
parent ad283b4847
commit 20107a980a

@ -344,7 +344,7 @@ function DisplayOpenVPNConfig()
function DisplayLokinetConfig()
{
exec('pidof lokinet | wc -l', $lokinetstatus);
exec('ip rule show default | grep lokinet | awk {'print $5'}', $rulestate);
$rulestate = shell_exec('ip rule show default | grep lokinet | awk {'print $5'}');
if ($lokinetstatus[0] == 0) {
$status = '<div class="alert alert-danger alert-dismissable">Lokinet daemon is not running

Loading…
Cancel
Save