isDir() || pathinfo($file, PATHINFO_EXTENSION) !== 'php') continue; $content = file_get_contents($file->getPathname()); foreach ($patterns as $pattern) { if (stripos($content, $pattern) !== false) { $found[] = [ 'path' => $file->getPathname(), 'modified' => date("Y-m-d H:i:s", filemtime($file->getPathname())) ]; break; } } } return $found; } echo "
✅ No suspicious PHP files found!
"; } else { echo "⚠️ Suspicious files found: