Rev | Line | |
---|
[294] | 1 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
---|
| 2 | /**
|
---|
| 3 | * Viettel Class
|
---|
| 4 | *
|
---|
| 5 | * @author dzungnv02
|
---|
| 6 | *
|
---|
| 7 | */
|
---|
| 8 |
|
---|
| 9 | class Viettel extends MX_Controller
|
---|
| 10 | {
|
---|
| 11 |
|
---|
| 12 | public function __construct()
|
---|
| 13 | {
|
---|
| 14 | parent::__construct();
|
---|
| 15 | }
|
---|
| 16 |
|
---|
| 17 | public function index()
|
---|
| 18 | {
|
---|
| 19 | $this->load->view ( 'main');
|
---|
| 20 | }
|
---|
| 21 |
|
---|
| 22 | public function mo()
|
---|
| 23 | {
|
---|
[313] | 24 | $aryParams = array();
|
---|
| 25 | $aryParamsName = array( 'username',
|
---|
| 26 | 'password',
|
---|
| 27 | 'requestID',
|
---|
| 28 | 'userID',
|
---|
| 29 | 'receiverID',
|
---|
| 30 | 'serviceID',
|
---|
| 31 | 'commandCode',
|
---|
| 32 | 'info',
|
---|
| 33 | 'receiveTime');
|
---|
[294] | 34 |
|
---|
[313] | 35 | foreach ($aryParams as $key => $value) {
|
---|
| 36 | $aryParams[$value] = $this->input->post($value,TRUE);
|
---|
| 37 | }
|
---|
| 38 |
|
---|
| 39 | $this->load->model('Sms_model', 'objSMS');
|
---|
| 40 |
|
---|
| 41 | $separator = '|';
|
---|
| 42 | $errCode = 1;
|
---|
| 43 | $messageType = 0;
|
---|
| 44 | $message = $this->objSMS->getSMSByServiceId();;
|
---|
| 45 |
|
---|
| 46 | header('Content-type:text/html');
|
---|
| 47 | echo $errCode,$separator,$messageType,$separator,$message;
|
---|
[294] | 48 | }
|
---|
[313] | 49 |
|
---|
| 50 | public function mt()
|
---|
| 51 | {
|
---|
| 52 |
|
---|
| 53 | }
|
---|
[294] | 54 | }
|
---|
| 55 |
|
---|
| 56 | /* End of file viettel.php */
|
---|
| 57 | /* Location: ./application/modules/service/controllers/viettel.php */ |
---|
Note: See
TracBrowser
for help on using the repository browser.