From 27fcff8e11094e7c7058531e1ca3d1d0ea387b7c Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Thu, 25 Apr 2019 21:52:45 -0400 Subject: [PATCH] run exec() --- includes/functions.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index 7a792a4..2193b7c 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -344,8 +344,7 @@ function DisplayOpenVPNConfig() function DisplayLokinetConfig() { exec('pidof lokinet | wc -l', $lokinetstatus); - $rulestate = shell_exec('ip rule show default | grep lokinet | awk {'print $5'}'); - + exec("ip rule show default | grep lokinet | awk {'print $5'} 2>&1", $rulestate); if ($lokinetstatus[0] == 0) { $status = '
Lokinet daemon is not running
';