Developer's Manual  Function Reference  Working with SiteSupra variables  getSupraIni

getSupraIni

Returns value of requested SiteSupra parameter.


mixed getSupraIni
(string section_name , string parameter_name [, mixed default_value]]])

Use the function to get the value of any parameter of $suCONF or $suEDIT arrays. Assign 'CONF' to section_name to refer to $suCONF array or 'EDIT' to refer to $suEDIT. parameter_name is the name of exsting element of one of those arrays. The function getSupraIni returns the value of requested parameter or default_value if the parameter doesn't exist. If default_value is omitted the function returns zero.

Example

<?
$baseTitle
= getSupraIni('CONF', 'baseTitle');
?>
Please login to add comments.