!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/notification/vendor/illuminate/queue/Console/   drwxr-xr-x
Free 13.18 GB of 57.97 GB (22.74%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Illuminate\Queue\Console;

use 
Illuminate\Bus\BatchRepository;
use 
Illuminate\Bus\DatabaseBatchRepository;
use 
Illuminate\Bus\PrunableBatchRepository;
use 
Illuminate\Console\Command;
use 
Illuminate\Support\Carbon;
use 
Symfony\Component\Console\Attribute\AsCommand;

#[
AsCommand(name'queue:prune-batches')]
class 
PruneBatchesCommand extends Command
{
    
/**
     * The console command signature.
     *
     * @var string
     */
    
protected $signature 'queue:prune-batches
                {--hours=24 : The number of hours to retain batch data}
                {--unfinished= : The number of hours to retain unfinished batch data }'
;

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

    
/**
     * The console command description.
     *
     * @var string
     */
    
protected $description 'Prune stale entries from the batches database';

    
/**
     * Execute the console command.
     *
     * @return void
     */
    
public function handle()
    {
        
$repository $this->laravel[BatchRepository::class];

        
$count 0;

        if (
$repository instanceof PrunableBatchRepository) {
            
$count $repository->prune(Carbon::now()->subHours($this->option('hours')));
        }

        
$this->info("{$count} entries deleted!");

        if (
$this->option('unfinished')) {
            
$count 0;

            if (
$repository instanceof DatabaseBatchRepository) {
                
$count $repository->pruneUnfinished(Carbon::now()->subHours($this->option('unfinished')));
            }

            
$this->info("{$count} unfinished entries deleted!");
        }
    }
}

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