From e7bb29c6cc8d766a65ec34f257d110ed41364481 Mon Sep 17 00:00:00 2001 From: Calin Burloiu Date: Mon, 12 Sep 2011 12:38:35 +0300 Subject: [PATCH] user support development started --- application/controllers/user.php | 62 ++++++++++++++++++++++ application/language/english/user_lang.php | 23 ++++++++ application/views/header.php | 6 +-- application/views/user/login_view.php | 20 +++++++ 4 files changed, 108 insertions(+), 3 deletions(-) create mode 100644 application/controllers/user.php create mode 100644 application/language/english/user_lang.php create mode 100644 application/views/user/login_view.php 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') ?> - +