Hello

After installing Drupal successfully, if the Drupal database is stoped or coruption, an default error page "Unable to connect to database" is displayed. The content of this page is in the Drupal core: "database.pgsql.inc" or "database.mysql.inc'.

My question is how I can change the content of this default error page but I donot want to change the content of these files "database.pgsql.inc".

For example, I want to change to something like:
"The web is in maintaining condition, please visit later ......."

Is there a good way to do this ???

Many thanks
john

Comments

Hetta’s picture

I've just commented out the lot (in BOTH files), cos I don't like the security aspects of having various badhats see my connection data.

I expect you could roll a patch against drupal core for this ...