Dash page logou

This commit is contained in:
2019-03-02 18:55:16 +00:00
parent e93f5e34c7
commit cb91050361
2 changed files with 11 additions and 30 deletions
@@ -14,7 +14,10 @@ class Login extends Web_Controller {
$data['username'] = trim($this->input->post('username'));
$data['pass'] = htmlspecialchars($this->input->post('pass'));
//$this->load->view('provider/dash');
$this->renderProviderSecurePage('dash',$data);
$loginResult = $this->loginUser($data, $outData);
if (true == $loginResult) {
$this->renderProviderSecurePage('dash', $data);
}
} else {
//$this->load->view('welcome_message');
// $this->load->view('provider/dash');
@@ -62,6 +62,13 @@ class WRB_Controller extends CI_Controller {
return htmlspecialchars($str);
}
protected function loginUser($in, $out) {
return true;
}
protected function getSessionArray() {
$data['username'] = $_SESSION['username']; // = $this->input->post('username');
$data['name'] = $_SESSION['name']; // = $this->input->post('username');
@@ -157,22 +164,7 @@ class WRB_Controller extends CI_Controller {
//$this->load->view('users/view_external_footer');
}
protected function home2($pagename = '') {
$data['sitename'] = 'home';
$res = $this->getExtJobList();
$data['market_data'] = $res;
$data['why_list'] = $this->getExtWhyList();
$this->load->view('home2/header', $data);
if ($pagename == '') {
$this->load->view('home2/view_index2', $data);
} else {
$this->load->view($pagename, $data);
}
$this->load->view('home2/footer', $data);
}
protected function readFixedText($text_key) {
@@ -269,19 +261,5 @@ class WRB_Controller extends CI_Controller {
$this->load->view('template/provider_footer', $data);
}
/*
* wrenchboard=> \d library
Table "public.library"
Column | Type | Modifiers
-------------+-----------------------------+------------------------------------------------------
id | integer | not null default nextval('library_id_seq'::regclass)
title | character varying(150) | not null
description | character varying(500) | not null
detail | text |
updated | timestamp without time zone | default now()
Indexes:
"library_id_key" UNIQUE CONSTRAINT, btree (id)
"library_title_key" UNIQUE CONSTRAINT, btree (title)
*/
}