* Invision Power Services * IP.Board v3.3.4 * Database driver error template * Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $ * * * @author $Author: bfarber $ * @copyright (c) 2001 - 2009 Invision Power Services, Inc. * @license http://www.invisionpower.com/company/standards.php#license * @package IP.Board * @link http://www.invisionpower.com * @since 3.0 * @version $Revision: 10914 $ * */ class ipsDriverErrorTemplate { /** * Constructor * * @access public * @return @e void */ public function __construct() { } /** * Show the database error * * @access public * @param boolean Show error in template or not * @param string Error message (only shown/needed if $showError is true) * @return @e void */ public function showError( $showError=false, $errorMessage='') { $errorBlock = ''; $name = $_SERVER['HTTP_HOST']; if( $showError AND $errorMessage ) { $errorMessage = htmlspecialchars($errorMessage); $errorBlock = <<
EOF; } return << {$name} Driver Error
There appears to be an error with the database. {$errorBlock}

If you are seeing this page, it means there was a problem communicating with our database. Sometimes this error is temporary and will go away when you refresh the page. Sometimes the error will need to be fixed by an administrator before the site will become accessible again.

You can try to refresh the page by clicking here

EOF; } }