Rev | Line | |
---|
[313] | 1 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
---|
| 2 | /**
|
---|
| 3 | * Lecture Class
|
---|
| 4 | *
|
---|
| 5 | * @author dzungnv02
|
---|
| 6 | *
|
---|
| 7 | */
|
---|
| 8 |
|
---|
| 9 | class Lecture extends MX_Controller
|
---|
| 10 | {
|
---|
| 11 |
|
---|
| 12 | public function __construct()
|
---|
| 13 | {
|
---|
| 14 | parent::__construct();
|
---|
| 15 | }
|
---|
| 16 |
|
---|
| 17 | public function index()
|
---|
[323] | 18 | {
|
---|
[472] | 19 | $this->load->model('User_model');
|
---|
[318] | 20 | $user_info = $this->session->userdata('userInfo');
|
---|
[472] | 21 | $aryParams = array();
|
---|
| 22 | parse_str($user_info['user'], $aryParams);
|
---|
| 23 | $licenseAvailable = $this->User_model->checkLicense($aryParams['id']);
|
---|
| 24 | $licenseAvailable = $licenseAvailable == TRUE ? 'OK': '!OK';
|
---|
| 25 |
|
---|
[394] | 26 | if ($user_info){
|
---|
[456] | 27 | $username = $user_info['username'];
|
---|
[472] | 28 | $flashscript = $this->load->view('flashscript',null, true);
|
---|
| 29 | $this->load->view ( 'lecture_editor', array('username'=>$username, 'licenseAvailable' => $licenseAvailable, 'flashScript' => $flashscript));
|
---|
[326] | 30 |
|
---|
| 31 | }else{
|
---|
[318] | 32 | redirect('/frontend/home/');
|
---|
| 33 | }
|
---|
[326] | 34 |
|
---|
[313] | 35 | }
|
---|
| 36 | }
|
---|
| 37 |
|
---|
| 38 | /* End of file home.php */
|
---|
| 39 | /* Location: ./application/modules/frontend/controllers/Lecture.php */ |
---|
Note: See
TracBrowser
for help on using the repository browser.