HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/shaping-sar.ru/public_html/function.php
<?php

function scanInPhp($dir, $search) {
    $rii = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir));
    foreach ($rii as $file) {
        if ($file->isDir()) continue;
        if (strtolower($file->getExtension()) !== 'php') continue;
        if (strtolower($file->getFilename()) === 'test.php') continue;

        $lines = file($file->getPathname());
        foreach ($lines as $num => $line) {
            if (stripos($line, $search) !== false) {
                echo "Файл: " . $file->getPathname() . " | Строка " . ($num + 1) . ": " . trim($line) . "<br>";
            }
        }
    }
}