- Timestamp:
- Apr 7, 2015 2:17:28 PM (10 years ago)
- Location:
- pro-violet-viettel/sourcecode/application/modules/frontend/controllers
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified pro-violet-viettel/sourcecode/application/modules/frontend/controllers/home.php ¶
r883 r884 5 5 /** 6 6 * Home Class 7 * @todo Control main actions 8 * @see index() 9 * @see singin() 10 * @see signout() 7 11 * 8 12 * @author dzungnv02 … … 18 22 } 19 23 24 /** 25 * function index 26 * @todo checked is sign-in then redirect to lecture page else redirect to sign-in page 27 */ 20 28 public function index() { 21 29 $user_info = $this->session->userdata ( 'userInfo' ); … … 41 49 } 42 50 51 /** 52 * function signin 53 * @todo Execute sign-in action 54 */ 43 55 public function signin() { 44 56 $username = $this->input->post ( 'username', TRUE ); … … 83 95 } 84 96 97 /** 98 * funtion signout 99 * @todo Execute signout action 100 */ 85 101 public function signout() { 86 102 //$this->session->sess_destroy (); … … 92 108 } 93 109 94 public function register() { 95 $this->load->model ( 'user_model' ); 96 $collaborator = '0979947802'; 97 $serviceID = 1; 98 $username = '0978618113'; 99 $commandcode = 'commandcode1'; 100 $info = 'ABCD'; 101 // $receiveTime = time(); 102 $receiveTime = date ( "Y-m-d H:i:s" ); 103 $data = $this->user_model->register ( $username, $collaborator ); 104 echo $data; 105 } 106 107 public function change_profile() { 108 $this->load->model ( 'user_model' ); 109 $sentNumber = '0979947802'; 110 $serviceID = 1; 111 $password = '2933369'; 112 $commandcode = "SBG"; 113 $receiveID = '0977274183'; 114 $info = "SBG TD"; 115 $receiveTime = date ( "Y-m-d H:i:s" ); 116 $status = 0; 117 $data = $this->user_model->changeProfile ( $sentNumber, $receiveID, $password, $status ); 118 echo $data; 119 } 120 121 public function change_password() { 122 $this->load->model ( 'user_model' ); 123 $sentNumber = '0979947802'; 124 $password = '935322'; 125 $data = $this->user_model->changePassword ( $sentNumber, $password ); 126 echo $data; 127 } 128 129 public function register_vip() { 130 $this->load->model ( 'user_model' ); 131 $sentNumber = '0979947802'; 132 $p_code = 1; 133 $serviceID = 1; 134 $commandcode = "SBG"; 135 $vipNum = 1; 136 $mainAccBalanced = 15000; 137 $info = "SBG DK VIP1"; 138 $receiveTime = date ( "Y-m-d H:i:s" ); 139 $status = 0; 140 $data = $this->user_model->registerVip ( $sentNumber, $p_code ); 141 echo $data; 142 } 143 144 public function recharge_account() { 145 $this->load->model ( 'user_model' ); 146 $sentNumber = '0979947802'; 147 $receiveID = '01662860000'; 148 $serviceID = 1; 149 $commandcode = "SBG"; 150 $vipNum = 1; 151 $mainAccBalanced = 15000; 152 $amount = 1000; 153 $info = "SBG NAP 10000"; 154 $status = 0; 155 $receiveTime = date ( "Y-m-d H:i:s" ); 156 $data = $this->user_model->rechargeAccount ( $sentNumber, $amount ); 157 //$data = $this->user_model->insertPaidlog($sentNumber, $sentNumber, 2, $amount, $receiveTime); 158 echo $data; 159 } 160 161 public function is_viettel($number) { 110 /** 111 * function is_viettel 112 * @param string $number 113 * @return 1:true;0:false 114 * @todo checked the phone number is viettel subscriber 115 */ 116 private function is_viettel($number) { 162 117 $viettel = array ( 163 118 '096', -
TabularUnified pro-violet-viettel/sourcecode/application/modules/frontend/controllers/lecture.php ¶
r821 r884 6 6 /** 7 7 * Lecture Class 8 * 8 * @todo Show lecture editor software 9 9 * @author dzungnv02 10 10 * … … 12 12 class Lecture extends MX_Controller { 13 13 14 /** 15 * function __construct 16 * @todo constructor of class 17 */ 14 18 public function __construct() { 15 19 parent::__construct(); … … 18 22 } 19 23 24 /** 25 * function index 26 * @todo Show lecture editor 27 */ 20 28 public function index() { 21 29 $this->load->model('User_model'); -
TabularUnified pro-violet-viettel/sourcecode/application/modules/frontend/controllers/user.php ¶
r883 r884 1 1 <?php 2 3 2 if (!defined('BASEPATH')) 4 3 exit('No direct script access allowed'); 5 4 5 /** 6 * Class User 7 * @todo Execute actions of user 8 * 9 * @see function profile 10 * @see function packageRegister 11 * @see function finishRegisterPackage 12 * @see function regpackage 13 * @see function update_info 14 * @see function update_user 15 * @see function change_password 16 * @see function trade_history 17 * @see function getUserInfor 18 * @see function adminUpdateUser 19 * @see function regis_history 20 * 21 * @author dungnv02 22 * 23 */ 6 24 class User extends MX_Controller { 7 25
Note: See TracChangeset
for help on using the changeset viewer.