This class does contain the security settings.
More...
This class does contain the security settings.
Definition at line 22 of file smarty_security.php.
isTrustedModifier |
( |
|
$modifier_name, |
|
|
|
$compiler |
|
) |
| |
Check if modifier plugin is trusted.
- Parameters
-
string | $modifier_name | |
object | $compiler | compiler object |
- Returns
- boolean true if tag is trusted
- Exceptions
-
Definition at line 269 of file smarty_security.php.
isTrustedPHPDir |
( |
|
$filepath | ) |
|
Check if directory of file resource is trusted.
- Parameters
-
- Returns
- boolean true if directory is trusted
- Exceptions
-
Definition at line 417 of file smarty_security.php.
isTrustedPhpFunction |
( |
|
$function_name, |
|
|
|
$compiler |
|
) |
| |
Check if PHP function is trusted.
- Parameters
-
string | $function_name | |
object | $compiler | compiler object |
- Returns
- boolean true if function is trusted
- Exceptions
-
Definition at line 185 of file smarty_security.php.
isTrustedPhpModifier |
( |
|
$modifier_name, |
|
|
|
$compiler |
|
) |
| |
Check if PHP modifier is trusted.
- Parameters
-
string | $modifier_name | |
object | $compiler | compiler object |
- Returns
- boolean true if modifier is trusted
- Exceptions
-
Definition at line 221 of file smarty_security.php.
isTrustedResourceDir |
( |
|
$filepath | ) |
|
Check if directory of file resource is trusted.
- Parameters
-
- Returns
- boolean true if directory is trusted
- Exceptions
-
Definition at line 313 of file smarty_security.php.
isTrustedStaticClass |
( |
|
$class_name, |
|
|
|
$compiler |
|
) |
| |
Check if static class is trusted.
- Parameters
-
string | $class_name | |
object | $compiler | compiler object |
- Returns
- boolean true if class is trusted
- Exceptions
-
Definition at line 203 of file smarty_security.php.
isTrustedStream |
( |
|
$stream_name | ) |
|
Check if stream is trusted.
- Parameters
-
- Returns
- boolean true if stream is trusted
- Exceptions
-
Definition at line 297 of file smarty_security.php.
isTrustedTag |
( |
|
$tag_name, |
|
|
|
$compiler |
|
) |
| |
Check if tag is trusted.
- Parameters
-
string | $tag_name | |
object | $compiler | compiler object |
- Returns
- boolean true if tag is trusted
- Exceptions
-
Definition at line 239 of file smarty_security.php.
Check if URI (e.g.
{fetch} or {html_image}) is trusted
To simplify things, isTrustedUri() resolves all input to "{$PROTOCOL}://{$HOSTNAME}". So "http://username:password@hello.world.example.org:8080/some-path?some=query-string" is reduced to "http://hello.world.example.org" prior to applying the patters from $trusted_uri.
- Parameters
-
- Returns
- boolean true if URI is trusted
- Exceptions
-
SmartyException | if URI is not trusted $trusted_uri for list of patterns to match against $uri |
Definition at line 395 of file smarty_security.php.
$_php_resource_dir = null |
|
protected |
$allow_super_globals = true |
$allowed_modifiers = array() |
$disabled_modifiers = array() |
Initial value:= array(
'isset', 'empty',
'count', 'sizeof',
'in_array', 'is_array',
'time',
'nl2br',
)
Definition at line 72 of file smarty_security.php.
$static_classes = array() |
The documentation for this class was generated from the following file: