2 /**************************************************************************
3 ** (c) Copyright 2002, Andromeda Technology & Automation
4 ** This is free software; you can redistribute it and/or modify it under the
5 ** terms of the GNU General Public License, see the file COPYING.
6 ***************************************************************************/
8 require_once('configuration.class.php');
11 ///////////////////////////////////////////////////////////////////////////
12 // NAME : gnucomo_config
13 // BASECLASS : configuration
16 // METHODS : Database - Obtain the database access string
18 // DESCRIPTION : Provides Gnucomo-specific configuration functions
22 // LAST MODIFIED : Sep 26, 2002
23 ///////////////////////////////////////////////////////////////////////////
26 class gnucomo_config extends configuration
29 // Return the database access string.
35 $param = $this->find_parameter("database", "name");
38 $access_string .= "dbname=" . $param;
41 $param = $this->find_parameter("database", "user");
44 $access_string .= " user=" . $param;
47 $param = $this->find_parameter("database", "password");
50 $access_string .= " password=" . $param;
53 $param = $this->find_parameter("database", "host");
56 $access_string .= " host=" . $param;
59 $param = $this->find_parameter("database", "port");
62 $access_string .= " port=" . $param;
64 return $access_string;