<?php
/*
Last change in version: 2.1 Alhpa 4
#########################################################################################
# ADbNewsSender 2 #
# Copyright (C) 2010 Florian Grannemann (E-mail: hide@address.com) #
# Website: http://adbnewssender.sf.net #
# #
# 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 3 of the License, or #
# 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. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program. If not, see http://www.gnu.org/licenses/. #
#########################################################################################
*/
/*
This file provides the database definitions
To add your own db definitions set:
$db_defs["db_system_name"]["ADBNS_DB_database_function"]="path_to_function_definition_file";
e.g:
$db_defs["mysql"]["query"]="mysql/query.php.inc";
(The definition for the function "query" (wich uses mysql_db_query()) is in ./mysql/query.php.inc)
You have also to add the specific Create Table, insert into, replace into and drop table functions.
For more information just take a look into the MySQL-Definition files.
*/
$db_defs=array();
//MySQL:
$db_defs["mysql"]["query"]="mysql/query.php.inc";
$db_defs["mysql"]["connect"]="mysql/connect.php.inc";
$db_defs["mysql"]["disconnect"]="mysql/disconnect.php.inc";
$db_defs["mysql"]["get_last_insert_id"]="mysql/get_last_insert_id.php.inc";
$db_defs["mysql"]["fetch_row"]="mysql/fetch_row.php.inc";
$db_defs["mysql"]["fetch_object"]="mysql/fetch_object.php.inc";
$db_defs["mysql"]["fetch_array"]="mysql/fetch_array.php.inc";
$db_defs["mysql"]["last_db_error"]="mysql/last_db_error.php.inc";
$db_defs["mysql"]["real_escape_string"]="mysql/real_escape_string.php.inc";
$db_defs["mysql"]["create_table"]="mysql/create_table.php.inc";
$db_defs["mysql"]["drop_table"]="mysql/drop_table.php.inc";
$db_defs["mysql"]["insert_into"]="mysql/insert_into.php.inc";
$db_defs["mysql"]["replace_into"]="mysql/replace_into.php.inc";
$db_defs["mysql"]["is_connected"]="mysql/is_connected.php.inc";
$db_defs["mysql"]["rename_table"]="mysql/rename_table.php.inc";
//MariaDB:
//Because MaraiDB is fully compatible with MySQL
$db_defs["mariadb"]=$db_defs["mysql"];
//PostgreSQL:
$db_defs["postgresql"]["query"]="postgresql/query.php.inc";
$db_defs["postgresql"]["connect"]="postgresql/connect.php.inc";
$db_defs["postgresql"]["disconnect"]="postgresql/disconnect.php.inc";
$db_defs["postgresql"]["get_last_insert_id"]="postgresql/get_last_insert_id.php.inc";
$db_defs["postgresql"]["fetch_row"]="postgresql/fetch_row.php.inc";
$db_defs["postgresql"]["fetch_object"]="postgresql/fetch_object.php.inc";
$db_defs["postgresql"]["fetch_array"]="postgresql/fetch_array.php.inc";
$db_defs["postgresql"]["last_db_error"]="postgresql/last_db_error.php.inc";
$db_defs["postgresql"]["real_escape_string"]="postgresql/real_escape_string.php.inc";
$db_defs["postgresql"]["create_table"]="postgresql/create_table.php.inc";
$db_defs["postgresql"]["drop_table"]="postgresql/drop_table.php.inc";
$db_defs["postgresql"]["insert_into"]="postgresql/insert_into.php.inc";
$db_defs["postgresql"]["replace_into"]="postgresql/replace_into.php.inc";
$db_defs["postgresql"]["is_connected"]="postgresql/is_connected.php.inc";
$db_defs["postgresql"]["rename_table"]="postgresql/rename_table.php.inc";
?>