From ef929f1434eec5c6418b2fc71c10e6d6aebfebe7 Mon Sep 17 00:00:00 2001 From: Devdatt Bhatt Date: Sun, 17 May 2026 16:02:30 +0000 Subject: [PATCH] strpos --- encoder/firewall.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encoder/firewall.php b/encoder/firewall.php index 84fc377..d993620 100755 --- a/encoder/firewall.php +++ b/encoder/firewall.php @@ -31,7 +31,7 @@ if (is_file($jsonFile)) { // Function to get UFW status function getUfwStatus() { $status = shell_exec("sudo ufw status"); - return (strintpos($status, 'Status: active') !== false) ? 'enabled' : 'disabled'; + return (strpos($status, 'Status: active') !== false) ? 'enabled' : 'disabled'; } $currentStatus = getUfwStatus();