57 if( session_id() ==
'' )
62 $this->SecurityUtilities =
get_package(
'security::security_utilities' ,
'last' , __FILE__ );
64 $this->SupportedDataTypes =
get_package(
'security::supported_data_types' ,
'last' , __FILE__ );
94 function set_g( $Field , $Value )
98 if( isset( $_GET[ $Field ] ) ===
false )
100 $_GET[ $Field ] = $Value;
103 catch( Exception $e )
135 if( isset( $_POST[ $Field ] ) ===
false )
137 $_POST[ $Field ] = $Value;
140 catch( Exception $e )
172 if( isset( $_COOKIE[ $Field ] ) ===
false )
174 $_COOKIE[ $Field ] = $Value;
177 catch( Exception $e )
209 if( isset( $_SESSION[ $Field ] ) ===
false )
211 $_SESSION[ $Field ] = $Value;
214 catch( Exception $e )
246 $_SESSION[ $Field ] = $Value;
248 catch( Exception $e )
276 unset( $_SESSION[ $Field ] );
278 catch( Exception $e )
310 $_SESSION[ $Field ] = $Value;
312 catch( Exception $e )
340 unset( $_GET[ $Field ] );
342 catch( Exception $e )
374 function reset_c( $Field , $Value , $Expire = 0 )
378 setcookie( $Field , $Value , $Expire === 0 ? 0 : time() + $Expire );
379 $_COOKIE[ $Field ] = $Value;
381 catch( Exception $e )
409 unset( $_COOKIE[ $Field ] );
411 catch( Exception $e )
443 $_POST[ $Field ] = $Value;
445 catch( Exception $e )
473 unset( $_POST[ $Field ] );
475 catch( Exception $e )
511 function get_g( $Field , $Type =
'set' , $Default =
'_throw_exception' )
515 return( $this->SecurityUtilities->get_value( $_GET , $Field , $Type , $Default ) );
517 catch( Exception $e )
553 function get_p( $Field , $Type =
'set' , $Default =
'_throw_exception' )
557 return( $this->SecurityUtilities->get_value( $_POST , $Field , $Type , $Default ) );
559 catch( Exception $e )
595 function get_s( $Field , $Type =
'set' , $Default =
'_throw_exception' )
599 return( $this->SecurityUtilities->get_value( $_SESSION , $Field , $Type , $Default ) );
601 catch( Exception $e )
637 function get_srv( $Field , $Type =
'set' , $Default =
'_throw_exception' )
641 return( $this->SecurityUtilities->get_value( $_SERVER , $Field , $Type , $Default ) );
643 catch( Exception $e )
679 function get_c( $Field , $Type =
'set' , $Default =
'_throw_exception' )
683 return( $this->SecurityUtilities->get_value( $_COOKIE , $Field , $Type , $Default ) );
685 catch( Exception $e )
721 function get_gp( $Field , $Type =
'set' , $DefaultValue =
'_throw_exception' )
725 return( $this->SecurityUtilities->get_global( $Field , $Type ,
GET |
POST , $DefaultValue ) );
727 catch( Exception $e )
759 function get( $Data , $Type )
763 if( is_array( $Data ) || is_object( $Data ) )
765 return( $this->SupportedDataTypes->dispatch_complex_data( $Data , $Type ) );
768 return( $this->SupportedDataTypes->compile_data( $Data , $Type ) );
770 catch( Exception $e )