- Timestamp:
- Jan 27, 2015 10:53:31 AM (10 years ago)
- Location:
- pro-violet-viettel/sourcecode/application/modules/frontend
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/modules/frontend/controllers/home.php
r671 r707 63 63 parse_str ( $result['data'] ); 64 64 $is_viettel = $this->is_viettel ( $phone ); 65 65 66 if ($autologin == 1) { 66 67 $cookie_name = 'siteCookie'; … … 69 70 setcookie ( $cookie_name, 'username=' . $username . '&user=' . $result['data'] . '&us_id=' . $id, time () + $cookie_time ); 70 71 } 72 71 73 $userdata = array ( 72 74 'username' => $username, … … 82 84 83 85 public function signout() { 84 $this->session->sess_destroy ();86 //$this->session->sess_destroy (); 85 87 // unset($this->session->userdata); 88 $this->session->unset_userdata('userInfo'); 86 89 $cookie_name = "siteCookie"; 87 90 setcookie ( $cookie_name, 'username=' . "", time () - 3600 ); -
pro-violet-viettel/sourcecode/application/modules/frontend/controllers/user.php
r706 r707 17 17 public function profile() { 18 18 $user_info = $this->session->userdata('userInfo'); 19 19 20 if ($user_info) { 20 21 $this->load->model('User_model'); -
pro-violet-viettel/sourcecode/application/modules/frontend/models/user_model.php
r706 r707 103 103 $sms = preg_replace($aryPatterns, array($trialdays. ' ngay', $username, $password), lang('_SBG_MO_USER_REGISTER_SUCCESS_MSG')); 104 104 $status = 1; 105 $aryPatterns = array('/: collaborator:/');106 $collaboratorMsg = $status . '|'. preg_replace($aryPatterns, array($ collaborator), lang('_SBG_MO_COLLABOLATOR_REGISTER_SUCCESS_MSG'));105 $aryPatterns = array('/:username:/'); 106 $collaboratorMsg = $status . '|'. preg_replace($aryPatterns, array($username), lang('_SBG_MO_COLLABOLATOR_REGISTER_SUCCESS_MSG')); 107 107 break; 108 108 case 2 : … … 327 327 } 328 328 329 public function registerVip($username, $p_code ) {329 public function registerVip($username, $p_code, &$packageData = null) { 330 330 $user = array (); 331 331 $sms = ''; … … 333 333 $result = $this->get_user_by_cellphone ( $username ); 334 334 $package = $this->get_package ( ( int ) $p_code ); 335 335 336 if (!$package) 336 337 { … … 339 340 return $status . '|' . $sms; 340 341 } 342 343 $packageData = $package; 344 341 345 if ($result) { 342 343 346 if ($result ['acc_balanced'] >= $package ['p_price']) { 344 347 $us_id = $result ['us_id']; … … 497 500 $this->db->query ( 'UNLOCK TABLES' ); 498 501 $sql = 'INSERT INTO tblcardlog(sender, us_id, status, pin_code, serial_num, card_value, created_time) VALUES(?,?,?,?,?,?,?)'; 499 $query =$this->db->query ($sql, $cardlog);502 return $this->db->query ($sql, $cardlog); 500 503 } 501 504 -
pro-violet-viettel/sourcecode/application/modules/frontend/views/user_profile.php
r706 r707 119 119 </div> 120 120 <div class="col-sm-3"> 121 < h4><small><a href="#" data-toggle="modal" data-target="#changeProfile"><i>Äá»i sá» Äiá»n thoại</i></a></small></h4>121 <!--<h4><small><a href="#" data-toggle="modal" data-target="#changeProfile"><i>Äá»i sá» Äiá»n thoại</i></a></small></h4>--> 122 122 </div> 123 123 </div> … … 245 245 <h4 class="header blue bolder smaller">Nạp tiá»n bằng tà i khoản gá»c</h4> 246 246 <div class="alert alert-block alert-success"> 247 <p> 248 <span <?php if(($is_viettel==1)) echo 'style="display: none;"'?> >Sá» dụng thuê bao <strong><?php echo @$username; ?></strong> soạn tin nhắn: <strong>SBG NAP [SoTien] gá»i 8062</strong>.</span><br/>247 <p> 248 <span <?php if(($is_viettel==1)) /*echo 'style="display: none;"'*/{?> >Sá» dụng thuê bao <strong><?php echo @$username; ?></strong> soạn tin nhắn: <strong>SBG NAP [SoTien] gá»i 8062</strong>.<?php } ?> </span><br/> 249 249 Nếu QuÜ vá» sá» dụng thuê bao Viettel khác thì soạn tin nhắn: <strong>SBG NAP [SoTien] <?php echo $username; ?> gá»i tá»i 8062</strong>. 250 250
Note: See TracChangeset
for help on using the changeset viewer.