54 $this->Security =
get_package(
'security' ,
'last' , __FILE__ );
88 private function get_data_by_settings( $Name , &$Settings )
92 if( $Settings->get_setting(
'get' ,
false ) !=
false && $this->Security->get_g( $Name ,
'set' ) )
96 elseif( $Settings->get_setting(
'post' ,
false ) !=
false && $this->Security->get_p( $Name ,
'set' ) )
100 elseif( $Settings->get_setting(
'session' ,
false ) !=
false &&
101 $this->Security->get_s( $Name ,
'set' ) )
105 elseif( $Settings->get_setting(
'cookie' ,
false ) !=
false && $this->Security->get_c( $Name ,
'set' ) )
112 catch( Exception $e )
150 private function get_value( $Name , $Type , &$Settings )
154 $Data = $this->get_data_by_settings( $Name , $Settings );
156 if( $Data ===
false )
158 return( $Settings->get_setting(
'default' ,
'' ) );
162 return( $this->Security->get( $Data[ $Name ] , $Type ) );
165 catch( Exception $e )
199 $Code = $JSON->encode( array_merge( $_GET , $_POST ) );
200 $Code = str_replace(
"'" ,
''' , $Code );
204 catch( Exception $e )
244 $Name = $Settings->get_setting(
'name' );
245 $Type = $Settings->get_setting(
'type' ,
'string' );
247 $Value = $this->get_value( $Name , $Type , $Settings );
251 catch( Exception $e )