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


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

namespace App\Http\Controllers;

use 
App\Models\UserPlan;
use 
Illuminate\Http\Request;

class 
UserPlanController extends Controller
{
    public function 
index(){
        
$data['userPlans']=UserPlan::where('plan_id','!=',1)->orderBy('created_at','desc')->get();
        return 
view('plans.user_plan',$data);
    }

    public function 
status_change(Request $request){
        if (
$request->status=='approved') {
            
$id=$request->id;
            
$userPlan=UserPlan::find($id);

            if(!
$userPlanabort(404);

            
UserPlan::where(['user_id' => $userPlan->user_id'is_current' => 'yes'])->update(['is_current' => 'no']);
            
$userPlan->status 'approved';
            
$userPlan->is_current 'yes';
            
$userPlan->save();



            
notification('plan',$userPlan->id,$userPlan->user_id,"Your plan has been approved");

            return 
redirect()->back()->with('success'trans('layout.message.userplan_approve_success'));
        }
        elseif(
$request->status=='rejected') {
            
$id=$request->id;
            
$userPlan=UserPlan::find($id);
            
$userPlan->status 'rejected';
            
$userPlan->is_current 'no';
            
$userPlan->save();
            
notification('plan',$userPlan->id,$userPlan->user_id,"Your plan has been rejected");

            return 
redirect()->back()->with('success'trans('layout.message.userplan_reject_success'));
        }
        elseif (
$request->status='pending'){
            
$id=$request->id;
            
$userPlan=UserPlan::find($id);
            
$userPlan->status 'pending';
            
$userPlan->is_current 'no';
            
$userPlan->save();
            
notification('plan',$userPlan->id,$userPlan->user_id,"Your plan has been changed to pending");

            return 
redirect()->back()->with('success'trans('layout.message.userplan_status_change_msg'));
        }
    }
}

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