Esempio n. 1
0
 public function getUserInfo($username = NULL, $password = NULL)
 {
     //----------------------------------------------------------
     //init var
     //----------------------------------------------------------
     $chk = array("bool" => true, 'traceID' => "getUserInfo");
     $arr;
     //----------------------------------------------------------
     if (!is_null($username)) {
         $account = new Account_v0();
         $chk = $account->loginToAccount($username, $password);
     }
     //----------------------------------------------------------
     $result = GlobalMas::$loggedIN;
     //----------------------------------------------------------
     $arr = array("first" => $result['first'], "last" => $result['last'], "dob" => $result['born_month'] . "/" . $result['born_day'] . "/" . $result['born_year'], "sex" => $result['sex'], "height" => $result['height_feet'] . "'" . $result['height_inches'], "weight" => $result['weight'], "country" => $result['countries_id'], "state" => $result['states_id'], "email" => $result['email']);
     //----------------------------------------------------------
     $chk['result'] = $arr;
     //----------------------------------------------------------
     return $chk;
 }