Ignore:
Timestamp:
Nov 11, 2014 4:44:40 PM (11 years ago)
Author:
namnd
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/sourcecode/application/modules/ajax/controllers/user.php

    r449 r463  
    2626        }
    2727       
    28         private function get_user($us_id)
    29         {
    30                 $src = 'violet';
    31                 $token = md5($us_id.self::TOKENPW);
    32                 $this->load->model('user_model');
    33                 $data = $this->user_model->get_user_info($src, $us_id, $token);
    34                 return $data;
    35         }
    36        
    3728        private function get_data($user)
    3829        {
    3930                $this->load->model('us_model');
    40                 $arr_users = explode("&", $user);
    41                 $str_id = $arr_users[0];
    42                 $str_username = $arr_users[1];
    43                 $str_fullname = $arr_users[2];
    44                 $str_phone = $arr_users[5];
    45                 $str_school = $arr_users[6];
    46                 $str_province = $arr_users[6];
    47                 $str_money = $arr_users[8];
    48                 $str_level = $arr_users[9];
    49                 $arr_id = explode("=", $str_id);
    50                 $arr_username = explode("=", $str_username);
    51                 $arr_fullname = explode("=", $str_fullname);
    52                 $arr_phone = explode("=", $str_phone);
    53                 $arr_school = explode("=", $str_school);
    54                 $arr_province = explode("=", $str_province);
    55                 $arr_money = explode("=", $str_money);
    56                 $arr_level = explode("=", $str_level);
    57                 $us = $this->us_model->search_by_id($arr_id[1]);
    58                 return array("userId" => $arr_id[1], "userLevel" => 1, "userPhone" => $arr_phone[1], "userMoney" =>$us['acc_balanced'], "appUserName" => $arr_fullname[1], "appAddress" => $arr_school[1], "licType" => "SBG", "licCustomer" => $arr_username[1], "licCreate" => $us['created_time'], "licExpire" => $us['expire_date']);
     31                parse_str($user);
     32                $us = $this->us_model->search_by_id($id);
     33                return array("userId" => $id, "userLevel" => 1, "userPhone" => $phone, "userMoney" =>$us['acc_balanced'], "appUserName" => $fullname, "appAddress" => $school, "licType" => "SBG", "licCustomer" => $username, "licCreate" => $us['created_time'], "licExpire" => $us['expire_date']);
    5934        }
    6035}
Note: See TracChangeset for help on using the changeset viewer.