Changeset 496 for pro-violet-viettel/sourcecode/application
- Timestamp:
- Nov 13, 2014 8:37:42 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/modules/frontend/models/user_model.php
r495 r496 79 79 $token = md5($username.self::TOKENPW); 80 80 $phone = $username; 81 if (!is_null($collabo lator) || $collabolator != ''){82 if($this->isExist Collabolator($collabolator)){81 if (!is_null($collaborator) || $collaborator != ''){ 82 if($this->isExistcollaborator($collaborator)){ 83 83 $data = $this->vservices->actionExecute('update', array('src'=>$src, 'username'=>$username, 'password'=>$password, 'fullname'=>null, 'phone'=>$username, 'token'=>$token), 'user'); 84 84 parse_str($data); … … 363 363 } 364 364 365 function isExist Collabolator($collabolator)366 { 367 $this->db->select('*')->from('tbl user')->where('collabolator', $cellphone)->limit(1);365 function isExistcollaborator($collaborator) 366 { 367 $this->db->select('*')->from('tblcollaborator')->where('login_name', $collaborator)->limit(1); 368 368 $result = $this->db->get()->row_array(); 369 369 if ($result) return true; else return false;
Note: See TracChangeset
for help on using the changeset viewer.