Leider war ich nicht erfolgreich
Fehlermeldung:
Fatal error: Cannot redeclare xtc_db_connect() (previously declared in /homepages/8/d83366493/htdocs/xtc_dmtc/xtcommerce/inc/xtc_db_connect.inc.php:19) in /homepages/8/d83366493/htdocs/xtc_dmtc/xtcommerce/admin/includes/functions/compatibility.php on line 18
Die Datei: htdocs/xtc_dmtc/xtcommerce/inc/xtc_db_connect.inc.php
<?php
/* -----------------------------------------------------------------------------------------
$Id: xtc_db_connect.inc.php 1248 2005-09-27 10:27:23Z gwinger $
XT-Commerce - community made shopping
http://www.xt-commerce.com Copyright (c) 2003 XT-Commerce
-----------------------------------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce(database.php,v 1.19 2003/03/22);
www.oscommerce.com (c) 2003 nextcommerce (xtc_db_connect.inc.php,v 1.3 2003/08/13);
www.nextcommerce.org Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
// include(DIR_WS_CLASSES.'/adodb/adodb.inc.php');
if (!function_exists('xtc_db_connect')) {
function xtc_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database =
DB_DATABASE, $link = 'db_link') {
global $$link;
if (USE_PCONNECT == 'true') {
$$link = mysql_pconnect($server, $username, $password);
} else {
$$link = mysql_connect($server, $username, $password);
}
if ($$link) mysql_select_db($database);
return $$link;
}
}
?>