!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/apex_tdfonline/php/3ros/simpletest/   drwxr-xr-x
Free 14.77 GB of 61.93 GB (23.84%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     remote.php (3.76 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
    
/**
     *    base include file for SimpleTest
     *    @package    SimpleTest
     *    @subpackage    UnitTester
     *    @version    $Id: remote.php,v 1.12 2005/08/03 17:26:55 lastcraft Exp $
     */

    /**#@+
     *    include other SimpleTest class files
     */
    
require_once(dirname(__FILE__) . '/browser.php');
    require_once(
dirname(__FILE__) . '/xml.php');
    require_once(
dirname(__FILE__) . '/test_case.php');
    
/**#@-*/

    /**
     *    Runs an XML formated test on a remote server.
     *      @package SimpleTest
     *      @subpackage UnitTester
     */
    
class RemoteTestCase {
        var 
$_url;
        var 
$_dry_url;
        var 
$_size;
        
        
/**
         *    Sets the location of the remote test.
         *    @param string $url       Test location.
         *    @param string $dry_url   Location for dry run.
         *    @access public
         */
        
function RemoteTestCase($url$dry_url false) {
            
$this->_url $url;
            
$this->_dry_url $dry_url $dry_url $url;
            
$this->_size false;
        }
        
        
/**
         *    Accessor for the test name for subclasses.
         *    @return string           Name of the test.
         *    @access public
         */
        
function getLabel() {
            return 
$this->_url;
        }

        
/**
         *    Runs the top level test for this class. Currently
         *    reads the data as a single chunk. I'll fix this
         *    once I have added iteration to the browser.
         *    @param SimpleReporter $reporter    Target of test results.
         *    @returns boolean                   True if no failures.
         *    @access public
         */
        
function run(&$reporter) {
            
$browser = &$this->_createBrowser();
            
$xml $browser->get($this->_url);
            if (! 
$xml) {
                
trigger_error('Cannot read remote test URL [' $this->_url ']');
                return 
false;
            }
            
$parser = &$this->_createParser($reporter);
            if (! 
$parser->parse($xml)) {
                
trigger_error('Cannot parse incoming XML from [' $this->_url ']');
                return 
false;
            }
            return 
true;
        }
        
        
/**
         *    Creates a new web browser object for fetching
         *    the XML report.
         *    @return SimpleBrowser           New browser.
         *    @access protected
         */
        
function &_createBrowser() {
            return new 
SimpleBrowser();
        }
        
        
/**
         *    Creates the XML parser.
         *    @param SimpleReporter $reporter    Target of test results.
         *    @return SimpleTestXmlListener      XML reader.
         *    @access protected
         */
        
function &_createParser(&$reporter) {
            return new 
SimpleTestXmlParser($reporter);
        }
        
        
/**
         *    Accessor for the number of subtests.
         *    @return integer           Number of test cases.
         *    @access public
         */
        
function getSize() {
            if (
$this->_size === false) {
                
$browser = &$this->_createBrowser();
                
$xml $browser->get($this->_dry_url);
                if (! 
$xml) {
                    
trigger_error('Cannot read remote test URL [' $this->_dry_url ']');
                    return 
false;
                }
                
$reporter = &new SimpleReporter();
                
$parser = &$this->_createParser($reporter);
                if (! 
$parser->parse($xml)) {
                    
trigger_error('Cannot parse incoming XML from [' $this->_dry_url ']');
                    return 
false;
                }
                
$this->_size $reporter->getTestCaseCount();
            }
            return 
$this->_size;
        }
    }
?>

:: 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.7968 ]--