__construct() public method

Determines whether to globally enable the XSS processing and whether to allow the $_GET array.
public __construct ( ) : void
return void
 function MY_Input()
 {
     parent::__construct();
     if ($this->server('REQUEST_METHOD') == 'DELETE') {
         parse_str(file_get_contents('php://input'), $this->delete);
         $this->delete = $this->_clean_input_data($this->delete);
     } elseif ($this->server('REQUEST_METHOD') == 'PUT') {
         parse_str(file_get_contents('php://input'), $this->put);
         $this->put = $this->_clean_input_data($this->put);
     }
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     $this->raw = file_get_contents('php://input');
     if (!empty($this->raw)) {
         if ($this->request_method() == 'DELETE') {
             $this->delete = $this->_sanitize_request($this->raw);
         } else {
             if ($this->request_method() == 'put') {
                 $this->put = $this->_sanitize_request($this->raw);
             }
         }
     }
 }
 public function __construct()
 {
     $this->_POST_RAW = $_POST;
     //clone raw post data
     parent::__construct();
 }
Example #4
0
 function __construct()
 {
     parent::__construct();
 }
Example #5
0
 public function __construct()
 {
     parent::__construct();
     $this->is_ajax_request();
 }
Example #6
0
 public function __construct()
 {
     parent::__construct();
     $this->_security =& load_class('Security');
 }
Example #7
0
 public function __construct()
 {
     // make a clone of the raw post data
     $this->_POST_RAW = $_POST;
     parent::__construct();
 }
Example #8
0
 function __construct()
 {
     parent::__construct();
     $this->method = $this->server('REQUEST_METHOD');
     $this->data = file_get_contents('php://input');
 }
 function __construct()
 {
     // Call the Model constructor
     parent::__construct();
 }