if (include_once ADODB_DIR . '/session/adodb-encrypt-md5.php') { $filters[] =& new ADODB_Encrypt_Md5(); } } if ($mcrypt) { if (include_once ADODB_DIR . '/session/adodb-encrypt-mcrypt.php') { $filters[] =& new ADODB_Encrypt_MCrypt(); } } if ($secret) { if (include_once FREEBEER_BASE . '/lib/ADOdb/adodb-encrypt-secret.php') { $filters[] =& new ADODB_Encrypt_Secret(); } } // ADODB_Session::filter($filters); $adodb_drivers = fbADOdb::getDrivers(); $clob_choices = array('' => '', 'CLOB' => 'CLOB', 'BLOB' => 'BLOB'); $yesno_choices = array('Yes' => 1, 'No' => 0); if (class_exists('ADODB_Session')) { $clob = ADODB_Session::clob(); $data_field_name = ADODB_Session::dataFieldName(); $debug = (int) ADODB_Session::debug(); $expire_notify = ADODB_Session::expireNotify(); $lifetime = (int) ADODB_Session::lifetime(); $optimize = (int) ADODB_Session::optimize(); $sync_seconds = (int) ADODB_Session::syncSeconds(); $table = ADODB_Session::table(); } $defaults = array('mysql' => array('clob' => '', 'database' => 'adodb_sessions', 'host' => 'localhost', 'password' => '', 'user' => 'root'), 'oracle' => array('clob' => 'CLOB', 'database' => '', 'host' => '', 'password' => 'tiger', 'user' => 'scott'), 'sqlite' => array('clob' => '', 'database' => '', 'host' => 'c:\\sqlite\\sqlite.db', 'password' => '', 'user' => '')); $defaults['mysqlt'] = $defaults['mysql']; $defaults['oci8'] = $defaults['oracle'];
function isAvailable() { return fbADOdb::isAvailable(); }
function _init() { if (!defined('ADODB_CACHE_DIR')) { $cache_dir = fbADOdb::_findDir('var/cache/adodb'); if ($cache_dir) { @define('ADODB_CACHE_DIR', $cache_dir); } } // fbSystem::appendIncludePath(dirname(__FILE__)); }