summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2007-09-19 15:08:46 +0000
committerChristian Schneider2007-09-19 15:08:46 +0000
commite8e1b2d61001516a56e68a3953f60239ff808f1a (patch)
treed46003c325e7cf8a1ee9de3b6c1b9da4bc7bc7f0
parent5eb48dac8fab3e732008f95a9b5c61e4978243ee (diff)
downloaditools-e8e1b2d61001516a56e68a3953f60239ff808f1a.tar.gz
itools-e8e1b2d61001516a56e68a3953f60239ff808f1a.tar.bz2
itools-e8e1b2d61001516a56e68a3953f60239ff808f1a.zip
Removed default password from source code
-rw-r--r--it_dbi.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/it_dbi.class b/it_dbi.class
index 9cab98a..5b41f45 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -22,7 +22,7 @@ class it_dbi
'server' => "localhost",
'server_update' => null,
'user' => "itools",
- 'pw' => "24%^jXC~",
+ 'pw' => "",
'safety' => 1, /* 0= never die, 1=die if query invalid, 2=die also if no results */
'keyfield' => "ID",
'createclasses' => false,
@@ -52,7 +52,7 @@ function it_dbi($config = array(), $query = null)
$config = array('table' => $config);
# Create current settings
- foreach ($config + $this->_defaultconfig as $key => $value)
+ foreach ($config + (array)$GLOBALS['it_dbi_defaultconfig'] + $this->_defaultconfig as $key => $value)
{
$var = "_$key";
$this->$var = $value;