Eva: Sorry I missed that the first time around. In last10.php add
Code:
$boarddown1 = mysql_query("SELECT value FROM setting WHERE varname='bbactive'");
$boarddown = mysql_result($boarddown1,0,0);
if ($boarddown == "0") { echo("Sorry the forums are down for maintenance"); exit; }
Put that right after
Code:
mysql_select_db($dbname) or die("Can't select database");
heynurse: um...you aren't by any chance on a Windows server are you?