Dash page logou
This commit is contained in:
@@ -1,20 +1,24 @@
|
||||
<?php
|
||||
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Login extends CI_Controller {
|
||||
class Login extends Web_Controller {
|
||||
|
||||
public function index() {
|
||||
// echo rand(1000, 9999);
|
||||
// print_r($this->input->get());
|
||||
$data = array();
|
||||
|
||||
if ($_POST) {
|
||||
|
||||
$data['username'] = trim($this->input->post('username'));
|
||||
$data['pass'] = htmlspecialchars($this->input->post('pass'));
|
||||
$this->load->view('provider/dash');
|
||||
//$this->load->view('provider/dash');
|
||||
$this->renderProviderSecurePage('dash',$data);
|
||||
} else {
|
||||
$this->load->view('welcome_message');
|
||||
//$this->load->view('welcome_message');
|
||||
// $this->load->view('provider/dash');
|
||||
$this->renderExternalPage('welcome_message', $data);
|
||||
}
|
||||
|
||||
//$this->load->view('provider/dash');
|
||||
@@ -22,11 +26,13 @@ class Login extends CI_Controller {
|
||||
}
|
||||
|
||||
public function logout() {
|
||||
$data = array();
|
||||
$this->destroySession();
|
||||
$this->load->view('welcome_message');
|
||||
$this->renderExternalPage('welcome_message', $data);
|
||||
}
|
||||
|
||||
private function destroySession(){
|
||||
private function destroySession() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
<?php
|
||||
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Register extends CI_Controller {
|
||||
class Register extends Web_Controller {
|
||||
|
||||
public function index() {
|
||||
$data = array();
|
||||
$this->renderExternalPage('register', $data);
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->load->view('register');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Welcome extends CI_Controller {
|
||||
class Welcome extends Web_Controller {
|
||||
|
||||
/**
|
||||
* Index Page for this controller.
|
||||
|
||||
Reference in New Issue
Block a user