!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/laravel/framework/src/Illuminate/Console/Scheduling/   drwxr-xr-x
Free 13.04 GB of 57.97 GB (22.5%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Illuminate\Console\Scheduling;

use 
Illuminate\Console\Application;
use 
Illuminate\Console\Command;
use 
Symfony\Component\Console\Attribute\AsCommand;

#[
AsCommand(name'schedule:test')]
class 
ScheduleTestCommand extends Command
{
    
/**
     * The console command name.
     *
     * @var string
     */
    
protected $signature 'schedule:test {--name= : The name of the scheduled command to run}';

    
/**
     * The name of the console command.
     *
     * This name is used to identify the command during lazy loading.
     *
     * @var string|null
     *
     * @deprecated
     */
    
protected static $defaultName 'schedule:test';

    
/**
     * The console command description.
     *
     * @var string
     */
    
protected $description 'Run a scheduled command';

    
/**
     * Execute the console command.
     *
     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
     * @return void
     */
    
public function handle(Schedule $schedule)
    {
        
$phpBinary Application::phpBinary();

        
$commands $schedule->events();

        
$commandNames = [];

        foreach (
$commands as $command) {
            
$commandNames[] = $command->command ?? $command->getSummaryForDisplay();
        }

        if (empty(
$commandNames)) {
            return 
$this->components->info('No scheduled commands have been defined.');
        }

        if (! empty(
$name $this->option('name'))) {
            
$commandBinary $phpBinary.' '.Application::artisanBinary();

            
$matches array_filter($commandNames, function ($commandName) use ($commandBinary$name) {
                return 
trim(str_replace($commandBinary''$commandName)) === $name;
            });

            if (
count($matches) !== 1) {
                
$this->components->info('No matching scheduled command found.');

                return;
            }

            
$index key($matches);
        } else {
            
$index array_search($this->components->choice('Which command would you like to run?'$commandNames), $commandNames);
        }

        
$event $commands[$index];

        
$summary $event->getSummaryForDisplay();

        
$command $event instanceof CallbackEvent
            
$summary
            
trim(str_replace($phpBinary''$event->command));

        
$description sprintf(
            
'Running [%s]%s',
            
$command,
            
$event->runInBackground ' in background' '',
        );

        
$this->components->task($description, fn () => $event->run($this->laravel));

        if (! 
$event instanceof CallbackEvent) {
            
$this->components->bulletList([$event->getSummaryForDisplay()]);
        }

        
$this->newLine();
    }
}

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