diff options
author | droy | 2014-11-03 16:04:38 +0000 |
---|---|---|
committer | droy | 2014-11-03 16:04:38 +0000 |
commit | 2a1f5556694dda55401e22df25c8d5d82ec30151 (patch) | |
tree | 3f89a9395f82a2ba377bac136bc18d152653c494 | |
parent | 6ee68f74713139a2a45dffe9eb35d0312383a92c (diff) | |
download | server-2a1f5556694dda55401e22df25c8d5d82ec30151.tar.gz server-2a1f5556694dda55401e22df25c8d5d82ec30151.tar.xz server-2a1f5556694dda55401e22df25c8d5d82ec30151.zip |
Bug 448912: translator web tool is garbled againR_0_201411031100
Signed-off-by: droy <denis.roy@eclipse.org>
-rwxr-xr-x | classes/system/dbconnection.class.php | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/classes/system/dbconnection.class.php b/classes/system/dbconnection.class.php index 4bcb5e9..f9d265a 100755 --- a/classes/system/dbconnection.class.php +++ b/classes/system/dbconnection.class.php @@ -1,21 +1,19 @@ <?php +/******************************************************************************* +* Copyright (c) 2007-2014 Eclipse Foundation, Intalio, Inc., IBM Corporation and others. +* All rights reserved. This program and the accompanying materials +* are made available under the terms of the Eclipse Public License v1.0 +* which accompanies this distribution, and is available at +* http://www.eclipse.org/legal/epl-v10.html +* +* Contributors: +* Denis Roy, Eclipse Foundation - Initial Implementation +* Antoine Toulme, Intalio - Backend functions +*******************************************************************************/ require_once(dirname(__FILE__) . "/backend_functions.php"); class DBConnection { - #***************************************************************************** - # - # dbconnection.class.php - # - # Author: Denis Roy - # Date: 2004-08-05 - # - # Description: Functions and modules related to the MySQL database connection - # - # HISTORY: - # - #***************************************************************************** - function connect() { static $dbh; @@ -34,11 +32,11 @@ class DBConnection { errorLog("Failed attempt to open database: $database - aborting \n\t" . mysql_error()); exitTo("/error.php?errNo=101303","error: 101303 - unknown database name"); } - } - mysql_query("SET character_set_results=latin1", $dbh); + } + # mysql_query("SET character_set_results=latin1", $dbh); return $dbh; } - + function disconnect() { mysql_close(); } |