!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)

/var/www/html/laravel-crm/vendor/mpdf/mpdf/src/Gif/   drwxrwxrwx
Free 12.99 GB of 57.97 GB (22.41%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Mpdf\Gif;

/**
 * GIF Util - (C) 2003 Yamasoft (S/C)
 *
 * All Rights Reserved
 *
 * This file can be freely copied, distributed, modified, updated by anyone under the only
 * condition to leave the original address (Yamasoft, http://www.yamasoft.com) and this header.
 *
 * @link http://www.yamasoft.com
 */
class ColorTable
{

    var 
$m_nColors;

    var 
$m_arColors;

    public function 
__construct()
    {
        unset(
$this->m_nColors);
        unset(
$this->m_arColors);
    }

    function 
load($lpData$num)
    {
        
$this->m_nColors 0;
        
$this->m_arColors = [];

        for (
$i 0$i $num$i++) {
            
$rgb substr($lpData$i 33);
            if (
strlen($rgb) < 3) {
                return 
false;
            }

            
$this->m_arColors[] = (ord($rgb[2]) << 16) + (ord($rgb[1]) << 8) + ord($rgb[0]);
            
$this->m_nColors++;
        }

        return 
true;
    }

    function 
toString()
    {
        
$ret "";

        for (
$i 0$i $this->m_nColors$i++) {
            
$ret .=
                
chr(($this->m_arColors[$i] & 0x000000FF)) . // R
                
chr(($this->m_arColors[$i] & 0x0000FF00) >> 8) . // G
                
chr(($this->m_arColors[$i] & 0x00FF0000) >> 16);  // B
        
}

        return 
$ret;
    }

    function 
colorIndex($rgb)
    {
        
$rgb intval($rgb) & 0xFFFFFF;
        
$r1 = ($rgb 0x0000FF);
        
$g1 = ($rgb 0x00FF00) >> 8;
        
$b1 = ($rgb 0xFF0000) >> 16;
        
$idx = -1;

        for (
$i 0$i $this->m_nColors$i++) {
            
$r2 = ($this->m_arColors[$i] & 0x000000FF);
            
$g2 = ($this->m_arColors[$i] & 0x0000FF00) >> 8;
            
$b2 = ($this->m_arColors[$i] & 0x00FF0000) >> 16;
            
$d abs($r2 $r1) + abs($g2 $g1) + abs($b2 $b1);

            if ((
$idx == -1) || ($d $dif)) {
                
$idx $i;
                
$dif $d;
            }
        }

        return 
$idx;
    }
}

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