// if local then build dsn and try to connect // then get con or nocon //adodb settings if (!defined('ADODB_FORCE_NULLS')) { define('ADODB_FORCE_NULLS', 1); } if (!defined('ADODB_ASSOC_CASE')) { define('ADODB_ASSOC_CASE', 2); } if (!defined('ADODB_CASE_ASSOC')) { // typo in adodb's driver for sybase? // so do we even need this without sybase? What's this? define('ADODB_CASE_ASSOC', 2); } include 'lib/tikilib.php'; // Get list of available languages $languages = TikiLib::list_languages(false, null, true); $smarty->assignByRef("languages", $languages); $client_charset = ''; // next block checks if there is a local.php and if we can connect through this. // sets $dbcon to false if there is no valid local.php $dbcon = (bool) TikiDb::get(); $installer = null; if (file_exists($local)) { // include the file to get the variables $default_api_tiki = $api_tiki; $api_tiki = ''; include $local; if (!($client_charset_forced = isset($client_charset))) { $client_charset = ''; } $previousDbApi = $api_tiki;