| 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 : |
<?php
/* * ***************
* Zend Framework
* @category Zend
* @package Zend_Controller_Action
* @copyright Copyright (c) 2008-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: DbTable.php 8862 2012-03-16 15:36:00Z thomas $
* @author Prashant Kr Gupta
* Create Date 27-07-2016
* Update Date 27-07-2016
* CustomerControoler (It will allow users to add different masters)
* *** */
class UrlController extends Catabatic_ValidateCustomer {
public function init() {
parent::init();
}
public function getAction() {
$this->view->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
$requestPerameter = $this->getRequest()->getPost();
$headers = getallheaders();
//echo "<pre>";print_r($headers);exit;
if (!empty($headers)) {
$apiKey = isset($headers['SECURITYKEY']) ? trim($headers['SECURITYKEY']) : false;
if (!empty($requestPerameter)) {
// echo "<br>";
// echo MasterSecurityKey; exit;
if ($apiKey == MasterSecurityKey) {
//echo "adsad"; exit;
$id = $this->getRequest()->getPost("id", null);
if ($id) {
$mld = new Travel_Model_CRM_SentSms();
$resultSet = $mld->GetSentSmsDetail($id);
// echo "<pre>";print_r($resultSet);exit;
}
} else {
$resultSet = array();
}
} else {
$resultSet = array();
}
} else {
$resultSet = array();
}
echo json_encode($resultSet); exit;
}
}