Hello and pre-thanks for anyone's interest.

The site I have been tasked to fix is a MySQL, Smarty, PHP site. I have a connection problem. When you call the site up, www.mysite.com You get printed on the browser output,
DB Error: connect failed
My index.php is:

Code:
<?php

require_once("includes/ru_config.php");

require_once("includes/ru_connection.php");

require_once("includes/ru_data.php");

require_once("includes/ru_utils.php");

require_once("libs/ru_smarty.php");

RU_CheckInject();

(other coding

?>
<?php

My configuration file is placed at includes/ru_config.php and reads:

Code:
define('SMARTY_DIR', '/home/xxxxxx/public_html/libs/smarty/');

define('CONFIG_DIR', '/home/xxxxxx/public_html/configs/');

define('TEMPLATES_DIR', '/home/xxxxxxx/public_html/templates/');

define('COMPILE_DIR', '/home/xxxxxxx/public_html/templates_c/');

define('CACHE_DIR', '/home/xxxxxxx/public_html/cache/');




define('TBL_PROFILE', 'Profile_delivery')

define('TBL_SUBDOMAIN', 'subdomain_delivery');

define('USERS_TABLE', "users");
(other code)
?>

My ru_connection.php file is located at includes/ru_connection.php and reads:

<?php
require_once(dirname(__FILE__) . '/ru_4pear.php');
require_once('DB.php');

define("BASE_SERVER", "localhost");
define("BASE_USER", "aaaaaaaa");
define("BASE_PASS", "bbbbbbb")
define("BASE_NAME", "cccccccc");

$dsn = 'mysql://' . BASE_USER . ': ' . BASE_PASS . '@' . BASE_SERVER . '/' . BASE_NAME;
//$db = DB::connect($dsn, true);
$db = DB::connect($dsn);
if (DB::isError($db))
{
die($db->getMessage());
}
?>
My ru_4pair.php is located at includes/ru_4pear.php and is below:

<?php

ini_set("include_path", ini_get("include_path") . ":/home/xxxxxx/public_html/libs/pear/");

?>
DB.php is located at libs/pear/DB.php

The reason we have DB.php is that previous to its installation, we could not transfer site coding from one site to the other. I don't believe it is the cause of the error, but if you need to see it, or the entirety of any of the other files, let me know.