!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/data/connections/   drwxr-xr-x
Free 30.74 GB of 49.93 GB (61.58%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     QueryResult.php (3.98 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

require_once( getabspath("classes/datasource/dataresult.php") );
/**
 * A wrapper of the Connection class methods
 * basing on an SQL querty result hanle
 */
class QueryResult extends DataResult
{
    
/**
     * The basic Connection object
     * @type Connection
     */
    
protected $connectionObj;

    
/**
     * the query result handle
     * @type Mixed
     */
    
protected $handle;
    
    protected 
$data;
    
    
//    list of column names in the fetched query
    
protected $fieldNames = array();
    
    protected 
$upperMap = array();
    protected 
$fieldMap = array();
    
    
/**
     *    -1 - no data fetched. This is initial state. 
     *    0 - some data fetched
     *    1 - unsuccessful attempt to fetch data made. EOF
     */
    
protected $state = -1;


    
    
    function 
__construct$connectionObj$qHandle )
    {
        
parent::__construct();
        
$this->connectionObj $connectionObj;
        
$this->handle $qHandle;
    }

    
    
/**
     * Get the query result handle
     * @return Mixed
     */
    
public function getQueryHandle()
    {
        return 
$this->handle;
    }
    
    
/**
     * A wrapper for the Connection::fetch_array method
     * @return Mixed - associative Array with record data if data is available.
     *     Otherwise it returns FALSE or empty Array depending on data provider. Use conversion to boolean to check if data exists:
     *    $data = $q->fetchAssoc();
     *    if($data) 
     *    ...
     */
    
public function fetchAssoc()
    {
        if( 
$this->state == )
            return 
null;
        
        if( 
$this->state == )
        {
            
$this->state = -1;
            return 
$this->numericToAssoc$this->data );
        }
        
        
$ret $this->connectionObj->fetch_array$this->handle );
        if( 
$this->fieldSubs ) {
            
$ret $this->substituteFields$ret );
        }
        
$this->state $ret ? -1;
        return 
$ret;
    }
    
    
/**
     * A wrapper for the Connection::fetch_numarray method
     * @return Mixed - integer-indexed Array with record data or empty Array or FALSE if no data available. 
     *    See fetchAssoc description.
     */    
    
public function fetchNumeric()
    {
        if( 
$this->state == )
            return 
null;
        
        if( 
$this->state == )
        {
            
$this->state = -1;
            return 
$this->data;
        }
        
        
$ret $this->connectionObj->fetch_numarray$this->handle );
        
$this->state $ret ? -1;
        return 
$ret;
    }
    
    
/**
     * A wrapper for the Connection::closeQuery method
     */        
    
public function closeQuery()
    {
        
$this->connectionObj->closeQuery$this->handle );
    }
    
    
/**
     * A wrapper for the Connection::num_fields method
     */        
    
public function numFields()
    {
        return 
$this->connectionObj->num_fields$this->handle );
    }
    
    
/**
     * A wrapper for the Connection::field_name method
     */    
    
public function fieldName$offset )
    {
        return 
$this->connectionObj->field_name$this->handle$offset );
    }
    
    
/**
     * A wrapper for the Connection::seekPage method
     */    
    
public function seekRecord$n )
    {
        
$this->connectionObj->seekRecord$this->handle$n );
    }
    
    public function 
eof() 
    {
        
$this->prepareRecord();
        return 
$this->state == 1;
    }
    
    protected function 
internalFetch()
    {
        if( 
$this->state == )
            return;
        
$this->fillColumnNames();
        
$this->data $this->connectionObj->fetch_numarray$this->handle );
        
$this->state $this->data 1;
    }
    
    
    protected function 
fillColumnNames()
    {
        if( 
$this->fieldNames )
            return;
        
$nFields $this->numFields();
        for( 
$i 0$i $nFields; ++$i )
        {
            
$fname $this->fieldName$i );
            
$this->fieldNames[] = $fname;
            
$this->fieldMap$fname ] = $i;
            
$this->upperMapstrtoupper$fname ) ] = $i;
        }
    }
    
    public function 
next()
    {
        
$this->prepareRecord();
        
$this->internalFetch();
    }
    
    protected function 
prepareRecord() 
    {
        if( 
$this->state == -)
            
$this->internalFetch();
        return 
$this->state != 1;
    }
    
    public function 
getData()
    {
        if( !
$this->prepareRecord() )
            return 
null;
        return 
$this->numericToAssoc$this->data );
    }

    public function 
getNumData()
    {
        if( !
$this->prepareRecord() )
            return 
null;
        return 
$this->data;
    }

}
?>

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