Compare commits
2 Commits
e93f5e34c7
...
fda71fdd64
| Author | SHA1 | Date | |
|---|---|---|---|
| fda71fdd64 | |||
| cb91050361 |
@@ -14,7 +14,11 @@ 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);
|
||||
$outData = array();
|
||||
$loginResult = $this->loginUser($data, $outData);
|
||||
if (true == $loginResult) {
|
||||
$this->renderProviderSecurePage('dash', $data);
|
||||
}
|
||||
} else {
|
||||
//$this->load->view('welcome_message');
|
||||
// $this->load->view('provider/dash');
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
class WRB_Controller extends CI_Controller {
|
||||
class MER_Controller extends CI_Controller {
|
||||
|
||||
var $template = array(
|
||||
'table_open' => "<table class='table table-sm table-striped table-hover table-bordered table-condensed'>",
|
||||
@@ -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)
|
||||
|
||||
*/
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
class Provider_Controller extends WRB_Controller {
|
||||
class Provider_Controller extends MER_Controller {
|
||||
|
||||
|
||||
public $data = array();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
class Web_Controller extends WRB_Controller {
|
||||
class Web_Controller extends MER_Controller {
|
||||
|
||||
public $data = array();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user