Public Method Details |
parse |
public string parse( string $path )
|
|
Parse the config.inc.php file and return the parsed content as an array.
Note that this function is VERY slow!
|
Parameter |
|
string |
$path |
|
|
full path to the config.inc.php file |
|
Returns |
string $file parsed content of config.inc.php file |
Author(s) |
Richard Vrijhof <R.J.Vrijhof@bigfoot.com> |
|
checkvars |
public mixed checkvars( array $parsed, array $preset )
|
|
Check for all variables.
|
Parameter |
|
array |
$parsed |
|
|
array produced by parse() |
|
|
array |
$preset |
|
|
array preset in $all_vars |
|
Returns |
mixed -255 if all variables in config.inc.php (and
no extra variables not defined in $all_vars)
array if failed, following this format:
"not_in_config" => array("var1", "var2"),
"not_in_all_vars" => array("var1", "var2") |
See Also |
parse() |
Author(s) |
Richard Vrijhof <R.J.Vrijhof@bigfoot.com> |
|
chg_val |
public array chg_val( string $input, string $var, string $type, string $val )
|
|
Change the value of a variable in config.inc.php.
|
Parameter |
|
string |
$input |
|
|
content of the config.inc.php file |
|
|
string |
$var |
|
|
name of the variable |
|
|
string |
$type |
|
|
type of the variable (supported are: all
scalars, so not "array" or "object") |
|
|
string |
$val |
|
|
value of the variable |
|
Returns |
array as follows:
0 => return code (true or false)
1 => changed content (or not, if [0] == false) |
Author(s) |
Richard Vrijhof <R.J.Vrijhof@bigfoot.com> |
|
display_val |
public string display_val( string $var, string $type, string $val )
|
|
Display the value of a variable in config.inc.php as an HTML input tag.
|
Parameter |
|
string |
$var |
|
|
name of the variable |
|
|
string |
$type |
|
|
type of the variable |
|
|
string |
$val |
|
|
value of the variable |
|
Returns |
string HTML code to produce the input tag |
Required global variables |
|
|
Author(s) |
Richard Vrijhof <R.J.Vrijhof@bigfoot.com> |
|
hidden_input |
public void hidden_input( string $var, string $val )
|
|
Display a hidden input item if POST variable is defined.
|
Parameter |
|
string |
$var |
|
|
name of POST variable |
|
|
string |
$val |
|
|
value of POST variable |
|
Returns |
void |
Author(s) |
Richard Vrijhof <R.J.Vrijhof@bigfoot.com> |
|
sec_form |
public void sec_form( )
|
|
Display the security (logon) form.
|
Returns |
void |
Required global variables |
|
|
Author(s) |
Richard Vrijhof <R.J.Vrijhof@bigfoot.com> |
|