This commit is contained in:
Devdatt Bhatt 2026-05-17 16:02:30 +00:00
parent 70543310f1
commit ef929f1434
1 changed files with 1 additions and 1 deletions

View File

@ -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();