- GRAYBYTE UNDETECTABLE CODES -

403Webshell
Server IP : 184.154.167.98  /  Your IP : 3.142.251.42
Web Server : Apache
System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : puertode ( 1767)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/puertode/www/mesa/setup/test/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/puertode/www/mesa/setup/test/tests/test.signals.php
<?php
require_once "class.test.php";

class SignalsTest extends Test {
    var $name = "Signals checks";

    /**
     * Ensures that each signal subscribed to has a sender somewhere else
     */
    function testFindSignalPublisher() {
        $scripts = static::getAllScripts();
        $matches = $published_signals = array();
        foreach ($scripts as $s)
            if (preg_match_all("/^ *Signal::send\('([^']+)'/m",
                    file_get_contents($s), $matches, PREG_SET_ORDER))
                foreach ($matches as $match)
                    $published_signals[] = $match[1];
        foreach ($scripts as $s) {
            $content = file_get_contents($s);
            if (preg_match_all("/^ *Signal::connect\('([^']+)'/m",
                    $content, $matches,
                    PREG_OFFSET_CAPTURE|PREG_SET_ORDER) > 0) {
                foreach ($matches as $match) {
                    $match = $match[1];
                    if (!in_array($match[0], $published_signals))
                        $this->fail(
                            $s, $this->line_number_for_offset($content, $match[1]),
                            "Signal '{$match[0]}' is never sent");
                    else
                        $this->pass();
                }
            }
        }
    }
}

return 'SignalsTest';
?>

Youez - 2016 - github.com/yon3zu
LinuXploit