From e5b49e041ba81267a2571e540624209661ae413a Mon Sep 17 00:00:00 2001 From: Auapong Rattanaroj Date: Wed, 3 Sep 2014 12:09:22 +0700 Subject: [PATCH] Create index.php --- index.php | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 index.php diff --git a/index.php b/index.php new file mode 100644 index 0000000..a09cadf --- /dev/null +++ b/index.php @@ -0,0 +1,81 @@ +user; + $request['password'] = $this->pass; + + $ch = curl_init($this->api_url); + $opts[CURLOPT_POST] = true; + $opts[CURLOPT_POSTFIELDS] = http_build_query($request); + $opts[CURLOPT_RETURNTRANSFER] = true; + curl_setopt_array($ch,$opts); + $response = curl_exec($ch); + $response = json_decode($response,1); + curl_close($ch); + return $response; + } + + public function getData($loginid){ + + $request['act'] = 'usercheck'; + $request['email'] = $this->user; + //$request['mobile'] = ''; + //$request['country'] = 'AU'; + $request['loginid'] = $loginid; + $ch = curl_init($this->api_url); + $opts[CURLOPT_POST] = true; + $opts[CURLOPT_POSTFIELDS] = http_build_query($request); + $opts[CURLOPT_RETURNTRANSFER] = true; + curl_setopt_array($ch,$opts); + $response = curl_exec($ch); + $response = json_decode($response,1); + /*print_r($response);*/ + curl_close($ch); + return $response; + } + +} + + +$myData = new txFunds(); +$login_result = $myData->login(); +//print_r($login_result); + +$get_data = $myData->getData($login_result['data']['loginid']); +//print_r($get_data); +?> + + + +

User Data

+ + + + + + + + + + + + + + + + + + + + + +
User ID :
Firstname :
Lastname :
MSG :
Status :
+ +