403Webshell
Server IP : 103.234.187.230  /  Your IP : 216.73.216.216
Web Server : Apache
System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/b2bzend/cronjob/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/b2bzend/cronjob/updateCurrency.php
<?php
require_once '/var/www/html/b2bzend/cronjob/init.php';
$modelCurrency = new Gtxwebservices_Model_Currency();
$currencyList = $modelCurrency->getCurrency();
function mailSentByElastice($emailData, $arrEmailStatistics = array()) {
    $url = 'https://api.elasticemail.com/v2/email/send';
    $to = implode(";", $emailData['to']);
    try {
        $post = array('from' => $emailData['fromEmail'],
            'fromName' => $emailData['fromName'],
            'apikey' => 'dde45a5a-957d-4b94-9bd5-d41431d1a550',
            'subject' => $emailData['subject'],
            'to' => $to,
            'bodyHtml' => $emailData['bodyHtml'],
            'bodyText' => $emailData['bodyText'],
            'isTransactional' => false);
        $ch = curl_init();
        curl_setopt_array($ch, array(
            CURLOPT_URL => $url,
            CURLOPT_POST => true,
            CURLOPT_POSTFIELDS => $post,
            CURLOPT_RETURNTRANSFER => true,
            CURLOPT_HEADER => false,
            CURLOPT_SSL_VERIFYPEER => false
        ));
        $result = curl_exec($ch);
        curl_close($ch);
    }
    catch (Exception $ex) {
        $result = $ex->getMessage();
    }
    
}
$emailId = "gaurav@catpl.co.in";
$fromEmail = "noreply@hellogtx.com";
$fromName = "Hello GTX";
$subject = 'Curreny Update';
$sentemail = 1;
$bodyText = "Currency has been updated successfully";
$emailData = array('fromEmail' => $fromEmail, 'fromName' => $fromName, 'subject' => $subject, 'to' => array(trim($emailId)), 'bodyHtml' => $bodyText, 'bodyText' => '');
mailSentByElastice($emailData);
?>

Youez - 2016 - github.com/yon3zu
LinuXploit