C# Class PHP.Core.GlobalConfiguration.SafeModeSection

Inheritance: IPhpConfigurationSection
Mostrar archivo Open project: jadu/Phalanger

Public Properties

Property Type Description
AllowedPathPrefixes string[]
Enabled bool
ExecutionDirectory string

Public Methods

Method Description
GetAllowedPathPrefixesJoin ( ) : string
IsPathAllowed ( string path ) : bool

Checks whether a path is allowed to be used by the script.

Parse ( string name, string value, XmlNode node ) : bool

Loads configuration from XML node.

Private Methods

Method Description
DeepCopy ( ) : SafeModeSection

Method Details

GetAllowedPathPrefixesJoin() public method

public GetAllowedPathPrefixesJoin ( ) : string
return string

IsPathAllowed() public method

Checks whether a path is allowed to be used by the script.
si a null reference.
public IsPathAllowed ( string path ) : bool
path string The non-empty path to be checked.
return bool

Parse() public method

Loads configuration from XML node.
public Parse ( string name, string value, XmlNode node ) : bool
name string
value string
node System.Xml.XmlNode
return bool

Property Details

AllowedPathPrefixes public_oe property

List of directory path prefixes where file system functions can open files. A null reference mean all paths are allowed. Not affected by value of Enabled.
public string[] AllowedPathPrefixes
return string[]

Enabled public_oe property

Whether safe mode is enabled.
public bool Enabled
return bool

ExecutionDirectory public_oe property

Directory where programs to be executed are searched in. Applies only if Enabled is true.
public string ExecutionDirectory
return string