!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:     ViewMapField.php (4.01 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
class ViewMapField extends ViewControl
{
    public function 
showDBValue( &$data$keylink$html true )
    {
        if( !
$this->pageObject)
        {
            return 
runner_htmlspecialchars($data[$this->field]);
         }
        elseif(
$this->pageObject->pageType == PAGE_EXPORT || ($this->pageObject->pageType == PAGE_RPRINT && $this->container->forExport == "excel") )
        {
            return 
runner_htmlspecialchars($data[$this->field]);
         }

        if(
$this->pageObject->pageType != PAGE_LIST)
        {
            
$mapData $this->pageObject->addGoogleMapData($this->field$data);
        }

        if(
$this->pageObject->pageType != PAGE_PRINT && $this->pageObject->pageType != PAGE_MASTER_INFO_PRINT && $this->pageObject->pageType != PAGE_RPRINT && $this->pageObject->pageType != PAGE_REPORT && !($this->pageObject->mode == VIEW_SIMPLE && $this->pageObject->pdfMode))
        {
            return 
'<div id="littleMap_'.GoodFieldName($this->field).'_'.$this->pageObject->recId.
                
'" style="width:'.
                (!isset(
$this->pageObject->googleMapCfg['fieldsAsMap']) ? "300" $this->pageObject->googleMapCfg['fieldsAsMap'][$this->field]['width']).'px; '.
                
'height: '.(!isset($this->pageObject->googleMapCfg['fieldsAsMap']) ? "225" $this->pageObject->googleMapCfg['fieldsAsMap'][$this->field]['height']).'px; '.
                
'" data-gridlink class="littleMap"></div>';
        }


        
$location $this->getLocation$mapData['markers'][0] );
        
$icon $mapData['markers'][0]['mapIcon'];

        return 
'<img border="0" alt="" src="'.$this->getStaticMapURL$location$mapData['zoom'], $icon ).'">';
    }

    function 
getLocation$markerData )
    {
        if( 
$markerData['lat'] == "" && $markerData['lng'] == "" )
        {
            if( !
$markerData['address'] )
                return 
'';

            if ( 
getMapProvider() == GOOGLE_MAPS )
                return 
$markerData['address'];

            
$locationByAddress getLatLngByAddr$markerData['address'] );
            return 
$locationByAddress['lat'].','.$locationByAddress['lng'];
        }

        return 
$markerData['lat'].','.$markerData['lng'];
    }


    function 
getStaticMapURL$location$zoom$icon )
    {
        
$markerLocation $location;
        
$apiKey $this->pageObject->googleMapCfg["APIcode"];

        
$width "300";
        
$height "225";

        if( isset(
$this->pageObject->googleMapCfg['fieldsAsMap'] ) )
        {
            
$width $this->pageObject->googleMapCfg['fieldsAsMap'][ $this->field ]['width'];
            
$height $this->pageObject->googleMapCfg['fieldsAsMap'][ $this->field ]['height'];
        }

        switch( 
getMapProvider() )
        {
            case 
GOOGLE_MAPS:
                global 
$showCustomMarkerOnPrint;

                if( 
$icon && $showCustomMarkerOnPrint )
                {
                    
$here request_protocol() . '://' $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
                    
$pos strrpos($here'/');
                    
$here substr($here0$pos)."/images/menuicons/".$icon;

                    
$markerLocation "icon:".$here."|".$location;
                }

                return 
'https://maps.googleapis.com/maps/api/staticmap?center='.$location.
                    
'&zoom='.$zoom.'&size='.$width.'x'.$height.'&maptype=mobile&markers='.$markerLocation.'&key='.$apiKey;

            case 
OPEN_STREET_MAPS:
                return 
'https://staticmap.openstreetmap.de/staticmap.php?center='.$location.
                    
'&zoom='.$zoom.'&size='.$width.'x'.$height.'&maptype=mobile&markers='.$markerLocation',ol-marker';

            case 
BING_MAPS:
                return 
'https://dev.virtualearth.net/REST/v1/Imagery/Map/Road/'.$location.'/'
                    
.$zoom.'?mapSize='.$width.','.$height.'&pp='.$markerLocation.';63;&key='.$apiKey;

            default:
                return 
'';
        }
    }

    public function 
getPdfValue( &$data$keylink "" )
    {
        
$mapData $this->pageObject->addGoogleMapData$this->field$data );

        
$location $this->getLocation$mapData['markers'][0] );
        
$staticUrl $this->getStaticMapURL$location$mapData['zoom'], $mapData['markers'][0]['mapIcon'] );

        
$content myurl_get_contents_binary$staticUrl );

        
$imageType SupposeImageType$content );
        if( 
$imageType == "image/jpeg" || $imageType == "image/png" )
        {
            return 
'{
                image: "' 
jsreplace'data:'$imageType ';base64,' base64_bin2str$content ) ) . '",
            }'
;
        }

        return 
'""';
    }
}
?>

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