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

Software: Apache. PHP/8.3.27 

uname -a: Linux pdx1-shared-a4-04 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64 

uid=6659440(dh_z2jmpm) gid=2086089(pg10499364) groups=2086089(pg10499364)  

Safe-mode: OFF (not secure)

/usr/local/wp/vendor/wp-cli/i18n-command/src/   drwxr-xr-x
Free 710.81 GB of 879.6 GB (80.81%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace WP_CLI\I18n;

use eftec\bladeone\BladeOne;

// Modified Gettext Blade extractor that
// uses the up-to-date BladeOne standalone Blade engine,
// correctly supports fromStringMultiple.

/**
 * Class to get gettext strings from blade.php files returning arrays.
 */
class BladeGettextExtractor extends \Gettext\Extractors\PhpCode {

    /**
     * Prepares a Blade compiler/engine and returns it.
     *
     * @return BladeOne
     */
    protected static function getBladeCompiler() {
        $cache_path     = empty( $options['cachePath'] ) ? sys_get_temp_dir() : $options['cachePath'];
        $blade_compiler = new BladeOne( null, $cache_path );

        if ( method_exists( $blade_compiler, 'withoutComponentTags' ) ) {
            $blade_compiler->withoutComponentTags();
        }

        return $blade_compiler;
    }

    /**
     * Compiles the Blade template string into a PHP string in one step.
     *
     * @param string $text Blade string to be compiled to a PHP string
     * @return string
     */
    protected static function compileBladeToPhp( $text ) {
        return static::getBladeCompiler()->compileString( $text );
    }

    /**
     * {@inheritdoc}
     *
     * Note: In the parent PhpCode class fromString() uses fromStringMultiple() (overriden here)
     */
    public static function fromStringMultiple( $text, array $translations, array $options = [] ) {
        $php_string = static::compileBladeToPhp( $text );
        return parent::fromStringMultiple( $php_string, $translations, $options );
    }
}

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