<?php
/**
* This script will return the informations needed by the db_accessor object
* to access the database. Information can be defined as a string (dsn)
* or an array.
*
* @author Benjamin Gillissen <hide@address.com>
*
* **************************************************************
Copyright (C) 2007 Benjamin Gillissen
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details at:
http://www.gnu.org/copyleft/gpl.html
* **************************************************************
*/
//to access a mysql server (dsn)
$o['siteDB'] = 'mysql://swun:%PASSWORD%@127.0.0.1:3306/swun';
//to access a sqlite database file,
//Note that the folder containing the db file must be writable.
/*
$o['LiteDB']['vendor'] = 'sqlite';
$o['LiteDB']['path'] = PATH_CACHE.'/sqlite.db';
$o['LiteDB']['mode'] = '0770';
*/
//CNF //DBRef
$o['relations'] = Array('auth_ticket' => 'siteDB',
'site_profile' => 'siteDB',
'site_sessions' => 'siteDB',
'nzb' => 'siteDB',
'nzbdelay' => 'siteDB',
'hellarpcs' => 'siteDB',
'cache_rpcbrw' => 'siteDB',
'cache_rpc' => 'siteDB',
'cache_newzbin' => 'siteDB',
);
$o['table_prefix'] = 'swun_';
return $o;