diff --git a/app/Controllers/BaseUsersController.php b/app/Controllers/BaseUsersController.php new file mode 100644 index 0000000..e1c57db --- /dev/null +++ b/app/Controllers/BaseUsersController.php @@ -0,0 +1,65 @@ +session = \Config\Services::session(); + $this->session = \Config\Services::session(); + //var_dump($this->session->bko_session); + if ( + isset($this->session->bko_session) && + $this->session->bko_session != '' + ) { + // we are all good + } else { + // we need to get out + } + } +} diff --git a/app/Controllers/Dash.php b/app/Controllers/Dash.php index 58c0b53..2518dff 100644 --- a/app/Controllers/Dash.php +++ b/app/Controllers/Dash.php @@ -2,7 +2,7 @@ namespace App\Controllers; -class Dash extends BaseController +class Dash extends BaseUsersController { public function index() { diff --git a/app/Views/bko/contacts.php b/app/Views/bko/contacts.php index 4955d48..7c0b54d 100644 --- a/app/Views/bko/contacts.php +++ b/app/Views/bko/contacts.php @@ -312,11 +312,6 @@ 8k social visitors - -
-