projects
/
gnucomo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a PHP5 module for the configuration class
[gnucomo.git]
/
src
/
phpclasses
/
configuration.class.php
diff --git
a/src/phpclasses/configuration.class.php
b/src/phpclasses/configuration.class.php
index
1aaaa66
..
4f0c2a5
100644
(file)
--- a/
src/phpclasses/configuration.class.php
+++ b/
src/phpclasses/configuration.class.php
@@
-26,7
+26,7
@@
//
// RELATIONS :
// SEE ALSO :
//
// RELATIONS :
// SEE ALSO :
-// LAST MODIFIED :
Jul 29, 2002
+// LAST MODIFIED :
Nov 19, 2007
///////////////////////////////////////////////////////////////////////////
*/
///////////////////////////////////////////////////////////////////////////
*/
@@
-61,6
+61,7
@@
class configuration
function read($app_name)
{
$this->system = false;
function read($app_name)
{
$this->system = false;
+ $this->user = false;
$filename = "/etc/" . $app_name . ".conf";
if (!is_readable($filename))
{
$filename = "/etc/" . $app_name . ".conf";
if (!is_readable($filename))
{
@@
-69,7
+70,7
@@
class configuration
if (is_readable($filename))
{
if (is_readable($filename))
{
- $this->system =
xmldoc
file($filename);
+ $this->system =
domxml_open_
file($filename);
if ($this->system)
{
if ($this->system)
{
@@
-83,7
+84,6
@@
class configuration
}
}
}
}
- $this->user = false;
if (isset($_ENV['HOME']) && $_ENV['HOME'] != '/')
{
// Read configurations from the user's homedir.
if (isset($_ENV['HOME']) && $_ENV['HOME'] != '/')
{
// Read configurations from the user's homedir.
@@
-92,7
+92,7
@@
class configuration
if (is_readable($filename))
{
if (is_readable($filename))
{
- $this->user =
xmldoc
file($filename);
+ $this->user =
domxml_open_
file($filename);
if ($this->user)
{
if ($this->user)
{