File/plugins/vadmin/config_parser.php

Description

config_parser.php

------------------ This is a file containing a simple config parser function. It MUST be in the same directory as all other main vadmin files, as it is required to be able to parse the configuration and find where everything else is located.

Licensed under GNU GPL v2. Please see COPYING for full terms.

$Id: config_parser.php 1079 2007-12-16 12:31:59Z tokul $

  • author: Konstantin Riabitsev ($Author: graf25 $)
  • version: $Date: 2003/06/16 04:28:26 $
Functions
vadmin_load_config_file (line 66)

This function reads in the vadmin config file.

  • return: with the contents of the file.
string vadmin_load_config_file ($filename $filename)
  • $filename $filename: the file to read in.
vadmin_parse_config (line 91)

This function loads the configuration. First it checks the session

to see if we have already parsed the config file before. If so, it then returns it. If not, then it loads the file and parses it, then puts it into the session so we don't have to do it again for this user.

  • return: array with values from that config file.
an vadmin_parse_config ($filename $filename)
  • $filename $filename: where vadmin config file is.
vadmin_parse_config_file (line 26)

This function is a simple win.ini-style config parser.

  • return: array with various array members reflecting the config file.
an vadmin_parse_config_file ($config $config)
  • $config $config: a config string in a win.ini style config file.

Documentation generated on Sun, 22 Nov 2009 17:36:22 +0200 by phpDocumentor 1.4.3