!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:     OnboardingAutomateTaxes.php (2.02 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Onboarding - set up automated tax calculation.
 *
 * @package kkart Admin
 */

namespace Automattic\Kkart\Admin\Features;

use 
Automattic\Kkart\Admin\Features\OnboardingTasks;
use 
Automattic\Kkart\Admin\Notes\ConfirmTaxSettings;

/**
 * This contains logic for setting up shipping when the profiler completes.
 */
class OnboardingAutomateTaxes {
    
/**
     * Constructor.
     */
    
public function __construct() {
        
add_action(
            
'kkart_onboarding_profile_completed',
            array(
                
__CLASS__,
                
'on_onboarding_profile_completed',
            )
        );

        
add_action(
            
'jetpack_authorize_ending_authorized',
            array(
                
__CLASS__,
                
'on_onboarding_profile_completed',
            )
        );
    }

    
/**
     * Set up automated taxes.
     */
    
public static function on_onboarding_profile_completed() {
        
$jetpack_connected null;
        
$wcs_version       null;
        
$wcs_tos_accepted  null;

        if ( 
class_exists'\Jetpack_Data' ) ) {
            
$user_token        = \Jetpack_Data::get_access_tokenJETPACK_MASTER_USER );
            
$jetpack_connected = isset( $user_token->external_user_id );
        }

        if ( 
class_exists'\KKART_Connect_Loader' ) ) {
            
$wcs_version = \KKART_Connect_Loader::get_wcs_version();
        }

        if ( 
class_exists'\KKART_Connect_Options' ) ) {
            
$wcs_tos_accepted = \KKART_Connect_Options::get_option'tos_accepted' );
        }

        if ( 
$jetpack_connected && $wcs_version && $wcs_tos_accepted && self::automated_tax_is_supported() ) {
            
update_option'kkart_connect_taxes_enabled''yes' );
            
update_option'kkart_calc_taxes''yes' );
            
self::track_tax_automation();
            
ConfirmTaxSettings::possibly_add_note();
        }
    }

    
/**
     * Check if automated taxes are supported.
     */
    
private static function automated_tax_is_supported() {
        return 
in_arrayKKART()->countries->get_base_country(), OnboardingTasks::get_automated_tax_supported_countries(), true );
    }

    
/**
     * Track when a user has tax automation enabled.
     */
    
private static function track_tax_automation() {
        
kkart_admin_record_tracks_event'tasklist_task_completed', array( 'task_name' => 'tax_automated' ) );
    }
}

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