--- gui/include/sql.php 2005-12-31 12:09:04.000000000 +0100 +++ gui/include/sql.php 2007-01-06 12:21:04.635899393 +0100 @@ -20,11 +20,16 @@ $include_path = realpath(dirname(__FILE__)); -include_once (realpath($include_path.'/adodb/adodb.inc.php')); +include_once 'adodb/adodb.inc.php'; //include_once (realpath($include_path.'/adodb/tohtml.inc.php')); -include_once (realpath($include_path.'/adodb/adodb-pager.inc.php')); +include_once 'adodb/adodb-pager.inc.php'; +if (empty($cfg['DB_PASS'])) { + echo '

Database password not found!
Please execute the \'VHCS Setup Tool\' to create a new and working configuration file.

'; + die(); +} + if ($cfg['DB_TYPE'] === 'pgsql') { $sql = &ADONewConnection('postgres7');