!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/livewire/livewire/src/Commands/   drwxr-xr-x
Free 29.13 GB of 117.98 GB (24.69%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Livewire\Commands;

use 
Illuminate\Support\Facades\File;

class 
DeleteCommand extends FileManipulationCommand
{
    protected 
$signature 'livewire:delete {name} {--inline} {--force} {--test}';

    protected 
$description 'Delete a Livewire component';

    public function 
handle()
    {
        
$this->parser = new ComponentParser(
            
config('livewire.class_namespace'),
            
config('livewire.view_path'),
            
$this->argument('name')
        );

        if (! 
$force $this->option('force')) {
            
$shouldContinue $this->confirm(
                
"<fg=yellow>Are you sure you want to delete the following files?</>\n\n{$this->parser->relativeClassPath()}\n{$this->parser->relativeViewPath()}\n"
            
);

            if (! 
$shouldContinue) {
                return;
            }
        }

        
$inline $this->option('inline');
        
$test $this->option('test');

        
$class $this->removeClass($force);
        if (! 
$inline$view $this->removeView($force);
        if (
$test$test $this->removeTest($force);

        
$this->refreshComponentAutodiscovery();

        
$this->line("<options=bold,reverse;fg=yellow> COMPONENT DESTROYED </> ðŸ¦–💫\n");
        
$class && $this->line("<options=bold;fg=yellow>CLASS:</> {$this->parser->relativeClassPath()}");
        if (! 
$inline$view && $this->line("<options=bold;fg=yellow>VIEW:</>  {$this->parser->relativeViewPath()}");
        if (
$test$test && $this->line("<options=bold;fg=yellow>Test:</>  {$this->parser->relativeTestPath()}");
    }

    protected function 
removeTest($force false)
    {
        
$testPath $this->parser->testPath();

        if (! 
File::exists($testPath) && ! $force) {
            
$this->line("<options=bold,reverse;fg=red> WHOOPS-IE-TOOTLES </> ðŸ˜³ \n");
            
$this->line("<fg=red;options=bold>Test doesn't exist:</> {$this->parser->relativeTestPath()}");
            return 
false;
        }

        
File::delete($testPath);

        return 
$testPath;
    }
    protected function 
removeClass($force false)
    {
        
$classPath $this->parser->classPath();

        if (! 
File::exists($classPath) && ! $force) {
            
$this->line("<options=bold,reverse;fg=red> WHOOPS-IE-TOOTLES </> ðŸ˜³ \n");
            
$this->line("<fg=red;options=bold>Class doesn't exist:</> {$this->parser->relativeClassPath()}");

            return 
false;
        }

        
File::delete($classPath);

        return 
$classPath;
    }

    protected function 
removeView($force false)
    {
        
$viewPath $this->parser->viewPath();

        if (! 
File::exists($viewPath) && ! $force) {
            
$this->line("<fg=red;options=bold>View doesn't exist:</> {$this->parser->relativeViewPath()}");

            return 
false;
        }

        
File::delete($viewPath);

        return 
$viewPath;
    }
}

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