From f29ba1484f4a230651a40f4b3e26444d9748453f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 10 Nov 2008 06:29:19 +0100 Subject: code cleanup, test for db_escape() crazyness in DB sanity check --- opml.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'opml.php') diff --git a/opml.php b/opml.php index 35d7a070c..44e94ee37 100644 --- a/opml.php +++ b/opml.php @@ -10,16 +10,7 @@ $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); - if (DB_TYPE == "pgsql") { - pg_query($link, "set client_encoding = 'utf-8'"); - pg_set_client_encoding("UNICODE"); - } else { - if (defined('MYSQL_CHARSET') && MYSQL_CHARSET) { - db_query($link, "SET NAMES " . MYSQL_CHARSET); -// db_query($link, "SET CHARACTER SET " . MYSQL_CHARSET); - } - } - + init_connection($link); login_sequence($link); $owner_uid = $_SESSION["uid"]; -- cgit v1.2.3