ini_set('display_errors', 1); ini_set('display_startup_errors', 1); ini_set('error_reporting', 32767); ini_set("error_log", $_SERVER['DOCUMENT_ROOT'] . "logs/php_error.log"); //- turn off compression on the server @apache_setenv('no-gzip', 1); @ini_set('zlib.output_compression', 'Off'); header("access-control-allow-origin: *"); // include 'site/config.inc.php'; // include '../../site/lib/bootstrap.php'; // include '../../site/lib/Db.php'; include_once '../../preload/Store/config.php'; use Store\Curl; // $dbCMS = new Db('root', '','icon_cms'); // $dbCon = $dbCMS->getConnection(); $curlObj = new Curl\Curl(); // print_r($dbCon); // session_start(); // $_SESSION['downloadAllowed'] = true; // if (!isset($_SESSION['downloadAllowed'])){ // header("Location: index.php"); // exit(); // }else{ // if($_SESSION['downloadAllowed'] == 'false'){ // header("Location: index.php"); // exit(); // }else{ $fileType = $_GET['t']; $fileName = $_GET['n']; $cont_reso_type = isset($_GET['r']) ? $_GET['r'] : '0'; $catalogue_detail_id = $_GET['d'];
use Store\Curl; $title = 'Welcome to Daily Magic'; $siteDescription = ''; $siteKeywords = ''; $siteAuthor = ''; $includeCustomCss = null; $includeCustomJs = null; // echo S3STATUS; if ($userStatus != 'NEWUSER' and $userStatus != 'UNKNOWN' and $userStatus != 'UNSUBSCRIBED') { $data['unq_msg_id'] = ''; $data['AppId'] = $config::STOREID; $data['user_id'] = $userId; $serviceUrl = S3STATUS; // echo $serviceUrl; // exit; $curlObj = new Curl\Curl(); // print_r($data); $output = $curlObj->executePostCurl($serviceUrl, $data, 0); $output = json_decode($output['Content'], true); if (!empty($output)) { if ($output['status'] != 'UNSUBSCRIBED') { $opr = $output['operator']; $cpevent = $output['price_point']; if (in_array($opr, $config->allowedOperators)) { $current_url = BILLINGHOST . $config->operatorData[$opr]['BillingServiceUnSub']; $UnSubData['REQUESTTYPE'] = 'UNSUB'; $UnSubData['CPEVENT'] = $cpevent; $UnSubData['MSISDN'] = $msisdn; $UnSubData['OPERATOR'] = $opr; $UnSubData['CMODE'] = $config->operatorData[$opr]['Cmode']; $UnSubData['UID'] = $config::UID;
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); ini_set('error_reporting', 32767); ini_set("error_log", $_SERVER['DOCUMENT_ROOT'] . "logs/php_error.log"); //- turn off compression on the server @apache_setenv('no-gzip', 1); @ini_set('zlib.output_compression', 'Off'); header("access-control-allow-origin: *"); include_once '../config.php'; use Store\Logger; use Store\Curl; $curlObj = new Curl\Curl(); $logger = new Logger\Logger(); $fileType = $_GET['t']; $fileName = $_GET['n']; $cont_reso_type = isset($_GET['r']) ? $_GET['r'] : '0'; $catalogue_detail_id = $_GET['d']; $content_metadata_id = $_GET['m']; // $content_metadata_id = 601; $cd_name = ""; // $content_metadata_id = 2; $url = "http://192.168.1.159:9875/v3/contentDownloadHistory/getContentMetaData"; $data = array("cd_cmd_id" => $content_metadata_id); $data = json_encode($data); $meta = $curlObj->executePostCurl($url, $data); $meta = $meta['Content']; $meta = json_decode($meta); $downloadingUrl = $meta->message->contentMetaDataDetail->cm_downloading_url; $url = "http://192.168.1.159:9875/v3/contentDownloadHistory/getCatalogueDetail";