From: Calin Burloiu Date: Mon, 12 Sep 2011 09:38:35 +0000 (+0300) Subject: user support development started X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=e7bb29c6cc8d766a65ec34f257d110ed41364481;p=living-lab-site.git user support development started --- 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 */ diff --git a/application/language/english/user_lang.php b/application/language/english/user_lang.php new file mode 100644 index 0000000..d892d50 --- /dev/null +++ b/application/language/english/user_lang.php @@ -0,0 +1,23 @@ +>lang->line('ui_nav_menu_contact') ?> - +