43 lines
972 B
PHP
43 lines
972 B
PHP
<?php
|
|
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
class Auth extends Start_Controller {
|
|
|
|
public function index() {
|
|
$login_done = false;
|
|
$data = array();
|
|
|
|
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
|
$this->renderMemberPages('view_dash', $data);
|
|
$login_done = true;
|
|
|
|
// exit();
|
|
}
|
|
|
|
if (false == $login_done) {
|
|
$this->renderAuthPages('view_login', $data);
|
|
}
|
|
}
|
|
|
|
public function newuser() {
|
|
//$this->load->view('home/home');
|
|
$this->load->view('auth/view_head');
|
|
$this->load->view('auth/view_register');
|
|
$this->load->view('auth/view_foot');
|
|
}
|
|
|
|
public function resetpass() {
|
|
//$this->load->view('home/home');
|
|
//echo "START RESET 1";
|
|
$this->load->view('auth/view_head');
|
|
$this->load->view('auth/view_reset_password');
|
|
$this->load->view('auth/view_foot');
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|