Diversen nav mail Peter

This commit is contained in:
2018-08-05 10:48:53 +02:00
parent 16616f13d2
commit b0a866ba11
7 changed files with 129 additions and 6 deletions
+15 -1
View File
@@ -16,7 +16,7 @@ class MY_Controller extends CI_Controller {
{
parent::__construct();
$this->version = '0.02.00';
$this->version = '0.02.01';
$this->load->library( 'beheer/session/RetrieveUserSession' );
@@ -25,11 +25,25 @@ class MY_Controller extends CI_Controller {
private function handle()
{
$this->setSecureSite();
$this->retrieveusersession->handle();
$this->user = $this->User_model->get( USERID );
}
public function setSecureSite()
{
if ( getenv( 'ENVIRONMENT' ) != 'production' ) return;
if ( ! isset( $_SERVER["HTTPS"] ) || $_SERVER["HTTPS"] != "on" )
{
header( "Location: " . getenv( 'APP_URL' ) );
exit;
}
}
function clean_input( $post )
{
$value = $this->input->input_stream( $post, TRUE );