summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-05-18 02:48:22 +0000
committerBill Marquette <billm@pfsense.org>2005-05-18 02:48:22 +0000
commitf5da67d0512f21da3059259bf98601e6b8802d74 (patch)
tree019ef18a4d73445ceb8dd97d98054819d476d830
parent2e74901f93b38d5d2218198ab21ebe6e475eb209 (diff)
downloadpfsense-f5da67d0512f21da3059259bf98601e6b8802d74.zip
pfsense-f5da67d0512f21da3059259bf98601e6b8802d74.tar.gz
Some function documenting while I'm thinking about it
-rw-r--r--etc/inc/config.inc19
1 files changed, 17 insertions, 2 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index c89b344..0e811b6 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -1,6 +1,13 @@
<?php
-/* $Id$ */
-/*
+/****h* pfSense/config
+ * NAME
+ * config.inc - Functions to manipulate config.xml
+ * DESCRIPTION
+ * This include contains various config.xml specific functions.
+ * HISTORY
+ * $Id$
+ ******
+
config.inc
Copyright (C) 2004 Scott Ullrich
All rights reserved.
@@ -143,6 +150,14 @@ if(!$g['booting']) {
$config = parse_config();
}
+/****f* config/parse_config
+ * NAME
+ * parse_config - Read in config.cache or config.xml if needed and return $config array
+ * INPUTS
+ * $parse - boolean to force parse_config() to read config.xml and generate config.cache
+ * RESULT
+ * $config - array containing all configuration variables
+ ******/
function parse_config($parse = false) {
global $g;
OpenPOWER on IntegriCloud