!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/var/softaculous/sitepad/editor/site-data/plugins/kkart-pro/includes/admin/importers/mappings/   drwxr-xr-x
Free 290.22 GB of 429.69 GB (67.54%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     default.php (4.21 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Default mappings
 *
 * @package Kkart\Admin\Importers
 */

if ( ! defined'ABSPATH' ) ) {
    exit;
}

/**
 * Importer current locale.
 *
 * @since 3.1.0
 * @return string
 */
function kkart_importer_current_locale() {
    
$locale get_locale();
    if ( 
function_exists'get_user_locale' ) ) {
        
$locale get_user_locale();
    }

    return 
$locale;
}

/**
 * Add English mapping placeholders when not using English as current language.
 *
 * @since 3.1.0
 * @param array $mappings Importer columns mappings.
 * @return array
 */
function kkart_importer_default_english_mappings$mappings ) {
    if ( 
'en_US' === kkart_importer_current_locale() ) {
        return 
$mappings;
    }

    
$weight_unit    get_option'kkart_weight_unit' );
    
$dimension_unit get_option'kkart_dimension_unit' );
    
$new_mappings   = array(
        
'ID'                                      => 'id',
        
'Type'                                    => 'type',
        
'SKU'                                     => 'sku',
        
'Name'                                    => 'name',
        
'Published'                               => 'published',
        
'Is featured?'                            => 'featured',
        
'Visibility in catalog'                   => 'catalog_visibility',
        
'Short description'                       => 'short_description',
        
'Description'                             => 'description',
        
'Date sale price starts'                  => 'date_on_sale_from',
        
'Date sale price ends'                    => 'date_on_sale_to',
        
'Tax status'                              => 'tax_status',
        
'Tax class'                               => 'tax_class',
        
'In stock?'                               => 'stock_status',
        
'Stock'                                   => 'stock_quantity',
        
'Backorders allowed?'                     => 'backorders',
        
'Low stock amount'                        => 'low_stock_amount',
        
'Sold individually?'                      => 'sold_individually',
        
sprintf'Weight (%s)'$weight_unit )    => 'weight',
        
sprintf'Length (%s)'$dimension_unit ) => 'length',
        
sprintf'Width (%s)'$dimension_unit )  => 'width',
        
sprintf'Height (%s)'$dimension_unit ) => 'height',
        
'Allow customer reviews?'                 => 'reviews_allowed',
        
'Purchase note'                           => 'purchase_note',
        
'Sale price'                              => 'sale_price',
        
'Regular price'                           => 'regular_price',
        
'Categories'                              => 'category_ids',
        
'Tags'                                    => 'tag_ids',
        
'Shipping class'                          => 'shipping_class_id',
        
'Images'                                  => 'images',
        
'Download limit'                          => 'download_limit',
        
'Download expiry days'                    => 'download_expiry',
        
'Parent'                                  => 'parent_id',
        
'Upsells'                                 => 'upsell_ids',
        
'Cross-sells'                             => 'cross_sell_ids',
        
'Grouped products'                        => 'grouped_products',
        
'External URL'                            => 'product_url',
        
'Button text'                             => 'button_text',
        
'Position'                                => 'menu_order',
    );

    return 
array_merge$mappings$new_mappings );
}
add_filter'kkart_csv_product_import_mapping_default_columns''kkart_importer_default_english_mappings'100 );

/**
 * Add English special mapping placeholders when not using English as current language.
 *
 * @since 3.1.0
 * @param array $mappings Importer columns mappings.
 * @return array
 */
function kkart_importer_default_special_english_mappings$mappings ) {
    if ( 
'en_US' === kkart_importer_current_locale() ) {
        return 
$mappings;
    }

    
$new_mappings = array(
        
'Attribute %d name'     => 'attributes:name',
        
'Attribute %d value(s)' => 'attributes:value',
        
'Attribute %d visible'  => 'attributes:visible',
        
'Attribute %d global'   => 'attributes:taxonomy',
        
'Attribute %d default'  => 'attributes:default',
        
'Download %d name'      => 'downloads:name',
        
'Download %d URL'       => 'downloads:url',
        
'Meta: %s'              => 'meta:',
    );

    return 
array_merge$mappings$new_mappings );
}
add_filter'kkart_csv_product_import_mapping_special_columns''kkart_importer_default_special_english_mappings'100 );

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0989 ]--