<?php

/**   NOTE!! You must rename this file to 'connect.php'   **/

$DB_HOST =
$DB_USER =
$DB_PW =
$DB_NAME =
$STATUS_FILE = "/tmp/status.sql";

function
printError( $str, $link ) {
  
printf( "<font color=\"red\">Err: %s -- %s: %s</font><BR>\n",
   
$str,mysql_errno($link), mysql_error($link) );
}

function
checkDBStatus( ) {
  global
$STATUS_FILE;
  
clearstatcache();
  if(
file_exists($STATUS_FILE) ) {
    
printf( "<FONT COLOR=\"red\">
     <I>Sorry, the database is not available.</I></FONT><BR>\n"
);
    
printf( "Please try again in a few moments.<BR>\n" );
    exit;
  }
}

?>