diff options
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/include/functions.php b/include/functions.php deleted file mode 100644 index 9563190..0000000 --- a/include/functions.php +++ /dev/null @@ -1,26 +0,0 @@ -<?php - require_once "db.php"; - - function init_connection($link) { - - if (!$link) { - if (DB_TYPE == "mysql") { - print mysql_error(); - } - // PG seems to display its own errors just fine by default. - die("Connection failed."); - } - - if (DB_TYPE == "pgsql") { - pg_query($link, "set client_encoding = 'UTF-8'"); - pg_set_client_encoding("UNICODE"); - pg_query($link, "set datestyle = 'ISO, european'"); - pg_query($link, "set time zone '".DB_TIMEZONE."'"); - } else { - if (defined('MYSQL_CHARSET') && MYSQL_CHARSET) { - db_query($link, "SET NAMES " . MYSQL_CHARSET); - // db_query($link, "SET CHARACTER SET " . MYSQL_CHARSET); - } - } - } - |