41 lines
687 B
PHP
41 lines
687 B
PHP
<?php
|
|
/**
|
|
* Created by Pensare Software.
|
|
* User: Theo Weijmer
|
|
* Date: 05/12/2017
|
|
* Time: 11:02
|
|
*/
|
|
|
|
class MY_Controller extends CI_Controller {
|
|
|
|
public $authenticated;
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
|
|
$this->handle();
|
|
}
|
|
|
|
private function handle()
|
|
{
|
|
$this->environment();
|
|
}
|
|
|
|
function clean_input( $post )
|
|
{
|
|
$value = $this->input->post( $post );
|
|
|
|
// $escapedValue = $this->db->escape_string( $value, TRUE );
|
|
|
|
$denulledValue = str_replace( 'null', '', $value);
|
|
|
|
return $denulledValue;
|
|
}
|
|
|
|
public function json($data)
|
|
{
|
|
echo json_encode($data);
|
|
}
|
|
|
|
} |