[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/libraries/Smarty/libs/sysplugins/ -> smarty_security.php (summary)

Smarty plugin

Author: Uwe Tews
File Size: 459 lines (16 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Smarty_Security:: (10 methods):
  __construct()
  isTrustedPhpFunction()
  isTrustedStaticClass()
  isTrustedPhpModifier()
  isTrustedTag()
  isTrustedModifier()
  isTrustedStream()
  isTrustedResourceDir()
  isTrustedUri()
  isTrustedPHPDir()


Class: Smarty_Security  - X-Ref

This class does contain the security settings

__construct($smarty)   X-Ref

param: Smarty $smarty

isTrustedPhpFunction($function_name, $compiler)   X-Ref
Check if PHP function is trusted.

param: string $function_name
param: object $compiler compiler object
return: boolean true if function is trusted

isTrustedStaticClass($class_name, $compiler)   X-Ref
Check if static class is trusted.

param: string $class_name
param: object $compiler compiler object
return: boolean true if class is trusted

isTrustedPhpModifier($modifier_name, $compiler)   X-Ref
Check if PHP modifier is trusted.

param: string $modifier_name
param: object $compiler compiler object
return: boolean true if modifier is trusted

isTrustedTag($tag_name, $compiler)   X-Ref
Check if tag is trusted.

param: string $tag_name
param: object $compiler compiler object
return: boolean true if tag is trusted

isTrustedModifier($modifier_name, $compiler)   X-Ref
Check if modifier plugin is trusted.

param: string $modifier_name
param: object $compiler compiler object
return: boolean true if tag is trusted

isTrustedStream($stream_name)   X-Ref
Check if stream is trusted.

param: string $stream_name
return: boolean true if stream is trusted

isTrustedResourceDir($filepath)   X-Ref
Check if directory of file resource is trusted.

param: string $filepath
return: boolean true if directory is trusted

isTrustedUri($uri)   X-Ref
Check if URI (e.g. {fetch} or {html_image}) is trusted

To simplify things, isTrustedUri() resolves all input to "{$PROTOCOL}://{$HOSTNAME}".
So "http://username:[email protected]:8080/some-path?some=query-string"
is reduced to "http://hello.world.example.org" prior to applying the patters from {@link $trusted_uri}.
param: string $uri
return: boolean true if URI is trusted

isTrustedPHPDir($filepath)   X-Ref
Check if directory of file resource is trusted.

param: string $filepath
return: boolean true if directory is trusted



Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1