From e8e1b2d61001516a56e68a3953f60239ff808f1a Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Wed, 19 Sep 2007 15:08:46 +0000 Subject: Removed default password from source code --- it_dbi.class | 4 ++-- 1 file 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; -- cgit v1.2.3