From cb91050361dd05846b637ebaaeaef990a2368bde Mon Sep 17 00:00:00 2001 From: Olusesan Ameye Date: Sat, 2 Mar 2019 18:55:16 +0000 Subject: [PATCH] Dash page logou --- providerwww/application/controllers/Login.php | 5 ++- .../application/core/MER_Controller.php | 36 ++++--------------- 2 files changed, 11 insertions(+), 30 deletions(-) diff --git a/providerwww/application/controllers/Login.php b/providerwww/application/controllers/Login.php index 2978625..eb4be85 100644 --- a/providerwww/application/controllers/Login.php +++ b/providerwww/application/controllers/Login.php @@ -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'); diff --git a/providerwww/application/core/MER_Controller.php b/providerwww/application/core/MER_Controller.php index 0e3a381..01b802f 100644 --- a/providerwww/application/core/MER_Controller.php +++ b/providerwww/application/core/MER_Controller.php @@ -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) - */ }