diff -urp --strip-trailing-cr ../drupal-6.x-dev/includes/database.mysqli.inc ./includes/database.mysqli.inc --- ../drupal-6.x-dev/includes/database.mysqli.inc 2007-10-20 23:57:49.000000000 +0200 +++ ./includes/database.mysqli.inc 2007-11-04 15:24:15.000000000 +0100 @@ -87,31 +87,17 @@ function db_connect($url) { drupal_maintenance_theme(); drupal_set_header('HTTP/1.1 503 Service Unavailable'); drupal_set_title('Unable to connect to database server'); - print theme('maintenance_page', '

If you still have to install Drupal, proceed to the installation page.

-

If you have already finished installing Drupal, this either means that the username and password information in your settings.php file is incorrect or that we can\'t connect to the MySQL database server. This could mean your hosting provider\'s database server is down.

-

The MySQL error was: '. theme('placeholder', mysqli_connect_error()) .'.

-

Currently, the username is '. theme('placeholder', $url['user']) .' and the database server is '. theme('placeholder', $url['host']) .'.

- -

For more help, see the Installation and upgrading handbook. If you are unsure what these terms mean you should probably contact your hosting provider.

'); + print theme('maintenance_page', "

The requested page is currently not available due to technical problems. Please try again later. Thank you for your understanding.

+
+

(If you are the maintainer of this site, please check your database settings in the settings.php file, and whether your hosting provider's database server is running. The MySQLi error was: ". theme('placeholder', mysqli_connect_error()) .'. For more help, see handbook, or contact your hosting provider.)

'); exit; } else if (mysqli_connect_errno() > 0) { drupal_maintenance_theme(); drupal_set_title('Unable to select database'); - print theme('maintenance_page', '

We were able to connect to the MySQL database server (which means your username and password are okay) but not able to select the database.

-

The MySQL error was: '. theme('placeholder', mysqli_connect_error()) .'.

-

Currently, the database is '. theme('placeholder', substr($url['path'], 1)) .'. The username is '. theme('placeholder', $url['user']) .' and the database server is '. theme('placeholder', $url['host']) .'.

- -

For more help, see the Installation and upgrading handbook. If you are unsure what these terms mean you should probably contact your hosting provider.

'); + print theme('maintenance_page', "

The requested page is currently not available due to technical problems. Please try again later. Thank you for your understanding.

+
+

(If you are the maintainer of this site, please check your database settings in the settings.php file. The MySQLi error was: ". theme('placeholder', mysqli_connect_error()) .'. For more help, see handbook, or contact your hosting provider.)

'); exit; } diff -urp --strip-trailing-cr ../drupal-6.x-dev/includes/database.mysql.inc ./includes/database.mysql.inc --- ../drupal-6.x-dev/includes/database.mysql.inc 2007-10-20 23:57:49.000000000 +0200 +++ ./includes/database.mysql.inc 2007-11-04 15:15:52.000000000 +0100 @@ -89,31 +89,18 @@ function db_connect($url) { drupal_maintenance_theme(); drupal_set_header('HTTP/1.1 503 Service Unavailable'); drupal_set_title('Unable to connect to database server'); - print theme('maintenance_page', '

If you still have to install Drupal, proceed to the installation page.

-

If you have already finished installing Drupal, this either means that the username and password information in your settings.php file is incorrect or that we can\'t connect to the MySQL database server. This could mean your hosting provider\'s database server is down.

-

The MySQL error was: '. theme('placeholder', mysql_error()) .'.

-

Currently, the username is '. theme('placeholder', $url['user']) .' and the database server is '. theme('placeholder', $url['host']) .'.

- -

For more help, see the Installation and upgrading handbook. If you are unsure what these terms mean you should probably contact your hosting provider.

'); + print theme('maintenance_page', "

The requested page is currently not available due to technical problems. Please try again later. Thank you for your understanding.

+
+

(If you are the maintainer of this site, please check your database settings in the settings.php file, and whether your hosting provider's database server is running. The MySQL error was: ". theme('placeholder', mysql_error()) .'. For more help, see handbook, or contact your hosting provider.)

'); exit; } if (!mysql_select_db(substr($url['path'], 1))) { drupal_maintenance_theme(); drupal_set_title('Unable to select database'); - print theme('maintenance_page', '

We were able to connect to the MySQL database server (which means your username and password are okay) but not able to select the database.

-

The MySQL error was: '. theme('placeholder', mysql_error($connection)) .'.

-

Currently, the database is '. theme('placeholder', substr($url['path'], 1)) .'. The username is '. theme('placeholder', $url['user']) .' and the database server is '. theme('placeholder', $url['host']) .'.

- -

For more help, see the Installation and upgrading handbook. If you are unsure what these terms mean you should probably contact your hosting provider.

'); + print theme('maintenance_page', "

The requested page is currently not available due to technical problems. Please try again later. Thank you for your understanding.

+
+

(If you are the maintainer of this site, please check your database settings in the settings.php file. The MySQL error was: ". theme('placeholder', mysql_error()) .'. For more help, see handbook, or contact your hosting provider.)

'); exit; } diff -urp --strip-trailing-cr ../drupal-6.x-dev/includes/database.pgsql.inc ./includes/database.pgsql.inc --- ../drupal-6.x-dev/includes/database.pgsql.inc 2007-10-17 14:47:28.000000000 +0200 +++ ./includes/database.pgsql.inc 2007-11-04 15:27:28.000000000 +0100 @@ -85,17 +85,9 @@ function db_connect($url) { drupal_maintenance_theme(); drupal_set_header('HTTP/1.1 503 Service Unavailable'); drupal_set_title('Unable to connect to database'); - print theme('maintenance_page', '

If you still have to install Drupal, proceed to the installation page.

-

If you have already finished installing Drupal, this either means that the username and password information in your settings.php file is incorrect or that we can\'t connect to the PostgreSQL database server. This could mean your hosting provider\'s database server is down.

-

The PostgreSQL error was: '. theme('placeholder', decode_entities($php_errormsg)) .'

-

Currently, the database is '. theme('placeholder', substr($url['path'], 1)) .', the username is '. theme('placeholder', $url['user']) .', and the database server is '. theme('placeholder', $url['host']) .'.

- -

For more help, see the Installation and upgrading handbook. If you are unsure what these terms mean you should probably contact your hosting provider.

'); + print theme('maintenance_page', "

The requested page is currently not available due to technical problems. Please try again later. Thank you for your understanding.

+
+

(If you are the maintainer of this site, please check your database settings in the settings.php file, and whether your hosting provider's database server is running. The PostgreSQL error was: ". theme('placeholder', decode_entities($php_errormsg)) .'. For more help, see handbook, or contact your hosting provider.)

'); exit; }