loginResponse.php(38)
26 $this->error = "OK";
27 }
28 elseif ($this->error != "OK")
29 $this->error = $this->tr->_($this->error);
30
31 if (isset($this->info))
32 $this->info = $this->tr->_($this->info);
33 */
34 //unset($this->tr);
35 // {"isAuthenticated":false,"select_companies_ids":[{"id":"122","name":"Increment"},{"id":"36","name":"iTvTi"},{"id":"143","name":"Vulcan Works"}],"error":"OK"}
36 // print_r($company_ids);
37 if (isset($companies_ids))
38 $response = '{"isAuthenticated":false,"session_id":'.$data['session_id'] .','.'"select_companies_ids":'. CJSON::encode($companies_ids) . ',"error":"' . $data['error'] .'"}';
39 else
40 $response = '{"isAuthenticated":false,"session_id":"' . $data['session_id'] . '","error":"' . $data['error'] .'"}';
41
42 print_r($response);
43 // echo $response;
26 $this->error = "OK";
27 }
28 elseif ($this->error != "OK")
29 $this->error = $this->tr->_($this->error);
30
31 if (isset($this->info))
32 $this->info = $this->tr->_($this->info);
33 */
34 //unset($this->tr);
35 // {"isAuthenticated":false,"select_companies_ids":[{"id":"122","name":"Increment"},{"id":"36","name":"iTvTi"},{"id":"143","name":"Vulcan Works"}],"error":"OK"}
36 // print_r($company_ids);
37 if (isset($companies_ids))
38 $response = '{"isAuthenticated":false,"session_id":'.$data['session_id'] .','.'"select_companies_ids":'. CJSON::encode($companies_ids) . ',"error":"' . $data['error'] .'"}';
39 else
40 $response = '{"isAuthenticated":false,"session_id":"' . $data['session_id'] . '","error":"' . $data['error'] .'"}';
41
42 print_r($response);
43 // echo $response;