!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.64 GB of 61.93 GB (23.63%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     compatibility.php (6.19 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
    
/**
     *    base include file for SimpleTest
     *    @package    SimpleTest
     *    @version    $Id: compatibility.php,v 1.4 2005/09/10 22:35:31 tswicegood Exp $
     */
    
    /**
     *  Static methods for compatibility between different
     *  PHP versions.
     *  @package    SimpleTest
     */
    
class SimpleTestCompatibility {
        
        
/**
         *      Creates a copy whether in PHP5 or PHP4.
         *      @param object $object        Thing to copy.
         *      @return object            A copy.
         *      @access public
         *      @static
         */
        
static function copy($object) {
            if (
version_compare(phpversion(), '5') >= 0) {
                eval(
'$copy = clone $object;');
                return 
$copy;
            }
            return 
$object;
        }
        
        
/**
         *    Identity test. Drops back to equality + types for PHP5
         *    objects as the === operator counts as the
         *    stronger reference constraint.
         *    @param mixed $first    Test subject.
         *    @param mixed $second   Comparison object.
         *      @return boolean         True if identical.
         *    @access public
         *    @static
         */
        
static function isIdentical($first$second) {
            if (
$first != $second) {
                return 
false;
            }
            if (
version_compare(phpversion(), '5') >= 0) {
                return 
SimpleTestCompatibility::_isIdenticalType($first$second);
            }
            return (
$first === $second);
        }
        
        
/**
         *    Recursive type test.
         *    @param mixed $first    Test subject.
         *    @param mixed $second   Comparison object.
         *      @return boolean         True if same type.
         *    @access private
         *    @static
         */
        
static function _isIdenticalType($first$second) {
            if (
gettype($first) != gettype($second)) {
                return 
false;
            }
            if (
is_object($first) && is_object($second)) {
                if (
get_class($first) != get_class($second)) {
                    return 
false;
                }
                return 
SimpleTestCompatibility::_isArrayOfIdenticalTypes(
                        
get_object_vars($first),
                        
get_object_vars($second));
            }
            if (
is_array($first) && is_array($second)) {
                return 
SimpleTestCompatibility::_isArrayOfIdenticalTypes($first$second);
            }
            return 
true;
        }
        
        
/**
         *    Recursive type test for each element of an array.
         *    @param mixed $first    Test subject.
         *    @param mixed $second   Comparison object.
         *      @return boolean         True if identical.
         *    @access private
         *    @static
         */
        
static function _isArrayOfIdenticalTypes($first$second) {
            if (
array_keys($first) != array_keys($second)) {
                return 
false;
            }
            foreach (
array_keys($first) as $key) {
                
$is_identical SimpleTestCompatibility::_isIdenticalType(
                        
$first[$key],
                        
$second[$key]);
                if (! 
$is_identical) {
                    return 
false;
                }
            }
            return 
true;
        }
        
        
/**
         *    Test for two variables being aliases.
         *    @param mixed $first    Test subject.
         *    @param mixed $second   Comparison object.
         *      @return boolean         True if same.
         *    @access public
         *    @static
         */
        
static function isReference(&$first, &$second) {
            if (
version_compare(phpversion(), '5''>=')
                && 
is_object($first)) {
                return (
$first === $second);
            }
            if (
is_object($first) && is_object($second)) {
                
$id uniqid("test");
                
$first->$id true;
                
$is_ref = isset($second->$id);
                unset(
$first->$id);
                return 
$is_ref;
            }
            
$temp $first;
            
$first uniqid("test");
            
$is_ref = ($first === $second);
            
$first $temp;
            return 
$is_ref;
        }
        
        
/**
         *    Test to see if an object is a member of a
         *    class hiearchy.
         *    @param object $object    Object to test.
         *    @param string $class     Root name of hiearchy.
         *      @return boolean           True if class in hiearchy.
         *    @access public
         *    @static
         */
        
static function isA($object$class) {
            if (
version_compare(phpversion(), '5') >= 0) {
                if (! 
class_exists($classfalse) && 
                    (
function_exists('interface_exists') && !interface_exists($classfalse)) ) {
                    return 
false;
                }
                eval(
"\$is_a = \$object instanceof $class;");
                return 
$is_a;
            }
            if (
function_exists('is_a')) {
                return 
is_a($object$class);
            }
            return ((
strtolower($class) == get_class($object))
                    or (
is_subclass_of($object$class)));
        }
        
        
/**
         *    Sets a socket timeout for each chunk.
         *    @param resource $handle    Socket handle.
         *    @param integer $timeout    Limit in seconds.
         *    @access public
         *    @static
         */
        
static function setTimeout($handle$timeout) {
            if (
function_exists('stream_set_timeout')) {
                
stream_set_timeout($handle$timeout0);
            } elseif (
function_exists('socket_set_timeout')) {
                
socket_set_timeout($handle$timeout0);
            } elseif (
function_exists('set_socket_timeout')) {
                
set_socket_timeout($handle$timeout0);
            }
        }
        
        
/**
         *    Gets the current stack trace topmost first.
         *    @return array        List of stack frames.
         *    @access public
         *    @static
         */
        
static function getStackTrace() {
            if (
function_exists('debug_backtrace')) {
                return 
array_reverse(debug_backtrace());
            }
            return array();
        }
    }
?>

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