Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
if database unavailable then switch to .html?
Is it possible to detect if the database is unavailable via the server, and if so, to present a custom error message and or an html version of the site?
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
#2 2007-03-08 22:07:48
- rsilletti
- Moderator
- From: Spokane WA
- Registered: 2004-04-28
- Posts: 707
Re: if database unavailable then switch to .html?
TXP does that in txplib_db.php with a function called db_down(), I guess you could always customize the html there or modify it to call an include file?
Offline
Re: if database unavailable then switch to .html?
hmm, interesting, perhaps a plugin would suit this well, for update compatability?
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: if database unavailable then switch to .html?
To load plugins, you need database access :)
Offline
Re: if database unavailable then switch to .html?
der!!!
I should have remembered that.
too many margaritas :)
How then would you call a seperate file? or point toward one? unless its best just to modify the current one?
Last edited by ma_smith (2007-03-09 00:36:27)
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline