search category dropdown adde to the interface
[living-lab-site.git] / application / controllers / user.php
1 <?php
2
3 /**
4  * Class User controls video hierarchy and searching
5  *
6  * @category    Controller
7  * @author              Călin-Andrei Burloiu
8  */
9 class User extends CI_Controller {
10         
11         public function __construct()
12         {
13                 parent::__construct();
14         
15                 $this->lang->load('user');
16         }
17         
18         public function index()
19         {
20         }
21         
22         public function login()
23         {               
24                 $this->load->library('form_validation');
25                 
26                 if ($this->form_validation->run() == FALSE)
27                 {
28                         $params = array(        'title' => $this->config->item('site_name'),
29                                                                                 'css' => array(
30                                                                                         'catalog.css'
31                                                                                 ),
32                                                                                 //'js' => array(),
33                                                                                 //'metas' => array('description'=>'')
34                         );
35                         $this->load->library('html_head_params', $params);
36                         
37                         // **
38                         // ** LOADING VIEWS
39                         // **
40                         $this->load->view('html_begin', $this->html_head_params);
41                         $this->load->view('header', array('selected_menu' => 'login'));
42                         
43                         $this->load->view('user/login_view', array());
44                         
45                         $this->load->view('footer');
46                         $this->load->view('html_end');
47                 }
48                 else
49                 {
50                         header('Location: ' . site_url());
51                         return;
52                 }
53         }
54         
55         public function _check_login($username, $password)
56         {
57                 return TRUE;
58         }
59 }
60
61 /* End of file user.php */
62 /* Location: ./application/controllers/user.php */