[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] api/class.db.php, 1.1.1.1.2.4
From: |
nomail |
Subject: |
[Phpgroupware-cvs] api/class.db.php, 1.1.1.1.2.4 |
Date: |
Thu, 20 May 2004 20:57:51 -0000 |
Update of /api
Modified Files:
Branch: proposal-branch
class.db.php
date: 2004/04/16 20:59:48; author: seek3r; state: Exp; lines: +3 -26
Log Message:
bringing savannah cvs back up to date with what we were doing on our private
cvs server. We will not be doing dev from this cvs tree
=====================================================================
No syntax errors detected in -
=====================================================================
Index: api/class.db.php
diff -u api/class.db.php:1.1.1.1.2.3 api/class.db.php:1.1.1.1.2.4
--- api/class.db.php:1.1.1.1.2.3 Sat Feb 28 10:03:04 2004
+++ api/class.db.php Fri Apr 16 20:59:48 2004
@@ -22,27 +22,4 @@
/* $Id$ */
/* $Source$ */
-/* if (empty($GLOBALS['phpgw_data']['server']['db_type']))
- {
- $GLOBALS['phpgw_data']['server']['db_type'] = 'mysql';
- }
-
include_once(PHPGW_API.SEP.'db'.SEP.'class.db_'.$GLOBALS['phpgw_data']['server']['db_type'].'.php');
-*/
-
- // Clear all adodb global vars, for security
-
- require_once(PHPGW_API . SEP . 'db' . SEP . 'adodb.inc.php');
- require_once(PHPGW_API . SEP . 'db' . SEP .
'adodb-errorhandler.inc.php');
-
- class api_db
- {
- function api_db()
- {
- $dbh =
&ADONewConnection($GLOBALS['phpgw_data']['server']['db_type']);
-
$dbh->Connect($GLOBALS['phpgw_data']['server']['db_host'],$GLOBALS['phpgw_data']['server']['db_user'],$GLOBALS['phpgw_data']['server']['db_pass'],$GLOBALS['phpgw_data']['server']['db_name']);
-
- // LOL, I am amazed PHP will allow this, eitherway it
works perfectly (jengo)
- // No return is required, we basicly just totally
replaced the current class with a new one
- $this = $dbh;
- }
- }
+ // This file is no longer needed or useful
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] api/class.db.php, 1.1.1.1.2.4,
nomail <=