--- /dev/null
+<?php
+
+/**
+ * Class User controls video hierarchy and searching
+ *
+ * @category Controller
+ * @author Călin-Andrei Burloiu
+ */
+class User extends CI_Controller {
+
+ public function __construct()
+ {
+ parent::__construct();
+
+ $this->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 */
--- /dev/null
+<?php
+
+$lang['user_username'] = 'User Name';
+$lang['user_username_or_email'] = 'User Name or E-mail';
+$lang['user_password'] = 'Password';
+$lang['user_password_confirmation'] = 'Password Confirmation';
+$lang['user_old_password'] = 'Old Password';
+$lang['user_new_password'] = 'New Password';
+$lang['user_new_password_confirmation'] = 'New Password Confirmation';
+$lang['user_email'] = 'E-mail';
+$lang['user_first_name'] = 'First Name';
+$lang['user_last_name'] = 'Last Name';
+$lang['user_birth_date'] = 'Birth Date';
+$lang['user_country'] = 'Country';
+$lang['user_locality'] = 'Locality';
+$lang['user_ui_lang'] = 'Site Interface Language';
+$lang['user_time_zone'] = 'Time Zone';
+$lang['user_role'] = 'Roles';
+$lang['user_auth_src'] = 'Authentication Source';
+$lang['user_video_prefs'] = 'Video Preferences';
+
+/* End of file user_lang.php */
+/* Location: ./application/language/english/user_lang.php */
\ No newline at end of file
<?php echo ($selected_menu == 'contact' ? 'class="selected"' : '') ?>><?php echo $this->lang->line('ui_nav_menu_contact') ?>
</a></li>
- <!--<li class="menu-right"><a href="#<?php //echo site_url('register') ?>"
+ <li class="menu-right"><a href="<?php echo '#'//site_url('register') ?>"
<?php echo ($selected_menu == 'register' ? 'class="selected"' : '') ?>><?php echo $this->lang->line('ui_nav_menu_register') ?></a></li>
- <li class="menu-right"><a href="#<?php //echo site_url('login') ?>"
- <?php echo ($selected_menu == 'login' ? 'class="selected"' : '') ?>><?php echo $this->lang->line('ui_nav_menu_log_in') ?></a></li>-->
+ <li class="menu-right"><a href="<?php echo site_url('user/login') ?>"
+ <?php echo ($selected_menu == 'login' ? 'class="selected"' : '') ?>><?php echo $this->lang->line('ui_nav_menu_log_in') ?></a></li>
</ul>
<div id="header">
--- /dev/null
+<table>
+ <tr>
+ <th><?php echo $this->lang->line('user_username_or_email'). ': ' ?></th>
+ <td>
+ <input type="text" name="username" size="32" />
+ </td>
+ </tr>
+ <tr>
+ <th><?php echo $this->lang->line('user_password'). ': ' ?></th>
+ <td>
+ <input type="password" name="password" size="32" />
+ </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>
+ <input type="submit" value="<?php echo $this->lang->line('ui_nav_menu_log_in') ?>" />
+ </td>
+ </tr>
+</table>
\ No newline at end of file