fix
This commit is contained in:
@@ -22,15 +22,19 @@ class Auth extends Start_Controller {
|
||||
|
||||
$data["page_title"] = "";
|
||||
$data["username"] = $username; //"auxsupport";
|
||||
$data["password"] = "may12002";
|
||||
$data["password"] = $password;
|
||||
$out = [];
|
||||
$this->jubabox_webapi(USER_LOGIN, $data, $out);
|
||||
//print_r( $data );
|
||||
//print_r( $out );
|
||||
if ( count($out) > 0 && isset($out[0]) ){
|
||||
$this->getSessionData($out[0], $session_data); // just for testing
|
||||
if ( count($out) > 0 && isset($out["session"]) ){
|
||||
print_r( $out );
|
||||
//$this->getSessionData($out[0], $session_data); // just for testing
|
||||
|
||||
$this->buildUserSession(PHP_API_OK,$session_data);
|
||||
$this->buildUserSession(PHP_API_OK,$out);
|
||||
$valid_login = true;
|
||||
$this->session->set_flashdata('in',$out);
|
||||
redirect("page/index");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -45,6 +49,34 @@ class Auth extends Start_Controller {
|
||||
$this->load->view('home/view_login');
|
||||
}
|
||||
|
||||
/*
|
||||
.916 SQL [12418]: Found rows: 0
|
||||
- 18:20:16.916 SQL [12418]: Found rows: 0
|
||||
- 18:20:16.916 INFO [12418]: RET: added=2019-10-10 10:43:55.26967
|
||||
- 18:20:16.916 INFO [12418]: RET: created=
|
||||
- 18:20:16.916 INFO [12418]: RET: email=ameye@chiefsoft.com
|
||||
- 18:20:16.916 INFO [12418]: RET: firstname=Olu
|
||||
- 18:20:16.916 INFO [12418]: RET: id=
|
||||
- 18:20:16.916 INFO [12418]: RET: last_login=2019-10-10 17:55:23.835444
|
||||
- 18:20:16.916 INFO [12418]: RET: lastname=Amey
|
||||
- 18:20:16.916 INFO [12418]: RET: loc=
|
||||
- 18:20:16.916 INFO [12418]: RET: member_id=1
|
||||
- 18:20:16.916 INFO [12418]: RET: member_profile_id=
|
||||
- 18:20:16.916 INFO [12418]: RET: mypage=oluamey
|
||||
- 18:20:16.916 INFO [12418]: RET: password=8ef852e9c900de50c6e9d004f3463686
|
||||
- 18:20:16.916 INFO [12418]: RET: phone=
|
||||
- 18:20:16.916 INFO [12418]: RET: result=ECHO BACKEND
|
||||
- 18:20:16.916 INFO [12418]: RET: session=2AB29AC8698D9F9F7EBCB28A1FE41568
|
||||
- 18:20:16.916 INFO [12418]: RET: sessionid=2AB29AC8698D9F9F7EBCB28A1FE41568
|
||||
- 18:20:16.916 INFO [12418]: RET: status=1
|
||||
- 18:20:16.916 INFO [12418]: RET: stauts=OK
|
||||
- 18:20:16.916 INFO [12418]: RET: updated=
|
||||
- 18:20:16.916 INFO [12418]: RET: username=ameye@chiefsoft.com
|
||||
- 18:20:16.918 INFO [12418]: JUBABOX is stopping...
|
||||
- 18:20:16.918 DEBUG [12418]: Closing database connection
|
||||
- 18:20:16.918 SQL [12418]: pgsql_close()
|
||||
*/
|
||||
|
||||
public function forgotpass() {
|
||||
$this->index();
|
||||
}
|
||||
|
||||
@@ -6,14 +6,21 @@ class Page extends Member_Controller {
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->load->view('members/view_page');
|
||||
$this->load->view('members/view_page');
|
||||
}
|
||||
|
||||
public function forgotpass(){
|
||||
$this->index();
|
||||
|
||||
public function email(){
|
||||
$this->index();
|
||||
}
|
||||
public function register(){
|
||||
$this->index();
|
||||
public function chat(){
|
||||
$this->index();
|
||||
}
|
||||
|
||||
public function todo(){
|
||||
$this->index();
|
||||
}
|
||||
public function calendar(){
|
||||
$this->index();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -51,9 +51,11 @@ class JUB_Controller extends CI_Controller {
|
||||
|
||||
protected function jubabox_webapi($action, $in, &$out) {
|
||||
$this->load->model('backend_model');
|
||||
$in["action"] = $action;
|
||||
$in["pid"] = 100;
|
||||
return $this->backend_model->jubabox_api($in, $out);
|
||||
$in["action"] = $action;
|
||||
$in["pid"] = 100;
|
||||
$ret = $this->backend_model->jubabox_api($in, $out);
|
||||
//echo $ret;
|
||||
return $ret;
|
||||
}
|
||||
|
||||
function formatedMesage($msgType, $theMessage) {
|
||||
|
||||
@@ -16,6 +16,7 @@ class Start_Controller extends JUB_Controller {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
protected function buildUserSession($ret, $out) {
|
||||
|
||||
//session_destroy();
|
||||
@@ -29,12 +30,10 @@ class Start_Controller extends JUB_Controller {
|
||||
$_SESSION['firstname'] = $out["firstname"]; // $ret->firstname;
|
||||
$_SESSION['lastname'] = $out["lastname"]; // $ret->lastname;
|
||||
$_SESSION['email'] = $out["email"]; // $ret->email;
|
||||
$_SESSION['user_id'] = $out["user_id"]; // $ret->id;
|
||||
$_SESSION['pid'] = $out["pid"]; // $ret->id;
|
||||
$_SESSION['user_id'] = $out["member_id"]; // $ret->id;
|
||||
$_SESSION['loc'] = $out["loc"];
|
||||
$_SESSION['practice'] = $out["practice"];
|
||||
$_SESSION['PracticeID'] = $out["PracticeID"];
|
||||
$_SESSION['UserId'] = $out["UserId"];
|
||||
$_SESSION['mypage'] = $out["mypage"];
|
||||
|
||||
}
|
||||
|
||||
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
|
||||
|
||||
@@ -17,9 +17,16 @@ class Backend_model extends CI_Model {
|
||||
$this->thisUser = $this->USER;
|
||||
}
|
||||
|
||||
public function jubabox_api($in, $out = array()) {
|
||||
public function jubabox_api($in, &$out) {
|
||||
if (!is_array($out)) return -1;
|
||||
$this->jubabox_load();
|
||||
$ret = $this->jubabox->jubabox_api($in, $out);
|
||||
$rrr = array();
|
||||
$jubabox = $this->jubabox;
|
||||
$ret = $jubabox->jubabox_api($in, $rrr);
|
||||
//print_r( $in );
|
||||
//echo "-----\n";
|
||||
//print_r( $rrr );
|
||||
$out = $rrr;
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
<link rel="stylesheet" type="text/css" href="../../../app-assets/css/plugins/tour/tour.css">
|
||||
<!-- END: Page CSS-->
|
||||
|
||||
|
||||
<!-- BEGIN: Custom CSS-->
|
||||
<link rel="stylesheet" type="text/css" href="../../../assets/css/style.css">
|
||||
<!-- END: Custom CSS-->
|
||||
@@ -63,11 +64,11 @@
|
||||
<div class="shadow-bottom"></div>
|
||||
<div class="main-menu-content">
|
||||
<ul class="navigation navigation-main" id="main-menu-navigation" data-menu="menu-navigation">
|
||||
<li class=" nav-item"><a href="/page/index"><i class="feather icon-home"></i><span class="menu-title" data-i18n="Dashboard">Home</span><span class="badge badge badge-warning badge-pill float-right mr-2">2</span></a>
|
||||
<li class=" nav-item"><a href="/page/index"><i class="feather icon-home"></i><span class="menu-title" data-i18n="Dashboard">Home</span></a>
|
||||
<ul class="menu-content">
|
||||
<li class="active"><a href="dashboard-analytics.html"><i class="feather icon-circle"></i><span class="menu-item" data-i18n="Analytics">Analytics</span></a>
|
||||
<li class="active"><a href="/page/index"><i class="feather icon-circle"></i><span class="menu-item" data-i18n="Analytics">My Page</span></a>
|
||||
</li>
|
||||
<li><a href="dashboard-ecommerce.html"><i class="feather icon-circle"></i><span class="menu-item" data-i18n="eCommerce">eCommerce</span></a>
|
||||
<li><a href="/page/index"><i class="feather icon-circle"></i><span class="menu-item" data-i18n="eCommerce">Shared</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
@@ -111,16 +112,16 @@
|
||||
<!-- li.nav-item.mobile-menu.d-xl-none.mr-auto-->
|
||||
<!-- a.nav-link.nav-menu-main.menu-toggle.hidden-xs(href='#')-->
|
||||
<!-- i.ficon.feather.icon-menu-->
|
||||
<li class="nav-item d-none d-lg-block"><a class="nav-link" href="app-todo.html" data-toggle="tooltip" data-placement="top" title="Todo"><i class="ficon feather icon-check-square"></i></a></li>
|
||||
<li class="nav-item d-none d-lg-block"><a class="nav-link" href="app-chat.html" data-toggle="tooltip" data-placement="top" title="Chat"><i class="ficon feather icon-message-square"></i></a></li>
|
||||
<li class="nav-item d-none d-lg-block"><a class="nav-link" href="app-email.html" data-toggle="tooltip" data-placement="top" title="Email"><i class="ficon feather icon-mail"></i></a></li>
|
||||
<li class="nav-item d-none d-lg-block"><a class="nav-link" href="app-calender.html" data-toggle="tooltip" data-placement="top" title="Calendar"><i class="ficon feather icon-calendar"></i></a></li>
|
||||
<li class="nav-item d-none d-lg-block"><a class="nav-link" href="/page/todo" data-toggle="tooltip" data-placement="top" title="Todo"><i class="ficon feather icon-check-square"></i></a></li>
|
||||
<li class="nav-item d-none d-lg-block"><a class="nav-link" href="/page/chat" data-toggle="tooltip" data-placement="top" title="Chat"><i class="ficon feather icon-message-square"></i></a></li>
|
||||
<li class="nav-item d-none d-lg-block"><a class="nav-link" href="/page/email" data-toggle="tooltip" data-placement="top" title="Email"><i class="ficon feather icon-mail"></i></a></li>
|
||||
<li class="nav-item d-none d-lg-block"><a class="nav-link" href="/page/calendar" data-toggle="tooltip" data-placement="top" title="Calendar"><i class="ficon feather icon-calendar"></i></a></li>
|
||||
</ul>
|
||||
<ul class="nav navbar-nav">
|
||||
<li class="nav-item d-none d-lg-block"><a class="nav-link bookmark-star"><i class="ficon feather icon-star warning"></i></a>
|
||||
<div class="bookmark-input search-input">
|
||||
<div class="bookmark-input-icon"><i class="feather icon-search primary"></i></div>
|
||||
<input class="form-control input" type="text" placeholder="Explore Vuesax..." tabindex="0" data-search="template-list" />
|
||||
<input class="form-control input" type="text" placeholder="Explore JubaBox..." tabindex="0" data-search="template-list" />
|
||||
<ul class="search-list"></ul>
|
||||
</div>
|
||||
<!-- select.bookmark-select-->
|
||||
@@ -139,7 +140,7 @@
|
||||
<li class="nav-item nav-search"><a class="nav-link nav-link-search"><i class="ficon feather icon-search"></i></a>
|
||||
<div class="search-input">
|
||||
<div class="search-input-icon"><i class="feather icon-search primary"></i></div>
|
||||
<input class="input" type="text" placeholder="Explore Vuesax..." tabindex="-1" data-search="template-list" />
|
||||
<input class="input" type="text" placeholder="Explore JubaBox..." tabindex="-1" data-search="template-list" />
|
||||
<div class="search-input-close"><i class="feather icon-x"></i></div>
|
||||
<ul class="search-list"></ul>
|
||||
</div>
|
||||
@@ -148,7 +149,7 @@
|
||||
<ul class="dropdown-menu dropdown-menu-media dropdown-menu-right">
|
||||
<li class="dropdown-menu-header">
|
||||
<div class="dropdown-header m-0 p-2">
|
||||
<h3 class="white">5 New</h3><span class="notification-title">App Notifications</span>
|
||||
<h3 class="white">5 New</h3><span class="notification-title">Notifications</span>
|
||||
</div>
|
||||
</li>
|
||||
<li class="scrollable-container media-list"><a class="d-flex justify-content-between" href="javascript:void(0)">
|
||||
|
||||
Reference in New Issue
Block a user