gforge/common/docman/engine/parser_text.php -text
gforge/common/include/Navigation.class.php -text
gforge/common/include/TextSanitizer.class.php -text
+gforge/common/include/config.php -text
gforge/common/include/database-mysql.php -text
gforge/common/include/group_section_texts.php -text
gforge/common/include/rbac_texts.php -text
--- /dev/null
+<?php
+/**
+ * FusionForge configuration functions
+ *
+ * Copyright 2009, Roland Mas
+ *
+ * This file is part of FusionForge.
+ *
+ * FusionForge is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published
+ * by the Free Software Foundation; either version 2 of the License,
+ * or (at your option) any later version.
+ *
+ * FusionForge is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with FusionForge; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+ * USA
+ */
+
+if (!isset ($fusionforge_config)) {
+ $fusionforge_config = array () ;
+}
+
+function get_config ($section, $var) {
+ if (!isset ($fusionforge_config[$section])) {
+ return false ;
+ }
+
+ if (!isset ($fusionforge_config[$section][$var])) {
+ return false ;
+ }
+
+ return $fusionforge_config[$section][$var] ;
+}
+
+function read_config () {
+ $fusionforge_config['core']['forge_name'] = $GLOBALS['sys_name'] ;
+}
+
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
+
+?>