summaryrefslogtreecommitdiff
path: root/config.php
blob: cd00072a6f7e8b03993915a219ed770a44a8b706 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php

if (!defined('MICROBLOG')) { exit(1) }

$dsn = array(
			     'phptype'  => 'pgsql',
			     'username' => 'someuser',
			     'password' => 'apasswd',
			     'hostspec' => 'localhost',
			     'database' => 'thedb',
			 );

$options = array(
				     'debug'       => 2,
				     'portability' => DB_PORTABILITY_ALL,
				 );

$db =& DB::connect($dsn, $options);
if (PEAR::isError($db)) {
	    die($db->getMessage());
}

$config['db'] =
  array( 'username' => 'stoica',
		 'password' => 'replaceme',