X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=blobdiff_plain;f=application%2Fcontrollers%2Fuser.php;fp=application%2Fcontrollers%2Fuser.php;h=33c50d988ba3d2e4d8bd56a2f627cc10e3fbd665;hb=e7bb29c6cc8d766a65ec34f257d110ed41364481;hp=0000000000000000000000000000000000000000;hpb=71ea5e00a7622669e46c444091091a4c021d4333;p=living-lab-site.git diff --git a/application/controllers/user.php b/application/controllers/user.php new file mode 100644 index 0000000..33c50d9 --- /dev/null +++ b/application/controllers/user.php @@ -0,0 +1,62 @@ +lang->load('user'); + } + + public function index() + { + } + + public function login() + { + $this->load->library('form_validation'); + + if ($this->form_validation->run() == FALSE) + { + $params = array( 'title' => $this->config->item('site_name'), + 'css' => array( + 'catalog.css' + ), + //'js' => array(), + //'metas' => array('description'=>'') + ); + $this->load->library('html_head_params', $params); + + // ** + // ** LOADING VIEWS + // ** + $this->load->view('html_begin', $this->html_head_params); + $this->load->view('header', array('selected_menu' => 'login')); + + $this->load->view('user/login_view', array()); + + $this->load->view('footer'); + $this->load->view('html_end'); + } + else + { + header('Location: ' . site_url()); + return; + } + } + + public function _check_login($username, $password) + { + return TRUE; + } +} + +/* End of file user.php */ +/* Location: ./application/controllers/user.php */