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


Viewing file:     NotificationController.php (2.66 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\Models\Customer;
use 
Session;
use 
DB;
use 
Hash;

class 
NotificationController extends Controller
{
    public function 
index(Request $request)
    {
        
$data = [];
        return 
view('admin.notification.index', ['data' => $data]);
    }

    public function 
store(Request $request)
    {

        
//if image
        
$fileName '';
        
$imageURL null;
        if (
$request->hasFile('image')) {
            
$file $request->image;
            
$extension $request['image']->getClientOriginalExtension(); // getting image extension
            
$fileName rand(1111199999) . '.' $extension// renameing image
            
$file->move(public_path() . '/notificationImages'$fileName);
            
$imageURL url('/') . '/notificationImages/' $fileName;
        }

        
//  foreach ($chunkToken as $key => $arrChunk) {
        
$this->sendFirebaseNotification([], $request->name$request->body$request->link$imageURL);
        
//}

        
return redirect(route('notifications'))->with('success''Notification Successfully Send!');
    }

    public function 
sendFirebaseNotification($fb_key_array$title$message$link$imageURL)
    {
        
$authorization_key env('FIREBASE_SERVER_KEY');

        
$finalPostArray = array(
            
'to' => '/topics/otrixcommercelaravelpromotion',
            
'notification' => array(
                
'body' => $message,
                
'title' => $title,
                
"image" => $imageURL,

                
"sound" => '1',
                
"vibrate" => '1',
            ),
            
"data" => array(
                
"click_action" => "NO ACTION BRO",
                
"link" => $link,
                
'bodytitle' => $title,
                
'body' => $message,
                
"image" => $imageURL,
                
"type" => "prmotional",
                
"sound" => "default",
                
"status" => "done"
            
),
            
'android' => array(

            )

        );

        
$ch curl_init();
        
curl_setopt($chCURLOPT_URL"https://fcm.googleapis.com/fcm/send");
        
curl_setopt($chCURLOPT_POST1);
        
curl_setopt($chCURLOPT_POSTFIELDSjson_encode($finalPostArray)); //Post Fields
        
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERfalse);
        
curl_setopt($chCURLOPT_HTTPHEADER, array('Content-Type: application/json''Authorization: key=' $authorization_key));
        
$server_output curl_exec($ch);

        
curl_close($ch);

    }

}

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