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


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

namespace Illuminate\Queue\Failed;

use 
DateTimeInterface;
use 
Illuminate\Database\ConnectionResolverInterface;
use 
Illuminate\Support\Facades\Date;

class 
DatabaseFailedJobProvider implements FailedJobProviderInterfacePrunableFailedJobProvider
{
    
/**
     * The connection resolver implementation.
     *
     * @var \Illuminate\Database\ConnectionResolverInterface
     */
    
protected $resolver;

    
/**
     * The database connection name.
     *
     * @var string
     */
    
protected $database;

    
/**
     * The database table.
     *
     * @var string
     */
    
protected $table;

    
/**
     * Create a new database failed job provider.
     *
     * @param  \Illuminate\Database\ConnectionResolverInterface  $resolver
     * @param  string  $database
     * @param  string  $table
     * @return void
     */
    
public function __construct(ConnectionResolverInterface $resolver$database$table)
    {
        
$this->table $table;
        
$this->resolver $resolver;
        
$this->database $database;
    }

    
/**
     * Log a failed job into storage.
     *
     * @param  string  $connection
     * @param  string  $queue
     * @param  string  $payload
     * @param  \Throwable  $exception
     * @return int|null
     */
    
public function log($connection$queue$payload$exception)
    {
        
$failed_at Date::now();

        
$exception = (string) mb_convert_encoding($exception'UTF-8');

        return 
$this->getTable()->insertGetId(compact(
            
'connection''queue''payload''exception''failed_at'
        
));
    }

    
/**
     * Get a list of all of the failed jobs.
     *
     * @return array
     */
    
public function all()
    {
        return 
$this->getTable()->orderBy('id''desc')->get()->all();
    }

    
/**
     * Get a single failed job.
     *
     * @param  mixed  $id
     * @return object|null
     */
    
public function find($id)
    {
        return 
$this->getTable()->find($id);
    }

    
/**
     * Delete a single failed job from storage.
     *
     * @param  mixed  $id
     * @return bool
     */
    
public function forget($id)
    {
        return 
$this->getTable()->where('id'$id)->delete() > 0;
    }

    
/**
     * Flush all of the failed jobs from storage.
     *
     * @param  int|null  $hours
     * @return void
     */
    
public function flush($hours null)
    {
        
$this->getTable()->when($hours, function ($query$hours) {
            
$query->where('failed_at''<='Date::now()->subHours($hours));
        })->
delete();
    }

    
/**
     * Prune all of the entries older than the given date.
     *
     * @param  \DateTimeInterface  $before
     * @return int
     */
    
public function prune(DateTimeInterface $before)
    {
        
$query $this->getTable()->where('failed_at''<'$before);

        
$totalDeleted 0;

        do {
            
$deleted $query->take(1000)->delete();

            
$totalDeleted += $deleted;
        } while (
$deleted !== 0);

        return 
$totalDeleted;
    }

    
/**
     * Get a new query builder instance for the table.
     *
     * @return \Illuminate\Database\Query\Builder
     */
    
protected function getTable()
    {
        return 
$this->resolver->connection($this->database)->table($this->table);
    }
}

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