Detect when the installation isnt complete

This commit is contained in:
james 2005-05-27 21:26:51 +00:00
parent f0cbb618ec
commit 850be50973

View File

@ -68,6 +68,16 @@ else
//first things first - make sure our DB version matches our CODE version
$dbcodeversion=@file("db/db.code.version.txt");
$dbdbversion=@file("db/db.db.version.txt");
if(!$dbdbversion)
{
echo "<html><head><title>SFIAB ERROR</title></head><body>";
echo "<h1>Science Fair In A Box - ERROR</h1>";
echo "SFIAB installation is not complete. Please go to <A href=\"install2.php\">Installer Step 2</a> to complete the installation process";
echo "<br>";
echo "</body></html>";
exit;
}
if($dbcodeversion[0]!=$dbdbversion[0])
{
echo "<html><head><title>SFIAB ERROR</title></head><body>";