From 20107a980a54d95e57303fe2b536a02b08ddc7e9 Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Thu, 25 Apr 2019 21:33:40 -0400 Subject: [PATCH] get output from shell_exec --- includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/functions.php b/includes/functions.php index f436262..7a792a4 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -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 = '
Lokinet daemon is not running