Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/extmag/shiplab/Model/Source/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/extmag/shiplab/Model/Source/DataSet.php
<?php
/**
 * Copyright © Extmag. All rights reserved.
 */

namespace Extmag\Shiplab\Model\Source;

class DataSet
{
    /**
     * Get configuration data
     *
     * @param string $type
     * @param string $code
     * @return array|false
     */
    public function getCode($type, $code = '')
    {
        $codes = [
            'request_class' => [
                'rate' => 'Rate',
                'ship' => 'Ship',
                'pickup' => 'Pickup',
                'void' => 'Void',
                'tracking' => 'Tracking',
                'track' => 'Track',
                'oauth' => 'OAuth',
            ],
            'print_type' => [
                'local' => 'Local PC',
                'network' => 'Network',
            ],
            'declared_value_type' => [
                'product_only' => 'Product Price Only',
                'product_and_fees' => 'Product Price and Fees',
            ],
            'log_types' => [
                'error' => 'Error',
                'info' => 'Info',
                'warning' => 'Warning',
                'success' => 'Success',
            ],
            'specific' => [
                'all' => __('All'),
                'specific' => __('Specific'),
            ],
            'auto_always_not_used' => [
                'auto' => __('Auto'),
                'always' => __('Always apply'),
                'no' => __('Not used at all'),
            ],
            'scope_directions' => [
                'shipment' => __('Store to Customer'),
                'refund' => __('Rma'),
                'inverse' => __('Customer to Store'),
            ],
            'unit_weight' => [
                'KG' => __('Kilograms'),
                'LB' => __('Pounds'),
            ],
            'unit_dimension' => [
                'CM' => __('Centimeters'),
                'IN' => __('Inches'),
            ],
            'allowed_areas' => [
                'all' => __('Frontend + Admin'),
                'admin' => __('Admin Only'),
            ],
            'track_link_type' => [
                'magento' => __('Show in popup with Magento'),
                'carrier' => __('On carrier site'),
            ],
            'destination' => [
                'auto' => __('Auto'),
                'residential' => __('Residential'),
            ],
            'subtypes' => [
                'order' => 'Order',
                'shipment' => 'Shipment',
                'refund' => 'Creditmemo',
            ],
            'file_extension' => [
                "gif" => "PDF",
                "pdf" => "PDF",
                "zpl" => "ZPL",
                "epl" => "EPL2",
                "spl" => "SPL",
                "starpl" => "STARPL",
                "link" => "Link",
                "virtual" => "Virtual",
            ],
            'mass_print' => [
                "all" => __("All"),
                "unprinted" => __("Unprinted"),
            ],
            'days_of_week' => [
                "0" => __("Sunday"),
                "1" => __("Monday"),
                "2" => __("Tuesday"),
                "3" => __("Wednesday"),
                "4" => __("Thursday"),
                "5" => __("Friday"),
                "6" => __("Saturday"),
            ],
            'specific_service_codes' => [
                "less" => __("Service with the lowest price"),
                "greater" => __("Service with the highest price"),
                "specific" => __("Specific Service"),
            ],
            'pickup_schedule' => [
                "" => __("Inactive"),
                "on_creating_label" => __("Create pickup on creating a label"),
                "by_schedule" => __("Create pickup by schedule"),
            ],
            'show_shipping_methods' => [
                "minprice" => __("with Min Price"),
                "maxprice" => __("with Max Price"),
                "all" => __("All"),
                "specific" => __("Specific"),
            ],
            'print_applications' => [
                'elprint' => 'el-Print',
                'qztray' => 'QZ Tray',
            ],
            'map_providers' => [
                'google' => 'Google Maps',
                'bing' => 'Bing Maps',
            ],
        ];

        if (!isset($codes[$type])) {
            return false;
        } elseif ('' === $code) {
            return $codes[$type];
        }

        if (!isset($codes[$type][$code])) {
            return false;
        } else {
            return $codes[$type][$code];
        }
    }
}

Spamworldpro Mini