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

/usr/share/php/Twig-Extensions/lib/Twig/Extensions/Extension/   drwxr-xr-x
Free 13.32 GB of 57.97 GB (22.99%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/**
 * This file is part of Twig.
 *
 * (c) 2009 Fabien Potencier
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/**
 * @author Henrik Bjornskov <hb@peytz.dk>
 */
class Twig_Extensions_Extension_Text extends Twig_Extension
{
    
/**
     * {@inheritdoc}
     */
    
public function getFilters()
    {
        return array(
            new 
Twig_SimpleFilter('truncate''twig_truncate_filter', array('needs_environment' => true)),
            new 
Twig_SimpleFilter('wordwrap''twig_wordwrap_filter', array('needs_environment' => true)),
        );
    }

    
/**
     * {@inheritdoc}
     */
    
public function getName()
    {
        return 
'Text';
    }
}

if (
function_exists('mb_get_info')) {
    function 
twig_truncate_filter(Twig_Environment $env$value$length 30$preserve false$separator '...')
    {
        if (
mb_strlen($value$env->getCharset()) > $length) {
            if (
$preserve) {
                
// If breakpoint is on the last word, return the value without separator.
                
if (false === ($breakpoint mb_strpos($value' '$length$env->getCharset()))) {
                    return 
$value;
                }

                
$length $breakpoint;
            }

            return 
rtrim(mb_substr($value0$length$env->getCharset())).$separator;
        }

        return 
$value;
    }

    function 
twig_wordwrap_filter(Twig_Environment $env$value$length 80$separator "\n"$preserve false)
    {
        
$sentences = array();

        
$previous mb_regex_encoding();
        
mb_regex_encoding($env->getCharset());

        
$pieces mb_split($separator$value);
        
mb_regex_encoding($previous);

        foreach (
$pieces as $piece) {
            while (!
$preserve && mb_strlen($piece$env->getCharset()) > $length) {
                
$sentences[] = mb_substr($piece0$length$env->getCharset());
                
$piece mb_substr($piece$length2048$env->getCharset());
            }

            
$sentences[] = $piece;
        }

        return 
implode($separator$sentences);
    }
} else {
    function 
twig_truncate_filter(Twig_Environment $env$value$length 30$preserve false$separator '...')
    {
        if (
strlen($value) > $length) {
            if (
$preserve) {
                if (
false !== ($breakpoint strpos($value' '$length))) {
                    
$length $breakpoint;
                }
            }

            return 
rtrim(substr($value0$length)).$separator;
        }

        return 
$value;
    }

    function 
twig_wordwrap_filter(Twig_Environment $env$value$length 80$separator "\n"$preserve false)
    {
        return 
wordwrap($value$length$separator, !$preserve);
    }
}

class_alias('Twig_Extensions_Extension_Text''Twig\Extensions\TextExtension'false);

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