Diversen nav mail Peter
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user