!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/uploads/script/vendor/intervention/image/src/Intervention/Image/Commands/   drwxr-xr-x
Free 13.26 GB of 57.97 GB (22.88%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     IptcCommand.php (2.86 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Intervention\Image\Commands;

use 
Intervention\Image\Exception\NotSupportedException;

class 
IptcCommand extends AbstractCommand
{
    
/**
     * Read Iptc data from the given image
     *
     * @param  \Intervention\Image\Image $image
     * @return boolean
     */
    
public function execute($image)
    {
        if ( ! 
function_exists('iptcparse')) {
            throw new 
NotSupportedException(
                
"Reading Iptc data is not supported by this PHP installation."
            
);
        }

        
$key $this->argument(0)->value();

        
$info = [];
        @
getimagesize($image->dirname .'/'$image->basename$info);

        
$data = [];

        if (
array_key_exists('APP13'$info)) {
            
$iptc iptcparse($info['APP13']);

            if (
is_array($iptc)) {
                
$data['DocumentTitle'] = isset($iptc["2#005"][0]) ? $iptc["2#005"][0] : null;
                
$data['Urgency'] = isset($iptc["2#010"][0]) ? $iptc["2#010"][0] : null;
                
$data['Category'] = isset($iptc["2#015"][0]) ? $iptc["2#015"][0] : null;
                
$data['Subcategories'] = isset($iptc["2#020"][0]) ? $iptc["2#020"][0] : null;
                
$data['Keywords'] = isset($iptc["2#025"][0]) ? $iptc["2#025"] : null;
                
$data['SpecialInstructions'] = isset($iptc["2#040"][0]) ? $iptc["2#040"][0] : null;
                
$data['CreationDate'] = isset($iptc["2#055"][0]) ? $iptc["2#055"][0] : null;
                
$data['CreationTime'] = isset($iptc["2#060"][0]) ? $iptc["2#060"][0] : null;
                
$data['AuthorByline'] = isset($iptc["2#080"][0]) ? $iptc["2#080"][0] : null;
                
$data['AuthorTitle'] = isset($iptc["2#085"][0]) ? $iptc["2#085"][0] : null;
                
$data['City'] = isset($iptc["2#090"][0]) ? $iptc["2#090"][0] : null;
                
$data['SubLocation'] = isset($iptc["2#092"][0]) ? $iptc["2#092"][0] : null;
                
$data['State'] = isset($iptc["2#095"][0]) ? $iptc["2#095"][0] : null;
                
$data['Country'] = isset($iptc["2#101"][0]) ? $iptc["2#101"][0] : null;
                
$data['OTR'] = isset($iptc["2#103"][0]) ? $iptc["2#103"][0] : null;
                
$data['Headline'] = isset($iptc["2#105"][0]) ? $iptc["2#105"][0] : null;
                
$data['Source'] = isset($iptc["2#110"][0]) ? $iptc["2#110"][0] : null;
                
$data['PhotoSource'] = isset($iptc["2#115"][0]) ? $iptc["2#115"][0] : null;
                
$data['Copyright'] = isset($iptc["2#116"][0]) ? $iptc["2#116"][0] : null;
                
$data['Caption'] = isset($iptc["2#120"][0]) ? $iptc["2#120"][0] : null;
                
$data['CaptionWriter'] = isset($iptc["2#122"][0]) ? $iptc["2#122"][0] : null;
            }
        }

        if (! 
is_null($key) && is_array($data)) {
            
$data array_key_exists($key$data) ? $data[$key] : false;
        }

        
$this->setOutput($data);

        return 
true;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0059 ]--