1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- $CC_CONFIG = Config::getConfig();
- $dbhost = $CC_CONFIG['dsn']['hostspec'];
- $dbname = $CC_CONFIG['dsn']['database'];
- $dbuser = $CC_CONFIG['dsn']['username'];
- $dbpass = $CC_CONFIG['dsn']['password'];
- $conf = array (
- 'datasources' =>
- array (
- 'airtime' =>
- array (
- 'adapter' => 'pgsql',
- 'connection' =>
- array (
- 'dsn' => "pgsql:host=$dbhost;port=5432;dbname=$dbname;user=$dbuser;password=$dbpass",
- ),
- ),
- 'default' => 'airtime',
- ),
- 'generator_version' => '1.5.2',
- );
- $conf['classmap'] = include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'classmap-airtime-conf.php');
- return $conf;
|