Subversion Repositories SmartDukaan

Rev

Rev 18141 | Rev 18148 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18141 Rev 18142
Line 17... Line 17...
17
 
17
 
18
		public function index() {
18
		public function index() {
19
		$encryptUrl = 'http://shop2020.in:8057/message/encrypt?type=encrypt&data=';
19
		$encryptUrl = 'http://shop2020.in:8057/message/encrypt?type=encrypt&data=';
20
		$expiryFlag=false;
20
		$expiryFlag=false;
21
		$redirectFlag=false;
21
		$redirectFlag=false;
22
		$this->layout = 'innerpages';
22
		$this->layout = 'empty';
23
		$serverHost= $_SERVER['HTTP_HOST'];
23
		$serverHost= $_SERVER['HTTP_HOST'];
24
		$serverURI = $_SERVER['REQUEST_URI'];
24
		$serverURI = $_SERVER['REQUEST_URI'];
25
		$requestURL ="http://".$serverHost.$serverURI;
25
		$requestURL ="http://".$serverHost.$serverURI;
26
		$intentToSend = '';
26
		$intentToSend = '';
27
		$params = explode($serverHost.'/a', $requestURL);
27
		$params = explode($serverHost.'/a', $requestURL);
Line 123... Line 123...
123
		}else{
123
		}else{
124
			$intentToSend = 'intent://pmapp.com?key='.urlencode($encryptedData['result']['value']).'&campaign='.$campaignId.'&intent_type='.$notificationType.'#Intent;scheme=profitmandiapp;package=com.saholic.profittill;end';							
124
			$intentToSend = 'intent://pmapp.com?key='.urlencode($encryptedData['result']['value']).'&campaign='.$campaignId.'&intent_type='.$notificationType.'#Intent;scheme=profitmandiapp;package=com.saholic.profittill;end';							
125
			//if()
125
			//if()
126
			$this->set(compact('intentToSend','expiryFlag'));
126
			$this->set(compact('intentToSend','expiryFlag'));
127
			header('Location: '.$intentToSend);
127
			header('Location: '.$intentToSend);
128
			return;
128
			exit;	
129
			//debug($intentToSend);
129
			//debug($intentToSend);
130
			//debug($expiryFlag);
130
			//debug($expiryFlag);
131
		}
131
		}
132
	}
132
	}
133
 
133