| Line 55... |
Line 55... |
| 55 |
$url = $this->apihost.'track/user/'.$userId.'?storeId='.$storeId;
|
55 |
$url = $this->apihost.'track/user/'.$userId.'?storeId='.$storeId;
|
| 56 |
$this->log($url,'order_trackers');
|
56 |
$this->log($url,'order_trackers');
|
| 57 |
$params = array('url'=>urlencode($this->request->data['url']),'html'=>urlencode($this->request->data['html']));
|
57 |
$params = array('url'=>urlencode($this->request->data['url']),'html'=>urlencode($this->request->data['html']));
|
| 58 |
//$jsonVar = json_encode($params,JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP | JSON_UNESCAPED_UNICODE);
|
58 |
//$jsonVar = json_encode($params,JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP | JSON_UNESCAPED_UNICODE);
|
| 59 |
//$this->log(print_r($jsonVar,1),'order_trackers');
|
59 |
//$this->log(print_r($jsonVar,1),'order_trackers');
|
| 60 |
$result = $this->post_request($url,$params);
|
60 |
$result = $this->post_request_dont_use($url,$params);
|
| 61 |
//$result = array('success'=>true,'message'=>'html stored');
|
61 |
//$result = array('success'=>true,'message'=>'html stored');
|
| 62 |
$this->response->type('json');
|
62 |
$this->response->type('json');
|
| 63 |
$this->layout = 'ajax';
|
63 |
$this->layout = 'ajax';
|
| 64 |
$this->set(array(
|
64 |
$this->set(array(
|
| 65 |
'result' => $result,
|
65 |
'result' => $result,
|