* 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']; $errorMessage = nl2br( trim( $errorMessage ) ); return << {$name} Driver Server Level Error
An error occured with the SQL server:

$errorMessage

This is not a problem with IP.Board but rather with your SQL server. Please contact your host and copy the message shown above.

EOF; } }