!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/notification/app/Http/Controllers/   drwxr-xr-x
Free 13.36 GB of 57.97 GB (23.05%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App\Http\Controllers;
use 
App\Models\Page;
use 
App\Models\ShopSettings;
use 
Illuminate\Http\Request;
use 
Illuminate\Support\Facades\DB;
use 
Illuminate\Support\Facades\Validator;
use 
Illuminate\Support\Facades\Hash;

// use GuzzleHttp\Client;
use DateTime;


class 
PageController extends Controller
{
    
/**
     * Create a new controller instance.
     *
     * @return void
     */
    
public function __construct()
    {
        
//
    
}
    
// get Page
    
function index($vendor_id)
    {   
        
// $pages=Page::where('vendor_id',$vendor_id)->get();
        // return response()->json(["data" => $pages]);
        
return "hello world";
    }
    
//create new Page
    // public function create($vendor_id,Request $req)
    // {
    //     $pr= new Page;
    //     $pr_table = $pr->getTable();
    //     $columns  = \Schema::getColumnListing($pr_table);
    //     $params = collect($req->all())->keys();
    //     foreach ($params as $key) {
    //         if (in_array($key,$columns,true)) {
    //            continue;
    //         }else{
    //             return response()->json(['error' => 'true', 'message' =>"invalid field ".$key]);
    //         }
    //     }
    //     // DB::beginTransaction();
    //     // try {
    //         $page= Page::create([
    //         'page_id' => $req->input('page_id'),
    //         'name' => $req->input('name'),
    //         'vendor_id' => $vendor_id,
    //         'token' => $req->input('token')
    //         ])
    //     // } catch (\Exception $exception) {
    //     //     DB::rollback();
    //     //     return response()->json(['error' => 'true', 'message' =>$exception->errorInfo[2]]);
    //     // }
    //     if ($page) {
    //         // DB::commit();
    //         $d = new DateTime();
    //         $t=$d->format("ymdHisv");
    //         $data=["_id"=>$t,"id"=>$page->id];
    //         return response()->json(['message' => "Page Added Successfully","data"=>$data]);
            
    //     } else {
    //         // DB::rollback();
    //         return response()->json(['error' => 'true','message' => "Something is wrong please try again"]);
    //     }
    // }
    // // update Page
    // public function update($page_id,Request $req)
    // {

    //     $pr= new Page;
    //     $pr_table = $pr->getTable();
    //     $columns  = \Schema::getColumnListing($pr_table);
    //     $params = collect($req->all())->keys();
    //     foreach ($params as $key) {
    //         if (in_array($key,$columns,true)) {
    //            continue;
    //         }else{
    //             return response()->json(['error' => 'true', 'message' =>"invalid field ".$key]);
    //         }
    //     }
    //     $page = Page::where('id',$page_id)->first();
    //     if (empty($page)) {
    //         return response()->json(['error' => 'true', 'message' =>"Invalid Page"]);
    //     }else{
    //         $page->name = $req->input('name');
    //         $page->token = $req->input('token');
    //         $ven=$page->save();

    //         if ($ven) {
    //             return response()->json(['message' => "Page Successfully Updated."]);
    //         }else {
    //             return response()->json(['error' => 'true', 'message' => "Something is wrong please try again."]);
    //         }
    //     }
    // }
    // Change page status
    
public function changeStatus($page_id,Request $req)
    {
        
$vendor Page::where('id',$page_id)->first();
        if (empty(
$vendor)) {
            return 
response()->json(['error' => 'true''message' =>"Invalid page id"]);
        }else{ 
            
$vendor->active $req->input('status');
            
$ven=$vendor->save();

            if (
$ven) {
                return 
response()->json(['message' => "Page Successfully Updated."]);
            }else {
                return 
response()->json(['error' => 'true''message' => "Something is wrong please try again."]);
            }
        }
    } 
    
// // delete categories
    // public function delete($id,Request $req)
    // {
    //     return $id;
    // }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0168 ]--